joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a550
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xa3c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x638]
mov esi, 0x208
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
call fcn.0040a1c0
add esp, 8
test eax, eax
jne 0x40a5a7
pop edi
pop esi
pop ebx
add esp, 0xa3c
ret
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push ecx
mov word [esp + 0x40], bx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40a6aa
mov edi, dword [esp + 0xa58]
push ebp
mov ebp, dword [esp + 0xa58]
jmp 0x40a5e8
mov esi, 0x208
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x63c]
push eax
mov word [esp + edx*2 + 0x28], bx
push ecx
lea edx, [esp + 0x234]
push str._s_s
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x22c]
push eax
push 0x20019
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [esp + 0xa54]
mov eax, dword [esp + 0xa50]
push edi
push ebp
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x238]
push eax
push ecx
push edx
call fcn.0040a2a0
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 0x18
cmp eax, ebx
je 0x40a672
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40a67e
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x34]
inc eax
push ecx
push edx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40a5e3
pop ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40a6b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 0xa3c
ret
Function at 0x40a6d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xa3c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x638]
mov esi, 0x208
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
call fcn.0040a1c0
add esp, 8
test eax, eax
jne 0x40a727
pop edi
pop esi
pop ebx
add esp, 0xa3c
ret
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push ecx
mov word [esp + 0x40], bx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40a814
mov edi, dword [esp + 0xa4c]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x40a767
mov esi, 0x208
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x63c]
push eax
mov word [esp + edx*2 + 0x28], bx
push ecx
lea edx, [esp + 0x234]
push str._s_s
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
call ebp
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x22c]
push eax
push 0x20019
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x22c]
push edi
push edx
push eax
call fcn.0040a410
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x40a7dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40a7e8
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x34]
inc eax
push ecx
push edx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40a762
pop ebp
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 0xa3c
ret

Function at 0x40b840
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.004102f0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jbe 0x40b88e
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x3e541e05
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x19457386
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4061c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42b28b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042f4
call fcn.00406edc
push 4
mov dword [esp + 0x18], 0
call fcn.00408331
mov edi, eax
add esp, 4
test edi, edi
je 0x406234
push ebx
call fcn.00406cd7
mov dword [edi], eax
call fcn.00406a96
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406e9d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406228
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406ec5
pop ebx
jmp 0x406236
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4089ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ed68]
jne 0x4089b5
repz ret
jmp fcn.0040e42c
Function at 0x4121e2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ed68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ab6b
and dword [ebp - 0x14], 0
cmp dword [0x433698], 0
mov dword [ebp - 0x18], eax
jne 0x412295
push 0x403f58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41233d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f4c
push ebx
call edi
test eax, eax
je 0x41233d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f3c
push ebx
mov dword [0x433698], eax
call edi
push eax
call esi
push 0x403f28
push ebx
mov dword [0x43369c], eax
call edi
push eax
call esi
push 0x403f0c
push ebx
mov dword [0x4336a0], eax
call edi
push eax
call esi
mov dword [0x4336a8], eax
test eax, eax
je 0x412295
push 0x403ef4
push ebx
call edi
push eax
call esi
mov dword [0x4336a4], eax
mov eax, dword [0x4336a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122ee
cmp dword [0x4336a8], ecx
je 0x4122ee
push eax
call esi
push dword [0x4336a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122ee
test ebx, ebx
je 0x4122ee
call edi
test eax, eax
je 0x4122e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4122e5
test byte [ebp - 8], 1
jne 0x4122ee
or dword [ebp + 0x10], 0x200000
jmp 0x412321
mov eax, dword [0x43369c]
cmp eax, dword [ebp - 0x18]
je 0x412321
push eax
call esi
test eax, eax
je 0x412321
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412321
mov eax, dword [0x4336a0]
cmp eax, dword [ebp - 0x18]
je 0x412321
push eax
call esi
test eax, eax
je 0x412321
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x433698]
call esi
test eax, eax
je 0x41233d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41233f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089ab
leave
ret
Function at 0x428670
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe44
cmp dword [0x7b73fc], 0x37
jne 0x428706
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [esp + 0x644]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7b83f0]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x7b7364]
mov byte [edx + esi], cl
add esp, 0xe44
ret
Function at 0x428990
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b73fc]
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [0x7b7364]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x428ba7
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4289c6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7b73fc], 0x1c
jne 0x4289dd
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x42f2c4]
mov ebx, dword [0x42f2c0]
mov ebp, dword [0x42f2c8]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42f2cc]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0x20
jmp 0x428a26
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, dword [esp + 0x30]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebp
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7b7368], edi
mov eax, dword [esp + 0x1c]
add dword [0x7b7368], eax
mov eax, dword [0x7b7368]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, ebx
cmp dword [0x7b73fc], 0x1be
mov dword [esp + 0x10], eax
lea edi, [esi + ecx]
jne 0x428ae6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x2c]
cmp dword [0x7b73fc], 0x979
mov dword [0x7b7370], 0xff6b3619
mov dword [0x7b7374], 0xffffffff
mov dword [esp + 0x1c], ecx
jne 0x428b24
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov eax, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x428a20
cmp dword [0x7b73fc], 0x8d4
jne 0x428b5c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x7b73fc], 0x17
jne 0x428b96
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x48]
push ecx
push 0x403fd8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x4289c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
Function at 0x10010e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001168
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001145
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x100114c
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [entry0]
test eax, eax
jne 0x100113c
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x1001676
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 1], 1
je 0x10016ad
push 0x10017b4
push dword [ebp + 8]
call fcn.010011c6
test eax, eax
pop ecx
pop ecx
jne 0x10019ac
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 3
push esi
mov edi, 0x1001728
push edi
mov esi, 0x80000001
push esi
call ebx
test eax, eax
jne 0x10019ca
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001780
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [entry0]
test eax, eax
jne 0x1001707
cmp dword [ebp - 0x10], esi
jne 0x1001707
cmp dword [ebp - 0x14], 1
jne 0x1001707
mov byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
cmp byte [ebp - 1], 0
jne 0x10019de
mov al, byte [ebp - 1]
pop edi
pop ebx
pop esi
leave
ret 4
xor al, al
jmp 0x1001723
lea eax, [ebp - 8]
push eax
push 1
push 0
push edi
push esi
call ebx
test eax, eax
je 0x1001703
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1001a40
push 0x80000002
call ebx
test eax, eax
jne 0x100171e
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001aa0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [entry0]
test eax, eax
jne 0x1001a31
cmp dword [ebp - 0x10], esi
jne 0x1001a31
cmp dword [ebp - 0x14], 1
jne 0x1001a31
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100171e
Function at 0x4016e1
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401891
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4017df
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401782
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4017c5
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401799
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4017b4
test al, 0x40
je 0x4017ab
mov ecx, dword [edi + 0x20]
jmp 0x4017b2
test al, 0x80
je 0x4017c5
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4017c5
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401751
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40a280
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4762eb
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.00468acb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a302
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046634d
mov eax, dword [eax]
push 0x4af1f0
push eax
call fcn.004586e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00468d56
test bl, bl
je 0x40a302
push 0x4af1f0
lea ecx, [esp + 0xc]
call fcn.00469132
push 0x4b2d64
lea ecx, [esp + 0xc]
call fcn.00469132
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 0x40a33e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00468d56
jmp 0x40a409
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 0x40a3c2
lea edx, [esp + 0x7c]
push 0x4b2d60
push edx
call fcn.004586e4
add esp, 8
test eax, eax
je 0x40a3c2
lea eax, [esp + 0x7c]
push 0x4b2d5c
push eax
call fcn.004586e4
add esp, 8
test eax, eax
je 0x40a3c2
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 0x40a352
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.00468d56
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 0x40ac00
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 0x40ac62
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 0x40ac70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47636b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ba02c]
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 0x40ada8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40acd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00468d56
xor eax, eax
jmp 0x40ae1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00468edf
push esi
lea ecx, [esp + 0xc]
call fcn.0046916e
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 0x40adfd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.0040ac00
test eax, eax
jne 0x40adfd
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 0x80000000
mov ecx, edi
call fcn.0040ac00
test eax, eax
jne 0x40adfd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004597c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40addc
lea ecx, [esp + 0x14]
push 0x4b2d74
push ecx
call fcn.00459740
mov esi, eax
add esp, 8
test esi, esi
jne 0x40addc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40addf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00468e8f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40acee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00468d56
xor eax, eax
jmp 0x40ae1f
mov byte [esi], 0
push 0x4b2d70
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.00468d56
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