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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400837e4
cmp r8d, 0xff
jne 0x140083721
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14008370b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xa7740]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400600f0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400600f0
cmp r8d, 0xfb
jne 0x140083733
lea r9, str.WILL
jmp 0x140083771
cmp r8d, 0xfc
jne 0x140083745
lea r9, str.WONT
jmp 0x140083771
cmp r8d, 0xfd
jne 0x140083757
lea r9, [0x1400a8164]
jmp 0x140083771
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400837cd
cmp r10d, 0x27
jg 0x1400837a4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xa7d60]
test r8, r8
jne 0x1400837b4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400600f0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14008378b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400600f0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400600f0
add rsp, 0x38
ret

Function at 0x140083b30
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140083b8f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005ff70
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400836c0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140083d40
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140083ee8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140083da5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140083da5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140083da5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140083ddc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140083e32
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140083e32
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140083e32
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140083e32
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140083e32
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400837f0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140083e94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005ff70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140083bc0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140083ee0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005ff70
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140085650
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400bd080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400856e5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140085746
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14005ff70
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140098e10
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140085801
sub ecx, 1
je 0x140085874
sub ecx, 1
je 0x1400857b0
cmp ecx, 1
je 0x140085793
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400a5bc0]
call fcn.14005ff70
jmp 0x140085874
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140085380
test eax, eax
je 0x140085874
jmp 0x14008571a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140085874
sub rax, rsi
cmp rax, rbp
jae 0x140085874
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400600f0
jmp 0x140085874
cmp r8d, 4
jle 0x140085874
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140085874
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14005fe90
mov esi, eax
test eax, eax
je 0x140085853
mov edx, 5
mov rcx, rbx
call fcn.140086340
mov eax, esi
jmp 0x14008571a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14006e770
mov rcx, r14
call fcn.14006ea50
test eax, eax
je 0x140085718
mov edx, 5
mov rcx, rbx
call fcn.140086340
mov eax, Ordinal_45
jmp 0x14008571a
Function at 0x140098610
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140098652
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140098699
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400986f2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400986b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140098733
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ab34a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ab34b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140098700
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140098858
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400988dc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400988dc
dec r8
sub rdx, 1
jne 0x1400988c2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140099c38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140099c82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140099c82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140099c82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140099c82
cmp dword [rcx + 0x84], 0xe
jbe 0x140099c82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140099c84
xor al, al
add rsp, 0x28
ret
Function at 0x140001270
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov dword [rsp + 0x8c], 0x773a2cc1
add cl, al
sub al, 0x3a
ja 0x140001211
and al, 0x7c

Function at 0x140001280
Capabilities:
Create directory

Disassembly:
pop rax
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
add cl, al
sub al, 0x3a
ja 0x140001211
and al, 0x7c
imul eax, eax
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x70], 0x6c3d907d
mov eax, dword [rsp + 0x8c]
xor eax, 0x773a2ca4
mov rcx, qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x60], rcx
mov ecx, eax
mov rdx, qword [rsp + 0x60]

Function at 0x1400012b8
Capabilities:
Create directory

Disassembly:
call rdx
lea rdx, str.:ec
adc eax, 0x3fb0

Function at 0x1400013c0
Capabilities:
Terminate process

Disassembly:
call qword [rax + 0x38ec8348]
mov qword [rsp + 0x30], 0x1bc1c17b
mov qword [rsp + 0x28], 0x1647810e
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rcx, qword [rsp + 0x28]
sub rcx, 0x420824ac
invalid
invalid
stc
invalid
invalid

Function at 0x1400013f0
Capabilities:
Terminate process

Disassembly:
movabs al, byte [0x4805752424448946]
add esp, 0x38

Function at 0x1400031f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
lea rax, [fcn.1400031f0]
mov ecx, dword [rsp + 0x24]
mov edx, ecx
xor edx, 0xffffffff
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x14], ecx
mov qword [rsp + 8], rax
jmp 0x14000323f
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
mov rdx, qword [rsp + 0x18]
xor rdx, 0xffffffffffffffff
mov r8d, dword [rax + rcx]
mov qword [rsp + 0x18], rdx
cmp r8d, 0x4550
jne 0x14000324f
mov rax, qword [rsp]
add rsp, 0x28
ret
mov rax, qword [rsp + 8]
cmp word [rax], 0x5a4d
mov qword [rsp], rax
je 0x140003213
mov eax, dword [rsp + 0x14]
imul ecx, eax, 0x2c773039
mov dword [rsp + 0x24], ecx
mov rdx, qword [rsp]
add rdx, 0xfffffffffffff000
and rdx, 0xfffffffffffff000
mov qword [rsp + 8], rdx
jmp 0x14000323f

Function at 0x140003280
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
xor eax, eax
mov qword [rsp + 8], rcx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x10]
xor rcx, qword [rsp + 0x10]
mov edx, eax
mov r8d, edx
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 8]
mov r9b, byte [rcx + r8]
mov edx, eax
add edx, 1
cmp r9b, 0
mov dword [rsp], eax
mov dword [rsp + 4], edx
jne 0x14000328f
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x1400032d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x64], 0x1a9c9d8d
mov dword [rsp + 0x60], 0x11da1d56
mov eax, dword [rsp + 0x60]
imul eax, eax, 0x6e2e9bc6
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x50], 0
cmp r8d, 0
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x44], r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r9
jne 0x14000331e
add rsp, 0x68
ret
lea rax, [0x140005260]
imul ecx, dword [rsp + 0x64], 0x1a08ffe7
mov edx, dword [rsp + 0x50]
mov r8d, edx
and r8d, 0xf
mov r8d, r8d
mov r9d, r8d
mov r10, qword [rsp + 0x30]
xor r10, 0x5bccd2da
mov qword [rsp + 0x58], r10
mov r10, qword [rsp + 0x38]
mov dword [rsp + 0x2c], ecx
mov rcx, r10
mov r11, qword [rsp + 0x48]
mov dword [rsp + 0x28], edx
mov rdx, r11
mov r8d, dword [rsp + 0x28]
movzx r9d, byte [rax + r9]
call fcn.140001170
mov rax, qword [rsp + 0x30]
and rax, 0x2e53e841
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x28]
add r8d, 1
mov dword [rsp + 0x60], 0x3ce34e07
mov dword [rsp + 0x54], r8d
mov dword [rsp + 0x50], 0x5cef9e81
mov r8d, dword [rsp + 0x2c]
cmp r8d, 0x7f3a1926
jae 0x14000331e
mov dword [rsp + 0x60], 0xa995b15e
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x44]
cmp eax, ecx
je 0x140003319
jmp 0x14000331e
Function at 0x408080
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.004083d0
mov esi, eax
test sil, sil
jne 0x408242
test ebx, ebx
je 0x408242
xor rdi, rdi
test r13d, r13d
jle 0x408167
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x408146
cmp ebx, 0xffffffff
je 0x4080f3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x4080f3
xor rsi, rsi
jmp 0x408242
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x408146
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x408134
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x408134
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x408242
lea rcx, [rbp + 0x3c]
call fcn.00407d80
sub r13d, 1
test r13d, r13d
jg 0x4080da
nop
cmp ebx, 0xffffffff
je 0x408167
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x408162
xor rsi, rsi
jmp 0x408242
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40809d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408167
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.004082f0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0044c990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x4081d1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x4081ce
sub eax, r14d
sub ebx, eax
jmp 0x4081d1
xor rbx, rbx
test sil, sil
je 0x408203
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x408200
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4081d6
mov dil, 1
nop
jmp 0x408220
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408203
mov dil, 1
test dil, dil
je 0x40818a
nop
test sil, sil
je 0x408242
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x409bc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0044c098], 0
je 0x409c5e
cmp word [0x0044c3a8], 0xd7b2
jne 0x409bf3
cmp dword [0x0044c3b0], 0
jbe 0x409bf3
lea rcx, [0x0044c3a0]
call qword [0x0044c3c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0044677c]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00409c94]
call fcn.0040a9d0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409c80
cmp byte [0x0044503a], 0
jne 0x409c80
xor rcx, rcx
lea rdx, [0x0044677c]
lea r8, [0x0044668c]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40c280
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00450c80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00450ca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00450c78], al
cmp byte [0x00450c78], 0
je 0x40c31f
lea rcx, [0x0040c324]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040c33e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00450c60], rax
lea rcx, [0x0040c324]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040c35c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00450c68], rax
lea rcx, [0x0040c324]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040c37a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00450c70], rax
add rsp, 0x28
ret
Function at 0x40c5f0
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00409ff0
movzx rax, word [rbp + 0x4e]
cmp word [0x00446c48], ax
ja 0x40c6d8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00447048]
mov word [rbp + 0x4e], ax
ja 0x40c6d8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40c6d7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00446c48]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40c691
mov ecx, eax
sub ecx, 1
jmp 0x40c6d2
lea rdx, [0x00446c48]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40c6b3
mov r8d, eax
add r8d, 1
jmp 0x40c6d2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00446c50]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040c490
jmp 0x40c6d7
cmp ecx, r8d
jae 0x40c660
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40c7ba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c7ba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040ad60
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040ad60
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040ad60
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040c814]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040c824]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040b120
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a0d0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40ca30
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00450c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00450ca8], ax
jne 0x40ca9b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00450caa]
mov r8d, 0x55
call fcn.0040ad60
lea rcx, [0x00450c80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cba6
lea rcx, [0x00450c80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00409ff0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb60
cmp byte [0x00450c78], 0
je 0x40caf4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040c8c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040a4e0
jmp 0x40cb60
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040c5f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a4e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40cb60
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40cb3f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040cbf4]
call fcn.0040af10
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040c5f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040af10
lea rcx, [0x00450c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00450ca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040acb0
lea rcx, [0x00450caa]
mov edx, 0xaa
mov r8, rax
call fcn.0040c3b0
lea rcx, [0x00450c80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a0d0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40d5d0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040a180
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040ad60
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040b000
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040d3f0
test al, al
jne 0x40d69e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040ad60
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040b000
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040d3f0
test al, al
jne 0x40d69e
mov rcx, qword [rbp + 0x20]
call fcn.00409ff0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040a0d0
lea rcx, [rbp + 0x70]
call fcn.00409ff0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret