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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1800a2088]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x70]
call fcn.180019730
lea rdi, [rbp + 0x4a8]
call fcn.180001170
mov qword [rsp + 0x28], rdi
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8d, 0x400
lea rdx, [rbp + 0x70]
mov rcx, qword [rax]
call fcn.18001ddd8
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], dil
mov qword [rsp + 0x48], ntohs
lea r8d, [rdi + 0xc]
lea rdx, str.localLog.txt
lea rcx, [rsp + 0x38]
call fcn.180018fc0
mov byte [rsp + 0x44], dil
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
call fcn.180019730
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1800070a0
nop
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.180008a50
mov rcx, rax
call fcn.180008c50
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x18], rdi
je 0x1800066cd
lea rcx, [rsp + 0x68]
call fcn.1800084c0
test al, al
cmove rbx, rdi
mov rcx, qword [rbp - 0x18]
call fcn.18001ea0c
test eax, eax
cmovne rbx, rdi
mov rdi, rbx
mov ebx, 2
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1800086d0
test rdi, rdi
jne 0x18000670f
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
mov edx, 6
cmp qword [rcx + 0x48], rdi
cmovne edx, ebx
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.180006380
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.180007d90
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.18001667c
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1800067c5
mov rcx, qword [rsp + 0x38]
mov rax, rcx
inc rdx
cmp rdx, 0x1000
jb 0x1800067c0
lea r8, [rdx + 0x27]
cmp r8, rdx
jbe 0x1800067df
mov rdx, r8
test al, 0x1f
jne 0x1800067df
mov rcx, qword [rcx - 8]
cmp rcx, rax
jae 0x1800067df
sub rax, rcx
sub rax, 8
cmp rax, 0x1f
ja 0x1800067df
call fcn.180017740
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.1800176e0
add rsp, 0x580
pop rdi
pop rbx
pop rbp
ret
call fcn.18001e294
int3
Function at 0x180019c10
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x18003e028]
xor ecx, ecx
lea r8, [0x18003e020]
lea rdx, [0x18003a530]
call fcn.180019a38
mov rbx, rax
test rax, rax
je 0x180019c50
mov rcx, rax
call fcn.180018160
mov rcx, rdi
call rbx
jmp 0x180019c56
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180019cb8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x18003e038]
mov ecx, 2
lea r8, [0x18003e030]
lea rdx, [0x18003a548]
call fcn.180019a38
mov rdi, rax
test rax, rax
je 0x180019cf9
mov rcx, rax
call fcn.180018160
mov ecx, ebx
call rdi
jmp 0x180019d01
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180019d0c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x18003e040]
mov edi, ecx
lea rdx, [0x18003a558]
mov ecx, 3
lea r8, [0x18003e038]
call fcn.180019a38
mov rsi, rax
test rax, rax
je 0x180019d58
mov rcx, rax
call fcn.180018160
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x180019d63
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800239e0
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 0x180023a4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180023a4f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180023a4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180023a4f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180023a4f
cmp dword [rcx + 0x84], 0xe
jbe 0x180023a4f
cmp dword [rcx + 0xf8], 0
je 0x180023a4f
mov ecx, ebx
call fcn.180023b0c
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.1800238dc
nop
cmp dword [rbp + 0x20], 0
je 0x180023a9d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180023aa8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800239e0
Function at 0x180029cd4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x18001eac5
call fcn.18001f2e8
mov dword [rax], 0x16
call fcn.18001e274
or eax, 0xffffffff
jmp 0x18001eae2
sub dword [rcx + 0x10], 1
jns 0x18001ead4
add rsp, 0x28
jmp 0x180029cd4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x180029d06
call fcn.18001f2e8
mov dword [rax], 0x16
call fcn.18001e274
jmp 0x180029e25
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180029e25
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180029e25
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180029d35
lock or dword [rcx + 0x14], 0x10
jmp 0x180029e25
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180029d49
call fcn.18002ade4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180025d8c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180033ac8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180029e13
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180029dde
mov rcx, rsi
call fcn.180025d8c
cmp eax, edi
je 0x180029dc9
mov rcx, rsi
call fcn.180025d8c
cmp eax, 0xfffffffe
je 0x180029dc9
mov rcx, rsi
call fcn.180025d8c
movsxd rbx, eax
lea r14, [0x1800a44b0]
mov rcx, rsi
sar rbx, 6
call fcn.180025d8c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180029dd0
lea rdx, [0x1800a2420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180029dde
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180029e02
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180029e02
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180029e02
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180029e28
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18002ab64
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.180018180
sub rsp, rax
mov rax, qword [0x1800a2088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180025d8c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002abb3
mov rax, rbp
jmp 0x18002acbb
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 + 0xa44b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002b0c0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa44b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002acb7
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 0x18002acb7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002b0c0
test rax, rax
js 0x18002acb7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002acb7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002aca9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002aca9
cmp byte [rcx], 0xd
jne 0x18002ac8f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002ac9e
cmp byte [rcx + 1], 0xa
jne 0x18002ac9e
inc rcx
jmp 0x18002ac9e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa2b50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002ac71
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002acbb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800176e0
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 0x18002e980
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 0x18002e9b0
xor eax, eax
jmp 0x18002ea73
mov rbp, rbx
cmp word [rax], si
je 0x18002e9d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002e9bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002e9b8
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.18002d14c
movsxd r14, eax
test eax, eax
jne 0x18002ea13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002e9a9
mov rcx, r14
call fcn.18002097c
mov rdi, rax
test rax, rax
jne 0x18002ea2c
xor ecx, ecx
call fcn.180022fe0
jmp 0x18002ea08
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.18002d14c
test eax, eax
jne 0x18002ea5d
mov rcx, rdi
call fcn.180022fe0
jmp 0x18002ea67
xor ecx, ecx
call fcn.180022fe0
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 0x18003361c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800a44b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18003367a
cmp word [rdx], r12w
jne 0x18003367a
or byte [rax + r8*8 + 0x38], cl
jmp 0x180033680
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800337db
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800337b6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800336b9
mov rcx, r9
jmp 0x1800336dc
cmp r9, rdx
jae 0x1800336f3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18003369d
jmp 0x1800337db
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800337b0
cmp dword [rsp + 0x80], edi
je 0x1800337b0
mov rdx, r14
lea r11, [0x1800a44b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180033789
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18003375c
mov word [rbx], r12w
jmp 0x1800337d7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180033765
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800337d7
cmp word [rsp + 0x70], r12w
jne 0x180033796
cmp rbx, rsi
je 0x180033756
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18002b0c8
cmp word [rsp + 0x70], r12w
je 0x1800337db
mov word [rbx], r13w
jmp 0x1800337d7
lea r11, [0x1800a44b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800337d3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800337db
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180037048
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.18002b0c8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002b0c8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180037198
cmp rax, 0xffffffffffffffff
je 0x180037198
xor edi, edi
test rbp, rbp
jle 0x180037143
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001ffd4
mov rbx, rax
test rax, rax
jne 0x1800370d0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180037139
mov edx, 0x8000
mov ecx, r14d
call fcn.180036ed0
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.180029580
cmp eax, 0xffffffff
je 0x180037119
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800370e0
mov edx, r15d
mov ecx, r14d
call fcn.180036ed0
jmp 0x180037139
cmp byte [rsi + 0x38], dil
je 0x180037130
cmp dword [rsi + 0x34], 5
jne 0x180037130
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
cmp byte [rsi + 0x30], dil
je 0x180037139
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180022fe0
jmp 0x1800371ac
jns 0x1800371ac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002b0c8
cmp rax, 0xffffffffffffffff
jne 0x180037164
cmp byte [rsi + 0x30], dil
je 0x1800371ac
mov edi, dword [rsi + 0x2c]
jmp 0x1800371ac
mov ecx, r14d
call fcn.1800320b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800371ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
jmp 0x1800371ac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800371a5
mov eax, dword [rsi + 0x2c]
jmp 0x1800371aa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002b0c8
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 0x140003a70
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003aa4
cmp word [rcx], 0x5a4d
jne 0x140003aa4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003aa4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003aa4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400039b0
test eax, eax
jne 0x140003ac0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a20
test rax, rax
je 0x140003ab5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004266
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004170
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004110
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400045c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409854b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409854b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004612
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000460a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046f9
inc ebx
add rax, 0x28
jmp 0x1400045ea
mov rcx, r12
call fcn.140004df1
mov rbp, rax
test rax, rax
jne 0x140004631
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004560
movsxd rbx, ebx
mov rax, qword [0x1409854b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e9f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409854b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004693
mov rax, qword [0x1409854b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004560
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046f3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046f3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409854b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004560
inc dword [0x1409854b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004b20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140985520]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140985500]
test rbx, rbx
je 0x140004b6c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b66
test eax, eax
jne 0x140004b66
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004b3e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004d20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004d43
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004d43
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004d44
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d7e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d75
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d80
inc r8d
add rax, 0x28
jmp 0x140004d5c
xor eax, eax
ret

Function at 0x140004df1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409815b0]
mov r8, rcx
mov rcx, r9
call fcn.140004d20
test eax, eax
je 0x140004e1d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d44
xor eax, eax
add rsp, 0x28
ret
Function at 0x180005350
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800053ad
lea rbx, [0x1800364a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180005394
cmp r10, 2
jb 0x180005394
cmp byte [r9], r8b
jne 0x180005394
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180005370
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800053ef
lea rbx, [0x1800364a0]
cmp r8b, 0x23
jne 0x1800053d3
cmp byte [r9], r8b
jne 0x1800053d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800053c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180005530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000554a
mov qword [r8], 0
lea rdx, [0x18003ab64]
call fcn.180005400
mov rbx, rax
test rax, rax
jne 0x18000556a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180005641
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180005641
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180005641
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180005641
cmp rdi, 0xffffffffffffffff
je 0x180005641
mov rax, qword [0x180041cc0]
test rax, rax
je 0x1800055de
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180005641
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000562e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180041cc0]
test rax, rax
je 0x180005623
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000564a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000563c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000564c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180007610
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1800364a0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x180041cc0]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee4], ebx
jne 0x1800076a6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.180018a10
mov eax, ebx
add rsp, 0x20
pop rbx
ret