joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b270
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000b2bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000b2b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000b2bf
add rax, 0x28
cmp rax, r9
jne 0x14000b2a0
xor eax, eax
ret

Function at 0x14000b2c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000b350
mov rdx, qword [0x1400be280]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000b33e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b33e
cmp word [rax + 0x18], 0x20b
jne 0x14000b33e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000b350
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000b329
add rbx, 0x28
cmp rbx, rdi
je 0x14000b350
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000b320
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000b360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400be280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b3dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b3d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b380
add rax, 0x28
cmp rax, r9
jne 0x14000b3c0
xor eax, eax
ret

Function at 0x14000b3e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400be280]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b3ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b408
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b3ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000b420
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400be280]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000b440
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000b448
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000b440
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000b490
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000b487
test rcx, rcx
je 0x14000b440
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000b478
xor eax, eax
ret
Function at 0x14000b4a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400be280]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b4bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b4c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14000b4e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400be280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b500
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000b500
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000b554
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000b560
add rdx, 0x28
cmp r9, rdx
jne 0x14000b540
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14000b570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400be280]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000b592
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000b5a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b592
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000b592
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000b592
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000b5f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000b608
add rdx, 0x28
cmp rdx, r10
jne 0x14000b5e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000b617
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000b627
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000b5fe
test ecx, ecx
jg 0x14000b610
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14000b6f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000b720
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14000b760
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000b790
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000b7a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000c150
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400e31a0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400e31a8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000c1a0
lea rdx, [0x14000c060]
mov ecx, eax
mov dword [0x1400e3198], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14000c1a8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000c197
call sym.abort
nop
nop
Function at 0x14000c1b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [str._P_v_]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000c1e8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000c250
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000c260
mov esi, dword [0x1400e3198]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000c2d0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000c318
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000c1d7
mov rcx, rbx
call fcn.14000c0b0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000c1d7
call fcn.14000c0b0
mov qword [rbx + 0x10], rax
jmp 0x14000c1d7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000c37a
mov r9d, dword [0x1400b5030]
test r9d, r9d
je 0x14000c3a8
lock add dword [0x1400e31a0], 1
jne 0x14000c3dc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000c387
mov eax, dword [rsi]
test eax, eax
je 0x14000c1f1
lock sub dword [0x1400e31a0], 1
js 0x14000c1f1
mov rcx, qword [0x1400e31a8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14000c1f1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000c403
mov qword [rax], rdi
mov ecx, dword [0x1400e3198]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000c22b
call r13
jmp 0x14000c22b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000c403
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000c2f3
call fcn.14000c150
mov dword [0x1400b5030], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000c27c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000c1f1
mov rax, qword [0x1400e3190]
lea r12, [rax + 1]
mov qword [0x1400e3190], r12
mov qword [rbx + 0x10], r12
jmp 0x14000c297
lock add dword [0x1400b5034], 1
je 0x14000c361
mov r8d, dword [0x1400b5030]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400b5030]
test r8d, r8d
jne 0x14000c370
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000c3d0
jmp 0x14000c370
mov rcx, qword [0x1400e31a8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000c28a
lock sub dword [0x1400e31a0], 1
jmp 0x14000c28a
call sym.abort
nop
nop dword [rax]
Function at 0x140014bb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140014bf8
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x1400e3ca0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x140014bde

Function at 0x140017140
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001716c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140017da0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400b7f30], 0
jne 0x140017ea6
mov byte [0x1400b7f30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140017e7c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140017e6d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400b9bd1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140017e68
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140017e37
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x140017f3b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140017ea1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140017ea1
Function at 0x140078380
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400783c8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007839a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008c120
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008c148
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008c190
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008c160
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008c19c
call rbp
cmp dword [rax], 4
je 0x14008c160
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400b3670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b7f60]
jmp sym.__emutls_get_address

Function at 0x1400b3680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b7f60]
jmp sym.__emutls_get_address
Function at 0x14157b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14157b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14157b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14157b06f
add dl, dl
jne 0x14157b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14157b0f6
xor eax, eax
add dl, dl
jne 0x14157b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14157b1ad
add dl, dl
jne 0x14157b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14157b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14157b07e
mov eax, 1
add dl, dl
jne 0x14157b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14157b0fb
sub eax, ebx
mov ebx, 1
jne 0x14157b14c
mov ecx, 1
add dl, dl
jne 0x14157b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14157b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14157b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14157b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14157b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14157b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14157b15d
cmp eax, 0x7d00
jae 0x14157b19b
cmp eax, 0x500
jb 0x14157b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14157b07e
cmp eax, 0x7f
ja 0x14157b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14157b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14157b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14157b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r11, qword [0x140025cd0]
mov rbx, rdx
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x140002169
mov esi, dword [rax + r11 + 0x8c]
test esi, esi
je 0x140002169
mov r10d, dword [rcx + r11 + 0x20]
xor r9d, r9d
mov ebp, dword [rcx + r11 + 0x24]
add r10, r11
mov r15d, dword [rcx + r11 + 0x1c]
add rbp, r11
mov edi, dword [rcx + r11 + 0x18]
add r15, r11
mov r14d, ecx
test edi, edi
je 0x140002169
nop dword [rax]
mov r8d, dword [r10]
mov rdx, rbx
add r8, r11
movzx ecx, byte [r8]
test cl, cl
je 0x14000212e
movzx eax, cl
sub r8, rbx
movzx ecx, al
cmp al, byte [rdx]
jne 0x14000212e
movzx eax, byte [r8 + rdx + 1]
inc rdx
movzx ecx, al
test al, al
jne 0x140002117
cmp cl, byte [rdx]
je 0x140002140
inc r9d
add r10, 4
cmp r9d, edi
jb 0x140002100
jmp 0x140002169
movzx ecx, word [rbp + r9*2]
mov eax, dword [r15 + rcx*4]
cmp eax, 0x1000
jbe 0x140002169
add rax, r11
lea rcx, [r14 + r11]
cmp rax, rcx
jb 0x14000216b
lea rcx, [r14 + rsi]
add rcx, r11
cmp rax, rcx
ja 0x14000216b
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret

Function at 0x140002df0
Capabilities:
Parse pe header

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

Function at 0x140009a00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400097fc
Function at 0x14000f058
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 0x14000f088
xor eax, eax
jmp 0x14000f14b
mov rbp, rbx
cmp word [rax], si
je 0x14000f0ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000f094
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000f090
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.14000ef78
movsxd r14, eax
test eax, eax
jne 0x14000f0eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000f081
mov rcx, r14
call fcn.14000a30c
mov rdi, rax
test rax, rax
jne 0x14000f104
xor ecx, ecx
call fcn.14000a8c4
jmp 0x14000f0e0
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.14000ef78
test eax, eax
jne 0x14000f135
mov rcx, rdi
call fcn.14000a8c4
jmp 0x14000f13f
xor ecx, ecx
call fcn.14000a8c4
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 0x14001346c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013482
mov al, 1
jmp 0x1400134e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013493
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400134e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f978
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400134e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400134e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400134e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400134e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014164
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140008ad4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400141ee
cmp byte [rbp - 0x21], r15b
je 0x1400141e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014224
call fcn.14000ab14
test eax, eax
jne 0x140014210
cmp byte [rbp - 0x21], r15b
je 0x140014208
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014224
cmp byte [rbp - 0x21], r15b
je 0x140014221
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d6c4
test eax, eax
jne 0x1400142c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140008ad4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140014263
cmp byte [rbp - 0x21], r15b
je 0x140014298
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014298
call fcn.14000ab14
test eax, eax
jne 0x140014284
cmp byte [rbp - 0x21], r15b
je 0x14001427d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014298
cmp byte [rbp - 0x21], r15b
je 0x140014295
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d6c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400142c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400142c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400142d5
mov rcx, rdi
call fcn.14000a8c4
cmp byte [rbp + 0x3f], r15b
je 0x1400142e4
mov rcx, qword [rbp + 0x27]
call fcn.14000a8c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140016840
Capabilities:
Parse pe header

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