joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2007a2a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x2007a7f
push str.WTSQueryUserToken
call fcn.02007a29
pop ecx
jmp 0x2007af4
lea eax, [ebp - 4]
push eax
push 1
push 1
push ebx
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x2007aa1
push str.DuplicateTokenEx
jmp 0x2007a77
push ebx
lea eax, [ebp - 0xc]
push dword [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x2007aba
push str.CreateEnvironmentBlock
jmp 0x2007a77
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x2007aea
push str.CreateProcessAsUser_ErrorCode_d_n_lpApplicationName_s_n_lpszCommandLine_s
jmp 0x2007a77
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.err_d
call fcn.02007a29
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
je 0x2007b11
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x2007b1b
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x2007b2c
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
leave
ret

Function at 0x2007b2e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0200d690
push ebx
xor ebx, ebx
push 0x2000
lea eax, [ebp - 0x2000]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [ebp + 0x10], bl
jne 0x2007b79
lea eax, [ebp - 0x2000]
push eax
call fcn.020070fc
push dword [ebp + 8]
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0xc
jmp 0x2007b8b
push dword [ebp + 8]
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push 1
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2000]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
leave
ret
Function at 0x200931c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x200e460
push 0x200d870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x20093a2
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x200937a
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x20093a8
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x2009372
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x2009372
mov al, 1
jmp 0x2009374
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2009413
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x20138d4]
test esi, esi
je 0x2009437
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x200941b
pop esi
pop ecx
ret

Function at 0x200943a
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x20138e0], eax
je 0x2009450
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x20138f0]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x200949d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x200948e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x200948e
push eax
call fcn.02009504
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0200d548
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x200945f
mov dword [0x20138f0], ebx
call fcn.020094dd
mov esi, dword [0x20138ec]
cmp esi, ebx
je 0x20094ca
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0200d548
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x20094b2
pop edi
mov dword [0x20138ec], ebx
mov dword [0x20138e0], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x2009aae
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x2009ad2
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x2009ad5
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x2009ae8
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x2009aef
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x20138d8]
mov ecx, dword [0x20138d4]
test eax, eax
jne 0x2009b09
test ecx, ecx
je 0x2009b1e
mov eax, ecx
mov dword [0x20138d8], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x2009b1e
cmp edx, dword [ebp + 8]
jb 0x2009b1e
cmp edx, dword [ebp - 4]
jbe 0x2009c77
mov eax, ecx
test ecx, ecx
mov dword [0x20138d8], eax
je 0x2009b4e
test eax, eax
je 0x2009b42
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x2009b42
cmp ecx, dword [ebp + 8]
jb 0x2009b42
cmp ecx, dword [ebp - 4]
jbe 0x2009c77
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x20138d8], eax
jne 0x2009b2d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x2009bb6
cmp edi, 0x70000000
jb 0x2009b73
cmp edi, 0x80000000
ja 0x2009b73
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x2009bb6
cmp dword [ebp - 0x10], ebx
jne 0x2009b8e
cmp dword [ebp - 0x14], ebx
jae 0x2009b9e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x2009b5e
jmp 0x2009bb6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x20138d8], eax
jne 0x2009c2d
cmp esi, dword [ebp - 4]
jae 0x2009c9e
cmp esi, 0x70000000
jb 0x2009bd4
cmp esi, 0x80000000
ja 0x2009bd4
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x2009c9e
cmp dword [ebp - 0x10], ebx
jne 0x2009c22
cmp dword [ebp - 0x14], ebx
jb 0x2009c22
mov ecx, esi
and ecx, 0xffff
je 0x2009c0a
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x20138d8], eax
jne 0x2009c2d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x2009bb6
mov dword [eax], 0x52727464
mov eax, dword [0x20138d8]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x20138d8]
mov edx, dword [0x20138d4]
mov dword [eax + 4], edx
mov eax, dword [0x20138d8]
mov dword [0x20138d4], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x2009c5f
mov eax, dword [0x20138d8]
mov dword [eax + 8], ecx
mov eax, dword [0x20138d8]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x2009c9e
cmp esi, dword [ebp - 4]
ja 0x2009c9e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x2009ca0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2009ca5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x200e470
push 0x200d870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x2009d1a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x2009d16
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x2009d16
cmp word [eax + 0x14], 0
jne 0x2009d0b
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x2009d1c
mov eax, ecx
jmp 0x2009d05
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x200a9c6
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x200da4c
call fcn.0200d650
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp byte [edi], 0
jne 0x200a9e7
xor esi, esi
cmp dword [edi + 0x2c], esi
jne 0x200a9ee
xor al, al
jmp 0x200ab2a
mov byte [ebp - 0x14], 1
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], esi
lea eax, [edi + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x200aa0b
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push 0x80
push 3
push esi
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x200aa3f
mov dword [ebp - 0x38], str.CreateFile_failed.
push 0x200f918
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x200ab39
cmp ebx, esi
je 0x200ab39
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], esi
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0x10
and dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esi], 0xff
jne 0x200aaac
cmp byte [esi + 1], 0xfe
jne 0x200aaac
mov byte [edi + 1], 1
add ebx, 0xfffffffe
push ebx
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.0200bbc0
jmp 0x200aaff
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
call fcn.0200a2f3
add esp, 0x10
mov byte [ebp - 0x28], al
and byte [edi + 1], 0
test al, al
jne 0x200aad6
and byte [ebp - 0x14], al
jmp 0x200aaea
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.0200bbc0
mov byte [ebp - 0x14], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x200aaff
mov dword [ebp - 0x44], eax
push eax
call fcn.0200d548
pop ecx
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], esi
push esi
call fcn.0200d548
pop ecx
and dword [ebp - 0x18], 0
mov byte [edi], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0xffffffff
je 0x200ab23
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x14], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0x3c], str.GetFileSize_exception
push 0x200f918
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [ebp - 0x14], 0
mov eax, 0x200ab10
ret
Function at 0x200d14a
Capabilities:
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, 0x811c9dc5
mov ecx, dword [esi + 4]
mov esi, dword [esi + 8]
mov edx, ecx
lea esi, [ecx + esi*2]
neg ecx
sbb ecx, ecx
and ecx, esi
cmp edx, ecx
je 0x200d178
movzx esi, word [edx]
imul eax, eax, 0x1000193
xor eax, esi
inc edx
inc edx
jmp 0x200d165
pop esi
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019dd
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401a44]
mov edx, dword [0x4030dc]
sub edx, eax
push edx
push dword [0x4030d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018c5
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040191f
mov eax, edi
add eax, 0x1ce00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
lea eax, [0x4030e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a44
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x4019dd
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret
Function at 0x407e78
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408270
mov byte [esp], al
cmp byte [esp], 0
jne 0x408004
test edi, edi
je 0x408004
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407f3b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407f16
cmp edi, 0xffffffff
je 0x407ed7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ed7
mov byte [esp], 0
jmp 0x408004
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407f16
test ebx, ebx
jne 0x407f0c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x407f0c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408004
call 0x408394
dec ebp
test ebp, ebp
jg 0x407ebc
cmp edi, 0xffffffff
je 0x407f3b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f39
mov byte [esp], 0
jmp 0x408004
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e86
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x407f3b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408074
mov edx, eax
mov ebx, dword [0x5808f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407fa2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407fa0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407fa2
xor edi, edi
cmp byte [esp], 0
je 0x407fcb
mov ebx, dword [esi]
test bl, 1
jne 0x407fe4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x407fa8
mov byte [esp + 1], 1
jmp 0x407fe4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x407fcb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f55
cmp byte [esp], 0
je 0x408004
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408d94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x580058], 0
je 0x408dfb
cmp word [0x580344], 0xd7b2
jne 0x408dbd
cmp dword [0x58034c], 0
jbe 0x408dbd
mov eax, 0x580340
call dword [0x58035c]
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, 0x408e28
call fcn.00409be0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x579032], 0
jne 0x408e17
push 0
push 0x5799f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408fb8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x579034], 0
je 0x408fe3
mov edx, edi
mov eax, esi
call dword [0x579034]
mov ebx, eax
jmp 0x408ff4
mov eax, 8
call fcn.00404554
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x580059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408f80
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409029
mov edx, 8
mov eax, ebx
call fcn.00404570
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ba80
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 0x40bbe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004090fc
cmp si, word [0x579a30]
jb 0x40bb18
cmp si, word [0x579c30]
ja 0x40bb18
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bb18
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x579a30]
jae 0x40baf2
mov edi, ebx
dec edi
jmp 0x40bb13
cmp si, word [ebx*8 + 0x579a30]
jbe 0x40bb02
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bb13
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x579a34]
call fcn.0040b990
jmp 0x40bb18
cmp edi, dword [ebp - 8]
jae 0x40badc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bbc7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bbc7
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.00409f64
push dword [ebp - 0x160]
push 0x40bc00
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f64
push dword [ebp - 0x164]
push 0x40bc10
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f64
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a19c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bbec
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040915c
ret
Function at 0x40bd98
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 0x40be9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x582b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x582ba0]
jne 0x40bde4
mov eax, esi
mov edx, 0x582ba2
mov ecx, 0x55
call fcn.00409f64
push 0x582b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40be85
push 0x582b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004090fc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40be53
cmp byte [0x582b84], 0
je 0x40be18
mov edx, esi
mov eax, ebx
call fcn.0040bc7c
jmp 0x40be53
mov edx, esi
mov eax, ebx
call fcn.0040ba80
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40be53
cmp dword [esi], 0
je 0x40be3c
mov eax, esi
mov edx, 0x40beb4
call fcn.0040a0bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba80
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a0bc
push 0x582b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x582ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409ec0
push eax
push 0x582ba2
call sub.kernel32.dll_lstrcpynW
push 0x582b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bea2
lea eax, [ebp - 4]
call fcn.004090fc
ret