joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004a1cf0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x49b969
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0049b980
test eax, eax
jne 0x49b969
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0049b980
test eax, eax
jne 0x49b969
lea edx, [esp + 0x10]
push 0x5d6a4c
push edx
call fcn.004af1e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b93a
lea eax, [esp + 0x10]
push 0x5d6a48
push eax
call fcn.004af1e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49b93a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x49b93d
mov byte [esi], 0
push 0x5d6210
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x49b980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x49b9e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4a1c30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4cea68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4a1ce0
mov eax, dword [0x5d7764]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004bec85
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004becd4
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004bec31
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4a1cc7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4a1cc7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004be8a1
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a4de0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ceef0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a4f87
mov ecx, dword [0x5d7764]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4a4edc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004a3b00
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004be98e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004be8a1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5d6210
call fcn.004be90f
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004a3ec0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004be98e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004be8a1
lea ecx, [esp + 0xc]
call fcn.004bed69
mov ecx, dword [esp + 0xc]
push 0x5d6c4c
push ecx
call fcn.004ae094
add esp, 8
test eax, eax
je 0x4a4f04
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4a4e3d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004be8a1
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004be8a1
jmp 0x4a4f8b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004a4b80
test eax, eax
push 0
je 0x4a4f6f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004a3220
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4a4f55
cmp eax, 0x64
jg 0x4a4f43
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4a4ee0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4a4ee0
cmp eax, 0x64
jge 0x4a4edc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4a4ee0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004a3220
mov esi, eax
jmp 0x4a4ee0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4a4f95
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4c0cac
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c0ce4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004becfc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004becd4
jmp 0x4c0cf0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c23a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c23e4
call fcn.004c8125
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c23e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c23db
xor eax, eax
jmp 0x4c23ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c23f2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c8655
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c8683
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c86a1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c85bb
jmp 0x4c86a1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c86a1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c85bb
test edi, edi
mov eax, edi
jne 0x4c868b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425090]
jne 0x401abf
repz ret
jmp fcn.00402688

Function at 0x409e36
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405a05
and dword [ebp - 4], 0
cmp dword [0x427df4], 0
mov ebx, eax
jne 0x409ee7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409f98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409f98
push eax
call fcn.00405993
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427df4], eax
call esi
push eax
call fcn.00405993
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427df8], eax
call esi
push eax
call fcn.00405993
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427dfc], eax
call esi
push eax
call fcn.00405993
pop ecx
mov dword [0x427e04], eax
test eax, eax
je 0x409ee7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405993
pop ecx
mov dword [0x427e00], eax
mov eax, dword [0x427e00]
cmp eax, ebx
je 0x409f3f
cmp dword [0x427e04], ebx
je 0x409f3f
push eax
call fcn.00405a0e
push dword [0x427e04]
mov esi, eax
call fcn.00405a0e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409f3f
test edi, edi
je 0x409f3f
call esi
test eax, eax
je 0x409f36
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409f36
test byte [ebp - 0xc], 1
jne 0x409f3f
or dword [ebp + 0x10], 0x200000
jmp 0x409f78
mov eax, dword [0x427df8]
cmp eax, ebx
je 0x409f78
push eax
call fcn.00405a0e
pop ecx
test eax, eax
je 0x409f78
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409f78
mov eax, dword [0x427dfc]
cmp eax, ebx
je 0x409f78
push eax
call fcn.00405a0e
pop ecx
test eax, eax
je 0x409f78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427df4]
call fcn.00405a0e
pop ecx
test eax, eax
je 0x409f98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409f9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bbef
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1f6ec04], 0x930
jne 0x40bc0c
push str.dadowawegip
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1f6ec04], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1f6ea48], eax
jne 0x40bc2c
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
leave
ret
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1053c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1053c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1053c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053c06a
add dl, dl
jne 0x1053c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053c0dc
xor eax, eax
add dl, dl
jne 0x1053c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053c17d
add dl, dl
jne 0x1053c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1053c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1053c075
mov eax, 1
add dl, dl
jne 0x1053c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1053c0e1
sub eax, ebx
mov ebx, 1
jne 0x1053c128
mov ecx, 1
add dl, dl
jne 0x1053c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1053c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1053c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1053c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1053c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1053c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1053c136
cmp eax, 0x7d00
jae 0x1053c16d
cmp eax, 0x500
jb 0x1053c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1053c075
cmp eax, 0x7f
ja 0x1053c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1053c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1053c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1053c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402f08
Capabilities:
Create thread
Terminate process

Disassembly:
push 0x24
mov eax, 0x47e20a
call fcn.004649f3
mov esi, ecx
call fcn.00432921
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call fcn.00432b60
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.00403358
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402642
mov eax, edi
dec eax
je 0x402f77
dec eax
je 0x402f5a
call fcn.004243c1
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push ebx
push esi
push 0x402eaf
push ebx
push ebx
call fcn.00460919
add esp, 0x18
mov ecx, esi
call fcn.00402f08
mov edi, eax
jmp 0x402fc6
cmp dword [ebp - 0x1c], 0
je 0x402fc6
mov eax, dword [esi + 0x354]
mov byte [eax + 0x709], bl
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x354]
add ecx, 0x6c0
cmp ecx, eax
je 0x402fa5
push 0xffffffffffffffff
push ebx
push eax
call fcn.00403973
mov ecx, dword [esi + 0x354]
call fcn.00409713
mov ecx, dword [esi + 0x358]
test al, al
je 0x402fc1
call fcn.0042ae69
jmp 0x402fc6
call fcn.0042aed2
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040224f
mov eax, edi
call fcn.004649a2
ret

Function at 0x406239
Capabilities:
Create process on windows

Disassembly:
push 0x27c
mov eax, 0x47e855
call fcn.00464a5f
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x280], edi
call fcn.00420840
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov edx, 0x27a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00426a7f
mov edx, eax
lea ecx, [ebp - 0x1f4]
call fcn.0040259e
push esi
push 1
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.0040220b
test bl, bl
je 0x406300
cmp dword [edi + 0x6bc], esi
je 0x4062d5
sub esp, 0x18
lea eax, [edi + 0x778]
mov ecx, esp
push eax
call fcn.00409783
mov ecx, dword [edi + 0x6bc]
push esi
push esi
call fcn.0042f4be
lea edx, [ebp - 0x1ac]
mov byte [edi + 0x709], 1
lea ecx, [ebp - 0x44]
call fcn.00426823
push eax
lea ecx, [ebp - 0x2c]
call fcn.004033ae
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.0040224f
jmp 0x40633e
push 1
push esi
push esi
lea ebx, [edi + 0x6c0]
mov byte [ebp - 4], 2
push ebx
lea eax, [edi + 0x6d8]
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00408d2e
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.0040224f
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x40633e
push 0xffffffffffffffff
push esi
push ebx
mov ecx, eax
call fcn.00403973
cmp byte [edi + 0x709], 0
je 0x406363
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push 2
push 0x111
push dword [ebp - 0x284]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
jmp 0x4064c5
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040224f
lea ecx, [ebp - 0x278]
call fcn.00402a88
call fcn.004649b1
ret 4
Function at 0x409265
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x47f0c4
call fcn.004649f3
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, 0x27b3
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00426a7f
mov edi, str._nURL_
mov byte [ebp - 4], 2
push edi
call fcn.00401cbd
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004035a0
push ebx
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x44]
call fcn.00426796
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004034fa
xor edi, edi
lea ecx, [ebp - 0x44]
push ebx
inc edi
push edi
call fcn.0040220b
mov dword [ebp - 0x48], ebx
test esi, esi
je 0x409310
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x48]
push ebx
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040220b
push ebx
push edi
lea ecx, [ebp + 8]
call fcn.0040224f
push ebx
push edi
lea ecx, [ebp + 0x20]
call fcn.0040224f
call fcn.004649a2
ret
Function at 0x40c385
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47f877
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x828]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0044485f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
lea ecx, [esp + 0x20]
xor eax, eax
mov ebx, 0x497a98
push ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x22], al
call fcn.00403358
and dword [esp + 0x830], 0
lea ecx, [esp + 0x38]
push ebx
call fcn.00403358
xor ebx, ebx
mov byte [esp + 0x50], bl
lea eax, [esp + 0x1c]
mov dword [esp + 0x830], 1
mov edx, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.0040c57a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x1c], bl
je 0x40c440
call fcn.0040c8bc
cmp byte [esp + 0x1d], 0
jne 0x40c47f
call fcn.004283cb
test eax, eax
jne 0x40c47f
push dword [esp + 0x10]
mov edx, esi
lea ecx, [esp + 0x58]
call fcn.0040ca17
pop ecx
lea edx, [esp + 0x54]
call fcn.0040c977
push ebx
test eax, eax
je 0x40c474
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
lea ecx, [esp + 0x5c]
call fcn.0040224f
push ebx
push ebx
push ebx
push 4
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 8
push eax
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0044179a
push ebx
call fcn.0044338e
pop ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x7c], ebx
xorps xmm0, xmm0
mov dword [esp + 0x80], ebx
push eax
movdqu xmmword [esp + 0x70], xmm0
call fcn.004460b8
lea ecx, [esp + 0x88]
push dword [eax + 8]
call fcn.004049bd
mov dword [esp + 0x814], 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x830], 2
call fcn.0042aad1
lea ecx, [esp + 0x84]
call fcn.00404ceb
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.0040224f
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.0040224f
xor eax, eax
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.004600e1
mov esp, ebp
pop ebp
ret
Function at 0x40c8bc
Capabilities:
Terminate process

Disassembly:
push 0x254
mov eax, 0x47f8bb
call fcn.004649f3
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403358
lea edx, [ebp - 0x248]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x260]
call fcn.004241a2
push str._test
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00403da6
pop ecx
push esi
push 1
lea ecx, [ebp - 0x260]
call fcn.0040224f
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.0040224f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x40c96e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c977
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4b0760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ca06
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00462bd0
and dword [ebp - 0x240], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x40c9f1
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x40ca08
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004600e1
mov esp, ebp
pop ebp
ret