joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e9e8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e9f1
mov eax, dword [ebp - 4]
add esp, 0xfffffb2c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x14b8]
lea eax, [ebp - 0x4a4]
call fcn.00406ad4
lea eax, [ebp - 0x478]
call fcn.00406ad4
lea eax, [ebp - 0x44c]
call fcn.00406ad4
push 0
lea ecx, [ebp - 0x10b8]
mov edx, ebx
mov eax, esi
call fcn.00405cc8
test al, al
jne 0x40ea4e
xor eax, eax
jmp 0x40eb9c
cmp byte [ebp - 0x10b8], 0
je 0x40ea60
cmp byte [ebp - 0x420], 0
jne 0x40ea67
xor eax, eax
jmp 0x40eb9c
lea eax, [ebp - 0x10b8]
call fcn.004060f4
lea edx, [ebp - 0x420]
call fcn.004072cc
test eax, eax
je 0x40ea97
mov eax, esi
call fcn.004060f4
lea edx, [ebp - 0x420]
call fcn.004072cc
test eax, eax
je 0x40ea9e
xor eax, eax
jmp 0x40eb9c
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00407370
push ebx
push str.rtmp_d
mov eax, edi
call fcn.004060f4
push eax
call fcn.00410318
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00407148
test al, al
je 0x40eadc
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40eaa0
mov eax, edi
xor edx, edx
call fcn.00407148
test al, al
je 0x40eaf0
xor eax, eax
jmp 0x40eb9c
lea eax, [ebp - 0x18b8]
mov ecx, 0x400
mov edx, esi
call fcn.00407370
lea eax, [ebp - 0x10b8]
call fcn.004060f4
push eax
lea eax, [ebp - 0x18b8]
call fcn.004060f4
pop edx
call fcn.0041022c
push edi
lea ecx, [ebp - 0x18b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40eb34
xor eax, eax
jmp 0x40eb9c
lea eax, [ebp - 0x24d8]
call fcn.0040eba4
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00407148
test al, al
jne 0x40eb61
push 1
lea eax, [ebp - 0x24d8]
xor ecx, ecx
mov edx, esi
call fcn.0040ed84
mov ebx, eax
lea eax, [ebp - 0x18b8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40eb88
lea eax, [ebp - 0x24d8]
call fcn.0040eeb0
lea eax, [ebp - 0x24d8]
call fcn.0040ef34
mov al, 1
push eax
lea eax, [ebp - 0x24d8]
mov edx, 2
call fcn.0040ebf4
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ec38
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40ec5b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40ec6c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40ec7b
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40ec88
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405830
test eax, eax
je 0x40ecb5
test esi, esi
je 0x40ecb5
cmp word [esi], 0
je 0x40ecb5
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40eccc
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ece5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40ece5
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40ed4f
mov dword [ebx + 4], edi
test esi, esi
je 0x40ed1a
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00410a0c
jmp 0x40ed23
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40ed36
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0041022c
jmp 0x40ed45
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.004107e8
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040ee54
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ef68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40f099
cmp dword [edi + 0xc], 0
je 0x40efa7
mov eax, dword [edi + 0xc]
dec eax
je 0x40ef91
dec eax
je 0x40ef9d
jmp 0x40efa7
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40efa7
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
mov byte [ebp - 5], 0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], 0
je 0x40f003
xor ebx, ebx
cmp esi, ebx
jle 0x40f020
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x40efd4
mov ecx, esi
sub ecx, ebx
jmp 0x40efd9
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x40f020
add ebx, 0x4000
cmp esi, ebx
jg 0x40efbc
jmp 0x40f020
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x40f095
cmp byte [edi + 0x14], 0
je 0x40f095
cmp dword [edi + 0xc], 0
jne 0x40f095
lea edx, [edi + 0x17]
mov eax, 0x41c1a0
call fcn.0040cf24
test al, al
je 0x40f07f
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40efa7
cmp dword [ebp - 0xc], 0
jbe 0x40efa7
mov eax, edi
call fcn.0040f2d0
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040f218
jmp 0x40efa7
lea ecx, [edi + 0x17]
mov eax, 0x41c1a0
xor edx, edx
call fcn.0040cf0c
jmp 0x40f095
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f194
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40f1be
cmp esi, 0x4e20
jle 0x40f1b4
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40f20e
mov eax, ebx
call fcn.0040f4dc
test al, al
je 0x40f1f5
cmp esi, 0x4e20
jle 0x40f1f5
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040f194
jmp 0x40f211
cmp dword [ebx + 0xc], 1
jne 0x40f209
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40f209
xor eax, eax
jmp 0x40f211
or eax, 0xffffffff
jmp 0x40f211
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x410778
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x415788], 0
jne 0x410791
call fcn.004103bc
mov dword [0x415784], eax
inc byte [0x415788]
call fcn.004103bc
sub eax, dword [0x415784]
cmp eax, 0x64
jle 0x4107cd
cmp dword [0x416194], 0
je 0x4107c8
mov eax, 0x41c1a0
mov edx, 0xff
call fcn.0040d0c4
mov eax, 0x41c1a0
mov edx, 0xff
call fcn.0040d0bc
call fcn.00402c88
ret
Function at 0x401da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4089c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x401ed6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x401e82
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x401ef7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00408414
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4046a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ecx
push edx
call fcn.00404660
push 0x40
lea eax, [esp + 0x24]
push 0x40db90
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x40486b
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 8
shr esi, 5
cmp esi, 1
jl 0x40486b
mov ebp, esi
shl ebp, 5
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
lea ebp, [esi - 1]
add esp, 0x20
mov edi, ebp
test edi, edi
jl 0x40476c
mov ecx, dword [esp + 0x120]
mov eax, edi
shl eax, 5
add eax, ebx
cmp ecx, dword [eax]
jge 0x404768
dec edi
sub eax, 0x20
test edi, edi
jge 0x40475a
jmp 0x40476c
test edi, edi
jge 0x404791
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, edi
shl edx, 5
lea eax, [edx + ebx]
mov edx, dword [edx + ebx]
cmp edx, ecx
jne 0x4047f6
mov ecx, dword [esp + 0x124]
test ecx, ecx
jne 0x4047cd
inc edi
mov ecx, edi
shl ecx, 0x1b
sub ecx, edi
add ecx, esi
shl edi, 5
shl ecx, 5
add edi, ebx
push ecx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov esi, ebp
jmp 0x404828
lea eax, [edi + 1]
mov edx, eax
shl edx, 0x1b
sub edx, eax
add edx, esi
shl eax, 5
shl edx, 5
add eax, ebx
push edx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or eax, 0xffffffff
add esp, 0xc
sub eax, edi
add esi, eax
jmp 0x404828
mov eax, dword [esp + 0x124]
test eax, eax
je 0x404828
lea eax, [edi + 1]
mov ecx, eax
shl ecx, 0x1b
sub ecx, eax
add ecx, esi
shl eax, 5
shl ecx, 5
add eax, ebx
push ecx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or edx, 0xffffffff
add esp, 0xc
sub edx, edi
add esi, edx
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
shl esi, 5
push edi
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
push esi
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402a6c
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.00404034
test esi, esi
jne 0x402aa2
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.00404124
jmp 0x402ac0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402980
mov edi, eax
test esi, esi
je 0x402ac0
cmp dword [ebx], 0
je 0x402ac0
dec esi
jmp 0x402aa9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Query or enumerate registry value

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

Function at 0x403eb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47604c], 0
je 0x403f19
cmp word [0x476220], 0xd7b2
jne 0x403ee1
cmp dword [0x476228], 0
jbe 0x403ee1
mov eax, 0x47621c
call dword [0x476238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47406c
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 0x403f40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474030], 0
jne 0x403f35
push 0
push 0x474064
push 0x47406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e5c
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 0x405ec2
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.004042a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405eac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ec9
lea eax, [ebp - 0x10]
call fcn.00404034
ret

Function at 0x40afb8
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 0x40aff1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404124
jmp 0x40affa
mov eax, ebx
mov edx, esi
call fcn.00404088
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b6ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b524
mov eax, dword [0x475b44]
cmp byte [eax], 0
je 0x40b728
mov eax, dword [0x475940]
call fcn.00402b84
call fcn.004028ac
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.004087e4
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 0x40b770
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b75e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4758ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x476668]
call fcn.00405354
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 0x40c018
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 0x40c0ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040cc
lea eax, [ebp - 8]
call fcn.00404544
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0d8
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c0d1
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.004044f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c100
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0bb
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 0x40c0d8
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0f5
lea eax, [ebp - 8]
call fcn.00404034
ret

Function at 0x40c670
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 0x40c6d4
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.004042a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040830c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6db
lea eax, [ebp - 0xc]
call fcn.00404034
ret

Function at 0x41dda0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x476888
cmp dword [edi], 0
jne 0x41de1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x476884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4743fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41dd78
lea eax, [esi + 5]
call fcn.0041dd98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041dd98
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 0x41ddf1
mov dword [0x476884], 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 0x41f448
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 0x41f44e
ret
Function at 0x4218e4
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 0x421935
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42191c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42190c
jmp 0x421935
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 0x42191d
pop ebx
mov esp, ebp
pop ebp
ret