joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62d1d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push esi
mov esi, ecx
lea ecx, [ebp - 0x278]
call fcn.0062d4f6
push 0
push dword [esi + 8]
push dword [esi]
call fcn.006326c8
add esp, 0xc
lea eax, [ebp - 0x380]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0062d302
test eax, eax
je 0x62d21a
push 6
pop eax
jmp 0x62d2fd
push ebx
push edi
push dword [esi]
lea eax, [ebp - 1]
push 1
pop ebx
push ebx
push ebx
push eax
call fcn.00632621
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.00632621
push dword [esi]
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
xor edi, 0x45aa
push ebx
push 4
push eax
call fcn.00632621
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
xor eax, 0x45aa
push ebx
push 0x10
mov dword [ecx], eax
push dword [esi]
call fcn.006326c8
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0062e1e3
add esp, 0x40
mov dword [ebp + 0x10], eax
push edi
call fcn.0062e1e3
push dword [esi]
mov dword [ebp + 8], eax
push ebx
push edi
push eax
call fcn.00632621
mov eax, dword [esi + 0x110]
add esp, 0x14
add eax, 0x22af
mov ecx, esi
push eax
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0062cff2
cmp byte [ebp - 1], bl
jne 0x62d2e5
lea ecx, [ebp - 0x278]
call fcn.0062d4f6
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], eax
call fcn.0062d522
push edi
call fcn.0062f9bf
pop ecx
jmp 0x62d2f1
push dword [ebp + 0x10]
call fcn.0062f9bf
pop ecx
mov dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
pop edi
pop ebx
mov dword [eax], ecx
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x62d302
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 1
pop ebx
mov esi, ecx
mov byte [ebp - 1], bl
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push ebx
push eax
call fcn.00632621
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push 0x16fa
push 4
push eax
call fcn.0062cff2
and byte [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push 0x49c018
push eax
call fcn.006327e0
pop ecx
test eax, eax
pop ecx
jne 0x62d433
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00632621
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29bc
lea eax, [ebp - 0x11c]
push edi
push ebx
push eax
call fcn.00632621
add esp, 0x20
lea eax, [edi + 0xa25e]
mov ecx, esi
push eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0062cff2
push dword [esi]
and byte [ebp + edi - 0x11c], 0
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00632621
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0x29ac
push edi
push ebx
push dword [ebp + 0xc]
call fcn.00632621
add esp, 0x20
lea eax, [edi + 0xf25e]
mov ecx, esi
push eax
push edi
push dword [ebp + 0xc]
call fcn.0062cff2
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and byte [edi + eax], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.006327e0
pop ecx
test eax, eax
pop ecx
je 0x62d44a
push ebx
push ebx
push dword [esi]
call fcn.006326c8
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.00632621
xor dword [ebp - 8], 0x45aa
push ebx
push 4
push dword [esi]
call fcn.006326c8
push ebx
push 0x10
push dword [esi]
call fcn.006326c8
push ebx
push dword [ebp - 8]
push dword [esi]
call fcn.006326c8
add esp, 0x40
jmp 0x62d437
and byte [ebp - 1], 0
cmp byte [ebp - 1], bl
je 0x62d316
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x62d443

Function at 0x62d48e
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, ecx
push esi
push edi
mov edi, eax
or dword [eax + 0x400], 0xffffffff
xor esi, esi
mov edx, esi
push 8
shl edx, 0x18
pop ecx
test edx, 0x80000000
je 0x62d4b7
add edx, edx
xor edx, 0x4c11db7
jmp 0x62d4b9
shl edx, 1
dec ecx
jne 0x62d4a5
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x100
jl 0x62d49d
pop edi
pop esi
ret

Function at 0x62d641
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x62d666
mov eax, dword [esi + 0xc]
push 8
add eax, dword [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00632870
add esp, 0xc
jmp 0x62d679
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00632621
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
shl eax, 8
or eax, ecx
add dword [esi + 0xc], 8
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
and byte [ebp - 4], 0
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
push 0x49c020
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.006327e0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop esi
leave
ret 4
Function at 0x684b10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x49f988], eax
mov edx, 1
mov eax, 0x49f988
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a0344
jl 0x684b24
mov dword [0x49d318], 1
mov dword [0x4a2504], 1
pop edi
ret
Function at 0x401dd0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xffffffff
push eax
xor esi, esi
xor ebx, ebx
push 0x28
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x401f2a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 3
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401f2a
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x401f2a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 3
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401f2a
mov dword [ebp - 0x34], esi
cmp dword [ebx], esi
jbe 0x401f2a
add ebx, 4
mov eax, dword [ebx + 8]
mov edi, 2
movq xmm0, qword [ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x401eb8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401f21
mov eax, dword [ebp - 0x2c]
mov ecx, 0xffffffff
inc eax
mov dword [ebp - 0x2c], eax
mul edi
cmovb eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
xor esi, esi
test edi, edi
je 0x401f21
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x401f21
push str.SeImpersonatePrivilege
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x401f55
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [ebp - 0x34]
add esp, 4
mov eax, dword [ebp - 0x30]
inc edi
add ebx, 0xc
mov dword [ebp - 0x34], edi
cmp edi, dword [eax]
jb 0x401e7a
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401f38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401f42
push ebx
call edi
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fc9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ecx, dword [ebp - 0xc]
push esi
push esi
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401f21
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, 1
call edi
add esp, 4
jmp 0x401f27
Function at 0x405c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
movzx eax, bx
mov dword [ebp - 0x34], eax
mov esi, ecx
cmp di, bx
jne 0x405c4d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406fc9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x405c87
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x405c87
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406fc9
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x405d57
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x405cb4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405ce7
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406fc9
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x405d26
sub eax, 1
je 0x405d26
sub eax, 2
jne 0x405d57
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x405cbf
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x405d44
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x405d57
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, ax
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fc9
mov esp, ebp
pop ebp
ret 4
Function at 0x406140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x406204
cmp byte [esi + 0x3e], 0
je 0x406204
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4061f2
mov ecx, dword [esi + 0x38]
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 dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4061b9
sub eax, 1
je 0x4061bd
sub eax, 2
jne 0x4061f2
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406fc9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4061db
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4061f2
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406fc9
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406fc9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00406fc9
mov esp, ebp
pop ebp
ret

Function at 0x407abb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407afa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407afa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407afa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407afa
cmp dword [ecx + 0x74], 0xe
jbe 0x407afa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x7ffe5498
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
call 0x7ffe54a3
pop edx
xor dx, dx
add edx, 0xd5e0
xor ecx, ecx
mov cl, 0x1e
xor byte [ecx + edx], 0xb7
loop 0x7ffe54b1
push dword fs:[0x24]
pop dword [edx + 0xa]
mov cl, 0xff
push edx
loop 0x7ffe54c3
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
push 0
push 0
push 0
nop
push 0
push 0x30
inc esi
dec esi
push 0x20
push 0
push eax
pop eax
push 0
clc
add edx, 0xffff7f38
push edx
add al, 0
push edx
push es
pop ds
push 0
clc
call dword [edx + 0x820b]
stc
add esp, 0x3f8
xor eax, eax
and al, 0xff
inc eax
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x137a3bbc
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x53977f1b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x13145058
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x13162b0c
cmp dword [ebp + 0xc], 2
jl 0x1314506c
mov ebx, 0x13162b3c
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 0x131450a4
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x13141f54
mov dword [0x13160014], eax
mov eax, 0x13141f5c
mov dword [0x13160018], eax
mov eax, ebx
call fcn.13144f3c
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 0x131450d9
cmp al, 3
jge 0x131450d9
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x131450ea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x131450f5
call dword [ecx + eax*4]
cmp dword [0x13160034], 0
jne 0x1314510b
mov byte [0x1316003c], 1
fnstcw word [0x1315e018]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.131453a8
call fcn.13144fec
ret 4

Function at 0x13145310
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1316004c], 0
je 0x13145377
cmp word [0x13160338], 0xd7b2
jne 0x13145339
cmp dword [0x13160340], 0
jbe 0x13145339
mov eax, 0x13160334
call dword [0x13160350]
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, 0x131453a4
call fcn.13145b50
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x1315e022], 0
jne 0x13145393
push 0
push 0x1315e9b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x13145534
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 [0x1315e024], 0
je 0x1314555f
mov edx, edi
mov eax, esi
call dword [0x1315e024]
mov ebx, eax
jmp 0x13145570
mov eax, 8
call fcn.13143b8c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x1316004d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x131454fc
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 0x131455a0
mov eax, ebx
call fcn.13143ba8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x13146d18
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 0x13146e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.1314565c
cmp si, word [0x1315e9f0]
jb 0x13146db0
cmp si, word [0x1315ebf0]
ja 0x13146db0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x13146db0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x1315e9f0]
jae 0x13146d8a
mov edi, ebx
dec edi
jmp 0x13146dab
cmp si, word [ebx*8 + 0x1315e9f0]
jbe 0x13146d9a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x13146dab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x1315e9f4]
call fcn.13146c38
jmp 0x13146db0
cmp edi, dword [ebp - 8]
jae 0x13146d74
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x13146e5f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x13146e5f
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.13145ce8
push dword [ebp - 0x160]
push 0x13146e98
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.13145ce8
push dword [ebp - 0x164]
push 0x13146ea8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.13145ce8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.13145ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13146e84
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.131456bc
ret
Function at 0x13147030
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 0x13147133
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x13162b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x13162b94]
jne 0x1314707c
mov eax, esi
mov edx, 0x13162b96
mov ecx, 0x55
call fcn.13145ce8
push 0x13162b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x1314711d
push 0x13162b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.1314565c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x131470eb
cmp byte [0x13162b78], 0
je 0x131470b0
mov edx, esi
mov eax, ebx
call fcn.13146f14
jmp 0x131470eb
mov edx, esi
mov eax, ebx
call fcn.13146d18
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x131470eb
cmp dword [esi], 0
je 0x131470d4
mov eax, esi
mov edx, 0x1314714c
call fcn.13145dc0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.13146d18
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.13145dc0
push 0x13162b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x13162b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.13145c54
push eax
push 0x13162b96
call sub.kernel32.dll_lstrcpynW
push 0x13162b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314713a
lea eax, [ebp - 4]
call fcn.1314565c
ret