joyce8/EMBER2024-capa huggingface dataset:
Function at 0x514a84
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov dword [ebx + 0x5c], edx
test byte [ebx + 0x1c], 0x10
je 0x514aaf
mov esi, dword [ebx + 0x58]
test esi, esi
je 0x514aa8
mov eax, dword [esi + 0x30]
call fcn.0041a6e0
test eax, eax
jne 0x514aaf
mov dword [ebx + 0x5c], 0xffffffff
test byte [ebx + 0x1c], 1
jne 0x514aec
test byte [ebx + 0x1c], 0x10
je 0x514aec
cmp dword [ebx + 0x5c], 0xffffffff
jne 0x514aec
mov eax, dword [ebx + 0x30]
call fcn.0050c7b0
test eax, eax
jle 0x514bf0
mov eax, ebx
call fcn.005146ec
mov eax, dword [ebx + 0x30]
call fcn.0050c2ec
mov eax, ebx
call fcn.00514748
jmp 0x514bf0
mov esi, dword [ebx + 0x58]
test esi, esi
je 0x514bf0
mov eax, dword [esi + 0x30]
call fcn.0041a6e0
test eax, eax
jle 0x514bf0
cmp dword [ebx + 0x5c], 0
jl 0x514bf0
cmp dword [ebx + 0x5c], 0
jge 0x514b1c
xor eax, eax
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x30]
call fcn.0041a6e0
dec eax
cmp eax, dword [ebx + 0x5c]
jg 0x514b3c
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x30]
call fcn.0041a6e0
dec eax
mov dword [ebx + 0x5c], eax
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x30]
call fcn.00514e50
mov eax, dword [eax + 0xc]
call fcn.0050c7b0
test eax, eax
jle 0x514bf0
mov dl, 1
mov eax, dword [0x4177b8]
call fcn.00403920
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x514be9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x30]
call fcn.00514e50
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov si, 0xffee
call fcn.00403b4c
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0041c2b0
mov eax, dword [ebx + 0x30]
mov byte [eax + 0x50], 1
mov eax, ebx
call fcn.005146ec
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 4]
mov si, 0xffef
call fcn.00403b4c
mov eax, dword [ebx + 0x30]
mov byte [eax + 0x50], 0
mov edx, dword [ebx + 0x38]
call fcn.0050c7b8
mov eax, ebx
call fcn.00514748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514bf0
mov eax, dword [ebp - 4]
call fcn.00403950
ret
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x52b2fc
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x52b47e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.0052afdc
mov eax, ebx
call fcn.00427880
dec al
je 0x52b340
dec al
je 0x52b346
jmp 0x52b34c
mov byte [ebp - 0x77], 2
jmp 0x52b350
mov byte [ebp - 0x77], 1
jmp 0x52b350
mov byte [ebp - 0x77], 0
mov eax, dword [ebp - 0x8c]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [ebp - 0x8c], eax
mov eax, ebx
call fcn.0042780c
shl eax, 2
lea eax, [eax + eax*4]
mov dword [ebp - 0x84], eax
mov eax, ebx
call fcn.00427848
test al, 1
je 0x52b39c
or dword [ebp - 0x88], 1
mov eax, ebx
call fcn.00427848
test al, 2
je 0x52b3ae
or dword [ebp - 0x88], 2
mov eax, ebx
call fcn.00427848
test al, 4
je 0x52b3c0
or dword [ebp - 0x88], 4
mov eax, ebx
call fcn.00427848
test al, 8
je 0x52b3d2
or dword [ebp - 0x88], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.00427798
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x76]
mov ecx, 0x20
call fcn.00409fb0
mov edi, dword [ebx + 0x18]
cmp edi, 0x80000008
je 0x52b405
cmp edi, 0x20000000
jne 0x52b411
mov dword [ebp - 0x88], 0x40000000
jmp 0x52b41b
mov eax, edi
call fcn.00427080
mov dword [ebp - 0x7c], eax
or dword [ebp - 0x8c], 0x8000000
mov eax, ebx
call fcn.004278b0
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.0042759c
push eax
call sub.gdi32.dll_GetObjectA
test eax, eax
je 0x52b458
or dword [ebp - 0x8c], 0x400000
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x56], ax
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.0052b048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b485
lea eax, [ebp - 0x94]
call fcn.00404820
ret

Function at 0x536de3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x566c22
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x536e3b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x566c43
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x536e31
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x536e3f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x551efc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x551f2a
mov eax, ebx
call fcn.005529b4
cmp dword [ebx + 0x3c], 0
je 0x551f23
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x551f9b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x551f8d
cmp dword [ebx + 8], 0
je 0x551f4c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x551f5e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x551f8d
cmp dword [ebx + 8], 0
je 0x551f3f
cmp eax, 3
je 0x551f71
dec eax
jne 0x551f3f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x551f3f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x551f3f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x551fb9
cmp dword [ebx + 0x10], 0xcc
je 0x551fb9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00551fc4
pop ebx
ret
Function at 0x403759
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x8b6588], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40379e
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b90
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x805d28]
mov ebx, dword [0x805d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403752
mov eax, dword [str.8__vt]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x805d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x8b6588], 0xc
mov dword [ebp - 4], ecx
jne 0x40383f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402c38
push 0x402c04
push 0x402cc0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x8b6588]
cmp ecx, 0xfa9
jne 0x40385d
mov dword [0x8b5b24], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x40386b
mov dword [0x8b54d8], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x8b5b20], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x8b6588], 0x213
mov dword [ebp - 0x14], ecx
jne 0x4038a9
push esi
push 0x402c84
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x8b6588], 0xc
jne 0x4038f2
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402d38
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4037d7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x40393d
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8b6588]
mov ecx, dword [0x8b54dc]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403a35
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x8b6588], 0x959
jne 0x403a23
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402dd4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402e10
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e58
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403759
add ebx, 8
dec dword [ebp - 4]
jne 0x403966
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80533c]
jne 0x405505
repz ret
jmp fcn.00408a9c

Function at 0x40ae7b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406ac6
and dword [ebp - 4], 0
cmp dword [0x807104], 0
mov ebx, eax
jne 0x40af2c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40afdd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40afdd
push eax
call fcn.00406a54
mov dword [esp], 0x4021a0
push edi
mov dword [0x807104], eax
call esi
push eax
call fcn.00406a54
mov dword [esp], 0x40218c
push edi
mov dword [0x807108], eax
call esi
push eax
call fcn.00406a54
mov dword [esp], 0x402170
push edi
mov dword [0x80710c], eax
call esi
push eax
call fcn.00406a54
pop ecx
mov dword [0x807114], eax
test eax, eax
je 0x40af2c
push 0x402158
push edi
call esi
push eax
call fcn.00406a54
pop ecx
mov dword [0x807110], eax
mov eax, dword [0x807110]
cmp eax, ebx
je 0x40af84
cmp dword [0x807114], ebx
je 0x40af84
push eax
call fcn.00406acf
push dword [0x807114]
mov esi, eax
call fcn.00406acf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40af84
test edi, edi
je 0x40af84
call esi
test eax, eax
je 0x40af7b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40af7b
test byte [ebp - 0xc], 1
jne 0x40af84
or dword [ebp + 0x10], 0x200000
jmp 0x40afbd
mov eax, dword [0x807108]
cmp eax, ebx
je 0x40afbd
push eax
call fcn.00406acf
pop ecx
test eax, eax
je 0x40afbd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40afbd
mov eax, dword [0x80710c]
cmp eax, ebx
je 0x40afbd
push eax
call fcn.00406acf
pop ecx
test eax, eax
je 0x40afbd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x807104]
call fcn.00406acf
pop ecx
test eax, eax
je 0x40afdd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40afdf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a54
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.00404178
test esi, esi
jne 0x402a8a
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.00404268
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402968
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4031d4
Capabilities:
Query or enumerate registry value

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

Function at 0x403f78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x403fd9
cmp word [0x4e8220], 0xd7b2
jne 0x403fa1
cmp dword [0x4e8228], 0
jbe 0x403fa1
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e4070
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 0x404000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e4034], 0
jne 0x403ff5
push 0
push 0x4e4068
push 0x4e4070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40412c
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.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040f4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4059f0
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 0x405c20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a73
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a73
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405afc
xor eax, eax
push ebp
push 0x405af5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405838
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 0x405ada
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c5c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ada
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 0x405afc
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 0x405c16
cmp byte [ebp - 0xd], 0
jne 0x405b43
cmp byte [ebp - 0x12], 0
je 0x405c16
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405b5c
dec ebx
cmp byte [ebx], 0x2e
je 0x405b6b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405b5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c16
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ba8
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 0x405c16
cmp byte [ebp - 0xd], 0
je 0x405c16
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 0x405c16
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 0x406304
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 0x40636a
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.004043e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d98
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406371
lea eax, [ebp - 0x10]
call fcn.00404178
ret

Function at 0x40bb34
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 0x40bb6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404268
jmp 0x40bb76
mov eax, ebx
mov edx, esi
call fcn.004041cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c228
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0a0
mov eax, dword [0x4e72b4]
cmp byte [eax], 0
je 0x40c2a4
mov eax, dword [0x4e6fb0]
call fcn.00402bac
call fcn.00402894
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.0040910c
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 0x40c2ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e6f38]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e8668]
call fcn.004057fc
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 0x40cb94
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 0x40cc6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404210
lea eax, [ebp - 8]
call fcn.00404688
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404638
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc54
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc4d
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.00404638
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc37
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc7c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc37
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 0x40cc54
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc71
lea eax, [ebp - 8]
call fcn.00404178
ret

Function at 0x40d1f0
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 0x40d254
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.004043e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a94
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d25b
lea eax, [ebp - 0xc]
call fcn.00404178
ret

Function at 0x4222bc
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 0x422309
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.004220fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422321
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x422328
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.004220fc
dec esi
jne 0x42234a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret