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

Disassembly:
push 0xffffffffffffffff
push 0x47be58
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.00474a49
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00448f70
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.00474977
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.00471240
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.00471240
push 1
push 0
push 0
mov ecx, esi
call fcn.004711e8
push 1
push 0
push 1
mov ecx, esi
call fcn.004711e8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00474abb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x449750
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47be78
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.00474a49
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00448f70
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.00474977
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 0x449814
cmp dword [esp + 0x40], 1
jne 0x449812
cmp ecx, eax
jge 0x449814
mov eax, ecx
cmp eax, 0xc8
jge 0x449820
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004495d0
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.00474abb
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x449fa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47bee3
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.0046f65b
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.00474cf1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047620d
test eax, eax
je 0x44a0bc
mov ecx, dword [esp + 0x3c]
call fcn.00474d1e
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 0x44a080
push edi
mov ecx, esi
call fcn.0047238b
mov ecx, esi
call fcn.0044a220
cmp dword [esp + 0x38], 1
jne 0x44a0b5
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.004724c6
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 0x44caf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44cb23
push esi
call fcn.0044fbf0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44cb1c
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 0x44cba9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44cb92
mov eax, dword [esi + 8]
test eax, eax
je 0x44cb47
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 0x44cb8e
cmp eax, 2
je 0x44cb92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44cb3a
cmp eax, 3
je 0x44cb6d
cmp eax, 1
jne 0x44cb3a
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 0x44cb3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44cb3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044cbd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44cbb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044cbd0
add esp, 4
pop esi
ret

Function at 0x458cd0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x458d73
test eax, eax
jbe 0x458d73
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x458d73
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x458d1e
xor esi, esi
jmp 0x458d24
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x458d4f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00410a30
add esi, eax
push esi
mov ebx, esi
call fcn.00410a30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x458d30
pop ebp
test edi, edi
pop edi
jne 0x458d73
test ebx, ebx
je 0x458d73
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045ecc0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x458ed5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x458fed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x458fed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046faad
mov esi, eax
test esi, esi
je 0x458fed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x458fed
mov ecx, esi
call fcn.00458e60
cmp edi, eax
jge 0x458fed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x458f73
mov dword [esp + 0x34], 1
jmp 0x458fce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x458fed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004583a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x470451
Capabilities:
Get graphical window text

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

Function at 0x471b48
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 0x471b8a
call fcn.004775f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471b8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471b81
xor eax, eax
jmp 0x471b92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471b98
pop edi
pop esi
pop ebx
ret 4
Function at 0x477b28
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 0x477b56
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477b74
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477a8e
jmp 0x477b74
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477b74
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477a8e
test edi, edi
mov eax, edi
jne 0x477b5e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x47eb94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e100c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x47ec2c
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x47ec0c
xor eax, eax
push ebp
push 0x47ec05
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 0x47ec48
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 0x47ec0c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x4e100c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e100c], ax
mov esp, ebp
pop ebp
ret

Function at 0x47f560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2044], 0
je 0x47f5c1
cmp word [0x4e2218], 0xd7b2
jne 0x47f589
cmp dword [0x4e2220], 0
jbe 0x47f589
mov eax, 0x4e2214
call dword [0x4e2230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e104c
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 0x47f5e8
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x4e1018], 0
jne 0x47f5dd
push 0
push 0x4e106c
push 0x4e104c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4800f8
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 0x480328
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x48017b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x480328
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x48017b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x480344
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x480204
xor eax, eax
push ebp
push 0x4801fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0047ff40
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 0x4801e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x480364
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x4801e2
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 0x480204
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 0x48031e
cmp byte [ebp - 0xd], 0
jne 0x48024b
cmp byte [ebp - 0x12], 0
je 0x48031e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x480264
dec ebx
cmp byte [ebx], 0x2e
je 0x480273
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x480263
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x48031e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4802b0
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 0x48031e
cmp byte [ebp - 0xd], 0
je 0x48031e
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 0x48031e
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 0x4823b0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4823e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0047f7ec
jmp 0x4823f2
mov eax, ebx
mov edx, esi
call fcn.0047f750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4823fc
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 0x48241d
mov al, byte [esp]
jmp 0x48241f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4834d4
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 0x483538
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.0047f940
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.00481684
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48353f
lea eax, [ebp - 0xc]
call fcn.0047f6fc
ret
Function at 0x485630
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 0x485847
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.004817ec
xor edx, edx
push ebp
push 0x48581c
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
lea eax, [ebp - 0x358]
mov edx, edi
call fcn.0047f8d4
lea eax, [ebp - 0x358]
mov edx, 0x485864
call fcn.0047f974
mov eax, dword [ebp - 0x358]
call fcn.0047fb54
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4856d9
mov ecx, 0xab4
mov edx, 0x485870
mov eax, 0x4858ac
call fcn.0047f6dc
cmp dword [ebp - 8], 0xffffffff
jne 0x4856ee
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0047f160
jmp 0x485823
mov al, 1
jmp 0x4857f7
lea eax, [ebp - 0x458]
lea edx, [esi + 0x2c]
call fcn.0047e830
lea eax, [ebp - 0x458]
mov edx, 0x4858c0
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.0047e6f4
je 0x4857e7
lea eax, [ebp - 0x45c]
lea edx, [esi + 0x2c]
call fcn.0047f8d4
mov eax, dword [ebp - 0x45c]
mov edx, 0x4858cc
call fcn.0047fab0
je 0x4857e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.004817ec
test byte [esi], 0x10
je 0x4857c2
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00481848
push 0xffffffffffffffff
lea eax, [ebp - 0x352]
push eax
call dword [0x4e79a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
test ebx, ebx
je 0x4857e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.004817ec
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00481848
mov edx, 0x4858d0
lea eax, [ebp - 0x352]
call fcn.00481848
push ebx
lea eax, [ebp - 0x352]
push eax
call fcn.00485630
mov dword [ebp - 4], eax
jmp 0x4857e7
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.00481848
push 0
lea eax, [ebp - 0x352]
push eax
call dword [0x4e79a8]
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 0x4856f5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485823
cmp dword [ebp - 8], 0xffffffff
je 0x48581b
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 0x48584e
lea eax, [ebp - 0x45c]
call fcn.0047f6fc
lea eax, [ebp - 0x358]
call fcn.0047f6fc
ret
Function at 0x402f50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x400
test eax, eax
push ebx
push ebp
mov ebp, 1
je 0x402fd9
mov ebx, dword [esp + 0x420]
cmp ebx, 0x400
jbe 0x402f79
mov ebx, 0x400
mov eax, dword [esp + 0x410]
mov edx, dword [esp + 0x414]
push esi
push edi
push eax
lea ecx, [esp + 0x14]
push ebx
push ecx
push str.______22
push edx
push str.MAKEWM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, str.______22
lea esi, [esp + 0x10]
mov ecx, 0xd
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x403019
mov edx, dword [esp + 0x41c]
lea ecx, [esp + 8]
push ebx
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, ebp
pop ebp
pop ebx
add esp, 0x400
ret
cmp dword [esp + 0x420], 4
jb 0x403019
mov eax, dword [esp + 0x410]
mov ecx, dword [esp + 0x414]
push eax
push 0xffffffffffffffff
push ecx
push str.MAKEWM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x403019
mov edx, dword [esp + 0x41c]
mov dword [edx], eax
mov eax, ebp
pop ebp
pop ebx
add esp, 0x400
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405beb
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x470690], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523
Function at 0x402f30
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x470600], eax
jle 0x40308e
push dword [0x4321cc]
call fcn.00402f19
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402fa5
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402ee7
test eax, eax
je 0x4030a0
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x402ffc
cmp dword [0x470680], ebx
jne 0x402ffc
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e4e
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.004067e7
test eax, eax
jl 0x4030a5
mov esi, dword [0x426158]
sub esi, ebp
je 0x40305a
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a010]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030aa
cmp esi, dword [esp + 0x10]
jne 0x4030aa
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402fcb
jmp 0x403066
cmp dword [0x426154], ebx
jne 0x4030a5
cmp edi, ebx
je 0x4030a5
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f8f
push ebx
push ebx
push eax
push dword [0x40a010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403098
push 0xfffffffffffffffd
pop eax
jmp 0x403098
push 0xfffffffffffffffe
jmp 0x4030a7