joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7254
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5c72f6
cmp dword [ebx + 0xac], 0
jne 0x5c72f0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c7190
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5c72f0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5c72b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c72f0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004aaef8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c72c5
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5c75b0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x5ea14c]
cmp dword [eax + 0x188], 0
je 0x5c772a
test bl, bl
jne 0x5c7675
cmp dword [esi + 0xb4], 0
jne 0x5c766a
mov eax, esi
call fcn.005ca62c
push eax
push 0x5c74a4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c763b
mov eax, dword [0x5ea14c]
cmp byte [eax + 0xeb], 0
je 0x5c763b
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5c761c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c763b
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c7624
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c766a
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004aaef8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c764a
inc dword [esi + 0xb4]
jmp 0x5c772a
cmp dword [esi + 0xb4], 0
jle 0x5c772a
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5c772a
cmp dword [esi + 0x58], 0
je 0x5c76df
mov eax, dword [0x5ea14c]
cmp byte [eax + 0xeb], 0
je 0x5c76df
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5c76c0
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c76df
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c76c8
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c770e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004aaef8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c76ee
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5b85d4]
call fcn.0040c048
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5c83c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c8425
cmp byte [ebx + 0xeb], 0
jne 0x5c8425
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409e04
mov eax, dword [esi]
test eax, eax
je 0x5c8412
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c8432
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a05c
jmp 0x5c8432
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a05c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c9d68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5c9dd9
mov eax, esi
call fcn.00524e80
test al, al
je 0x5c9dd9
mov eax, dword [ebx + 0x98]
call fcn.00524aac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c9dd9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x134]
test al, al
je 0x5c9dca
push 0
mov eax, dword [ebx + 0x98]
call fcn.00524aac
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0051b564
jmp 0x5c9dd9
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005c9b74
pop esi
pop ebx
ret
Function at 0x5d0c1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5d0c9a
mov eax, dword [ebx + 8]
call fcn.00524aac
mov ecx, eax
mov dl, 1
mov eax, dword [0x5320bc]
call fcn.0051ec18
mov dword [ebx + 0x8c], eax
mov esi, dword [ebx + 0x8c]
xor edx, edx
mov eax, esi
call fcn.00537914
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5d04ec
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00524aac
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00524aac
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5d0d14
mov eax, dword [ebx + 8]
call fcn.00524aac
mov ecx, eax
mov dl, 1
mov eax, dword [0x5320bc]
call fcn.0051ec18
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov dl, 1
mov eax, esi
call fcn.00537914
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5d0538
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00524aac
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00524aac
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5d0d82
mov eax, dword [ebx + 8]
call fcn.00524aac
mov ecx, eax
mov dl, 1
mov eax, dword [0x532b58]
call fcn.0051ec18
mov dword [ebx + 0x94], eax
mov eax, dword [ebx + 0x94]
mov byte [eax + 0x2a0], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00524aac
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00524aac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x10003e43
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10003e6a
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10003e6d
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10003e1f
pop esi
leave
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40288e
pop dword [ebp - 0x2c]
mov eax, 0x72a0b869
sub eax, 0x72608fdb
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x90a77152
add dword [ebp - 0x3c], 0xbdaad3f9
mov dword [ebp - 0x38], 0x708b5e44
sub dword [ebp - 0x38], 0x3e5811ff
mov dword [ebp - 0x34], 0xa02fa49a
add dword [ebp - 0x34], 0xac1c9f94
mov dword [ebp - 0x30], 0x2679e8cd
sub dword [ebp - 0x30], 0x2679e8cd
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1f1eceb
add eax, 0xfe4e93a1
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x205a769
sub dword [ebp - 0x3c], 0x8d933e13
mov dword [ebp - 0x38], 0x1b5bf751
add dword [ebp - 0x38], 0x26106a24
mov dword [ebp - 0x34], 0xc483af9e
sub dword [ebp - 0x34], 0x61144332
mov dword [ebp - 0x30], 0xd04c088e
sub dword [ebp - 0x30], 0xd04c088e
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x431d77fd
add eax, 0xbd2308d7
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x35182
push 0
call eax
mov ecx, 0x41fe
xor edx, edx
add edx, eax
mov ebx, 0x97029d41
sub ebx, 0x96c18d41
add ebx, dword [ebp - 0x2c]
mov esi, 0xcc9dbcd1
add esi, 0xb608782c
sub dword [ebp - 0x1c], eax
mov edi, dword [ebx]
xor dword [ebp - 0x20], eax
sub edi, esi
xor dword [ebp - 4], edx
mov dword [edx], edi
xor dword [ebp - 0x10], ecx
add edx, 4
add ebx, 0x9d99fcb1
add ebx, 0x62660353
loop 0x4029ac
add eax, 0xfacb
xor ebx, ebx
add ebx, eax
add eax, 0xdaf29661
sub eax, 0xdaf2965c
mov ecx, 0x7ba5c991
sub ecx, 0x7b65c991
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x1000e8c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000e8d6
pop dword [ebp - 0x20]
mov eax, 0x44fa0f65
add eax, 0xcb06d971
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xc4921fd0
sub dword [ebp - 0x30], 0x763fda85
mov dword [ebp - 0x2c], 0x1e8b32bb
add dword [ebp - 0x2c], 0x13a8198a
mov dword [ebp - 0x28], 0x8b94eaf8
sub dword [ebp - 0x28], 0x3f48a6ca
mov dword [ebp - 0x24], 0x50f7e45b
add dword [ebp - 0x24], 0xaf081ba5
lea eax, [ebp - 0x30]
push eax
mov eax, 0x75b89ae9
sub eax, 0x65b6cae1
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xf1944d61
sub dword [ebp - 0x30], 0x7d21e40b
mov dword [ebp - 0x2c], 0xacdf94a3
add dword [ebp - 0x2c], 0x948cccd2
mov dword [ebp - 0x28], 0x29cb46c9
sub dword [ebp - 0x28], 0xc65bda5d
mov dword [ebp - 0x24], 0x644a8847
sub dword [ebp - 0x24], 0x644a8847
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x68492e50
sub eax, 0x58475e24
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c509
push 0
call eax
mov ecx, 0xbd203f45
add ecx, 0x42e0108d
xor ebx, ebx
add ebx, eax
mov esi, 0x52ca85e1
add esi, 0xbd385a1f
add esi, dword [ebp - 0x20]
mov edi, 0x7f37b21a
xor dword [ebp - 4], edx
mov edx, dword [esi]
xor dword [ebp - 8], 0x42adc403
add edx, edi
mov dword [ebp - 4], 0x52f33d64
mov dword [ebx], edx
add ebx, 0xcfa458ff
sub ebx, 0xcfa458fb
add esi, 0xea7109e2
add esi, 0x158ef622
loop 0x1000e9f4
add eax, 0x1321b
xor ebx, ebx
add ebx, eax
add eax, 0x28151dd5
sub eax, 0x28151dd0
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x402ec0
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 0x402efd
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_1
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA_1
test bl, bl
je 0x402f1d
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA_1
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004052cc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030fc
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 0x403155
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402f98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402f98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x40313f
inc ebx
jmp 0x403128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40315c
lea eax, [ebp - 8]
call fcn.0040504c
ret

Function at 0x403164
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040504c
test esi, esi
jne 0x40319b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040513c
jmp 0x4031bc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f98
mov dword [esp], eax
test esi, esi
je 0x4031bc
cmp dword [ebx], 0
je 0x4031bc
dec esi
jmp 0x4031a3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403f88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5e3024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404020
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404000
xor eax, eax
push ebp
push 0x403ff9
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 0x40403c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404000
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x5e3024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5e3024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404e44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f704c], 0
je 0x404ea5
cmp word [0x5f7220], 0xd7b2
jne 0x404e6d
cmp dword [0x5f7228], 0
jbe 0x404e6d
mov eax, 0x5f721c
call dword [0x5f7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5e3074
push 0xfffffffffffffff5
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 0x404ecc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x5e3034], 0
jne 0x404ec1
push 0
push 0x5e306c
push 0x5e3074
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x405000
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.00402ca8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5f704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fc8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407568
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 0x4075ce
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004052cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403ab4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4075b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4075d5
lea eax, [ebp - 0x10]
call fcn.0040504c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405538
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40aed1
test al, 0x10
jne 0x40aed5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b06c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405538
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x40b080
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405538
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40b0a2
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40e7bc
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
test eax, eax
jle 0x40e7f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040513c
jmp 0x40e7fe
mov eax, ebx
mov edx, esi
call fcn.004050a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e808
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 0x40e829
mov al, byte [esp]
jmp 0x40e82b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f850
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 0x40f926
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004050e4
lea eax, [ebp - 8]
call fcn.00405588
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405538
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f910
mov eax, ebx
call fcn.00402ca8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f909
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.00405538
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f8f3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f938
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f8f3
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 0x40f910
mov eax, dword [ebp - 0x10]
call fcn.00402cd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f92d
lea eax, [ebp - 8]
call fcn.0040504c
ret

Function at 0x410024
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 0x410088
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.004052cc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040a9f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41008f
lea eax, [ebp - 0xc]
call fcn.0040504c
ret

Function at 0x41126c
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.0040504c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405538
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x4112b1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040513c
jmp 0x4112ca
mov edx, ebx
dec edx
mov eax, esi
call fcn.004056c8
push ebx
mov eax, dword [esi]
call fcn.00405538
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425ac8
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 0x425b15
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.004258f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x425b2d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x425b34
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.004258f4
dec esi
jne 0x425b56
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426cb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5f7890
cmp dword [edi], 0
jne 0x426d30
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5f788c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5e354c
mov ecx, 2
call fcn.00402f58
mov edx, 0x426c8c
lea eax, [esi + 5]
call fcn.00426cac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426cac
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 0x426d05
mov dword [0x5f788c], 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 0x429fa4
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 0x429faa
ret

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