joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007c0a0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x14007c218
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x14007c218
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x14007c1af
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x14007c218
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x14007c218
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call sub.SDL2.dll_SDL_memcpy
mov rcx, rbp
call sub.SDL2.dll_SDL_free
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x14007c120
movsxd rax, r14d
mov rcx, r12
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call fcn.140006cc0
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x14007c200
mov rbx, r15
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x14007c1e0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x14007c234
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005d10
cmp r11, r10
ja 0x140005d87
cmp r10, rdx
ja 0x140005d99
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140005d12
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005cf0
jmp 0x140005d74
ja 0x140005d1a
mov r11, r10
cmp rax, r8
jne 0x140005cbe
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005d50
mov rdi, r8
sub ecx, edx
jns 0x140005d6b
jmp 0x140005d76
cmp r8, rsi
je 0x140005da8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005d76
xor al, 1
cmp rdi, rsi
jne 0x140005d30
jmp 0x140005d76
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140025770
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400255c0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140025870
int3

Function at 0x14000a780
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000a7a5
cmp rax, rcx
je 0x14000a7ab
cmp rdx, 4
jae 0x14000a7b2
xor eax, eax
xor r8d, r8d
jmp 0x14000a850
pop rbp
jmp fcn.140003070
xor eax, eax
jmp 0x14000a867
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140027500]
movdqa xmm3, xmmword [0x140027510]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000a7e0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000a867
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000a850
pop rbp
ret
Function at 0x140012030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]
cmp r9b, 1
ja 0x1400120b6
test al, al
jne 0x14001208f
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x14001208f
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x1400174b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400174fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400174fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400174fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400174fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400174fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017500
xor al, al
add rsp, 0x28
ret

Function at 0x14001ab78
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001abe7
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001abe7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001abe7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001abe7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001abe7
cmp dword [rcx + 0x84], 0xe
jbe 0x14001abe7
cmp dword [rcx + 0xf8], 0
je 0x14001abe7
mov ecx, ebx
call fcn.14001ac98
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001aa74
nop
cmp dword [rbp + 0x20], 0
je 0x14001ac35
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ac40
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001ab78

Function at 0x14001ad7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ab78
Function at 0x14001de3c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001de6c
xor eax, eax
jmp 0x14001df2f
mov rbp, rbx
cmp word [rax], si
je 0x14001de91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001de78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001de74
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001dd5c
movsxd r14, eax
test eax, eax
jne 0x14001decf
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14001de65
mov rcx, r14
call fcn.14001ed18
mov rdi, rax
test rax, rax
jne 0x14001dee8
xor ecx, ecx
call fcn.14001c3bc
jmp 0x14001dec4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001dd5c
test eax, eax
jne 0x14001df19
mov rcx, rdi
call fcn.14001c3bc
jmp 0x14001df23
xor ecx, ecx
call fcn.14001c3bc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140021420
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001ce2c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400214aa
cmp byte [rbp - 0x21], r15b
je 0x1400214a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400214e0
call fcn.14001f528
test eax, eax
jne 0x1400214cc
cmp byte [rbp - 0x21], r15b
je 0x1400214c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400214e0
cmp byte [rbp - 0x21], r15b
je 0x1400214dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001c40c
test eax, eax
jne 0x140021580
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001ce2c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002151f
cmp byte [rbp - 0x21], r15b
je 0x140021554
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021554
call fcn.14001f528
test eax, eax
jne 0x140021540
cmp byte [rbp - 0x21], r15b
je 0x140021539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021554
cmp byte [rbp - 0x21], r15b
je 0x140021551
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001c40c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021580
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021583
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021591
mov rcx, rdi
call fcn.14001c3bc
cmp byte [rbp + 0x3f], r15b
je 0x1400215a0
mov rcx, qword [rbp + 0x27]
call fcn.14001c3bc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140024480
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400244a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400244a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x403450
Capabilities:
Encode data using xor

Disassembly:
adc esi, dword [0x1d885699]
jne 0x40344c
invalid
mov ebx, ebp
dec dword [rax - 0x77002275]
mov ebx, ebp
dec dword [rax - 0x77002275]
mov ebx, dword [rcx - 0x44]
or bl, ah
invalid
jnp 0x40349f
xor cl, cl
invalid

Function at 0x403630
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x7b21e310
or r14d, dword [0xfffffffffd823a21]
imul eax, dword [rdx + rcx*2], 0x5d
push rdi
cld
cmpsb byte [rsi], byte [rdi]
fldcw word [rbx]
mov esp, 0xe0779abe
mov esi, 0xdee0779a
pushfq
ja 0x4035d8
ficomp word [rcx - 0x42]
or bl, ah
push rcx
jnp 0x403649
adc bl, ah
and dword [rbx + 0x45], edi
or esi, dword [0xfffffffffd823a71]
imul eax, dword [rdx + rcx*2], 0x5d
push rdi
add al, 0xa7
mov dword [rbx], ebp
mov esp, 0xe0779abe
loop 0x4035da
scasd eax, dword [rdi]
loopne 0x40362b
adc dword [rax - 0x5ad5642], ebp
add bl, ah
xor dword [rbx], esi
mov esp, 0xc71e11be
push r13
push rdi
fdivr qword [rbp - 0x1cff432f]
xor dword [rsi + 0x6c35e300], edi
add bl, ah
xor dword [rsi + 0x777406df], esp
loopne 0x40364f
pop rcx
mov esi, 0x4259e308
jae 0x403644
push rdx
sbb edx, dword [rdi]
mov ebx, 0x22053310
pop rbp
push rdi
fadd qword [rsi]
pushfq
xchg eax, esp
invalid

Function at 0x4060e1
Capabilities:
Resolve function by parsing pe exports

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 r14
sub rsp, 0x20
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x40613c
movsxd rax, dword [rcx + 0x3c]
xor ebp, ebp
mov esi, dword [rax + rcx + 0x88]
add rsi, rcx
mov edi, dword [rsi + 0x20]
add rdi, rcx
cmp dword [rsi + 0x18], ebp
jbe 0x40613c

Function at 0x406171
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20

Function at 0x406180
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rdi, rdx
mov esi, ecx
mov rbx, qword [rax + 0x18]
add rbx, 0x10

Function at 0x406250
Capabilities:
Terminate process

Disassembly:
movzx edx, word [rcx]
xor r11d, r11d
mov r10, rcx
mov r8d, r11d
test dx, dx
je 0x406259
mov r9d, r11d
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x406246
add dx, 0x20
inc r9
movzx ecx, dx
add r8d, ecx
movzx edx, word [r10 + r9*2]
movzx edx, word [rdx + rcx*2]
test dx, dx
jne 0x406239
mov eax, r8d
ret
Function at 0x40625d
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
lea rdx, [rsp + 0x48]
xor ecx, ecx
mov qword [rsp + 0x48], rbp
call fcn.00406171
mov ecx, dword [0x0062cbb5]
xor edx, edx
mov rsi, rax
call fcn.00406171
mov rbx, qword [0x0062cbc1]
mov rdi, rax
cmp dword [rbx], ebp
je 0x4062dd
mov r8, qword [rsp + 0x48]
mov edx, ebp
cmp word [r8], bp
je 0x4062b0
inc edx
cmp word [r8 + rdx*2], bp
jne 0x4062a7
cmp dl, byte [rbx]
je 0x4062c2
cmp dl, byte [rbx + 1]
je 0x4062c2
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rcx, r8
call fcn.00406201
cmp eax, dword [rbx + 4]
je 0x4062dd
cmp eax, dword [rbx + 8]
je 0x4062dd
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
mov edx, dword [0x0062cbb9]
xor ecx, ecx
mov r8d, 0x1000
mov dword [rsp + 0x40], ebp
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov ecx, dword [0x0062cb99]
mov r9d, ebp
test ecx, ecx
je 0x40632c
mov rcx, qword [0x0062cbd1]
movsxd r8, r9d
mov edx, dword [rcx + r8]
mov dword [r8 + rax], edx
mov ecx, dword [0x0062cba9]
add r9d, ecx
mov ecx, dword [0x0062cb99]
cmp r9d, ecx
jb 0x406306
mov rdx, rax
mov rcx, rdi
call fcn.004060e1
mov rdi, rax
test rax, rax
je 0x4063de
add byte [rax], al
invalid
mov rbx, qword [0x0062cb79]
lea r9, [rsp + 0x40]
mov edx, dword [0x0062cb75]
mov rcx, rbx
mov r8d, dword [0x0062cb99]
call rdi
mov r9, qword [0x0062cb9d]
mov r8d, 8
mov eax, dword [0x0062cb75]
mov r9d, r9d
add r9, rsi
mov r10d, dword [r9 + 4]
cmp eax, r8d
jbe 0x4063a4
movsxd rdx, r8d
mov ecx, dword [rdx + r9]
add ecx, r10d
mov dword [rdx + rbx], ecx
mov eax, dword [0x0062cba9]
add r8d, eax
mov eax, dword [0x0062cb75]
cmp r8d, eax
cmp eax, eax
jb 0x406383
mov eax, dword [0x0062cba5]
lea r9, [rsp + 0x40]
mov dword [rbx + 8], eax
mov rcx, rbx
mov edx, dword [0x0062cb75]
mov r8d, dword [rsp + 0x40]
call rdi
mov eax, dword [0x0062cb81]
mov r8d, dword [rbx + 0xc]
mov ecx, dword [0x0062cb81]
add r8, rax
add r8, rbx
add rcx, rbx
call r8
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4063a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
lea rdx, [rsp + 0x48]
xor ecx, ecx
mov qword [rsp + 0x48], rbp
call fcn.00406171
mov ecx, dword [0x0062cbb5]
xor edx, edx
mov rsi, rax
call fcn.00406171
mov rbx, qword [0x0062cbc1]
mov rdi, rax
cmp dword [rbx], ebp
je 0x4062dd
mov r8, qword [rsp + 0x48]
mov edx, ebp
cmp word [r8], bp
je 0x4062b0
inc edx
cmp word [r8 + rdx*2], bp
jne 0x4062a7
cmp dl, byte [rbx]
je 0x4062c2
cmp dl, byte [rbx + 1]
je 0x4062c2
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rcx, r8
call fcn.00406201
cmp eax, dword [rbx + 4]
je 0x4062dd
cmp eax, dword [rbx + 8]
je 0x4062dd
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
mov edx, dword [0x0062cbb9]
xor ecx, ecx
mov r8d, 0x1000
mov dword [rsp + 0x40], ebp
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov ecx, dword [0x0062cb99]
mov r9d, ebp
test ecx, ecx
je 0x40632c
mov rcx, qword [0x0062cbd1]
movsxd r8, r9d
mov edx, dword [rcx + r8]
mov dword [r8 + rax], edx
mov ecx, dword [0x0062cba9]
add r9d, ecx
mov ecx, dword [0x0062cb99]
cmp r9d, ecx
jb 0x406306
mov rdx, rax
mov rcx, rdi
call fcn.004060e1
mov rdi, rax
test rax, rax
je 0x4063de
add byte [rax], al
invalid
mov rbx, qword [0x0062cb79]
lea r9, [rsp + 0x40]
mov edx, dword [0x0062cb75]
mov rcx, rbx
mov r8d, dword [0x0062cb99]
call rdi
mov r9, qword [0x0062cb9d]
mov r8d, 8
mov eax, dword [0x0062cb75]
mov r9d, r9d
add r9, rsi
mov r10d, dword [r9 + 4]
cmp eax, r8d
jbe 0x4063a4
movsxd rdx, r8d
mov ecx, dword [rdx + r9]
add ecx, r10d
mov dword [rdx + rbx], ecx
mov eax, dword [0x0062cba9]
add r8d, eax
mov eax, dword [0x0062cb75]
cmp r8d, eax
cmp eax, eax
jb 0x406383
mov eax, dword [0x0062cba5]
lea r9, [rsp + 0x40]
mov dword [rbx + 8], eax
mov rcx, rbx
mov edx, dword [0x0062cb75]
mov r8d, dword [rsp + 0x40]
call rdi
mov eax, dword [0x0062cb81]
mov r8d, dword [rbx + 0xc]
mov ecx, dword [0x0062cb81]
add r8, rax
add r8, rbx
add rcx, rbx
call r8
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x410b50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00410b40
mov ebx, eax
test ebx, ebx
je 0x410b9b
cmp dword [0x00628860], 0xffffffff
jne 0x410b74
mov ecx, 0xe2
call fcn.0040a810
mov ecx, ebx
call fcn.00410b20
test rax, rax
jne 0x410b8d
mov ecx, 0xe2
call fcn.0040a810
jmp 0x410b9b
mov ecx, dword [0x00628860]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x410bb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0065ed64], 0
je 0x410beb
mov ecx, dword [0x00628860]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x410bff
call fcn.00410b50
mov ecx, dword [0x00628860]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x410bff
mov rax, qword [0x0065ed98]
jmp 0x410bff
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00628860]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret
Function at 0x42b500
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.0040c3b0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42b5b2
mov ecx, eax
test ecx, 0x400
je 0x42b5a7
test sil, sil
jne 0x42b53f
mov al, 1
jmp 0x42b5dc
test eax, 0x10
je 0x42b54f
xor rax, rax
jmp 0x42b5dc
mov rcx, rbx
call fcn.0040c3b0
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 0x42b59a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42b5dc
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42b5dc
test eax, 0x10
sete al
jmp 0x42b5dc
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42b5d5
cmp eax, 3
je 0x42b5d5
cmp eax, 0x7b
je 0x42b5d5
mov rcx, rbp
mov rdx, rbx
call fcn.0042b4b0
test al, al
jne 0x42b5da
xor rax, rax
jmp 0x42b5dc
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x431ea0
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 0x431ec7
movzx rax, word [rbp + 0x2c]
jmp 0x431ec9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x434f40
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
nop
mov dword [rbp + 0x54], 0xffffffff
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x70]
call fcn.0040b1e0
lea rcx, [rbp + 0x48]
call fcn.0040b480
mov rcx, qword [rbp + 0x48]
call fcn.0040c3b0
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x434ff1
mov ecx, dword [rbp + 0x44]
call fcn.004059e0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040c3b0
mov rcx, rax
mov edx, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x58]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x434fe7
mov rcx, qword [rbp + 0x58]
lea rdx, [0x00435060]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x434fe7
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00405a10
nop
lea rcx, [rbp + 0x48]
call fcn.0040ab10
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x435dd0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040b360
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.004107f0
mov esi, eax
cmp esi, 0x104
jbe 0x435e2d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004059e0
mov rdi, rax
jmp 0x435e31
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.004107f0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x435e87
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x435e6b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x435e99
mov rcx, rdi
call fcn.00405a10
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x4790f0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x14], 0
jne 0x479123
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x479181
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x479181
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x60], 0
jne 0x479181
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x16], 0
mov byte [rax + 0x14], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4791ab
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00659850]
call fcn.00410720
mov rcx, qword [0x0045d3a0]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00433380
mov rcx, rax
call fcn.00409ce0
jmp 0x4791ab
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00659850]
call fcn.00410720
mov rcx, qword [0x0045d3a0]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00433380
mov rcx, rax
call fcn.00409ce0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040abf0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x58d7e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00663a20]
cmp byte [rax + 0x131], 0
jne 0x58d883
cmp qword [0x00663a58], 0
jne 0x58d826
call sub.kernel32.dll_GetCurrentThreadId_1
mov ecx, 3
mov rdx, qword [0x006496a8]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00663a58], rax
cmp qword [0x00663a50], 0
jne 0x58d848
xor rcx, rcx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00663a50], rax
cmp qword [0x00663a60], 0
jne 0x58d883
xor rcx, rcx
mov edx, 0x3e8
mov r8, qword [0x006496a0]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread_1
mov qword [0x00663a60], rax
add rsp, 0x48
ret