joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180071d00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180071d34
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180071d20
ret

Function at 0x1800a3a50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rbx, rcx
mov dword [rsp + 0x20], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800a3ae5
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1800a3adb
lea rax, [rsp + 0x20]
mov qword [rsp + 0x278], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800a3b13
mov rax, qword [rcx]
lea rdx, [rsp + 0x278]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
test al, al
je 0x1800a3ade
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800a3aa1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800a3b02
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
call fcn.1800bbbf0
nop
int3
Function at 0x1800bc9c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800bca48
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800bca48
dec r8
sub rdx, 1
jne 0x1800bca2e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800d0dd0
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.1800be800
sub rsp, rax
mov rax, qword [0x180175398]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800dca1c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800d0e1f
mov rax, rbp
jmp 0x1800d0f27
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x366560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800dfdb4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x366560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800d0f23
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 0x1800d0f23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800dfdb4
test rax, rax
js 0x1800d0f23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800d0f23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800d0f15
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800d0f15
cmp byte [rcx], 0xd
jne 0x1800d0efb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800d0f0a
cmp byte [rcx + 1], 0xa
jne 0x1800d0f0a
inc rcx
jmp 0x1800d0f0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x175940]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800d0edd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800d0f27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800be620
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 0x1800e41cc
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 0x1800e41fc
xor eax, eax
jmp 0x1800e42bf
mov rbp, rbx
cmp word [rax], si
je 0x1800e4221
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800e4208
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800e4204
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.1800e2af0
movsxd r14, eax
test eax, eax
jne 0x1800e425f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800e41f5
mov rcx, r14
call fcn.1800db684
mov rdi, rax
test rax, rax
jne 0x1800e4278
xor ecx, ecx
call fcn.1800daa00
jmp 0x1800e4254
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.1800e2af0
test eax, eax
jne 0x1800e42a9
mov rcx, rdi
call fcn.1800daa00
jmp 0x1800e42b3
xor ecx, ecx
call fcn.1800daa00
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 0x1800e75d8
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.1800d8d34
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 0x1800e7679
cmp ebx, dword [rsp + 0x30]
je 0x1800e7672
test esi, esi
je 0x1800e7672
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800e764d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800e765a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800e7637
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800e765e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800e767b
mov eax, 1
jmp 0x1800e767b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ecd28
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800dfdbc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800dfdbc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800ece78
cmp rax, 0xffffffffffffffff
je 0x1800ece78
xor edi, edi
test rbp, rbp
jle 0x1800ece23
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800defbc
mov rbx, rax
test rax, rax
jne 0x1800ecdb0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800ece19
mov edx, 0x8000
mov ecx, r14d
call fcn.1800ecbac
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800de704
cmp eax, 0xffffffff
je 0x1800ecdf9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800ecdc0
mov edx, r15d
mov ecx, r14d
call fcn.1800ecbac
jmp 0x1800ece19
cmp byte [rsi + 0x38], dil
je 0x1800ece10
cmp dword [rsi + 0x34], 5
jne 0x1800ece10
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1800ece19
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800daa00
jmp 0x1800ece8c
jns 0x1800ece8c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800dfdbc
cmp rax, 0xffffffffffffffff
jne 0x1800ece44
cmp byte [rsi + 0x30], dil
je 0x1800ece8c
mov edi, dword [rsi + 0x2c]
jmp 0x1800ece8c
mov ecx, r14d
call fcn.1800e9dfc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800ece8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1800ece8c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800ece85
mov eax, dword [rsi + 0x2c]
jmp 0x1800ece8a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800dfdbc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0xa6c760
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa6c76d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa6c77d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa6c765
lea eax, [rcx + 1]
jmp 0xa6c78b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa6c79e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa6c784
sub eax, 3
jb 0xa6c7be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa6c80d
sar eax, 1
movsxd rbp, eax
jb 0xa6c7f4
jmp 0xa6c7cc
add ebx, ebx
jne 0xa6c7ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa6c7f4
inc ecx
add ebx, ebx
jne 0xa6c7da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa6c7f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa6c7ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa6c7dc
add ecx, 2
jmp 0xa6c7f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a6c722
jmp 0xa6c76d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2e1c00
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa6c859
cmp rsi, rcx
jae 0xa6c861
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa6c840
cmp al, 0x8f
ja 0xa6c840
cmp byte [rsi - 2], 0xf
je 0xa6c846
sub al, 0xe8
cmp al, 1
ja 0xa6c82a
cmp rsi, rcx
jae 0xa6c861
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa6c830
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa6c861
lodsb al, byte [rsi]
jmp 0xa6c840
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x664000]
mov eax, dword [rdi]
or eax, eax
je 0xa6c8be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x66c000]
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 0xa6c86e
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 0xa6c8b8
mov qword [rbx], rax
add rbx, 8
jmp 0xa6c88e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa6c902
cmp al, 0xef
ja 0xa6c8ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa6c8ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa6c8d9
mov eax, dword [rdi]
add rdi, 4
jmp 0xa6c8d9
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 + 0x1af]
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 0xa6c956
sub rsp, 0xffffffffffffff80
jmp 0x46d3c0
Function at 0x180001110
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, section..text
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.C:WindowsSystem32LanguageComponentsInstaller.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180001169
mov eax, 1
jmp 0x1800011a4
lea rdx, [0x180002078]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18000118f
mov eax, 1
jmp 0x1800011a4
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x38]
xor eax, eax
add rsp, 0x48
ret
Function at 0x180002530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov ebp, dword [0x180020a84]
lea r11d, [rbp - 1]
imul r11d, ebp
cmp dword [rcx + rax + 0x8c], 0
mov r8d, dword [0x180020a88]
je 0x1800025b2
mov eax, dword [rcx + rax + 0x88]
cmp r8d, 0xa
jl 0x180002572
mov ebp, r11d
and ebp, 1
je 0x180002572
jmp 0x180002570
cmp dword [rcx + rax + 0x14], 0
je 0x1800025b2
mov r9d, dword [rcx + rax + 0x18]
test r9d, r9d
je 0x1800025b2
mov r10d, dword [rcx + rax + 0x1c]
cmp dword [0x180020a8c], 0xa
jl 0x1800025d2
mov esi, dword [0x180020a90]
lea edi, [rsi - 1]
imul edi, esi
and edi, 1
je 0x1800025d2
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x1800025b0
xor ecx, ecx
cmp r8d, 0xa
jl 0x18000263f
mov eax, r11d
and eax, 1
je 0x18000263f
nop word cs:[rax + rax]
jmp 0x1800025d0
add r10, rcx
mov r15d, dword [rcx + rax + 0x20]
mov r14d, dword [rcx + rax + 0x24]
add r15, rcx
add r14, rcx
xor edi, edi
nop word [rax + rax]
mov esi, dword [r15]
add rsi, rcx
xor eax, eax
nop dword [rax + rax]
movzx ebx, byte [rdx + rax]
movzx ebp, byte [rsi + rax]
test bl, bl
je 0x180002615
add rax, 1
cmp bl, bpl
je 0x180002600
cmp bl, bpl
je 0x180002634
add r14, 2
add r15, 4
add edi, 1
cmp edi, r9d
jne 0x1800025f0
xor ecx, ecx
cmp r8d, 0xa
jge 0x180002645
jmp 0x180002652
movzx eax, word [r14]
mov eax, dword [r10 + rax*4]
add rcx, rax
cmp r8d, 0xa
jl 0x180002652
and r11d, 1
je 0x180002652
nop dword [rax + rax]
jmp 0x180002650
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000db60
Capabilities:
Parse pe header

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

Function at 0x140016070
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.1400267a0
sub rsp, rax
mov rax, qword [0x140037040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ab34
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400160bf
mov rax, rbp
jmp 0x1400161cb
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 + 0x386f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001cea4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x386f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400161c7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400161c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001cea4
test rax, rax
js 0x1400161c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400161c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400161b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400161b9
cmp byte [rcx], 0xd
jne 0x14001619f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400161ae
cmp byte [rcx + 1], 0xa
jne 0x1400161ae
inc rcx
jmp 0x1400161ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x373a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140016181
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400161cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ceb0
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 0x140016cb0
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 0x140016d1f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016d1f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016d1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016d1f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016d1f
cmp dword [rcx + 0x84], 0xe
jbe 0x140016d1f
cmp dword [rcx + 0xf8], 0
je 0x140016d1f
mov ecx, ebx
call fcn.140016dc4
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.140016bb8
nop
cmp dword [rbp + 0x20], 0
jne 0x140016d80
call fcn.14001dae8
cmp eax, 1
jne 0x140016d70
xor dl, dl
jmp 0x140016d7a
call fcn.14001dab4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140016d8b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140016d94
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140016cb0

Function at 0x140016e98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016cb0
Function at 0x14001cae4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001cafa
mov al, 1
jmp 0x14001cb66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001cb0b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001cb64
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400203f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cb64
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001cb64
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001cb64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001cb66
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001cf50
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
xor edi, edi
mov rax, r15
lea rcx, [0x1400386f0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14001cfa6
cmp word [rdx], r9w
jne 0x14001cfa6
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14001cfab
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001d12a
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14001d0f5
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14001cff3
cmp rcx, r8
jae 0x14001d013
cmp word [rcx], r9w
jne 0x14001cff3
add rax, 4
mov edx, r9d
jmp 0x14001cff6
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14001cfc8
jmp 0x14001d12a
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d0ee
cmp dword [rsp + 0x80], edi
je 0x14001d0ee
lea r9, [0x1400386f0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14001d0c8
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14001d07b
mov word [rbx], bp
jmp 0x14001d127
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14001d096
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14001d127
cmp word [rsp + 0x70], bp
jne 0x14001d0d4
cmp rbx, rsi
je 0x14001d073
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001ceac
cmp word [rsp + 0x70], bp
je 0x14001d12a
mov word [rbx], 0xd
jmp 0x14001d127
mov rcx, r15
lea r9, [0x1400386f0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001d124
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001d12a
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x14001f524
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 0x14001f554
xor eax, eax
jmp 0x14001f617
mov rbp, rbx
cmp word [rax], si
je 0x14001f579
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f560
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f55c
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.14001f444
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14001f5ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f54d
call fcn.1400190e0
mov rdi, rax
test rax, rax
jne 0x14001f5d0
xor ecx, ecx
call fcn.140018420
jmp 0x14001f5af
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.14001f444
test eax, eax
jne 0x14001f601
mov rcx, rdi
call fcn.140018420
jmp 0x14001f60b
xor ecx, ecx
call fcn.140018420
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