joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e240
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140077fc0]
mov edi, edx
cmp byte [rbx + 0x1f4d], 0
jne 0x14000e2a0
cmp byte [rbx + 0x1f4e], 0
jne 0x14000e2a0
mov r9d, dword [rbx + 0x2ff8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002640
test dil, 1
je 0x14000e3c6
jmp 0x14000e32a
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ff8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14006bd7c]
mov edx, 0x10
mulss xmm1, dword [0x14006bd70]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1cc8], rax
mov dword [rbx + 0x1cb4], 1
movss dword [rbx + 0x1cc0], xmm0
movss dword [rbx + 0x1cc4], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x14006bd04]
or dword [rbx + 0x1cb0], 0x41
movss dword [rbx + 0x1d10], xmm0
call fcn.140002640
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000e380
lea r11, [0x140067710]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14000e363
cmp byte [r8], r9b
jne 0x14000e363
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000e350
not ecx
call fcn.140008a40
test rax, rax
je 0x14000e3c6
cmp byte [rax + 0x8e], 0
je 0x14000e3c6
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ff8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ff8]
call fcn.140002640
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000b060
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002f670
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002a590
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14002a608
nop word [rax + rax]
lea rdx, str.crossfire.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x14002a62c
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002a5e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14002f670
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x14002a613
Function at 0x14002a640
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x13f0
call fcn.1400584c0
sub rsp, rax
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8d, 0x3e
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890
lea rcx, [rsp + 0x30]
call fcn.14002e960
nop
call fcn.1400328c8
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x14002a6c0
mov dword [rsp + 0x50], 0x270
mov r14, qword [rsp + 0x40]
dec r14
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0xa
mov qword [rsi + 0x18], 0xf
xor eax, eax
mov qword [rsi], rax
mov word [rsi + 8], ax
mov byte [rsi + 0xa], al
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14002a723
mov ecx, eax
mov edi, eax
mov edx, eax
jmp 0x14002a729
mov rdi, rcx
mov rdx, rsi
mov r12, qword [rsi + 0x10]
add r12, rdx
mov r15, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x30]
cmp rcx, r12
je 0x14002a79d
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
cmp r14, 0xffffffffffffffff
jne 0x14002a771
lea rcx, [rsp + 0x50]
call fcn.14002f490
mov ebx, eax
shl rbx, 0x20
lea rcx, [rsp + 0x50]
call fcn.14002f490
mov eax, eax
or rbx, rax
jmp 0x14002a782
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x20]
call fcn.14002f2a0
mov rbx, rax
lea rax, [rsp + 0x30]
cmp r15, 0xf
cmova rax, rbp
movzx eax, byte [rax + rbx]
mov byte [rdi], al
inc rdi
cmp rdi, r12
jne 0x14002a740
cmp r15, 0xf
jbe 0x14002a7d0
lea rdx, [r15 + 1]
mov rax, rbp
cmp rdx, 0x1000
jb 0x14002a7c8
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a7ff
mov rcx, rbp
call fcn.14002f760
mov rax, rsi
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14002f670
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.14004214c
int3
Function at 0x14002b520
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x1400781d0], 0
jne 0x14002b552
cmp qword [0x1400781e0], 0
je 0x14002b552
call fcn.140024b00
mov rcx, qword [0x140078210]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x140077fc0]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140078218]
cvtsi2ss xmm0, qword [0x140078220]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140078218], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x140077fc0]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x14002b678
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x140078210]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14002b678
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140078210]
jne 0x14002b6e2
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14002b6e2
mov rcx, qword [0x140078210]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14002b6e2
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x14002b6f2
mov eax, 0xffffffff
jmp 0x14002b6ff
mov rax, qword [0x140077fc0]
mov eax, dword [rax + 0x1f48]
cmp dword [0x140075ed0], eax
je 0x14002b712
mov dword [0x140075ed0], eax
call fcn.140024ef0
call fcn.140025070
call fcn.140005d00
cmp dword [0x140077fd0], 0
jne 0x14002b72a
call fcn.14002b2c0
mov rax, qword [0x140077fc0]
movzx ecx, byte [0x140075d10]
mov byte [rax + 0xc8], cl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002f670
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14002f490
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14002f4f1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14002f4b0
mov ecx, dword [r9]
jmp 0x14002f5db
cmp ecx, 0x4e0
jb 0x14002f5db
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14002f510
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14002f560
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400303d0
Capabilities:
Parse pe header

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

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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140032112
xor eax, eax
jmp 0x1400321f8
cmp qword [rcx + 0x68], 0
je 0x140032123
call fcn.140032214
jmp 0x1400321f8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003213a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003213c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003216e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14005a310
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400321f2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400321a5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400321ce
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14003c084
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400321f2
cmp rsi, rbx
ja 0x1400321ac
test rsi, rsi
je 0x1400321f2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003c084
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140038520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400584c0
sub rsp, rax
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004750c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003856f
mov rax, rbp
jmp 0x140038677
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x77860]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004779c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x77860]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140038673
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038673
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004779c
test rax, rax
js 0x140038673
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140038673
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140038665
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140038665
cmp byte [rcx], 0xd
jne 0x14003864b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003865a
cmp byte [rcx + 1], 0xa
jne 0x14003865a
inc rcx
jmp 0x14003865a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x75480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003862d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140038677
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002f670
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140041894
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 0x140041903
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041903
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041903
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041903
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041903
cmp dword [rcx + 0x84], 0xe
jbe 0x140041903
cmp dword [rcx + 0xf8], 0
je 0x140041903
mov ecx, ebx
call fcn.1400419b4
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.140041790
nop
cmp dword [rbp + 0x20], 0
je 0x140041951
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004195c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140041894
Function at 0x140041a98
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 0x140041903
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041903
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041903
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041903
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041903
cmp dword [rcx + 0x84], 0xe
jbe 0x140041903
cmp dword [rcx + 0xf8], 0
je 0x140041903
mov ecx, ebx
call fcn.1400419b4
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.140041790
nop
cmp dword [rbp + 0x20], 0
je 0x140041951
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004195c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140041894

Function at 0x140041c20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140041c57
call fcn.140046360
mov dword [rax], 0x16
call fcn.14004212c
xor eax, eax
jmp 0x140041ce5
mov rdx, r9
mov rcx, r8
call fcn.140041bbc
mov rbx, rax
test rax, rax
je 0x140041ce2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140041ae8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140041ccf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400462d4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140041cb6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140041cc5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400490a8
jmp 0x140041ce2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140041cdf
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140047f20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140077860]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140047f77
cmp word [rdx], r13w
jne 0x140047f77
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140047f7c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400480a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400480c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140047fb5
mov rdx, r9
mov word [rbx], cx
jmp 0x140047fdc
cmp r9, r8
jae 0x140047fec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140047f96
jmp 0x1400480a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048096
cmp dword [rsp + 0x80], esi
je 0x140048096
lea r8, [0x140077860]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004806e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004803e
mov word [rbx], r13w
jmp 0x14004809e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004804b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004809e
cmp word [rsp + 0x70], r13w
jne 0x14004807b
cmp rbx, r14
je 0x140048038
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400477a4
cmp word [rsp + 0x70], r13w
je 0x1400480a1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140077860]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004809b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400480a1
Function at 0x14004b04c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004b062
mov al, 1
jmp 0x14004b0c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004b073
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004b0c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004f4b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004b0c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004b0c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004b0c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004b0c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004e488
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 0x14004e4b8
xor eax, eax
jmp 0x14004e57b
mov rbp, rbx
cmp word [rax], si
je 0x14004e4dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004e4c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004e4c0
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.14004e3a8
movsxd r14, eax
test eax, eax
jne 0x14004e51b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004e4b1
mov rcx, r14
call fcn.14004b688
mov rdi, rax
test rax, rax
jne 0x14004e534
xor ecx, ecx
call fcn.1400490a8
jmp 0x14004e510
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.14004e3a8
test eax, eax
jne 0x14004e565
mov rcx, rdi
call fcn.1400490a8
jmp 0x14004e56f
xor ecx, ecx
call fcn.1400490a8
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 0x140051b94
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140047bc0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140051c35
cmp ebx, dword [rsp + 0x30]
je 0x140051c2e
test esi, esi
je 0x140051c2e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140051c09
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140051c16
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140051bf3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140051c1a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140051c37
mov eax, 1
jmp 0x140051c37
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret