joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440d83
push esi
call fcn.0044f0f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440d7c
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 0x440e09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440df2
mov eax, dword [esi + 8]
test eax, eax
je 0x440da7
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 0x440dee
cmp eax, 2
je 0x440df2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440d9a
cmp eax, 3
je 0x440dcd
cmp eax, 1
jne 0x440d9a
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 0x440d9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440d9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440e30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440e18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440e30
add esp, 4
pop esi
ret

Function at 0x4416a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4416c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4416c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4416c1
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 0x46f15d
Capabilities:
Get graphical window text

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

Function at 0x47084b
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 0x47088d
call fcn.00476307
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47088d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470884
xor eax, eax
jmp 0x470895
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047089b
pop edi
pop esi
pop ebx
ret 4
Function at 0x476837
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 0x476865
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476883
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047679d
jmp 0x476883
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476883
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047679d
test edi, edi
mov eax, edi
jne 0x47686d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401900
Capabilities:
Delete file
Get file attributes
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x406080]
mov dword [ebp - 8], eax
mov dword [ebp - 0x40], ecx
push 0
push 0x4046b4
call dword [sym.imp.MSVCR71.dll__access]
add esp, 8
test eax, eax
jne 0x40194d
push 0x4046c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, 0xfffffffd
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x4046cc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x401954
xor al, al
jmp 0x401aaf
push 0x4046d8
push 0x4046dc
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401984
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
xor al, al
jmp 0x401aaf
mov eax, dword [ebp - 4]
push eax
push 1
push 0x110
mov ecx, dword [ebp - 0x40]
add ecx, 0xb8
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov cx, word [eax + 0xba]
mov word [edx + 0x1cc], cx
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + 0x1cc]
imul eax, eax, 0x2c
push eax
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x1c8], edx
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + 0x1cc]
imul ecx, ecx, 0x2c
push ecx
push 0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x1c8]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0
push 0x110
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x38], 0
jmp 0x401a23
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + 0x1cc]
cmp dword [ebp - 0x38], ecx
jge 0x401a95
mov edx, dword [ebp - 4]
push edx
push 1
push 0x28
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x2c
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x1c8]
lea edx, [ecx + edx + 4]
push edx
call sub.MSVCR71.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x2c
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x1c8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax + 0x24], ecx
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x2c
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x1c8]
mov al, byte [ebp - 0xc]
mov byte [ecx + edx + 0x28], al
jmp 0x401a1a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
push str.Update.tmp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [ebp - 8]
call fcn.00402efd
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x403031
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4049f0
call fcn.00403230
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403071
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403071
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403089
cmp eax, 0x20b
je 0x403076
mov dword [ebp - 0x1c], ebx
jmp 0x40309d
cmp dword [ecx + 0x84], 0xe
jbe 0x403071
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x403097
cmp dword [ecx + 0x74], 0xe
jbe 0x403071
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4061d4], 0xffffffff
or dword [0x4061d8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40618c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x406188]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4061d0], eax
call fcn.0040331a
call fcn.004033ba
cmp dword [0x406090], ebx
jne 0x4030fd
push fcn.004033ba
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004033a8
push 0x40601c
push 0x406018
call sub.MSVCR71.dll__initterm
push 0x40335e
call fcn.00402f90
mov eax, dword [0x406184]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x406180]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x403151
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x406014
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4031cf
cmp al, bl
je 0x40317b
cmp dword [ebp - 0x20], ebx
jne 0x4031cf
mov al, byte [esi]
cmp al, bl
je 0x40318b
cmp al, 0x20
ja 0x40318b
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40317b
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4031a7
movzx eax, word [ebp - 0x54]
jmp 0x4031aa
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004034c2
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4031c7
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x403224
cmp al, 0x22
jne 0x4031de
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4031f1
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x403169
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040326b
ret
Function at 0x402a20
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a5d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a7d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404aa4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c44
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.00404834
test esi, esi
jne 0x402c7a
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.00404924
jmp 0x402c98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402af8
mov edi, eax
test esi, esi
je 0x402c98
cmp dword [ebx], 0
je 0x402c98
dec esi
jmp 0x402c81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4038b0
Capabilities:
Query or enumerate registry value

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

Function at 0x404614
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cd04c], 0
je 0x404675
cmp word [0x4cd220], 0xd7b2
jne 0x40463d
cmp dword [0x4cd228], 0
jbe 0x40463d
mov eax, 0x4cd21c
call dword [0x4cd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ca074
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 0x40469c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ca034], 0
jne 0x404691
push 0
push 0x4ca06c
push 0x4ca074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4047e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040280c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4cd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ff4
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 0x406224
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406077
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406224
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406077
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406240
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406100
xor eax, eax
push ebp
push 0x4060f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405e3c
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 0x4060de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406260
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4060de
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 0x406100
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 0x40621a
cmp byte [ebp - 0xd], 0
jne 0x406147
cmp byte [ebp - 0x12], 0
je 0x40621a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406160
dec ebx
cmp byte [ebx], 0x2e
je 0x40616f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40615f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40621a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4061ac
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 0x40621a
cmp byte [ebp - 0xd], 0
je 0x40621a
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 0x40621a
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 0x4068ec
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 0x406952
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.00404aa4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032e8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40693c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406959
lea eax, [ebp - 0x10]
call fcn.00404834
ret

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

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

Function at 0x40c9a0
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 0x40c9d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404924
jmp 0x40c9e2
mov eax, ebx
mov edx, esi
call fcn.00404888
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d1e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d058
mov eax, dword [0x4cbe80]
cmp byte [eax], 0
je 0x40d25c
mov eax, dword [0x4cb998]
call fcn.004030f0
call fcn.00402974
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.00409cf8
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 0x40d2a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d292
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cb8f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cd668]
call fcn.00405e00
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 0x40db4c
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 0x40dc22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004048cc
lea eax, [ebp - 8]
call fcn.00404d44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cf4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc0c
mov eax, ebx
call fcn.0040280c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc05
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.00404cf4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dbef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dc34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dbef
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 0x40dc0c
mov eax, dword [ebp - 0x10]
call fcn.0040282c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc29
lea eax, [ebp - 8]
call fcn.00404834
ret

Function at 0x40e224
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 0x40e288
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.00404aa4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004094a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e28f
lea eax, [ebp - 0xc]
call fcn.00404834
ret

Function at 0x420680
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4206cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00420494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4206e5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4206ec
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420494
dec esi
jne 0x42070e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cd88c
cmp dword [edi], 0
jne 0x4218cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cd888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ca4a0
mov ecx, 2
call fcn.00402ab8
mov edx, 0x421828
lea eax, [esi + 5]
call fcn.00421848
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421848
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 0x4218a1
mov dword [0x4cd888], 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 0x422ef0
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 0x422ef6
ret

Function at 0x42538c
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 0x4253dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4253c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4253b4
jmp 0x4253dd
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 0x4253c5
pop ebx
mov esp, ebp
pop ebp
ret