joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432510
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
cmp dword [ebp + 0xc], 1
jb 0x432546
cmp dword [ebp + 0xc], 0x1000
jbe 0x432558
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x43275b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.00430bf0
test eax, eax
jne 0x43257e
jmp 0x43275b
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x4325b0
cmp dword [ebp - 0x420], 0x104
jb 0x4325ba
jmp 0x43275b
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00431420
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x4325e9
jmp 0x43275b
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x418]
lea eax, [edx + ecx + 0xc]
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.00431530
add esp, 0x10
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jge 0x43262e
jmp 0x43275b
push 0x10
push 0
lea edx, [ebp - 0x438]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x47c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x47c], 0x44
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x47c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x43275b
mov edx, dword [ebp - 0x418]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
push 0x44bca4
mov edx, dword [ebp - 0x438]
push edx
call fcn.004320c0
test eax, eax
jne 0x4326e3
push 0xffffffffffffffff
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43275b
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x424], 0x1f4
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x424], 0
je 0x432751
jmp 0x43275b
mov dword [ebp - 0x428], 1
lea ecx, [ebp - 0x418]
push ecx
call fcn.00431000
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004353e8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43434e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x434375
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x434378
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0043432a
pop esi
leave
ret 8

Function at 0x436046
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x436085
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436085
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436085
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x436085
cmp dword [ecx + 0x74], 0xe
jbe 0x436085
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4365f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x436617
mov ecx, 5
int 0x29
push 2
call fcn.004360ea
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x436722
test esi, esi
jne 0x436722
push 2
call fcn.004360ea
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004353e8
mov esp, ebp
pop ebp
ret
Function at 0x43b3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0043b400
mov esi, dword [ebp + 8]
test al, al
je 0x43b3ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0043b410
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x43b540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b59c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b59c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b59c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b59c
cmp dword [ecx + 0x74], 0xe
jbe 0x43b59c
cmp dword [ecx + 0xe8], 0
je 0x43b59c
push dword [ebp + 8]
call fcn.0043b410
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45a818
call fcn.0043b1e0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x43b5d1
push dword [ebp + 8]
call fcn.0043b3d0
mov esp, ebp
pop ebp
ret

Function at 0x43b610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b66c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b66c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b66c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b66c
cmp dword [ecx + 0x74], 0xe
jbe 0x43b66c
cmp dword [ecx + 0xe8], 0
je 0x43b66c
push dword [ebp + 8]
call fcn.0043b410
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45a818
call fcn.0043b1e0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x43b6a1
push dword [ebp + 8]
call fcn.0043b3d0
mov esp, ebp
pop ebp
ret

Function at 0x43ca00
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x43ca2a
mov eax, 2
pop ebp
ret
push esi
call fcn.00436440
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x43ca4a
jmp dword [eax*4 + 0x43ca80]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00436580
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x43ca90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x459780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43cb8b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x43cb8b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x43caea
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x43cac8
jmp 0x43cb8b
cmp edx, 0x200
jae 0x43cbf1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x43cb8b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x43cb8a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x43cb8a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x43cbd3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x43cb70
pop edi
mov eax, dword [0x45a820]
test eax, eax
jne 0x43cbb1
push str.setlocale
call fcn.0043d440
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43cbac
or eax, 0xffffffff
mov dword [0x45a820], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x43cbdf
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004353e8
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x43cb8a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004353e8
mov esp, ebp
pop ebp
ret
call fcn.00435569
int3
Function at 0x402510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40257a
push str.ReleaseFactory
push eax
call dword [0x40501c]
test eax, eax
je 0x402569
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x402569
push ecx
call eax
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x30]
push eax
call dword [0x405028]
mov dword [esi + 0x30], 0
call fcn.00401180
call dword [0x4051d0]
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0xffffffff
call dword [0x4050d4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

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 0x10061ef
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10014d8
call fcn.01006370
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100622a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100622a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006242
cmp eax, 0x20b
je 0x100622f
mov dword [ebp - 0x1c], edi
jmp 0x1006256
cmp dword [ecx + 0x84], 0xe
jbe 0x100622a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006250
cmp dword [ecx + 0x74], 0xe
jbe 0x100622a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10080c0], 0xffffffff
or dword [0x10080c4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10080bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10080b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10080c8], eax
call fcn.010063fc
cmp dword [0x100801c], edi
jne 0x10062b1
push fcn.010063fc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010063e5
push 0x1008010
push 0x100800c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10080b4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10080b0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1008008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01005f8f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006328
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100635d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010063ab
ret

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 0x4012a2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 0x14]
call dword [0x4222dc]
test eax, eax
jne 0x4013ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x4222d0]
push eax
call dword [0x4222d4]
test eax, eax
mov dword [ebp - 4], eax
je 0x4013ee
mov ebx, dword [ebp + 8]
mov esi, dword [0x4222e0]
push 0x40
push ebx
call esi
test eax, eax
jne 0x4013ee
cmp word [ebx], 0x5a4d
jne 0x4013ee
mov edi, dword [ebx + 0x3c]
push 0xf8
add edi, ebx
push edi
call esi
test eax, eax
jne 0x4013ee
cmp dword [edi], 0x4550
jne 0x4013ee
mov ebx, dword [edi + 0x80]
add ebx, dword [ebp + 8]
cmp ebx, edi
je 0x4013ee
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40135b
mov ecx, dword [ebp + 8]
lea edi, [eax + ecx]
push 4
push edi
call esi
test eax, eax
jne 0x4013ee
push dword [ebp + 0xc]
push edi
call int.00413a00
test eax, eax
pop ecx
pop ecx
je 0x401365
add ebx, 0x14
jmp 0x40132d
cmp dword [ebx + 0xc], 0
je 0x4013ee
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 8]
lea edi, [eax + ecx]
push 4
push edi
mov dword [ebp + 0x10], edi
call esi
test eax, eax
jne 0x4013ee
mov eax, dword [edi]
test eax, eax
je 0x4013a8
push 4
push eax
call esi
test eax, eax
jne 0x4013a8
cmp dword [edi], eax
je 0x4013a8
push 4
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4013ee
mov eax, dword [ebp - 4]
cmp dword [edi], eax
je 0x4013ad
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x40137a
add ebx, 0x14
jmp 0x40132d
mov ebx, dword [ebp + 0x10]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4222e4]
mov edi, dword [0x4222e8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call edi
mov eax, dword [ebx]
push 4
push dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x4013ee
push 4
push ebx
call dword [0x4222d8]
test eax, eax
je 0x4013f2
xor eax, eax
jmp 0x401420
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
push ebx
call dword [0x4222ec]
push eax
call dword [0x4222f0]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b3b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47251b
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.0046507f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b432
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462afd
mov eax, dword [eax]
push 0x5b51d0
push eax
call fcn.004557c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046530a
test bl, bl
je 0x40b432
push 0x5b51d0
lea ecx, [esp + 0xc]
call fcn.004656e6
push 0x5b8d44
lea ecx, [esp + 0xc]
call fcn.004656e6
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 0x40b46e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046530a
jmp 0x40b539
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 0x40b4f2
lea edx, [esp + 0x7c]
push 0x5b8d40
push edx
call fcn.004557c4
add esp, 8
test eax, eax
je 0x40b4f2
lea eax, [esp + 0x7c]
push 0x5b8d3c
push eax
call fcn.004557c4
add esp, 8
test eax, eax
je 0x40b4f2
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 0x40b482
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.0046530a
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 0x40bd30
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 0x40bd92
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 0x40bda0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47259b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5bfcb0]
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 0x40bed8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40be06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046530a
xor eax, eax
jmp 0x40bf4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00465493
push esi
lea ecx, [esp + 0xc]
call fcn.00465722
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bf2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040bd30
test eax, eax
jne 0x40bf2d
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.0040bd30
test eax, eax
jne 0x40bf2d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004568a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf0c
lea ecx, [esp + 0x14]
push 0x5b8d54
push ecx
call fcn.00456820
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bf0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00465443
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40be1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046530a
xor eax, eax
jmp 0x40bf4f
mov byte [esi], 0
push 0x5b8d50
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.0046530a
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