joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff5d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ff60a
call fcn.004fef62
mov dword [eax], esi
call fcn.004fef4f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004feecc
add esp, 0x14
push 0x16
pop eax
jmp 0x4ff65f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ff5e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ff637
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004fef75
pop ecx
call fcn.004fef4f
mov eax, dword [eax]
jmp 0x4ff65f
test al, 0x10
jne 0x4ff65d
test al, 1
je 0x4ff65d
test byte [ebp + 0xc], 2
je 0x4ff65d
call fcn.004fef62
mov dword [eax], 5
call fcn.004fef4f
mov dword [eax], 0xd
jmp 0x4ff62e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x50025a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56ca10]
jne 0x500264
repz ret
jmp fcn.005084fc

Function at 0x50bf3f
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.004fe644
and dword [ebp - 4], 0
cmp dword [0x56ec90], 0
mov ebx, eax
jne 0x50bff0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x50c0a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x50c0a1
push eax
call fcn.004fe5d2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x56ec90], eax
call esi
push eax
call fcn.004fe5d2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x56ec94], eax
call esi
push eax
call fcn.004fe5d2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x56ec98], eax
call esi
push eax
call fcn.004fe5d2
pop ecx
mov dword [0x56eca0], eax
test eax, eax
je 0x50bff0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fe5d2
pop ecx
mov dword [0x56ec9c], eax
mov eax, dword [0x56ec9c]
cmp eax, ebx
je 0x50c048
cmp dword [0x56eca0], ebx
je 0x50c048
push eax
call fcn.004fe64d
push dword [0x56eca0]
mov esi, eax
call fcn.004fe64d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x50c048
test edi, edi
je 0x50c048
call esi
test eax, eax
je 0x50c03f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x50c03f
test byte [ebp - 0xc], 1
jne 0x50c048
or dword [ebp + 0x10], 0x200000
jmp 0x50c081
mov eax, dword [0x56ec94]
cmp eax, ebx
je 0x50c081
push eax
call fcn.004fe64d
pop ecx
test eax, eax
je 0x50c081
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x50c081
mov eax, dword [0x56ec98]
cmp eax, ebx
je 0x50c081
push eax
call fcn.004fe64d
pop ecx
test eax, eax
je 0x50c081
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56ec90]
call fcn.004fe64d
pop ecx
test eax, eax
je 0x50c0a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x50c0a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50e750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x56c254], 0
mov byte [0x56c258], 0
mov dword [0x56c248], 0xde7
mov dword [0x56c24c], 0x22fd
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x56c250], 0
mov dword [ebp - 0x1c], eax
jmp 0x50e85d
mov eax, 0x100
mov dword [0x56c25c], 0
mov dword [0x56c24c], 0x1bb5
mov ecx, dword [0x56c254]
mov edx, dword [0x56c250]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x56c25c], edi
mov dword [0x56c24c], 0x938
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x56c254], edx
mov ecx, dword [0x56c250]
mov bl, byte [esi + ecx]
mov byte [0x56c258], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x56c258]
mov ecx, dword [0x56c254]
mov byte [esi + ecx], bl
mov dword [0x56c24c], 0x42e
mov dword [0x56c248], 0x178b
mov ecx, dword [0x56c250]
add ecx, 1
mov dword [0x56c250], ecx
cmp ecx, 0x100
jl 0x50e7a4
jmp 0x50e89c
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x56c250]
add eax, 1
mov dword [0x56c250], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x50e85d
mov dword [0x56c248], 0xbd0
mov dword [0x56c250], 0
jmp 0x50e7a4
mov dword [0x56c248], 0xa6
mov dword [0x56c24c], 0x1ca3
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x50e8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x56c24c], 0x8f6
mov dword [0x56c248], 0xfffff6fa
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x477
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x50e8fd
lea eax, [0x54a474]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x56c24c], 0xb99
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.0050ecf0
mov eax, dword [0x56c24c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffff64c
mov dword [0x56c248], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0050e480
mov ecx, eax
mov dword [0x56c268], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x56c24c]
add edx, 0xffffef93
mov dword [0x56c248], edx
mov edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x4c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
call fcn.0050ead0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x58]
add edx, 1
cmp edx, 0x477
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
jne 0x50e9e0
mov dword [0x56c248], 0x23de
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], ecx
call fcn.0050f040
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x26481
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [0x56c248], 0x26a1
mov dword [edx + 4], 0x150c00
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1b307
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f60
mov dword [0x56c24c], 0x1a84
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x50eb60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x56c24c], 0x12cc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x56c250], 0
mov dword [0x56c254], 0
mov dword [0x56c260], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x50ecdc
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x56c24c], 0x79c
mov edx, dword [0x56c250]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x56c250], edx
mov dword [0x56c248], 0x11e9
mov esi, dword [0x56c254]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x56c254], edx
mov dword [0x56c248], 0x18c
mov ecx, dword [0x56c250]
mov bl, byte [edi + ecx]
mov byte [0x56c258], bl
mov dword [0x56c248], 0x82
mov ecx, dword [0x56c254]
mov bl, byte [edi + ecx]
mov ecx, dword [0x56c250]
mov byte [edi + ecx], bl
mov bl, byte [0x56c258]
mov ecx, dword [0x56c254]
mov byte [edi + ecx], bl
mov ecx, dword [0x56c24c]
add ecx, 0xffffede2
mov dword [0x56c248], ecx
mov ecx, dword [0x56c250]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x56c254]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x56c260], edx
mov dword [0x56c24c], 0x9b0
mov dword [0x56c248], 0xeba
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov dword [0x56c248], 0x15cf
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x50ebbd
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x50ee80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [0x56c248], 0x2505
lea eax, [fcn.0050ee80]
mov dword [ebp - 4], eax
jmp 0x50ee9b
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x50eecc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov byte [ebp - 9], dl
mov al, byte [ebp - 9]
test al, 1
jne 0x50eec4
jmp 0x50eecc
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x56c24c], 0x1296
mov dword [ebp - 4], eax
jmp 0x50ee9b
Function at 0x50f3f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [0x56c248], 0x2ca5
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [0x56c248], 0x261f
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x50f4e6
mov eax, dword [0x56c24c]
add eax, 0xffffec0d
mov dword [0x56c248], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x15], dl
mov al, byte [ebp - 0x15]
test al, 1
jne 0x50f520
jmp 0x50f462
mov eax, 0x1567
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jmp 0x50f590
mov dword [0x56c248], 0x17cf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x50f542
jmp 0x50f462
mov eax, dword [ebp - 0x24]
mov dword [0x56c24c], 0x6af
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x50f4fe
jmp 0x50f462
mov dword [0x56c248], 0x6eb
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], cl
mov al, byte [ebp - 0x2d]
test al, 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], edx
jne 0x50f4e6
jmp 0x50f493
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
je 0x50f493
jmp 0x50f4b1
mov dword [0x56c248], 0x1f57
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x50f433
jmp 0x50f462
mov dword [0x56c24c], 0x681
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x50f474
jmp 0x50f462
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x50f462
mov dword [0x56c248], 0x23a3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x34], ecx
mov eax, 0x5b7
mov ecx, 1
mov edx, dword [ebp - 0x34]
cmp word [edx], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x50f462
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [0x56c248], ecx
add esp, 0x34
pop ebp
ret
Function at 0x4075d8
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.00409ce0
test esi, esi
jne 0x40760e
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.00409e78
jmp 0x40762c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004074b8
mov edi, eax
test esi, esi
je 0x40762c
cmp dword [ebx], 0
je 0x40762c
dec esi
jmp 0x407615
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40885c
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.00408d1c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089e5
test edi, edi
je 0x4089e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408925
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408900
cmp edi, 0xffffffff
je 0x4088c1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088c1
mov byte [esp], 0
jmp 0x4089e5
cmp dword [esi], 1
jg 0x408900
cmp dword [esi], 0
jne 0x4088f2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4088f2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089e5
lea eax, [esp + 0xc]
call fcn.00408518
dec ebp
test ebp, ebp
jg 0x4088a6
cmp edi, 0xffffffff
je 0x408925
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408923
mov byte [esp], 0
jmp 0x4089e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40886a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408925
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a60
mov edx, eax
mov ebx, dword [0x5fc900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408989
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408987
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408989
xor edi, edi
cmp byte [esp], 0
je 0x4089af
mov ebx, dword [esi]
test bl, 1
jne 0x4089c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40898f
mov byte [esp + 1], 1
jmp 0x4089c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089af
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40893c
cmp byte [esp], 0
je 0x4089e5
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 0x409674
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5feba0
cmp dword [ebp + 0xc], 2
jl 0x409688
mov ebx, 0x5febd0
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 0x4096c0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405274
mov dword [0x5fc01c], eax
mov eax, 0x40527c
mov dword [0x5fc020], eax
mov eax, ebx
call fcn.00409558
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 0x4096f5
cmp al, 3
jge 0x4096f5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409706
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409711
call dword [ecx + eax*4]
cmp dword [0x5fc040], 0
jne 0x409727
mov byte [0x5fc048], 1
fnstcw word [0x5f402c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004099d4
call fcn.00409608
ret 4

Function at 0x40993c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fc05c], 0
je 0x4099a3
cmp word [0x5fc34c], 0xd7b2
jne 0x409965
cmp dword [0x5fc354], 0
jbe 0x409965
mov eax, 0x5fc348
call dword [0x5fc364]
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, 0x4099d0
call fcn.0040a514
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f4036], 0
jne 0x4099bf
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409ba0
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 [0x5f4038], 0
je 0x409bcb
mov edx, edi
mov eax, esi
call dword [0x5f4038]
mov ebx, eax
jmp 0x409bdc
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fc05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b68
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 0x409c0c
mov eax, ebx
call fcn.00406e8c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d7dc
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 0x40d943
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ce0
cmp si, word [0x5f4a18]
jb 0x40d874
cmp si, word [0x5f4c18]
ja 0x40d874
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d874
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f4a18]
jae 0x40d84e
mov edi, ebx
dec edi
jmp 0x40d86f
cmp si, word [ebx*8 + 0x5f4a18]
jbe 0x40d85e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d86f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f4a1c]
call fcn.0040d6fc
jmp 0x40d874
cmp edi, dword [ebp - 8]
jae 0x40d838
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d923
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d923
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.0040a814
push dword [ebp - 0x160]
push 0x40d960
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a814
push dword [ebp - 0x164]
push 0x40d970
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a814
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d94a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d40
pop eax
jmp eax
Function at 0x40daf8
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 0x40dbfe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5fec18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5fec30]
jne 0x40db44
mov eax, esi
mov edx, 0x5fec32
mov ecx, 0x55
call fcn.0040a814
push 0x5fec18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dbe6
push 0x5fec18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409ce0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dbb3
cmp byte [0x5fec14], 0
je 0x40db78
mov edx, esi
mov eax, ebx
call fcn.0040d9dc
jmp 0x40dbb3
mov edx, esi
mov eax, ebx
call fcn.0040d7dc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40dbb3
cmp dword [esi], 0
je 0x40db9c
mov eax, esi
mov edx, 0x40dc18
call fcn.0040a96c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d7dc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a96c
push 0x5fec18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5fec30], bx
mov eax, dword [esi]
call fcn.0040a760
mov ecx, eax
mov eax, 0x5fec32
mov edx, 0xaa
call fcn.0040d65c
push 0x5fec18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc05
lea eax, [ebp - 4]
call fcn.00409ce0
pop eax
jmp eax