joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001720
Capabilities:
Parse pe header

Disassembly:
jmp 0x140001720
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1b0
lea rbp, [rsp + 0x20]
lea rcx, [0x140009166]
call fcn.140001073
nop
cmp qword [rbp + 0x1b0], 0
je 0x14000175a
mov eax, dword [rbp + 0x1b8]
test rax, rax
jne 0x140001761
xor eax, eax
jmp 0x1400018d7
mov rax, qword [rbp + 0x1b0]
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001789
xor eax, eax
jmp 0x1400018d7
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp dword [rax], 0x4550
je 0x1400017b2
xor eax, eax
jmp 0x1400018d7
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0x90]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov dword [rbp + 0x130], 0
jmp 0x140001854
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x130], eax
jae 0x1400018d5
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x118]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x140], rax
mov rcx, qword [rbp + 0x138]
call fcn.140001050
cmp dword [rbp + 0x1b8], eax
jne 0x1400018d0
mov rax, qword [rbp + 0x140]
jmp 0x1400018d7
jmp 0x140001846
xor eax, eax
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001960
Capabilities:
Parse pe header

Disassembly:
jmp 0x140001960
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x140009229]
call fcn.140001073
nop
mov rax, qword [rbp + 0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000199b
xor eax, eax
jmp 0x1400019eb
mov rax, qword [rbp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax], 0x4550
je 0x1400019c1
xor eax, eax
jmp 0x1400019eb
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x68]
mov qword [rcx], rax
mov eax, 1
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x14003ca00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003ca0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003ca1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003ca05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003ca35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003ca22
sub eax, 3
jb 0x14003ca4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003ca86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003ca76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003ca74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003ca63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003c9c2
jmp 0x14003ca0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003cad2
cmp rsi, rcx
jae 0x14003cada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003cab9
cmp al, 0x8f
ja 0x14003cab9
cmp byte [rsi - 2], 0xf
je 0x14003cabf
sub al, 0xe8
cmp al, 1
ja 0x14003caa3
cmp rsi, rcx
jae 0x14003cada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003caa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003cada
lodsb al, byte [rsi]
jmp 0x14003cab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39000]
mov eax, dword [rdi]
or eax, eax
je 0x14003cb43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x40e8c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003cae7
jns 0x14003cb1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003cb26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003cb3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003cb07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003cb9b
sub rsp, 0xffffffffffffff80
jmp 0x1400242ac
Function at 0x140001a60
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
lea rax, str.explorer.exe
xor r15d, r15d
mov qword [rsp + 0x70], rax
mov r14d, r15d
lea rax, str.ctfmon.exe
mov qword [rsp + 0x78], rax
mov rsi, qword [rsp + r14*8 + 0x70]
mov edi, r15d
nop dword [rax]
cmp edi, 0x32
jge 0x140001c52
xor edx, edx
mov dword [rbp - 0x80], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x80]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140001b15
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140001b15
mov rdx, rsi
lea rcx, [rbp - 0x54]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001b2d
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140001af2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001ab0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp - 0x78]
test ebx, ebx
je 0x140001b1e
xorps xmm0, xmm0
mov qword [rsp + 0x58], r15
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001bb6
lea r8, [rsp + 0x64]
mov dword [rsp + 0x60], 1
lea rdx, str.SeDebugPrivilege
mov dword [rsp + 0x6c], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001bab
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001c4b
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x54], r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140001c3b
mov dword [rsp + 0x50], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jne 0x140001c3b
mov rcx, rbx
call section..text
mov rcx, rbx
test al, al
je 0x140001c2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14
cmp r14, 2
jl 0x140001aa1
xor eax, eax
jmp 0x140001c57
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff8
jmp 0x140001c57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x140001c57
mov eax, 0xfffffffe
jmp 0x140001c57
mov eax, 0xffffffff
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x408d50
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 0x408da2
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 0x408dc1
lea rcx, [rbp + 0x24]
call sub.kernel32.dll_SetCurrentDirectoryW
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.00412350
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4090d0
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.00408fe0
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00408fe0
cmp qword [rbp + 0x38], 0
je 0x409116
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x4090f8
nop
nop
lea rcx, [rbp + 0x38]
call fcn.004104c0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x40df70
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.0040e510
mov esi, eax
test sil, sil
jne 0x40e132
test ebx, ebx
je 0x40e132
xor rdi, rdi
test r13d, r13d
jle 0x40e04f
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40e02e
cmp ebx, 0xffffffff
je 0x40dfdb
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40dfdb
xor rsi, rsi
jmp 0x40e132
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40e02e
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40e020
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40e020
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40e132
call fcn.0040e6a0
sub r13d, 1
test r13d, r13d
jg 0x40dfc2
nop
cmp ebx, 0xffffffff
je 0x40e04f
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40e04a
xor rsi, rsi
jmp 0x40e132
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40df8b
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40e04f
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040e1e0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00c479a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40e0bc
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40e0b9
sub eax, r14d
sub ebx, eax
jmp 0x40e0bc
xor rbx, rbx
test sil, sil
je 0x40e0f0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40e0ed
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 0x40e0c1
mov dil, 1
nop
jmp 0x40e10f
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 0x40e0f0
mov dil, 1
test dil, dil
je 0x40e074
nop
test sil, sil
je 0x40e132
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 0x40fed0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00c470a8], 0
je 0x40ff6e
cmp word [0x00c473b8], 0xd7b2
jne 0x40ff03
cmp dword [0x00c473c0], 0
jbe 0x40ff03
lea rcx, [0x00c473b0]
call qword [0x00c473d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00ba25c0]
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, [0x0040ffa4]
call fcn.00411760
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40ff90
cmp byte [0x00ba0052], 0
jne 0x40ff90
xor rcx, rcx
lea rdx, [0x00ba25c0]
lea r8, [0x00ba24d0]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x4102b0
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 [0x00ba0058], 0
je 0x4102e1
mov rcx, rsi
mov rdx, rdi
call qword [0x00ba0058]
mov r13, rax
jmp 0x4102f7
mov ecx, 0x10
call fcn.004089b0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x00c470a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x00410240]
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 0x41033c
mov rcx, r13
call fcn.004089e0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x414bf0
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.004104c0
movzx rax, word [rbp + 0x4e]
cmp word [0x00ba2e48], ax
ja 0x414cd8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00ba3248]
mov word [rbp + 0x4e], ax
ja 0x414cd8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x414cd7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00ba2e48]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x414c91
mov ecx, eax
sub ecx, 1
jmp 0x414cd2
lea rdx, [0x00ba2e48]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x414cb3
mov r8d, eax
add r8d, 1
jmp 0x414cd2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00ba2e50]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00414a90
jmp 0x414cd7
cmp ecx, r8d
jae 0x414c60
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x414dba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x414dba
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.00412350
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00412350
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00412350
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00414e14]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00414e24]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.004127d0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.004105a0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x415030
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, [0x00c4bc90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00c4bcb8], ax
jne 0x41509b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00c4bcba]
mov r8d, 0x55
call fcn.00412350
lea rcx, [0x00c4bc90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4151a7
lea rcx, [0x00c4bc90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.004104c0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x415160
cmp byte [0x00c4bc88], 0
je 0x4150f4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00414ec0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00410b10
jmp 0x415160
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00414bf0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00410b10
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x415160
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41513f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004151f4]
call fcn.004125c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00414bf0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.004125c0
lea rcx, [0x00c4bc90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00c4bcb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00412250
lea rcx, [0x00c4bcba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00c4bc90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.004105a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x415bb0
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.00410650
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.00412350
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.004126b0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004159d0
test al, al
jne 0x415c7e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00412350
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.004126b0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004159d0
test al, al
jne 0x415c7e
mov rcx, qword [rbp + 0x20]
call fcn.004104c0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.004105a0
lea rcx, [rbp + 0x70]
call fcn.004104c0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x415cf0
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.00410650
mov rcx, qword [rbp + 0x90]
call fcn.00410650
nop
mov rcx, qword [rbp + 0x28]
call fcn.004104c0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00410b90
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x415d93
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x415dcd
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x415dc6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.004128c0
jmp 0x415dcd
sub eax, 1
test eax, eax
jne 0x415d98
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.004158c0
cmp qword [rbp + 0x68], 0
je 0x415e0b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00415a70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00410b10
jmp 0x415ea7
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00415030
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00415a70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00410b10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x415e80
cmp byte [0x00c4bc88], 0
jne 0x415e80
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00415030
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00415a70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00410b10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x415ea7
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00415bb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00410b10
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.004105a0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.004105a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x418800
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004187f0
mov ebx, eax
test ebx, ebx
je 0x41884b
cmp dword [0x00ba3d3c], 0xffffffff
jne 0x418824
mov ecx, 0xe2
call fcn.00410170
mov ecx, ebx
call fcn.004187d0
test rax, rax
jne 0x41883d
mov ecx, 0xe2
call fcn.00410170
jmp 0x41884b
mov ecx, dword [0x00ba3d3c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret
Function at 0x418860
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00c4bd64], 0
je 0x41889b
mov ecx, dword [0x00ba3d3c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4188af
call fcn.00418800
mov ecx, dword [0x00ba3d3c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4188af
mov rax, qword [0x00c4bd98]
jmp 0x4188af
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00ba3d3c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4282d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
call fcn.00410c20
mov rcx, rbx
call fcn.00410e30
mov rcx, qword [rbx]
call fcn.00410cf0
mov ecx, 1
mov edx, eax
mov eax, ecx
cmp eax, edx
jg 0x428314
add edx, 1
mov rcx, qword [rbx]
movsxd r8, eax
xor byte [rcx + r8 - 1], 0x55
add eax, 1
cmp eax, edx
jne 0x428301
nop
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x42f230
Capabilities:
Parse pe header

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x38], 0
nop
mov rcx, qword [rbp + 0x50]
mov edx, 2
call fcn.00430d50
test al, al
jne 0x42f2a0
mov rax, qword [rbp + 0x50]
cmp word [rax], 0x5a4d
jne 0x42f2a0
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x50]
mov ecx, dword [rcx + 0x3c]
lea rax, [rax + rcx]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
cmp dword [rax], 0x4550
je 0x42f2a0
mov qword [rbp + 0x38], 0
jmp 0x42f2a0
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x40]
pop rbp
ret