joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ab00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x100568a3
cmp byte [esi + 0x3d], 0
je 0x100568a3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10056859
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1005686b
sub eax, 1
je 0x1005686f
sub eax, 2
je 0x100568a3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a602
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005688c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10065d5d
add esp, 0x10
cmp edi, eax
jne 0x10056859
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a602
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1005a602
mov esp, ebp
pop ebp
ret

Function at 0x10056b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084b70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100ab00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1005aacd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1005c21c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.100568c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10056e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084bf0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100ab00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1005aacd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1005c21c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10059580
Capabilities:
Get number of processors
Log keystrokes via polling

Disassembly:
push esi
push edi
mov ecx, 0x40
mov esi, 0x100aeeb0
mov edi, 0x100aefb0
rep movsd dword es:[edi], dword [esi]
push 0x100aeeb0
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0xffffffffffffffff
mov eax, 0x56e210
call eax
mov eax, dword [eax + 0x14]
movss xmm0, dword [eax + 0x34]
movss xmm1, dword [eax + 0x30]
mov eax, 0x44d830
movss dword [esp], xmm0
push ecx
movss dword [esp], xmm1
call eax
test byte [0x100aeefe], 0x80
pop edi
pop esi
je 0x100595de
test byte [0x100aeffe], 0x80
je fcn.10054b10
ret
Function at 0x1005a300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov ecx, 0x401000
call fcn.1005a5f0
push eax
lea ecx, [ebp - 4]
call fcn.1004b8a0
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov esi, dword [esi]
test eax, eax
je 0x1005a359
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x1005a36b
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.1005a530
cmp eax, 0x16197be9
jne 0x1005a386
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.1005a530
cmp eax, 0x94bf
jne 0x1005a3a1
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.1005a530
cmp eax, 0x94bf
jne 0x1005a3bc
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.1005a530
cmp eax, 0x94bf
jne 0x1005a3d7
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.1005a530
cmp eax, 0x3539f633
jne 0x1005a3f2
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.1005a530
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x1005a530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.1005a5f0
push eax
lea ecx, [ebp - 4]
call fcn.1004b8a0
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov esi, dword [esi]
test eax, eax
je 0x1005a584
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10074e00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10074c76

Function at 0x1007548b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007540d
Function at 0x4111d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x431bfc
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x200
call esi
test eax, eax
jne 0x411235
lea eax, [ebp - 8]
push eax
push str.EnableJavaUpdate
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call main
add esp, 0xc
test eax, eax
je 0x411227
cmp dword [ebp - 8], ebx
je 0x41122a
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x411243
push str.ISAUDisabled__:_Error_opening_HKLM_Policy_key_for_reading
call main
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jne 0x4112d5
call fcn.00410107
test eax, eax
jne 0x4112d2
call main
test eax, eax
je 0x4112d2
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x431c74
push 0x80000001
call esi
test eax, eax
jne 0x4112d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x431c9c
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
jne 0x4112d5
mov dword [ebp - 8], edi
call fcn.0040feb9
test eax, eax
je 0x4112c7
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff5d
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4112cd
mov eax, dword [ebp - 0x210]
cmp eax, 0x64
jne 0x4112d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416b75
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x416b84
pop dword [ebp - 0x48]
mov eax, 0xc0069d1e
add eax, 0x403ace66
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x449ef
push 0
mov eax, 0x2d292ca
sub eax, 0x28fd0a6
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x5413
xor edx, edx
add edx, eax
mov esi, 0x4561866d
sub esi, 0x451d7e6d
add esi, dword [ebp - 0x48]
mov ebx, 0xa5cb23d6
sub ebx, 0x688c3b5e
mov dword [ebp - 0xc], 0xbca480e1
mov edi, dword [esi]
add dword [ebp - 0x3c], 0x4c677706
xor edi, ebx
xor dword [ebp - 0x38], 0xa5f1574
mov dword [edx], edi
add dword [ebp - 0x28], ebx
add edx, 0x5ca035fa
sub edx, 0x5ca035f6
add esi, 4
loop 0x416bdf
add eax, 0xa4a8c2ec
add eax, 0x5b588033
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xed324b3e
sub ecx, 0xecf24b3e
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x4187e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a210]
jne 0x4187ee
repz ret
jmp fcn.00420617
Function at 0x10003326
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add ebx, 0xc
mov ebx, dword [ebx]
cmp dword [ebx + 0x30], 0
je 0x10003341
test edi, edi
je 0x10003352
mov eax, dword [ebx + 0x28]
mov dword [edi], eax
test esi, esi
je 0x10003365
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.100032f5
cmp eax, esi
jne 0x10003341
mov eax, dword [ebx + 0x18]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x10003394
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100033f7
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov edi, dword [ebx + eax + 0x78]
add edi, ebx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
je 0x100033f5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ecx + esi*4]
add eax, ebx
mov dword [esp], eax
call fcn.10003370
test al, al
je 0x100033f2
lea edx, [esi + esi]
add edx, ebx
add edx, dword [edi + 0x24]
movzx eax, word [edx]
lea eax, [ebx + eax*4]
add eax, dword [edi + 0x1c]
add ebx, dword [eax]
jmp 0x100033f7
inc esi
jmp 0x100033bd
xor ebx, ebx
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa87bf3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0xa87bf3
lcall 0x5de5, 0x8b10c483
jmp loc.01db65e4
Function at 0x46da4
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.0004975c
test esi, esi
jne 0x46dda
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.000498e4
jmp 0x46df8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00046ce8
mov edi, eax
test esi, esi
je 0x46df8
cmp dword [ebx], 0
je 0x46df8
dec esi
jmp 0x46de1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x48364
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.000487c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x484ee
test edi, edi
je 0x484ee
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4842e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x48409
cmp edi, 0xffffffff
je 0x483c9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x483c9
mov byte [esp], 0
jmp 0x484ee
mov ebx, dword [esi]
cmp ebx, 1
jg 0x48409
test ebx, ebx
jne 0x483fb
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x483fb
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x484ee
lea eax, [esp + 0xc]
call fcn.00048044
dec ebp
test ebp, ebp
jg 0x483ae
cmp edi, 0xffffffff
je 0x4842e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4842c
mov byte [esp], 0
jmp 0x484ee
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x48372
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4842e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0004855c
mov edx, eax
mov ebx, dword [0x21e8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x48492
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x48490
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x48492
xor edi, edi
cmp byte [esp], 0
je 0x484b8
mov ebx, dword [esi]
test bl, 1
jne 0x484ce
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x48498
mov byte [esp + 1], 1
jmp 0x484ce
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x484b8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x48445
cmp byte [esp], 0
je 0x484ee
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 0x49104
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x220b1c
cmp dword [ebp + 0xc], 2
jl 0x49118
mov ebx, 0x220b4c
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 0x49150
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x44cf4
mov dword [0x21e01c], eax
mov eax, 0x44cfc
mov dword [0x21e020], eax
mov eax, ebx
call fcn.00048fe8
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 0x49185
cmp al, 3
jge 0x49185
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x49196
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x491a1
call dword [ecx + eax*4]
cmp dword [0x21e040], 0
jne 0x491b7
mov byte [0x21e048], 1
fnstcw word [0x218028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00049448
call fcn.00049098
ret 4

Function at 0x493b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x21e05c], 0
je 0x49417
cmp word [0x21e348], 0xd7b2
jne 0x493d9
cmp dword [0x21e350], 0
jbe 0x493d9
mov eax, 0x21e344
call dword [0x21e360]
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, 0x49444
call fcn.00049fa0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x218032], 0
jne 0x49433
push 0
push 0x2189c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4961c
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 [0x218034], 0
je 0x49647
mov edx, edi
mov eax, esi
call dword [0x218034]
mov ebx, eax
jmp 0x49658
mov eax, 8
call fcn.00046a24
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x21e05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x495e4
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 0x49688
mov eax, ebx
call fcn.00046a40
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4c024
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 0x4c189
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0004975c
cmp si, word [0x218a00]
jb 0x4c0bc
cmp si, word [0x218c00]
ja 0x4c0bc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4c0bc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x218a00]
jae 0x4c096
mov edi, ebx
dec edi
jmp 0x4c0b7
cmp si, word [ebx*8 + 0x218a00]
jbe 0x4c0a6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4c0b7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x218a04]
call fcn.0004bf44
jmp 0x4c0bc
cmp edi, dword [ebp - 8]
jae 0x4c080
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4c16b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4c16b
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.0004a340
push dword [ebp - 0x160]
push 0x4c1a4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0004a340
push dword [ebp - 0x164]
push 0x4c1b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0004a340
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0004a578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c190
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.000497bc
ret

Function at 0x4c33c
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 0x4c440
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x220b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x220ba4]
jne 0x4c388
mov eax, esi
mov edx, 0x220ba6
mov ecx, 0x55
call fcn.0004a340
push 0x220b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4c42a
push 0x220b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0004975c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4c3f7
cmp byte [0x220b88], 0
je 0x4c3bc
mov edx, esi
mov eax, ebx
call fcn.0004c220
jmp 0x4c3f7
mov edx, esi
mov eax, ebx
call fcn.0004c024
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4c3f7
cmp dword [esi], 0
je 0x4c3e0
mov eax, esi
mov edx, 0x4c458
call fcn.0004a498
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0004c024
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0004a498
push 0x220b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x220ba4], bx
mov eax, dword [esi]
call fcn.0004a29c
mov ecx, eax
mov eax, 0x220ba6
mov edx, 0xaa
call fcn.0004bea4
push 0x220b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c447
lea eax, [ebp - 4]
call fcn.0004975c
ret