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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x4237f8], 0
je 0x40a3b9
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040a288
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40a3b9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a3b0
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.00408e24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40a511
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x4237ce], 0
mov eax, dword [ebp + 0x10]
mov dword [0x423740], eax
mov eax, dword [ebp + 0x14]
mov dword [0x423744], eax
mov eax, dword [ebp + 0x18]
mov dword [0x423738], eax
je 0x40a541
xor eax, eax
inc eax
jmp 0x40a56a
cmp byte [0x4237cf], 0
je 0x40a54f
push 2
pop eax
jmp 0x40a56a
push dword [ebp + 0xc]
push 0x4097fe
push dword [0x4237e8]
push str.REPLACEFILEDLG
push dword [0x42373c]
call esi
dec eax
je 0x40a5cb
dec eax
je 0x40a5aa
dec eax
je 0x40a5c4
dec eax
jne 0x40a59d
push dword [ebp + 0xc]
push 0x409afa
push dword [0x4237e8]
push str.RENAMEDLG
push dword [0x42373c]
call esi
test eax, eax
je 0x40a51b
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a5dc
dec eax
je 0x40a5b2
dec eax
jne 0x40a5dc
mov byte [0x4237cf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a5dc
mov eax, dword [ebp + 8]
mov dword [0x4237e0], 1
mov byte [eax], 0x43
jmp 0x40a5dc
mov byte [0x4237ce], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40a67e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408d31
cmp eax, 0x3f6
jae 0x40a892
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408c87
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a6c6
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a6c9
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a70e
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a6ea
jmp 0x40a6de
cmp byte [eax + esi], 0x22
je 0x40a6e6
inc eax
cmp byte [eax + esi], bl
jne 0x40a6d8
jmp 0x40a6ea
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a701
cmp byte [eax + esi + 1], 0x2f
je 0x40a701
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a6d1
jmp 0x40a70e
add eax, esi
cmp byte [eax], 0x20
jne 0x40a70a
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a722
cmp byte [0x423bfa], bl
je 0x40a722
mov dword [ebp - 0x30], 0x423bfa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407148
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a74e
push str..inf
push eax
call fcn.00408f47
test eax, eax
jne 0x40a74e
mov dword [ebp - 0x38], 0x40d754
push ebx
push dword [ebp - 0x34]
call fcn.00403525
mov byte [ebp - 1], al
cmp al, bl
je 0x40a776
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00403611
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40a7b5
cmp byte [ebp - 1], bl
jne 0x40a7b5
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408e24
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408f8f
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00403525
test al, al
je 0x40a890
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40a7e7
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40a890
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4237f0], bl
jne 0x40a7fd
cmp byte [ebp + 8], bl
je 0x40a834
mov eax, dword [0x4237e8]
cmp eax, ebx
je 0x40a81e
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a81e
push ebx
push dword [0x4237e8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040a071
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a853
push str..exe
push dword [ebp - 8]
call fcn.00408f47
test eax, eax
je 0x40a881
cmp byte [0x4237f0], bl
je 0x40a867
cmp byte [ebp + 8], bl
jne 0x40a867
push 0x1b58
jmp 0x40a87b
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
je 0x40a890
push 1
push dword [0x4237e8]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40bc0e
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x428bb0
call fcn.0040cabf
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40bc96
push esi
call fcn.00409e0c
cmp byte [0x4237f9], bl
je 0x40bc8a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40bc81
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40bc7a
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bc96
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x423338
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call fcn.004069f0
test eax, eax
je 0x40bccd
push edi
push 0x422b38
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40bcd5
xor eax, eax
mov word [0x422b38], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x4237c8], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x4237c8]
mov dword [0x422b34], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x422b30], eax
call fcn.0040cd05
push esi
mov ecx, 0x4240a4
call fcn.004089e0
lea ecx, [ebp - 0x40]
call fcn.00404ce2
lea ecx, [ebp - 0x24]
call fcn.00404ce2
push 0x64
call fcn.00409608
push 0x64
mov dword [ebp - 0x28], eax
call fcn.00409608
push ebx
push 0x40b494
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x42272c], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x422728], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x4237e8], ebx
mov dword [0x422728], ebx
mov dword [0x42272c], ebx
call fcn.00404cf8
lea ecx, [ebp - 0x40]
call fcn.00404cf8
lea ecx, [ebp - 8]
call fcn.0040cd7d
cmp byte [0x4237f0], bl
je 0x40bd96
call fcn.0040a0b0
push 0x80
push ebx
push 0x423748
call fcn.00408c87
cmp dword [0x42408c], ebx
jbe 0x40bdb9
push dword [0x424080]
call fcn.00408a89
push dword [0x422b34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x422b30]
cmp eax, ebx
je 0x40bdd3
push eax
call esi
cmp dword [0x424098], ebx
jne 0x40bdf2
cmp dword [0x4237e0], ebx
je 0x40bdf2
push 0xff
mov ecx, 0x424098
call fcn.004017e1
mov eax, dword [0x424090]
mov dword [0x4237e0], 2
cmp eax, ebx
je 0x40be0b
push eax
call fcn.0040a071
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x424098]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40c522
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x421688]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x40f0d0]
mov ecx, dword [0x421690]
mov dword [0x421688], eax
movzx eax, al
add eax, dword [0x42168c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x42168c], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x40f0d0]
mov eax, dword [esp + 4]
mov dword [0x421690], ecx
ret 4

Function at 0x40c5b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c57c
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408cb4
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c502
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c522
inc esi
cmp esi, 0xc
jl 0x40c5d4
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c60f
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c61b
or eax, 0xffffffff
jmp 0x40c660
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c63d
mov edx, dword [0x40f920]
jg 0x40c639
cmp eax, edx
jbe 0x40c63d
mov edi, edx
jmp 0x40c63f
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c659
dec edi
call fcn.0040c502
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c522
inc esi
test edi, edi
jne 0x40c647
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x4036f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x180c
call fcn.0040ea60
mov eax, dword [0x2c74be4]
mov ecx, dword [0x2c74b58]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403814
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2c74be4], 0x959
jne 0x4037fa
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x402db4
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc1c]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0x402dd0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0x402e14
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e1c
push 0x402e50
call esi
push 0
push 0x402eac
push 0x402ec4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403530
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403734
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
Function at 0x4061bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51aaa8]
jne 0x4061c5
repz ret
jmp fcn.0040a7bc

Function at 0x40ce8b
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.00407b1e
and dword [ebp - 4], 0
cmp dword [0x51e0d8], 0
mov ebx, eax
jne 0x40cf3c
push 0x402c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cfed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c78
push edi
call esi
test eax, eax
je 0x40cfed
push eax
call fcn.00407aac
mov dword [esp], 0x402c68
push edi
mov dword [0x51e0d8], eax
call esi
push eax
call fcn.00407aac
mov dword [esp], 0x402c54
push edi
mov dword [0x51e0dc], eax
call esi
push eax
call fcn.00407aac
mov dword [esp], 0x402c38
push edi
mov dword [0x51e0e0], eax
call esi
push eax
call fcn.00407aac
pop ecx
mov dword [0x51e0e8], eax
test eax, eax
je 0x40cf3c
push 0x402c20
push edi
call esi
push eax
call fcn.00407aac
pop ecx
mov dword [0x51e0e4], eax
mov eax, dword [0x51e0e4]
cmp eax, ebx
je 0x40cf94
cmp dword [0x51e0e8], ebx
je 0x40cf94
push eax
call fcn.00407b27
push dword [0x51e0e8]
mov esi, eax
call fcn.00407b27
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cf94
test edi, edi
je 0x40cf94
call esi
test eax, eax
je 0x40cf8b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cf8b
test byte [ebp - 0xc], 1
jne 0x40cf94
or dword [ebp + 0x10], 0x200000
jmp 0x40cfcd
mov eax, dword [0x51e0dc]
cmp eax, ebx
je 0x40cfcd
push eax
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfcd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cfcd
mov eax, dword [0x51e0e0]
cmp eax, ebx
je 0x40cfcd
push eax
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfcd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51e0d8]
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cfef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b2c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00408ec8
test esi, esi
jne 0x406b62
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409050
jmp 0x406b80
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a10
mov edi, eax
test esi, esi
je 0x406b80
cmp dword [ebx], 0
je 0x406b80
dec esi
jmp 0x406b69
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408138
mov byte [esp], al
cmp byte [esp], 0
jne 0x408026
test edi, edi
je 0x408026
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407f41
cmp edi, 0xffffffff
je 0x407f01
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f01
mov byte [esp], 0
jmp 0x408026
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407f41
test ebx, ebx
jne 0x407f33
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407f33
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408026
lea eax, [esp + 0xc]
call fcn.00407c30
dec ebp
test ebp, ebp
jg 0x407ee6
cmp edi, 0xffffffff
je 0x407f66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f64
mov byte [esp], 0
jmp 0x408026
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407eaa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f66
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408094
mov edx, eax
mov ebx, dword [0x4e28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407fca
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407fc8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407fca
xor edi, edi
cmp byte [esp], 0
je 0x407ff0
mov ebx, dword [esi]
test bl, 1
jne 0x408006
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407fd0
mov byte [esp + 1], 1
jmp 0x408006
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407ff0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f7d
cmp byte [esp], 0
je 0x408026
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408978
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4e4b18
cmp dword [ebp + 0xc], 2
jl 0x40898c
mov ebx, 0x4e4b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4089c4
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x404ae0
mov dword [0x4e201c], eax
mov eax, 0x404ae8
mov dword [0x4e2020], eax
mov eax, ebx
call fcn.0040885c
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4089f9
cmp al, 3
jge 0x4089f9
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408a0a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408a15
call dword [ecx + eax*4]
cmp dword [0x4e2040], 0
jne 0x408a2b
mov byte [0x4e2048], 1
fnstcw word [0x4de028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00408cbc
call fcn.0040890c
ret 4

Function at 0x408c24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2058], 0
je 0x408c8b
cmp word [0x4e2344], 0xd7b2
jne 0x408c4d
cmp dword [0x4e234c], 0
jbe 0x408c4d
mov eax, 0x4e2340
call dword [0x4e235c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408cb8
call fcn.0040971c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4de032], 0
jne 0x408ca7
push 0
push 0x4de9ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b388
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b4ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408ec8
cmp si, word [0x4de9f8]
jb 0x40b420
cmp si, word [0x4debf8]
ja 0x40b420
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b420
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4de9f8]
jae 0x40b3fa
mov edi, ebx
dec edi
jmp 0x40b41b
cmp si, word [ebx*8 + 0x4de9f8]
jbe 0x40b40a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b41b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4de9fc]
call fcn.0040b2a8
jmp 0x40b420
cmp edi, dword [ebp - 8]
jae 0x40b3e4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b4cf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b4cf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409abc
push dword [ebp - 0x160]
push 0x40b508
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409abc
push dword [ebp - 0x164]
push 0x40b518
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409abc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409cf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4f4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408f28
ret
Function at 0x40b6a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b7a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e4b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e4ba0]
jne 0x40b6ec
mov eax, esi
mov edx, 0x4e4ba2
mov ecx, 0x55
call fcn.00409abc
push 0x4e4b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b78e
push 0x4e4b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408ec8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b75b
cmp byte [0x4e4b84], 0
je 0x40b720
mov edx, esi
mov eax, ebx
call fcn.0040b584
jmp 0x40b75b
mov edx, esi
mov eax, ebx
call fcn.0040b388
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b75b
cmp dword [esi], 0
je 0x40b744
mov eax, esi
mov edx, 0x40b7bc
call fcn.00409c14
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b388
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409c14
push 0x4e4b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e4ba0], bx
mov eax, dword [esi]
call fcn.00409a18
mov ecx, eax
mov eax, 0x4e4ba2
mov edx, 0xaa
call fcn.0040b208
push 0x4e4b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b7ab
lea eax, [ebp - 4]
call fcn.00408ec8
ret