joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18017f1f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x80
mov rbx, rdx
mov rdi, rcx
test r9b, r9b
je 0x18017f25c
mov rcx, qword [0x180233b88]
mov rax, qword [rcx]
mov r9, rdi
lea r8, str.__s_
lea rdx, [rsp + 0xa0]
call qword [rax + 0xb8]
mov rcx, qword [0x180233b88]
mov rax, qword [rcx]
mov dword [rsp + 0xa8], 0xffffffff
mov r9, rbx
lea r8, [0x180208cfc]
lea rdx, [rsp + 0xa8]
call qword [rax + 0xb8]
cmp byte [rsp + 0xb8], 0
je 0x18017f305
lea rax, str.____n
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 8
mov qword [rsp + 0x50], rdi
movabs rax, 0xb000000000000000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rbx
movabs rax, 0xb000000000000008
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800cc930
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x60]
call fcn.180090ac0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x1801804c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x18022cd50]
movsxd rax, dword [rcx + 3]
mov rbx, qword [rax + rcx + 7]
test rbx, rbx
jne 0x1801804e3
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, dword [0x18023228c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1802342ec], ecx
jle 0x1801805c1
lea rcx, [0x1802342ec]
call fcn.180183aac
cmp dword [0x1802342ec], 0xffffffff
jne 0x1801805c1
mov rcx, qword [0x180233b80]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r10, rax
xor r11d, r11d
test rax, rax
je 0x1801805ae
nop dword [rax + rax]
mov r8, qword [r10 + 0x10]
mov rax, 0xffffffffffffffff
mov r9d, 0x811c9dc5
inc rax
cmp byte [r8 + rax], r11b
jne 0x180180551
mov rdx, r11
test rax, rax
je 0x180180590
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8 + rdx]
xor ecx, r9d
imul r9d, ecx, 0x1000193
inc rdx
cmp rdx, rax
jb 0x180180570
cmp r9d, 0x13914a63
je 0x18018059b
mov r10, qword [r10 + 0x20]
test r10, r10
jne 0x180180540
jmp 0x1801805ae
lea r8, str.m_iRoundState
mov rdx, qword [r10 + 0x18]
call fcn.180183640
mov r11d, eax
mov dword [0x1802342f4], r11d
lea rcx, [0x1802342ec]
call fcn.180183a40
movsxd rax, dword [0x1802342f4]
mov eax, dword [rax + rbx]
add rsp, 0x20
pop rbx
ret
Function at 0x180181420
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 0x180181481
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 0x180181440
mov ecx, dword [r9]
jmp 0x18018156b
cmp ecx, 0x4e0
jb 0x18018156b
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 0x1801814a0
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 0x1801814f0
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 0x1801815b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rsi
sub rsp, 0x30
movsx eax, byte [rdx]
lea rsi, [rdx + 1]
mov qword [rsp + 0x50], rdi
mov rdi, rdx
mov ebx, 0x811c9dc5
test al, al
jne 0x1801815dc
mov r9d, ebx
jmp 0x1801815ef
xor eax, ebx
mov rcx, rsi
imul edx, eax, 0x1000193
call fcn.1800e05e0
mov r9d, eax
movabs r10, 0x100000001b3
movzx r8d, r9b
movabs rax, 0xcbf29ce484222325
mov ecx, r9d
xor r8, rax
shr ecx, 8
imul r8, r10
movzx edx, cl
mov eax, r9d
xor r8, rdx
shr eax, 0x10
imul r8, r10
movzx ecx, al
xor r8, rcx
mov eax, r9d
mov rcx, qword [0x18022d370]
imul r8, r10
shr rax, 0x18
xor r8, rax
imul r8, r10
and rcx, r8
shl rcx, 4
add rcx, qword [0x18022d358]
mov rax, qword [rcx + 8]
cmp rax, qword [0x18022d348]
je 0x180181678
mov rcx, qword [rcx]
cmp r9d, dword [rax + 0x10]
je 0x18018167a
cmp rax, rcx
je 0x180181678
mov rax, qword [rax + 8]
cmp r9d, dword [rax + 0x10]
jne 0x180181667
jmp 0x18018167a
xor eax, eax
test rax, rax
jne 0x1801816d3
mov rcx, qword [0x180233b88]
mov rdx, rdi
mov qword [rsp + 0x48], rbp
mov rax, qword [rcx]
call qword [rax + 0x68]
movsx ecx, byte [rdi]
mov rbp, rax
test cl, cl
jne 0x1801816a2
mov eax, ebx
jmp 0x1801816b4
mov eax, ecx
mov rcx, rsi
xor eax, ebx
imul edx, eax, 0x1000193
call fcn.1800e05e0
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x20]
call fcn.180181a10
mov rcx, qword [rax]
mov qword [rcx + 0x18], rbp
mov rbp, qword [rsp + 0x48]
movsx eax, byte [rdi]
mov rdi, qword [rsp + 0x50]
test al, al
je 0x1801816f1
xor eax, ebx
mov rcx, rsi
imul edx, eax, 0x1000193
call fcn.1800e05e0
mov ebx, eax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x20]
call fcn.180181a10
mov rbx, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
add rsp, 0x30
pop rsi
ret
Function at 0x180181cf0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180181d21
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18022d348]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18022d358]
lea rdx, [rdi + rdi]
call fcn.180090e50
mov rax, qword [0x18022d348]
lea r9, [rdi - 1]
mov qword [0x18022d370], r9
mov qword [0x18022d378], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180181e94
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18022d358]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180181de0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180181e55
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180181e1d
mov r10, qword [rdx]
cmp r10, rax
je 0x180181e17
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180181e55
cmp r9, rdx
je 0x180181e31
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180181e69
cmp r9, rdx
jne 0x180181e22
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180181e8f
mov r9, qword [0x18022d370]
jmp 0x180181d91
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180181e55
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180182c10
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
sub rsp, 0x48
mov qword [rax + 0x18], rbx
mov rbx, r8
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
test r8, r8
jne 0x180182c4a
lea r8, [rax + 0x10]
lea rdx, [rax - 0x28]
call fcn.180182d60
mov edx, dword [rsp + 0x58]
mov rbx, qword [rax]
add rbx, 0x18
mov qword [rsp + 0x40], rbp
test edx, edx
je 0x180182d1e
mov ecx, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180182d1e
cmp qword [0x180234300], 0
jne 0x180182c99
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, [0x18017f020]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x50]
mov qword [0x180234300], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x180234300]
jne 0x180182d1e
cmp byte [rbx], 0
mov dil, 1
jne 0x180182d21
movzx esi, dil
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
lea r8, [rbx + 8]
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r8]
add rax, 0xfa
cmp rdx, rax
jge 0x180182d48
movzx ecx, dil
xor al, al
mov rbp, qword [rsp + 0x40]
test sil, sil
mov byte [rbx], dil
mov rdi, qword [rsp + 0x30]
mov byte [rbx + 1], sil
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 2], cl
mov byte [rbx + 3], al
mov rbx, qword [rsp + 0x60]
je 0x180182d19
mov qword [r8], rdx
add rsp, 0x48
ret
xor dil, dil
xor sil, sil
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xor cl, cl
lea r8, [rbx + 8]
test dil, dil
jne 0x180182cee
cmp byte [rbx], cl
je 0x180182cee
mov al, 1
jmp 0x180182cf0
Function at 0x180183050
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180183081
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18022d428]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18022d438]
lea rdx, [rdi + rdi]
call fcn.180090e50
mov rax, qword [0x18022d428]
lea r9, [rdi - 1]
mov qword [0x18022d450], r9
mov qword [0x18022d458], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1801831f4
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18022d438]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180183140
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1801831b5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18018317d
mov r10, qword [rdx]
cmp r10, rax
je 0x180183177
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1801831b5
cmp r9, rdx
je 0x180183191
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1801831c9
cmp r9, rdx
jne 0x180183182
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x1801831ef
mov r9, qword [0x18022d450]
jmp 0x1801830f1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1801831b5
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180183640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x80
mov rbp, r8
mov r15, rdx
mov esi, 0x811c9dc5
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rcx + r8], 0
jne 0x180183662
xor edx, edx
test rcx, rcx
je 0x180183695
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rdx + r8]
inc rdx
xor eax, esi
imul esi, eax, 0x1000193
cmp rdx, rcx
jb 0x180183680
xor edi, edi
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], r14
cmp dword [r15 + 8], edi
jle 0x180183728
xor r14d, r14d
mov rbx, qword [r15]
mov r9d, 0x811c9dc5
mov rax, 0xffffffffffffffff
movups xmm1, xmmword [rbx + r14 + 0x40]
mov r8, qword [rbx + r14]
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x1801836d0
xor edx, edx
test rax, rax
je 0x1801836f8
movsx ecx, byte [rdx + r8]
inc rdx
xor ecx, r9d
imul r9d, ecx, 0x1000193
cmp rdx, rax
jb 0x1801836e1
cmp esi, r9d
je 0x180183757
movq rdx, xmm1
test rdx, rdx
je 0x18018371c
mov r8, rbp
lea rcx, [0x180233c58]
call fcn.180183640
mov ecx, eax
test eax, eax
jne 0x18018374e
inc edi
add r14, 0x60
cmp edi, dword [r15 + 8]
jl 0x1801836b0
xor eax, eax
mov r14, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop rdi
pop rsi
ret
mov eax, dword [rbx + r14 + 0x48]
add eax, ecx
jmp 0x18018372a
psrldq xmm1, 8
movd eax, xmm1
jmp 0x18018372a

Function at 0x1801855cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180185606
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18018560b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180185654
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1801b3320]
cmp byte [rcx + rax], 0
je 0x180185654
dec r8
sub rdx, 1
jne 0x18018563a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140039bb0
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.140023270
sub rsp, rax
mov rax, qword [0x14005e0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400350c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140039bff
mov rax, rbp
jmp 0x140039d07
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 + 0x2abc210]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003b5d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2abc210]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140039d03
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 0x140039d03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003b5d0
test rax, rax
js 0x140039d03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140039d03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140039cf5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140039cf5
cmp byte [rcx], 0xd
jne 0x140039cdb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140039cea
cmp byte [rcx + 1], 0xa
jne 0x140039cea
inc rcx
jmp 0x140039cea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5e4e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140039cbd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140039d07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400226b0
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 0x14003a970
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, [0x142abc210]
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 0x14003a9c7
cmp word [rdx], r13w
jne 0x14003a9c7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003a9cc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003aaf1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003ab12
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003aa05
mov rdx, r9
mov word [rbx], cx
jmp 0x14003aa2c
cmp r9, r8
jae 0x14003aa3c
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 0x14003a9e6
jmp 0x14003aaf1
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 0x14003aae6
cmp dword [rsp + 0x80], esi
je 0x14003aae6
lea r8, [0x142abc210]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003aabe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003aa8e
mov word [rbx], r13w
jmp 0x14003aaee
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 0x14003aa9b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003aaee
cmp word [rsp + 0x70], r13w
jne 0x14003aacb
cmp rbx, r14
je 0x14003aa88
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003b5d8
cmp word [rsp + 0x70], r13w
je 0x14003aaf1
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, [0x142abc210]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003aaeb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003aaf1
Function at 0x14001ba80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14001fbf0
sub rsp, rax
mov rax, qword [0x14005cac0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001bb42
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002eb4c
cmp rax, 1
jne 0x14001bb9e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001bb1f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001bb13
cmp rcx, 1
jb 0x14001bb9e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001bae0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001bb73
lea rcx, [rsp + 0x80]
call fcn.1400316f4
jmp 0x14001bb75
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e8f8
int3
Function at 0x14001f480
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005cac0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14001f531
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14002eb4c
cmp rax, 1
jne 0x14001f567
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14001f50d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14001f500
cmp rcx, 1
jb 0x14001f567
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001f4d0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002e8f8
int3

Function at 0x14001f7a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005cac0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14001f84f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002eb4c
cmp rax, 1
jne 0x14001f885
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001f82c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001f820
cmp rcx, 1
jb 0x14001f885
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001f7f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e8f8
int3

Function at 0x140020354
Capabilities:
Parse pe header

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