joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405390
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41a674]
mov dword [ebp - 0x448], 5
mov dword [ebp - 0x434], 0x100
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x44c], 0xffff0001
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.AppID_
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x405576
lea edi, [ebp - 0x40c]
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
mov edx, dword [ebp - 0x45c]
sub esp, 0x10
test eax, eax
jne 0x405540
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], edx
call esi
sub esp, 0xc
test eax, eax
jne 0x405400
mov dword [ebp - 0x454], 0x200
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x4054a0
cmp word [ebp - 0x20c], 0
lea edx, [ebp - 0x20c]
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, eax
mov byte [eax], 2
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x4054d8
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x4054f0
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405400
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41a674]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x41a030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405580
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41a67c]
mov dword [ebp - 0x448], 5
mov dword [ebp - 0x434], 0x100
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x44c], 0xffff0001
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Interface_
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x405766
lea edi, [ebp - 0x40c]
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
mov edx, dword [ebp - 0x45c]
sub esp, 0x10
test eax, eax
jne 0x405730
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], edx
call esi
sub esp, 0xc
test eax, eax
jne 0x4055f0
mov dword [ebp - 0x454], 0x200
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405690
cmp word [ebp - 0x20c], 0
lea edx, [ebp - 0x20c]
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, eax
mov byte [eax], 0xa
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x4056c8
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x4056e0
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4055f0
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41a67c]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x41a030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x67c
mov eax, dword [0x41a664]
mov dword [ebp - 0x648], 0x45
mov dword [ebp - 0x634], 0x100
mov dword [ebp - 0x64c], 0xffff0001
mov dword [ebp - 0x628], 1
test eax, eax
cmove eax, edx
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x664]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 4], str.Component_Categories_
mov dword [esp], 0x80000000
mov dword [ebp - 0x668], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x4059f6
lea ebx, [ebp - 0x60c]
mov esi, 0xffffffff
lea esi, [esi]
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
mov edx, dword [ebp - 0x664]
sub esp, 0x10
test eax, eax
jne 0x4059c0
lea eax, [ebp - 0x660]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], edx
mov eax, dword [ebp - 0x668]
call eax
sub esp, 0xc
test eax, eax
jne 0x4057f8
mov dword [ebp - 0x65c], 0x200
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x658], 0x200
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x654], 0x200
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x660]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x405950
cmp word [ebp - 0x20c], 0
je 0x405950
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x638], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, eax
mov byte [eax], 1
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x4058e8
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x405900
lea eax, [ebp - 0x650]
mov dword [ebp - 0x624], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4057f8
lea eax, [ebp - 0x658]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x660]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x4057f8
cmp word [ebp - 0x20c], 0
jne 0x4058ad
jmp 0x4057f8
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41a664]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x41a030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407080
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
call fcn.00405a00
call fcn.00405770
call fcn.00405e50
call fcn.00405390
call fcn.00404f40
pop ebp
jmp fcn.00405580

Function at 0x4070b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x41a660
xor eax, eax
mov ecx, 8
mov ebp, esp
push edi
mov edi, edx
rep stosd dword es:[edi], eax
call fcn.00405770
mov edi, dword [ebp - 4]
leave
jmp fcn.00405e50
Function at 0x40d320
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x40d390
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x40d370
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040d3e0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x40d3e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call fcn.0040d3d0
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40d43e
xor ecx, ecx
xor edx, edx
jmp 0x40d41e
cmp al, 0x5c
jne 0x40d490
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40d433
cmp al, 9
je 0x40d426
cmp al, 0x20
jne 0x40d408
test ecx, ecx
je 0x40d433
xor edx, edx
jmp 0x40d413
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40d430
cmp al, 0x20
je 0x40d430
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x20], 1
jne 0x40d459
mov word [ebp - 0x1c], 1
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404790
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
cmp al, 0x22
jne 0x40d42a
and edx, 1
jne 0x40d42a
xor ecx, 1
jmp 0x40d413
Function at 0x402d0c
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 0x402d49
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 0x402d69
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f4c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f48
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402fa1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402de4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402de4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f8b
inc ebx
jmp 0x402f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fa8
lea eax, [ebp - 8]
call fcn.00404ccc
ret

Function at 0x402fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ccc
test esi, esi
jne 0x402fe7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dbc
jmp 0x403008
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402de4
mov dword [esp], eax
test esi, esi
je 0x403008
cmp dword [ebx], 0
je 0x403008
dec esi
jmp 0x402fef
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403da4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e1c
xor eax, eax
push ebp
push 0x403e15
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 0x403e58
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 0x403e1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a6020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a6020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404b48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac04c], 0
je 0x404ba9
cmp word [0x4ac220], 0xd7b2
jne 0x404b71
cmp dword [0x4ac228], 0
jbe 0x404b71
mov eax, 0x4ac21c
call dword [0x4ac238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a6090
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 0x404bd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a6030], 0
jne 0x404bc5
push 0
push 0x4a6088
push 0x4a6090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406eb4
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 0x406f1a
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.00404f4c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037dc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f21
lea eax, [ebp - 0x10]
call fcn.00404ccc
ret

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

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

Function at 0x40d220
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 0x40d259
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dbc
jmp 0x40d262
mov eax, ebx
mov edx, esi
call fcn.00404d20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40da70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d8d8
mov eax, dword [0x4aba84]
cmp byte [eax], 0
je 0x40daec
mov eax, dword [0x4ab724]
call fcn.00403438
call fcn.00402c8c
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.00409e9c
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 0x40db34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40db22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ab6a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ac668]
call fcn.004062b4
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 0x40e3e4
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 0x40e4ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d64
lea eax, [ebp - 8]
call fcn.004051ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040519c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e4a4
mov eax, ebx
call fcn.00402b00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e49d
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.0040519c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e487
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e4cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e487
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 0x40e4a4
mov eax, dword [ebp - 0x10]
call fcn.00402b30
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4c1
lea eax, [ebp - 8]
call fcn.00404ccc
ret

Function at 0x40ea94
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 0x40eaf8
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.00404f4c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409728
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eaff
lea eax, [ebp - 0xc]
call fcn.00404ccc
ret

Function at 0x40fc68
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404ccc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040519c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40fcad
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404dbc
jmp 0x40fcc6
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405328
push ebx
mov eax, dword [esi]
call fcn.0040519c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x421ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ac88c
cmp dword [edi], 0
jne 0x421d1c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ac888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a6528
mov ecx, 2
call fcn.00402da4
mov edx, 0x421c78
lea eax, [esi + 5]
call fcn.00421c98
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421c98
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 0x421cf1
mov dword [0x4ac888], 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 0x422464
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040519c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4224bc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4abc7c]
mov dl, 1
mov eax, dword [0x42201c]
call fcn.0040dc3c
call fcn.004046e0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422124
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423ddc
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 0x423de2
ret

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