joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f5942fa0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x1f5943075
movdqa xmm0, xmmword [0x1f5a9ab90]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x1f5942fe1
movdqa xmm0, xmmword [0x1f5a9aba0]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x1f59430f7
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x1f59430cb
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x1f5a9a838]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x1f5a9abb0]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x1f598ac20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1f598c040
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1f598c040
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1f598ac90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1f5ca7aa4]
mov r12, rcx
test ebx, ebx
jle 0x1f598adc0
mov rax, qword [0x1f5ca7aa8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1f598acdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1f598ad63
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1f598acc0
mov rcx, r12
call fcn.1f598b410
mov rsi, rax
test rax, rax
je 0x1f598ade2
mov rax, qword [0x1f5ca7aa8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1f598b540
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1f5ca7aa8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1f598adc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1f598ad5c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1f598ad70
add dword [0x1f5ca7aa4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1f5ca7aa8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1f598ad5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1f598ac20
nop dword [rax]
xor ebx, ebx
jmp 0x1f598ace7
mov rax, qword [0x1f5ca7aa8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1f598ac20
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1f598ac20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1f598b080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1f5ca7ae0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1f5ca7ac0]
test rbx, rbx
je 0x1f598b0d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1f598b0cb
test r12, r12
je 0x1f598b0cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1f598b0b0
lea rcx, [0x1f5ca7ae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1f598b410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1f5c01b00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1f598b430
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1f598b438
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1f598b430
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1f598b485
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1f598b47c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1f598b430
add rax, 0x28
cmp rax, r9
jne 0x1f598b468
xor eax, eax
ret

Function at 0x1f598b490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1f5c01b00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1f598b4b0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1f598b4b8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1f598b4b0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1f598b540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1f5c01b00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1f598b560
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1f598b568
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14088a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14088a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14088a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088a06f
add dl, dl
jne 0x14088a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088a0f6
xor eax, eax
add dl, dl
jne 0x14088a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088a1ad
add dl, dl
jne 0x14088a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14088a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14088a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14088a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14088a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14088a07e
mov eax, 1
add dl, dl
jne 0x14088a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14088a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088a0fb
sub eax, ebx
mov ebx, 1
jne 0x14088a14c
mov ecx, 1
add dl, dl
jne 0x14088a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14088a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14088a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14088a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088a15d
cmp eax, 0x7d00
jae 0x14088a19b
cmp eax, 0x500
jb 0x14088a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088a07e
cmp eax, 0x7f
ja 0x14088a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14088a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14088a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x406c10
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x440
mov rbp, rsp
mov ebx, ecx
mov rsi, rdx
test bl, bl
je 0x406c62
movzx ax, bl
add ax, 0x40
mov word [rbp + 0x438], ax
mov word [rbp + 0x43a], 0x3a
mov word [rbp + 0x43c], 0
mov ecx, 0x105
lea rdx, [rbp + 0x24]
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x438]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x105
lea rdx, [rbp + 0x22e]
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406c81
lea rcx, [rbp + 0x24]
call sub.kernel32.dll_SetCurrentDirectoryW
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.004100c0
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret

Function at 0x406f90
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor rax, rax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00406ea0
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00406ea0
cmp qword [rbp + 0x38], 0
je 0x406fd6
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x406fb8
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040e340
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x409940
Capabilities:
Get file size

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
or esi, 0xffffffff
cmp word [rbx + 8], 0xd7b0
jbe 0x409981
cmp word [rbx + 8], 0xd7b3
ja 0x409981
mov rcx, qword [rbx]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x409975
call fcn.00406bf0
jmp 0x40998c
mov eax, esi
xor edx, edx
div dword [rbx + 0xc]
mov rsi, rax
jmp 0x40998c
mov ecx, 0x67
call fcn.00406bd0
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x40bdc0
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.0040c360
mov esi, eax
test sil, sil
jne 0x40bf82
test ebx, ebx
je 0x40bf82
xor rdi, rdi
test r13d, r13d
jle 0x40bea7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40be86
cmp ebx, 0xffffffff
je 0x40be33
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40be33
xor rsi, rsi
jmp 0x40bf82
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40be86
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40be74
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40be74
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40bf82
lea rcx, [rbp + 0x3c]
call fcn.0040b970
sub r13d, 1
test r13d, r13d
jg 0x40be1a
nop
cmp ebx, 0xffffffff
je 0x40bea7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40bea2
xor rsi, rsi
jmp 0x40bf82
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40bddd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40bea7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c030
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00d529a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40bf11
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40bf0e
sub eax, r14d
sub ebx, eax
jmp 0x40bf11
xor rbx, rbx
test sil, sil
je 0x40bf43
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40bf40
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 0x40bf16
mov dil, 1
nop
jmp 0x40bf60
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 0x40bf43
mov dil, 1
test dil, dil
je 0x40beca
nop
test sil, sil
je 0x40bf82
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 0x40dd40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00d520a8], 0
je 0x40ddde
cmp word [0x00d523b8], 0xd7b2
jne 0x40dd73
cmp dword [0x00d523c0], 0
jbe 0x40dd73
lea rcx, [0x00d523b0]
call qword [0x00d523d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00c9e3dc]
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, [0x0040de14]
call fcn.0040f600
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40de00
cmp byte [0x00c9c054], 0
jne 0x40de00
xor rcx, rcx
lea rdx, [0x00c9e3dc]
lea r8, [0x00c9e2ec]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e130
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 [0x00c9c058], 0
je 0x40e161
mov rcx, rsi
mov rdx, rdi
call qword [0x00c9c058]
mov r13, rax
jmp 0x40e177
mov ecx, 0x10
call fcn.00406850
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x00d520a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e0c0]
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 0x40e1bc
mov rcx, r13
call fcn.00406880
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x4127a0
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.0040e340
movzx rax, word [rbp + 0x4e]
cmp word [0x00c9ebe0], ax
ja 0x412888
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00c9efe0]
mov word [rbp + 0x4e], ax
ja 0x412888
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412887
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00c9ebe0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412841
mov ecx, eax
sub ecx, 1
jmp 0x412882
lea rdx, [0x00c9ebe0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412863
mov r8d, eax
add r8d, 1
jmp 0x412882
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00c9ebe8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00412630
jmp 0x412887
cmp ecx, r8d
jae 0x412810
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41296a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41296a
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.004100c0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.004100c0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004100c0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004129c4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004129d4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410540
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e420
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x412be0
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, [0x00d56e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00d56e98], ax
jne 0x412c4b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00d56e9a]
mov r8d, 0x55
call fcn.004100c0
lea rcx, [0x00d56e70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x412d56
lea rcx, [0x00d56e70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e340
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412d10
cmp byte [0x00d56e68], 0
je 0x412ca4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412a70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040e970
jmp 0x412d10
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004127a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e970
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x412d10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x412cef
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00412da4]
call fcn.00410330
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004127a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410330
lea rcx, [0x00d56e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00d56e98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040ffc0
lea rcx, [0x00d56e9a]
mov edx, 0xaa
mov r8, rax
call fcn.00412550
lea rcx, [0x00d56e70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e420
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413780
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.0040e4d0
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.004100c0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410420
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004135a0
test al, al
jne 0x41384e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.004100c0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410420
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004135a0
test al, al
jne 0x41384e
mov rcx, qword [rbp + 0x20]
call fcn.0040e340
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e420
lea rcx, [rbp + 0x70]
call fcn.0040e340
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4138c0
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.0040e4d0
mov rcx, qword [rbp + 0x90]
call fcn.0040e4d0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e340
cmp qword [rbp + 0x90], 0
je 0x413a86
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040e9f0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413971
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x4139ab
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4139a4
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410630
jmp 0x4139ab
sub eax, 1
test eax, eax
jne 0x413976
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00413490
cmp qword [rbp + 0x68], 0
je 0x4139e9
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413640
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040e970
jmp 0x413a85
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00412be0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413640
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040e970
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413a5e
cmp byte [0x00d56e68], 0
jne 0x413a5e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00412be0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413640
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e970
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413a85
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040e970
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e420
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e420
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x414a70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00414a60
mov ebx, eax
test ebx, ebx
je 0x414abb
cmp dword [0x00c9f4a4], 0xffffffff
jne 0x414a94
mov ecx, 0xe2
call fcn.0040dff0
mov ecx, ebx
call fcn.00414a40
test rax, rax
jne 0x414aad
mov ecx, 0xe2
call fcn.0040dff0
jmp 0x414abb
mov ecx, dword [0x00c9f4a4]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret