joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001dc4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, 1
mov rdi, rcx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [rsp + 0x20], 0
mov edx, ebx
lea r15d, [rbx + 1]
mov ecx, r15d
lea r8d, [rbx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140001f1d
lea r9, [rbp - 0x1c]
mov dword [rbp - 0x1c], ebx
mov r8d, ebx
mov dword [rsp + 0x20], 4
lea edx, [rbx + 5]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140001f1d
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
mov edx, pe_overlay
mov dword [rbp - 0x20], ebx
lea r8d, [rbx - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x140001f31
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x18], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x16], ax
cmp byte [rdi + 0x4a], bl
je 0x140001e97
and dword [rbp - 0x14], ebx
jmp 0x140001ea5
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140001f09
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140001f1d
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
and dword [rbp - 0x20], 0
mov edx, pe_overlay
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140001f1d
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140001f31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400053e0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140001f54
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
xor esi, esi
mov rdi, rcx
mov dword [r11 - 0x50], r14d
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, r14d
lea ebx, [rsi + 6]
lea r12d, [r14 + 0x16]
mov r8d, ebx
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1400020ba
lea r9, [rbp - 0x2c]
mov dword [rbp - 0x2c], r14d
mov r8d, r14d
mov dword [rsp + 0x20], 4
mov edx, ebx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400020ba
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, pe_overlay
mov dword [rbp - 0x30], r14d
lea r8d, [r14 - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x1400020ce
xor eax, eax
mov word [rbp - 0x26], si
mov dword [rbp - 0x24], esi
mov dword [rbp - 0x10], esi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp byte [rdi + 0x4a], sil
jne 0x140002032
mov byte [rbp - 0x11], r14b
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x28], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r14d, 0x1c
mov word [rbp - 0x26], ax
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400020a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x1400020ba
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, pe_overlay
mov dword [rbp - 0x30], esi
lea r8d, [r14 - 0x21]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400020ba
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400020ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400053e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x1400018fc
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
xor esi, dword [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor ch, byte [rsi]
xor esi, dword [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor ch, byte [rsi]
Function at 0x40b4f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.0040ba90
mov esi, eax
test sil, sil
jne 0x40b6b2
test ebx, ebx
je 0x40b6b2
xor rdi, rdi
test r13d, r13d
jle 0x40b5cf
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40b5ae
cmp ebx, 0xffffffff
je 0x40b55b
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40b55b
xor rsi, rsi
jmp 0x40b6b2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40b5ae
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40b5a0
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40b5a0
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40b6b2
call fcn.0040bc20
sub r13d, 1
test r13d, r13d
jg 0x40b542
nop
cmp ebx, 0xffffffff
je 0x40b5cf
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40b5ca
xor rsi, rsi
jmp 0x40b6b2
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40b50b
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b5cf
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040b760
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007439a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40b63c
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40b639
sub eax, r14d
sub ebx, eax
jmp 0x40b63c
xor rbx, rbx
test sil, sil
je 0x40b670
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40b66d
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b641
mov dil, 1
nop
jmp 0x40b68f
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b670
mov dil, 1
test dil, dil
je 0x40b5f4
nop
test sil, sil
je 0x40b6b2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x40d390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007430a8], 0
je 0x40d42e
cmp word [0x007433b8], 0xd7b2
jne 0x40d3c3
cmp dword [0x007433c0], 0
jbe 0x40d3c3
lea rcx, [0x007433b0]
call qword [0x007433d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x006ff840]
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, [0x0040d464]
call fcn.0040e6f0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40d450
cmp byte [0x006fe052], 0
jne 0x40d450
xor rcx, rcx
lea rdx, [0x006ff840]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d720
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x006fe058], 0
je 0x40d751
mov rcx, rsi
mov rdx, rdi
call qword [0x006fe058]
mov r13, rax
jmp 0x40d767
mov ecx, 0x10
call fcn.004083c0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007430a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040d6b0]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40d7ac
mov rcx, r13
call fcn.004083f0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x410ec0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00747c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00747cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00747c88], al
cmp byte [0x00747c88], 0
je 0x410f5f
lea rcx, [0x00410f64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00410f7e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00747c70], rax
lea rcx, [0x00410f64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00410f9c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00747c78], rax
lea rcx, [0x00410f64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00410fba]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00747c80], rax
add rsp, 0x28
ret
Function at 0x4111f0
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.0040d930
movzx rax, word [rbp + 0x4e]
cmp word [0x006fff58], ax
ja 0x4112d8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00700358]
mov word [rbp + 0x4e], ax
ja 0x4112d8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x4112d7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x006fff58]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x411291
mov ecx, eax
sub ecx, 1
jmp 0x4112d2
lea rdx, [0x006fff58]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x4112b3
mov r8d, eax
add r8d, 1
jmp 0x4112d2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x006fff60]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00411090
jmp 0x4112d7
cmp ecx, r8d
jae 0x411260
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x4113ba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4113ba
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.0040ed90
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040ed90
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040ed90
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00411414]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00411424]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040f210
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040da10
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x411630
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, [0x00747c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00747cb8], ax
jne 0x41169b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00747cba]
mov r8d, 0x55
call fcn.0040ed90
lea rcx, [0x00747c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4117a7
lea rcx, [0x00747c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040d930
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x411760
cmp byte [0x00747c88], 0
je 0x4116f4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.004114c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040df60
jmp 0x411760
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004111f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040df60
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x411760
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41173f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004117f4]
call fcn.0040f000
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004111f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040f000
lea rcx, [0x00747c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00747cb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040ecc0
lea rcx, [0x00747cba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00747c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040da10
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4121b0
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.0040dac0
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.0040ed90
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040f0f0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00411fd0
test al, al
jne 0x41227e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040ed90
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040f0f0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00411fd0
test al, al
jne 0x41227e
mov rcx, qword [rbp + 0x20]
call fcn.0040d930
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040da10
lea rcx, [rbp + 0x70]
call fcn.0040d930
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4122f0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040dac0
mov rcx, qword [rbp + 0x90]
call fcn.0040dac0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040d930
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040dfe0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x412393
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x4123cd
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4123c6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
movsxd r9, eax
call fcn.0040f300
jmp 0x4123cd
sub eax, 1
test eax, eax
jne 0x412398
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00411ec0
cmp qword [rbp + 0x68], 0
je 0x41240b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00412070
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040df60
jmp 0x4124a7
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00411630
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00412070
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040df60
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x412480
cmp byte [0x00747c88], 0
jne 0x412480
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00411630
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00412070
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040df60
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4124a7
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004121b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040df60
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040da10
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040da10
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4131e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x413200
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x413224
cmp eax, 1
jae 0x413229
cmp ecx, 5
jbe 0x413235
mov dword [0x007439b0], 0x7f
jmp 0x41323f
mov dword [0x007439b0], 0x409
add rsp, 0x28
ret
Function at 0x4149e0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004149d0
mov ebx, eax
test ebx, ebx
je 0x414a2b
cmp dword [0x00700d40], 0xffffffff
jne 0x414a04
mov ecx, 0xe2
call fcn.0040d630
mov ecx, ebx
call fcn.004149b0
test rax, rax
jne 0x414a1d
mov ecx, 0xe2
call fcn.0040d630
jmp 0x414a2b
mov ecx, dword [0x00700d40]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x414a40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00747d64], 0
je 0x414a7b
mov ecx, dword [0x00700d40]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x414a8f
call fcn.004149e0
mov ecx, dword [0x00700d40]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x414a8f
mov rax, qword [0x00747d98]
jmp 0x414a8f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00700d40]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x430940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040ecc0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4309f2
mov ecx, eax
test ecx, 0x400
je 0x4309e7
test sil, sil
jne 0x43097f
mov al, 1
jmp 0x430a1c
test eax, 0x10
je 0x43098f
xor rax, rax
jmp 0x430a1c
mov rcx, rbx
call fcn.0040ecc0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x4309da
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x430a1c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x430a1c
test eax, 0x10
sete al
jmp 0x430a1c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x430a15
cmp eax, 3
je 0x430a15
cmp eax, 0x7b
je 0x430a15
mov rcx, rbp
mov rdx, rbx
call fcn.004308f0
test al, al
jne 0x430a1a
xor rax, rax
jmp 0x430a1c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x437820
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x437847
movzx rax, word [rbp + 0x2c]
jmp 0x437849
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret