joyce8/EMBER2024-capa huggingface dataset:
Function at 0xffec219
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
push 0
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0xffec253
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xffec24f
mov edi, 0x8009001e
jmp 0xffec296
mov edi, eax
jmp 0xffec296
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll__lclose]
mov edi, eax
cmp edi, 0xffffffff
jne 0xffec274
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0xffec28d
push esi
call ebx
push edi
push dword [ebp + 8]
or esi, 0xffffffff
call fcn.0ffebf23
test eax, eax
je 0xffec28b
mov edi, eax
jmp 0xffec295
xor edi, edi
cmp esi, 0xffffffff
je 0xffec295
push esi
call ebx
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4015c1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40a008]
je 0x4015dc
inc edi
cmp edi, 0x17
jb 0x4015cd
cmp edi, 0x17
jae 0x40175c
push ebp
push 3
call fcn.00403640
cmp eax, 1
pop ecx
je 0x401728
push 3
call fcn.00403640
test eax, eax
pop ecx
jne 0x401610
cmp dword [section..data], 1
je 0x401728
cmp ebx, 0xfc
je 0x40175b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40ad18
push ebp
call fcn.004035db
add esp, 0xc
test eax, eax
je 0x401646
push esi
push esi
push esi
push esi
push esi
call fcn.00402b35
add esp, 0x14
push 0x104
mov esi, 0x40ad31
push esi
push 0
mov byte [0x40ae35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40168a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004035db
add esp, 0xc
test eax, eax
je 0x40168a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402b35
add esp, 0x14
push esi
call fcn.00403550
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4016cf
push esi
call fcn.00403550
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b02c
push 0x4086d4
sub ecx, eax
push ecx
push eax
call fcn.00403492
add esp, 0x14
test eax, eax
je 0x4016cf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402b35
add esp, 0x14
jmp 0x4016d1
xor esi, esi
push 0x4086d0
push ebx
push ebp
call fcn.00403421
add esp, 0xc
test eax, eax
je 0x4016f1
push esi
push esi
push esi
push esi
push esi
call fcn.00402b35
add esp, 0x14
push dword [edi*8 + 0x40a00c]
push ebx
push ebp
call fcn.00403421
add esp, 0xc
test eax, eax
je 0x401713
push esi
push esi
push esi
push esi
push esi
call fcn.00402b35
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00403264
add esp, 0xc
jmp 0x40175b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40175b
cmp ebp, 0xffffffff
je 0x40175b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a00c]
push dword [esi]
call fcn.00403550
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403264
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402119
xor ebx, ebx
cmp dword [0x40b2d8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40333a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40341a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40341a
push eax
call fcn.004020ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b2d8], eax
call esi
push eax
call fcn.004020ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b2dc], eax
call esi
push eax
call fcn.004020ab
mov dword [0x40b2e0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040134e
test eax, eax
pop ecx
pop ecx
je 0x403308
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402b35
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40333a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004020ab
cmp eax, ebx
pop ecx
mov dword [0x40b2e8], eax
je 0x40333a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004020ab
pop ecx
mov dword [0x40b2e4], eax
mov eax, dword [0x40b2e4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4033bf
cmp dword [0x40b2e8], ecx
je 0x4033bf
push eax
call fcn.00402122
push dword [0x40b2e8]
mov esi, eax
call fcn.00402122
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4033bf
cmp edi, ebx
je 0x4033bf
call esi
cmp eax, ebx
je 0x40338c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40338c
test byte [ebp - 0x18], 1
jne 0x4033bf
lea eax, [ebp - 0x10]
push eax
call fcn.00401385
test eax, eax
pop ecx
je 0x4033a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402b35
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4033b6
or dword [ebp + 0x10], 0x200000
jmp 0x4033fa
or dword [ebp + 0x10], 0x40000
jmp 0x4033fa
mov eax, dword [0x40b2dc]
cmp eax, dword [ebp - 8]
je 0x4033fa
push eax
call fcn.00402122
cmp eax, ebx
pop ecx
je 0x4033fa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4033fa
mov eax, dword [0x40b2e0]
cmp eax, dword [ebp - 8]
je 0x4033fa
push eax
call fcn.00402122
cmp eax, ebx
pop ecx
je 0x4033fa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b2d8]
call fcn.00402122
cmp eax, ebx
pop ecx
je 0x40341a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40341c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40518d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40aa68]
jne 0x405197
repz ret
jmp fcn.00406725
Function at 0x30015e8c
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x30015eb0
add eax, edx
mov cx, word [eax]
cmp cx, 0x22
je 0x30015ec6
test cx, cx
jne 0x30015e9e
jmp 0x30015ed0
cmp cx, 0x20
jbe 0x30015ec8
add eax, edx
cmp word [eax], 0x20
ja 0x30015eb6
jmp 0x30015ec8
cmp cx, 0x20
ja 0x30015ed0
add eax, edx
mov cx, word [eax]
test cx, cx
jne 0x30015ec0
and dword [0x30098838], 0
push eax
call fcn.30019900
mov ecx, eax
and ecx, 0x60
je 0x30015ee7
mov eax, ecx
ret
test al, 8
je 0x30015eef
push 8
pop eax
ret
push esi
mov esi, 0x1eee
test esi, eax
jne 0x30015efd
xor eax, eax
pop esi
ret
xor ecx, ecx
push ebx
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x30015f15
test eax, edx
je 0x30015f15
mov ebx, eax
sub ebx, edx
test esi, ebx
jne 0x30015f24
inc ecx
cmp ecx, 0x20
jb 0x30015f00
test al, 4
je 0x30015f26
test ah, 1
jne 0x30015f26
xor eax, eax
pop ebx
pop esi
ret

Function at 0x30015f29
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x30098838]
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push eax
mov dword [0x300968ac], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x300968a8], eax
je 0x30015f8e
cmp dword [eax], 0x9c9c
jne 0x30015f8e
cmp dword [eax + 4], 0x20000
jne 0x30015f8e
cmp dword [eax + 0x24], esi
je 0x30015f8e
cmp dword [eax + 0x18], esi
je 0x30015f8e
cmp dword [eax + 0x20], esi
je 0x30015f8e
cmp dword [0x30098848], esi
jne 0x30015f78
cmp dword [eax + 0x28], esi
je 0x30015f8e
push dword [eax + 0x3c]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 0x2c]
call fcn.30024262
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x3001ae0d
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 8

Function at 0x3001e280
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x3001e2a2
push 0x14
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x3001e385
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.30019abb
mov eax, dword [0x300984e8]
xor ebp, ebp
inc ebp
cmp eax, dword [0x300984e4]
mov edi, 0x447
je 0x3001e30c
push ebp
push 0x66
push 4
push esi
call fcn.3001bd7c
push ebp
push 0xa2
push 0x3ed
push esi
call fcn.3001bd7c
push ebp
push 0xa3
push 3
push esi
call fcn.3001bd7c
push ebp
push 0xb0
push edi
push esi
call fcn.3001bd7c
push ebp
push 0xb1
push 0x453
push esi
call fcn.3001bd7c
cmp dword [ebx + 0x34], 0
je 0x3001e342
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x3001e36c
mov eax, dword [ebx + 8]
test byte [eax], 2
je 0x3001e36c
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esp + 0x18]
and dword [ebx + 0x28], 0
push ebx
push esi
call fcn.3001e16d
push 0x3ec
push esi
call fcn.3001ae0d
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x30020ca7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x300930a4]
push edi
push 0x24
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
pop edi
jne 0x30020d0a
cmp dword [ebp - 0x94], 5
jb 0x30020d0a
push 0x30098508
mov dword [0x30098508], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
jmp 0x30020d0c
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.3005f839
leave
ret
Function at 0x300215a6
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x300930a4]
push ebx
push esi
mov esi, dword [ebp + 0xa0]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x30062568], ebx
mov dword [ebp + 0x90], eax
je 0x300215ea
mov eax, dword [esi + 0x3006256c]
cmp eax, dword [ebp + 0xa4]
jne 0x300215ea
xor eax, eax
inc eax
jmp 0x300216b4
push edi
push dword [ebp + 0x9c]
mov edi, 0x104
push 0x30002c50
push 0x30002e40
lea eax, [ebp - 0x74]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi + 0x30062578]
add esp, 0x14
cmp eax, ebx
je 0x3002163b
cmp byte [eax], bl
je 0x3002163b
push edi
lea eax, [ebp - 0x74]
push eax
push 0x30002938
call fcn.3004cb62
push edi
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x30062578]
call fcn.3004cb62
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.30032438
test eax, eax
jne 0x30021654
xor eax, eax
jmp 0x300216b3
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x30021650
push 4
pop edi
push edi
lea eax, [ebp + 0xa4]
push eax
push edi
push ebx
push dword [esi + 0x3006257c]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x30021650
mov eax, dword [ebp + 0xa4]
mov dword [esi + 0x3006256c], eax
xor eax, eax
inc eax
mov dword [esi + 0x30062570], edi
mov dword [esi + 0x30062568], eax
mov dword [esi + 0x30062574], ebx
pop edi
mov ecx, dword [ebp + 0x90]
pop esi
pop ebx
call fcn.3005f839
add ebp, 0x94
leave
ret 0xc

Function at 0x30021abb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.3004b73a
mov esi, eax
push 0x106
inc esi
push esi
call fcn.30050e9f
mov edi, eax
test edi, edi
je 0x30021afd
push esi
push edi
push dword [ebp + 8]
call fcn.3004cb0a
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x30021a6c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret 4

Function at 0x30021b15
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x30021b25
xor eax, eax
jmp 0x30021b8d
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x30021b7f
cmp eax, edi
je 0x30021b7f
push edi
push eax
push edi
push 8
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x30021b7f
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x30021b7a
push ebx
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
pop ebx
jmp 0x30021b87
xor eax, eax
inc eax
jmp 0x30021b8c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x30022358
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp word [0x3009ebd0], 0
je 0x300223a6
push esi
push 0x3009ebd0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x300223a5
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.3004b7c1
add eax, eax
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebp
ret 0x14

Function at 0x300226a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x300226f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x300226e6
cmp eax, 0x21
je 0x300226e6
cmp eax, 0x36
jne 0x30022723
inc ebx
cmp ebx, 5
jge 0x30022723
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300226af
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.3004b73a
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30022999
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x8ec]
sub esp, 0x96c
mov eax, dword [0x300930a4]
push ebx
push edi
mov dword [ebp + 0x8e8], eax
push 0xf
xor eax, eax
cmp dword [ebp + 0x8f4], 0
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x7e4]
mov dword [ebp - 0x44], 0x824
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x104
jne 0x300229ec
xor eax, eax
jmp 0x30022af9
push esi
mov esi, 0x10000000
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x8f4]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x30022af6
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x30022af6
cmp dword [ebp - 0x74], 3
je 0x30022a39
cmp dword [ebp - 0x74], 4
jne 0x30022af6
push dword [ebp - 0x70]
call fcn.3004b73a
mov esi, 0x30002d50
push esi
mov ebx, eax
call fcn.3004b73a
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.30031ea9
test eax, eax
je 0x30022a77
mov esi, 0x30002d58
push esi
call fcn.3004b73a
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.30031ea9
test eax, eax
jne 0x30022af6
push esi
call fcn.3004b73a
lea eax, [ebp + eax - 0x40]
jmp 0x30022a88
test cl, cl
je 0x30022af6
inc eax
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x30022a83
test cl, cl
je 0x30022af6
mov eax, dword [ebp - 0x70]
mov edi, 0x30003150
push edi
lea esi, [ebx + eax]
call fcn.3004b73a
cmp ebx, eax
jl 0x30022ab8
push eax
mov ecx, esi
push edi
sub ecx, eax
push ecx
call fcn.30031ea9
test eax, eax
je 0x30022af1
mov edi, 0x30003144
push edi
call fcn.3004b73a
cmp ebx, eax
jl 0x30022ad5
push eax
push edi
sub esi, eax
push esi
call fcn.30031ea9
test eax, eax
je 0x30022af1
mov esi, 0x30003134
push esi
call fcn.3004b73a
cmp ebx, eax
jne 0x30022af6
push esi
push dword [ebp - 0x70]
call fcn.30031ce4
test eax, eax
jne 0x30022af6
xor eax, eax
inc eax
jmp 0x30022af8
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x8e8]
pop edi
pop ebx
call fcn.3005f839
add ebp, 0x8ec
leave
ret 4
Function at 0x30022f58
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x30023049
cmp dword [ebp + 8], ebx
je 0x30023049
push 0x106
push 0x10000
call fcn.30050e9f
mov edx, eax
xor eax, eax
cmp edx, ebx
mov dword [ebp - 8], edx
je 0x3002304b
push edi
push 0x8000
push edx
push dword [ebp + 8]
mov edi, edx
mov ecx, 0x4000
rep stosd dword es:[edi], eax
call fcn.30022f0a
test eax, eax
pop edi
je 0x3002303d
push esi
push ebx
push ebx
push 4
push dword [ebp + 0x10]
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x30023007
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 0xc], eax
je 0x30022feb
cmp eax, 0x21
je 0x30022feb
cmp eax, 0x36
jne 0x3002303c
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x30022fff
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x30022fb6
jmp 0x3002303c
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.3004b7c1
add eax, eax
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop esi
push dword [ebp - 8]
call fcn.30050db4
mov eax, ebx
jmp 0x3002304b
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x30023050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
mov dword [ebp - 4], ebx
je 0x30023139
cmp dword [ebp + 8], ebx
je 0x30023139
push 0x106
mov esi, 0x8000
push esi
call fcn.30050e9f
mov edx, eax
xor eax, eax
cmp edx, ebx
mov dword [ebp - 8], edx
je 0x3002313b
push edi
push esi
push edx
push dword [ebp + 8]
mov edi, edx
mov ecx, 0x2000
rep stosd dword es:[edi], eax
call fcn.30022ebb
test eax, eax
pop edi
je 0x3002312d
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x300230fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 0xc], eax
je 0x300230de
cmp eax, 0x21
je 0x300230de
cmp eax, 0x36
jne 0x3002312d
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x300230f2
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x300230ab
jmp 0x3002312d
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.3004b73a
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call fcn.30050db4
mov eax, ebx
jmp 0x3002313b
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x30023642
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x300930a4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
mov word [ebp - 0x1c], 0x3a
mov word [ebp - 0x1a], 0x5c
mov word [ebp - 0x18], 0x2f
mov word [ebp - 0x16], 0x3c
mov word [ebp - 0x14], 0x3e
mov word [ebp - 0x12], 0x22
mov word [ebp - 0x10], 0x7c
mov word [ebp - 0xe], 0x2a
mov word [ebp - 0xc], 0x3f
mov word [ebp - 0xa], 0x26
mov word [ebp - 8], 0x2c
mov word [ebp - 6], 0x25
mov dword [ebp - 0x78], 0x300032c0
mov dword [ebp - 0x74], 0x300032b8
mov dword [ebp - 0x70], 0x300032b0
mov dword [ebp - 0x6c], 0x300032a0
mov dword [ebp - 0x68], 0x30003298
mov dword [ebp - 0x64], 0x3000328c
mov dword [ebp - 0x60], 0x30003280
mov dword [ebp - 0x5c], 0x30003274
mov dword [ebp - 0x58], 0x30003268
mov dword [ebp - 0x54], 0x3000325c
mov dword [ebp - 0x50], 0x30003250
mov dword [ebp - 0x4c], 0x30003244
mov dword [ebp - 0x48], 0x30003238
mov dword [ebp - 0x44], 0x3000322c
mov dword [ebp - 0x40], 0x30003220
mov dword [ebp - 0x3c], 0x30003214
mov dword [ebp - 0x38], 0x30003208
mov dword [ebp - 0x34], 0x300031fc
mov dword [ebp - 0x30], 0x300031f0
mov dword [ebp - 0x2c], 0x300031e4
mov dword [ebp - 0x28], 0x300031d8
mov dword [ebp - 0x24], 0x300031cc
mov dword [ebp - 0x20], 0x300031c0
xor ebx, ebx
jmp 0x3002376d
mov ax, word [ecx]
xor edx, edx
cmp ax, word [ebp + edx*2 - 0x1c]
jne 0x30023752
push 0x5f
pop eax
inc edx
cmp edx, 0xc
jl 0x30023748
cmp ax, bx
mov word [ecx], ax
jbe 0x3002376b
cmp ax, 0x20
jae 0x3002376b
mov word [ecx], 0x5f
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x30023743
mov esi, dword [ebp + ebx*4 - 0x78]
push esi
call fcn.3004b7c1
mov edi, eax
push edi
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.30031dc6
test eax, eax
jne 0x3002379c
mov di, word [esi + edi*2]
test di, di
je 0x300237a4
cmp di, 0x2e
je 0x300237a4
inc ebx
cmp ebx, 0x17
jl 0x30023772
jmp 0x300237a9
mov word [esi], 0x58
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.3005f839
leave
ret 4

Function at 0x300241ad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x30098510], 1
mov eax, dword [0x300930a4]
mov dword [ebp - 4], eax
jb 0x300241d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3002423e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3002423b
push edi
push dword [ebp + 8]
call fcn.3004b73a
mov edi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.3004b73a
lea eax, [edi + eax + 2]
cmp eax, esi
pop edi
ja 0x3002423b
push esi
lea eax, [ebp - 0x108]
push eax
push 0x30002938
call fcn.3004cb62
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.3004cb62
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3002423d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.3005f839
leave
ret 4
Function at 0x300242fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x58], 0x44
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [0x300968a8]
push 0xfa0
mov dword [ebp - 4], ebx
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 8], ebx
je 0x30024378
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300984e4]
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.3004fc1e
test eax, eax
je 0x300243c1
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300984e4]
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x300968a8]
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
add eax, 0x258
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x300243ad
push dword [ebp - 4]
call fcn.3004fd1c
cmp esi, ebx
je 0x300243c1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
leave
ret 4