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

Disassembly:
push 0xffffffffffffffff
push 0x47cbb8
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.004759df
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f950
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.0047590d
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.004721d1
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.004721d1
push 1
push 0
push 0
mov ecx, esi
call fcn.00472179
push 1
push 0
push 1
mov ecx, esi
call fcn.00472179
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475a51
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440170
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47cbd8
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.004759df
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f950
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.0047590d
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 0x440234
cmp dword [esp + 0x40], 1
jne 0x440232
cmp ecx, eax
jge 0x440234
mov eax, ecx
cmp eax, 0xc8
jge 0x440240
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043fff0
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.00475a51
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440a30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47cc83
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.004705f1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.00475c87
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004771a3
test eax, eax
je 0x440b4c
mov ecx, dword [esp + 0x3c]
call fcn.00475cb4
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 0x440b10
push edi
mov ecx, esi
call fcn.0047331d
mov ecx, esi
call fcn.00440cf0
cmp dword [esp + 0x38], 1
jne 0x440b45
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.00473458
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 0x442d30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442d63
push esi
call fcn.004510f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442d5c
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 0x442de9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442dd2
mov eax, dword [esi + 8]
test eax, eax
je 0x442d87
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 0x442dce
cmp eax, 2
je 0x442dd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442d7a
cmp eax, 3
je 0x442dad
cmp eax, 1
jne 0x442d7a
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 0x442d7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442d7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442e10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442df8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442e10
add esp, 4
pop esi
ret

Function at 0x443680
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4436a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4436a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4436a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4713e7
Capabilities:
Get graphical window text

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

Function at 0x472ad5
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 0x472b17
call fcn.0047858e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x472b17
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x472b0e
xor eax, eax
jmp 0x472b1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00472b25
pop edi
pop esi
pop ebx
ret 4
Function at 0x478abe
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 0x478aec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x478b0a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478a24
jmp 0x478b0a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x478b0a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478a24
test edi, edi
mov eax, edi
jne 0x478af4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x47fb94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x14f200c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x47fc2c
push SysStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x47fc0c
xor eax, eax
push ebp
push 0x47fc05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x47fc48
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fc0c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x14f200c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x14f200c], ax
mov esp, ebp
pop ebp
ret

Function at 0x480560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x14f3044], 0
je 0x4805c1
cmp word [0x14f3218], 0xd7b2
jne 0x480589
cmp dword [0x14f3220], 0
jbe 0x480589
mov eax, 0x14f3214
call dword [0x14f3230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x14f204c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4805e8
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x14f2018], 0
jne 0x4805dd
push 0
push 0x14f206c
push 0x14f204c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4810f8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x481328
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x48117b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x481328
push SysStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x48117b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x481344
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x481204
xor eax, eax
push ebp
push 0x4811fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00480f40
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x4811e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x481364
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x4811e2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481204
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.dll_GetThreadLocale
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x48131e
cmp byte [ebp - 0xd], 0
jne 0x48124b
cmp byte [ebp - 0x12], 0
je 0x48131e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x481264
dec ebx
cmp byte [ebx], 0x2e
je 0x481273
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x481263
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x48131e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4812b0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x48131e
cmp byte [ebp - 0xd], 0
je 0x48131e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x48131e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4833b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4833e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004807ec
jmp 0x4833f2
mov eax, ebx
mov edx, esi
call fcn.00480750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4833fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x48341d
mov al, byte [esp]
jmp 0x48341f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4844d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x484538
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00480940
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.00482684
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48453f
lea eax, [ebp - 0xc]
call fcn.004806fc
ret
Function at 0x486630
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x358], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x148]
xor eax, eax
push ebp
push 0x486847
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x24d]
mov edx, edi
call fcn.004827ec
xor edx, edx
push ebp
push 0x48681c
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
lea eax, [ebp - 0x358]
mov edx, edi
call fcn.004808d4
lea eax, [ebp - 0x358]
mov edx, 0x486864
call fcn.00480974
mov eax, dword [ebp - 0x358]
call fcn.00480b54
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4866d9
mov ecx, 0xab4
mov edx, 0x486870
mov eax, 0x4868ac
call fcn.004806dc
cmp dword [ebp - 8], 0xffffffff
jne 0x4866ee
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00480160
jmp 0x486823
mov al, 1
jmp 0x4867f7
lea eax, [ebp - 0x458]
lea edx, [esi + 0x2c]
call fcn.0047f830
lea eax, [ebp - 0x458]
mov edx, 0x4868c0
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.0047f6f4
je 0x4867e7
lea eax, [ebp - 0x45c]
lea edx, [esi + 0x2c]
call fcn.004808d4
mov eax, dword [ebp - 0x45c]
mov edx, 0x4868cc
call fcn.00480ab0
je 0x4867e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.004827ec
test byte [esi], 0x10
je 0x4867c2
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00482848
push 0xffffffffffffffff
lea eax, [ebp - 0x352]
push eax
call dword [0x14f89a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
test ebx, ebx
je 0x4867e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.004827ec
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00482848
mov edx, 0x4868d0
lea eax, [ebp - 0x352]
call fcn.00482848
push ebx
lea eax, [ebp - 0x352]
push eax
call fcn.00486630
mov dword [ebp - 4], eax
jmp 0x4867e7
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00482848
push 0
lea eax, [ebp - 0x352]
push eax
call dword [0x14f89a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
push esi
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4866f5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486823
cmp dword [ebp - 8], 0xffffffff
je 0x48681b
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48684e
lea eax, [ebp - 0x45c]
call fcn.004806fc
lea eax, [ebp - 0x358]
call fcn.004806fc
ret
Function at 0x405340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x57567e08]
mov esi, ebp
or byte [ebx + 0xc7a8bd7], cl
sub eax, dword [ebx + 0x10]
mov dword [ebp + 0x25], eax
lea ecx, [eax + eax]
and byte [ecx], bh
and byte [ebx + 5], dh
mov ecx, 0x20
cmp byte [edx + 0x10], 0xae
mov eax, dword [ebx]
test al, 0x7b
mov esi, dword [eax + 0x14]
fidiv dword [eax + 0x10]
cmp ecx, esi
ja 0x4053ea
dec eax
add al, 0x20
xor byte [ecx + 0x3e088b31], cl
jo 0x405389
mov dword [eax], ebp
add al, 0x24
mov ch, 4
xchg ecx, eax
dec eax
add al, 0x89
add dword [ecx + 0x44389e0], ecx
invalid
mov esi, dword [edi + 0x18]
lea eax, [ecx + 0x1017]
and eax, 0x48fff09e
cmp esi, dword [ecx + ecx*4 - 0x7df003bb]
mov ebp, 0x3d541a01
add byte [eax], ah
add byte [eax], al
jae 0x405414
mov dword [ebp + 0x4a], 0x2000
adc dword [ebp - 0x6f], eax
mov edi, eax
ljmp 0xffff
Function at 0x401190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011a7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011bb
pop esi
pop edi
xor eax, eax
pop ebp
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4011de
lea ebx, [ebx]
cmp esi, eax
jae 0x4011b5
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4011d0
cmp esi, eax
jae 0x4011b5
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4016b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x402500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], edi
call fcn.00401cc0
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov ebp, dword [sym.imp.MSVCR70.dll__mbsrchr]
push 0x5c
push esi
mov byte [esp + 0x2c], 1
mov dword [esp + 0x18], 0x409
call ebp
add esp, 8
test eax, eax
je 0x40182c
sub eax, esi
cmp eax, 0xffffffff
jle 0x40182c
push ebx
mov ecx, eax
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x10]
call fcn.004019f0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x28], 2
je 0x40177c
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jge 0x40175a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
call fcn.00401b90
mov esi, dword [esp + 0x10]
jmp 0x40177c
call fcn.00401cc0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x401775
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40179f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x5c
push esi
call ebp
add esp, 8
test eax, eax
je 0x4017fa
sub eax, esi
cmp eax, 0xffffffff
jle 0x4017fa
mov ecx, dword [esi - 0xc]
sub ecx, eax
dec ecx
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x10]
call fcn.00401980
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00401920
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCR70.dll__mbsicmp]
xor edi, edi
mov eax, dword [edi*4 + 0x40341c]
push eax
push esi
call ebx
add esp, 8
test eax, eax
je 0x40181c
inc edi
cmp edi, 0xd
jl 0x401802
jmp 0x401827
mov eax, dword [edi*4 + 0x4033e8]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x18]
pop ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40184b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40186a
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8