joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b37
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4750], 0x44
push eax
xor eax, eax
push 0x7a4750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b76
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b7a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405c18
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040601f
mov edi, eax
cmp edi, 0xffffffff
je 0x405c59
test byte [esp + 0x10], 1
push esi
je 0x405c3b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c41
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c4a
xor eax, eax
inc eax
jmp 0x405c5b
test byte [esp + 0x10], 4
jne 0x405c59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c60
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f2b
test bl, 8
mov dword [ebp - 8], eax
je 0x405c9f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a82e8], eax
jmp 0x405e1c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405cb9
test eax, eax
je 0x405dca
test bl, 2
je 0x405dca
mov esi, 0x7a3750
push edi
push esi
call fcn.00406554
cmp dword [ebp + 8], 0
je 0x405cd8
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cde
push edi
call fcn.00405e6f
cmp word [edi], 0
jne 0x405cee
cmp word [0x7a3750], 0x5c
jne 0x405cf9
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dbf
cmp word [ebp - 0x22c], 0x2e
jne 0x405d43
cmp word [ebp - 0x22a], 0
je 0x405da2
cmp word [ebp - 0x22a], 0x2e
jne 0x405d43
cmp word [ebp - 0x228], 0
je 0x405da2
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406554
test byte [ebp - 0x258], 0x10
je 0x405d6e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405da2
push dword [ebp + 0xc]
push edi
call fcn.00405c60
jmp 0x405da2
push dword [ebp - 4]
push edi
call fcn.00405c18
test eax, eax
jne 0x405d9a
cmp dword [ebp - 4], eax
je 0x405d92
push edi
push 0xfffffffffffffff1
call fcn.004055d9
push 0
push edi
call fcn.00406314
jmp 0x405da2
inc dword [0x7a82e8]
jmp 0x405da2
push edi
push 0xfffffffffffffff2
call fcn.004055d9
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d1b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405dca
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e1c
cmp dword [ebp - 8], esi
jne 0x405dde
inc dword [0x7a82e8]
jmp 0x405e1c
push edi
call fcn.004068b1
test eax, eax
je 0x405e1c
push edi
call fcn.00405e23
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c18
test eax, eax
jne 0x405e14
cmp dword [ebp - 4], esi
je 0x405dd6
push edi
push 0xfffffffffffffff1
call fcn.004055d9
push esi
push edi
call fcn.00406314
jmp 0x405e1c
push edi
push 0xffffffffffffffe5
call fcn.004055d9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f2b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a3f50
push esi
call fcn.00406554
push esi
call fcn.00405ece
mov edi, eax
test edi, edi
jne 0x405f4c
xor eax, eax
jmp 0x405fa4
push edi
call fcn.00406802
test byte [0x7a8278], 0x80
je 0x405f69
mov ax, word [edi]
test ax, ax
je 0x405f48
cmp ax, 0x5c
je 0x405f48
sub edi, esi
sar edi, 1
jmp 0x405f83
call fcn.004068b1
test eax, eax
je 0x405f7d
test byte [eax], 0x10
je 0x405f48
push esi
call fcn.00405e6f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f6f
call fcn.00405e23
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40601f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40603e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406044
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406073
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060c3
test edi, edi
jne 0x406080
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060bd
Function at 0x40619a
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a4de8], 0x55004e
mov dword [0x7a4dec], 0x4c
mov edi, 0x400
mov ebp, 0x7a4de8
je 0x4061f0
push 1
push 0
push esi
call fcn.00406044
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40630f
cmp eax, edi
jg 0x40630f
mov esi, 0x7a55e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40630f
cmp eax, edi
jg 0x40630f
push esi
push ebp
push str._ls_ls_r_n
push 0x7a49e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a8270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406591
push 4
push 0xc0000000
push esi
call fcn.00406044
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40630f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406308
push edi
push esi
push ebp
call fcn.004060c7
test eax, eax
je 0x406308
push str._Rename__r_n
push esi
call fcn.00405fa9
test eax, eax
jne 0x4062a6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062db
add eax, 0xa
push 0x40a580
push eax
call fcn.00405fa9
mov ebp, eax
test ebp, ebp
je 0x4062d7
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062c8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062c2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062dd
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a49e8
push eax
call fcn.00405fff
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060f6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406314
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406337
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040619a
pop ecx
pop ecx
inc dword [0x7a82f0]
ret 8
Function at 0x406422
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063c1
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406492
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406492
cmp dword [ebp + 0xc], 1
je 0x406496
cmp dword [ebp + 0xc], 2
je 0x406496
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068fc
xor eax, eax
test eax, eax
je 0x40690f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40690f
xor ecx, ecx
jmp 0x406912
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a35
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a6c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a46
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a41
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a9d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a7f
pop edi
not eax
pop esi
ret 0xc
Function at 0x402b48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404920
test esi, esi
jne 0x402b7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a10
jmp 0x402b9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a5c
mov edi, eax
test esi, esi
je 0x402b9c
cmp dword [ebx], 0
je 0x402b9c
dec esi
jmp 0x402b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403234
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x528008], 0x8088405
inc edx
mov dword [ebx + 0x528008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x528024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403998
xor eax, eax
push ebp
push 0x403991
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 0x4039d4
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 0x403998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x528024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x528024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52d04c], 0
je 0x404805
cmp word [0x52d220], 0xd7b2
jne 0x4047cd
cmp dword [0x52d228], 0
jbe 0x4047cd
mov eax, 0x52d21c
call dword [0x52d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x528074
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 0x40482c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x528034], 0
jne 0x404821
push 0
push 0x52806c
push 0x528074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063e4
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 0x406614
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406467
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406614
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406467
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406630
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064f0
xor eax, eax
push ebp
push 0x4064e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040622c
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 0x4064ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406650
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064ce
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 0x4064f0
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 0x40660a
cmp byte [ebp - 0xd], 0
jne 0x406537
cmp byte [ebp - 0x12], 0
je 0x40660a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406550
dec ebx
cmp byte [ebx], 0x2e
je 0x40655f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40654f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40660a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40659c
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 0x40660a
cmp byte [ebp - 0xd], 0
je 0x40660a
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 0x40660a
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 0x406d28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406d8e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404b90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040348c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d78
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d95
lea eax, [ebp - 0x10]
call fcn.00404920
ret

Function at 0x409acc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404de0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ae5
test al, 0x10
jne 0x409ae9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cd3c
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_1
test eax, eax
jle 0x40cd75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a10
jmp 0x40cd7e
mov eax, ebx
mov edx, esi
call fcn.00404974
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd88
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_1
test eax, eax
jle 0x40cda9
mov al, byte [esp]
jmp 0x40cdab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d430
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d2a8
mov eax, dword [0x52c558]
cmp byte [eax], 0
je 0x40d4ac
mov eax, dword [0x52c0bc]
call fcn.0040302c
call fcn.00402988
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409d08
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d4f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d4e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x52c020]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52d668]
call fcn.004061f0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40ddb4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40de8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004049b8
lea eax, [ebp - 8]
call fcn.00404e30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404de0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40de74
mov eax, ebx
call fcn.00402820
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40de6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404de0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40de57
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40de9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40de57
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de74
mov eax, dword [ebp - 0x10]
call fcn.00402840
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de91
lea eax, [ebp - 8]
call fcn.00404920
ret

Function at 0x40e4e0
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 0x40e544
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404b90
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004096e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e54b
lea eax, [ebp - 0xc]
call fcn.00404920
ret

Function at 0x4280d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52d888
cmp dword [edi], 0
jne 0x428150
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x52d884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5286d4
mov ecx, 2
call fcn.00402a1c
mov edx, 0x4280ac
lea eax, [esi + 5]
call fcn.004280cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004280cc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x428125
mov dword [0x52d884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42973c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x429742
ret
Function at 0x42bed0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42bf21
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42bf08
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42bef8
jmp 0x42bf21
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42bf09
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43706c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404dd0
xor eax, eax
push ebp
push 0x43719a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x43716d
xor eax, eax
push ebp
push 0x437166
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404be0
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43713b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x43712a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404be0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404de0
mov edx, ebx
pop ecx
call fcn.00402a1c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437131
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x52bf20]
mov dl, 1
mov eax, dword [0x408410]
call fcn.0040d5d8
call fcn.00404340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371a1
lea eax, [ebp - 4]
call fcn.00404920
ret