joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402420
Capabilities:
Access peb ldr_data
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4323d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push str._04d_02d_02d_02d_02d_02d
push edi
call fcn.0040e7cf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0041c315
call fcn.0042d2a1
mov esi, dword [eax + 4]
push 0xa
lea ecx, [esp + 0x28]
call fcn.0041cde3
lea eax, [esi + 0xcc]
lea ecx, [esp + 0x50]
push eax
mov dword [esp + 0x4c], 0
call fcn.0041d662
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x24]
push ecx
push str..exe
push edx
mov byte [esp + 0x54], 1
call fcn.00402070
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x30]
push eax
push str..dll
push ecx
call fcn.00402070
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x3c]
push edx
push str..ocx
push eax
call fcn.00402070
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x48]
push ecx
push str..dic
push edx
call fcn.00402070
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x54]
push eax
push str.FIELDDES.DAT
push ecx
call fcn.00402070
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x60]
push edx
push str.FUNCDESC.DAT
push eax
call fcn.00402070
mov edx, dword [esp + 0x98]
add esp, 0x48
lea ecx, [esp + 0x24]
push ecx
push str.drawcom.cab
push edx
call fcn.00402070
mov esi, dword [esi + 0xc4]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
push edx
call sub.IoDevMan.dll__PackFileList_16
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0
call fcn.0041d8ed
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.0041ce57
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x402fd0
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x432576
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
call fcn.0042d2a1
mov eax, dword [eax + 4]
push str.Users
add eax, 0xc8
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041db82
lea ecx, [esp + 0x150]
xor ebx, ebx
push ecx
push 0x104
mov dword [esp + 0x264], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
push 0x443238
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x403115
push esi
push edi
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041d95b
mov al, byte [esp + 0x18]
mov byte [esp + 0x264], 1
test al, 0x10
je 0x4030e9
mov edi, dword [esp + 0x10]
mov esi, 0x443234
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x40309b
cmp dl, bl
je 0x403097
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x40309b
add ecx, 2
add esi, 2
cmp dl, bl
jne 0x403077
xor ecx, ecx
jmp 0x4030a0
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x4030e9
mov esi, 0x443230
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4030cf
cmp cl, bl
je 0x4030cb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4030cf
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4030ab
xor eax, eax
jmp 0x4030d4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4030e9
mov ecx, dword [esp + 0x26c]
lea eax, [esp + 0x10]
push eax
call fcn.0041cf14
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov byte [esp + 0x264], bl
lea ecx, [esp + 0x10]
je 0x40310e
call fcn.0041d8ed
jmp 0x40304e
call fcn.0041d8ed
pop edi
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x25c], 0xffffffff
call fcn.0041d8ed
mov ecx, dword [esp + 0x254]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret
Function at 0x405f00
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
xor eax, eax
test edi, edi
push 0
push 2
sete al
push 2
mov dword [esp + 0x38], eax
call sub.WSOCK32.dll_socket
lea ecx, [esp + 0x2c]
push 4
push ecx
mov esi, eax
push 0x20
push 0xffff
push esi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x405f58
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.setsockopt
push str.DoUdpClient
call fcn.00405e30
add esp, 0xc
pop edi
pop esi
add esp, 0x20
ret
push 0
mov word [esp + 0x1c], 2
call sub.WSOCK32.dll_htonl
push 0
mov dword [esp + 0x20], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x18]
push 0x10
push edx
push esi
mov word [esp + 0x26], ax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x405fa6
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.bind
push str.DoUdpClient
call fcn.00405e30
add esp, 0xc
pop edi
pop esi
add esp, 0x20
ret
test edi, edi
mov word [esp + 8], 2
jne 0x405fba
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
jmp 0x405fc0
push edi
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
push eax
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push 0x10
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x38]
push ecx
push 0
push edx
push eax
push esi
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x406009
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.sendto
push str.DoUdpClient
call fcn.00405e30
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
add esp, 0x20
ret
Function at 0x413ae9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x444a58
cmp edx, dword [eax]
je 0x413b0b
add eax, 8
inc ecx
cmp eax, 0x444ae8
jl 0x413afc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x444a58]
jne 0x413c39
mov eax, dword [0x447720]
cmp eax, 1
je 0x413c13
test eax, eax
jne 0x413b3c
cmp dword [0x444454], 1
je 0x413c13
cmp edx, 0xfc
je 0x413c39
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413b73
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x413bb6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x439bd4
push edi
call fcn.00415ff0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414ef0
lea eax, [ebp - 0xa0]
push 0x439bb4
push eax
call fcn.00414ef0
push dword [esi + 0x444a5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416942
add esp, 0x2c
pop edi
jmp 0x413c39
lea eax, [ebp + 8]
lea esi, [esi + 0x444a5c]
push 0
push eax
push dword [esi]
call fcn.00412830
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41b750
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f830
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b81b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b81b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41b7ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b7d9
or bh, 8
and edi, 0x8000000
je 0x41b7f4
mov eax, dword [0x448e9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b81b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41bc1b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41bc3f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41bc5a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41fb85
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41fbbd
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.0041dd94
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041dd6c
jmp 0x41fbc9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42166a
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 0x4216ac
call fcn.0042d2a1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4216ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4216a3
xor eax, eax
jmp 0x4216b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004216ba
pop edi
pop esi
pop ebx
ret 4

Function at 0x423314
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0042d2a1
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x423345
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00423358
pop edi
pop esi
pop ebx
ret 8
Function at 0x423655
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x433318
call fcn.0040ea30
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042d2a1
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x423694
call fcn.0042d2a1
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4236a2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4236b0
or eax, 0xffffffff
jmp 0x423798
mov ecx, esi
call fcn.004235cb
mov dword [ebp - 0x14], eax
call fcn.0041f6d5
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4236e7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4236e7
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041f689
push dword [ebp - 0x14]
call fcn.0041f1d7
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00423358
cmp eax, edi
je 0x42375a
test byte [esi + 0x24], 0x10
je 0x423728
push 4
mov ecx, esi
pop ebx
call fcn.00421e29
test ah, 1
je 0x423720
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004217bc
cmp dword [esi + 0x1c], edi
je 0x42375a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00421f9a
jmp 0x42375a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x42376e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x423787
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x423787
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00423605
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x431a7b
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
or ecx, ebx
add ebx, ecx
add ebx, 0xddf00dfa
call fcn.0043b6aa
push ebx
mov ebx, dword [esp]
add esp, 4
sub esp, 4
mov dword [esp], 0xf3e05bf5
pop ecx
xor dword [eax], esi
inc ebx
mov ecx, 0xdcbdd8f0
add eax, 1
add ebx, 0x284e4408
add ebx, 0xab22b873
mov ecx, 0x69a926f4
cmp eax, edx
jne fcn.0043b654
add ebx, ebx
ret
Function at 0x408f10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f9cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00465aad
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408f92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fffe
mov eax, dword [eax]
push 0x49dbec
push eax
call fcn.0045286a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00465d38
test bl, bl
je 0x408f92
push 0x49dbec
lea ecx, [esp + 0xc]
call fcn.00466114
push 0x49dbf8
lea ecx, [esp + 0xc]
call fcn.00466114
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408fce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00465d38
jmp 0x409099
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409052
lea edx, [esp + 0x7c]
push 0x49dbf4
push edx
call fcn.0045286a
add esp, 8
test eax, eax
je 0x409052
lea eax, [esp + 0x7c]
push 0x49dbf0
push eax
call fcn.0045286a
add esp, 8
test eax, eax
je 0x409052
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408fe2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00465d38
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4098b0
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 0x409912
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 0x409920
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fa4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a5098]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x409a58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409986
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465d38
xor eax, eax
jmp 0x409acf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00465ec1
push esi
lea ecx, [esp + 0xc]
call fcn.00466150
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x49dc34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409aad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004098b0
test eax, eax
jne 0x409aad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004098b0
test eax, eax
jne 0x409aad
lea eax, [esp + 0x14]
push 0x49dc10
push eax
call fcn.00452da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409a8c
lea ecx, [esp + 0x14]
push 0x49dc0c
push ecx
call fcn.00452d20
mov esi, eax
add esp, 8
test esi, esi
jne 0x409a8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409a8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00465e71
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40999e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465d38
xor eax, eax
jmp 0x409acf
mov byte [esi], 0
push 0x49dc08
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00465d38
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41c620
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x470988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041d1a0
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x41c6c9
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041c2b0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.0046994c
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.004326e0
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.004699be
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14