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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rsp + 0x70]
lea edx, [r8 - 0x3bc2]
mov r9, qword [rsp + 0x68]
lea esi, [r8 - 0xda4]
add ebx, 0x7e6
mov r11d, ecx
xor r11d, 0x11ab
mov edi, r8d
mov r10d, ebx
lea eax, [rbx - 0x256]
cmp edx, eax
jg 0x180001d92
lea eax, [rsi + 0x7c1]
cmp ebx, eax
jg 0x180001d58
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov rdx, qword [section..data]
mov ecx, dword [0x180059060]
mov eax, dword [rdx + 0x130]
sub eax, 0xb9fca
imul ecx, eax
mov dword [0x180059060], ecx
mov eax, dword [r9 + 0xbc]
xor eax, 0x1b8e3e
add dword [rdx + 0x104], eax
mov rax, qword [r9 + 0xa0]
movsxd rcx, dword [0x180059078]
mov r8d, dword [r14 + rax]
add r14, 4
imul r8d, dword [0x180059074]
mov eax, dword [0x1800590ec]
sub dword [0x1800590d4], eax
mov rax, qword [r9 + 0xa8]
mov edx, r8d
shr edx, 0x10
mov byte [rcx + rax], dl
inc dword [0x180059078]
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0x50]
mov eax, dword [rdx + 0x2c]
xor ecx, 0xfff3d0fa
imul eax, ecx
mov dword [rdx + 0x2c], eax
mov edx, r8d
mov eax, dword [r9 + 0xec]
mov ecx, dword [r9 + 0x18]
inc ecx
shr edx, 8
imul eax, ecx
movsxd rcx, dword [r9 + 0x68]
mov dword [r9 + 0xec], eax
mov rax, qword [r9 + 0xa8]
mov byte [rcx + rax], dl
inc dword [r9 + 0x68]
movsxd rcx, dword [r9 + 0x68]
mov rax, qword [0x1800590b8]
mov byte [rcx + rax], r8b
mov eax, 1
sub eax, dword [r9 + 0x10c]
inc dword [r9 + 0x68]
sub eax, dword [0x180059028]
mov rcx, qword [section..data]
add dword [rcx + 0x34], eax
mov eax, dword [r9 + 0xc4]
xor eax, 0xf3a5a8
sub dword [0x180059090], eax
cmp r14, 0x227e0
jl 0x180001c30
mov rdx, qword [section..data]
mov r14, qword [rsp + 0x40]
mov eax, dword [rdx + 0x148]
add eax, 0x35931
mov dword [0x180059074], eax
jmp 0x180001d99
mov eax, r10d
xor eax, 0x3ebf
cmp dword [0x18005906c], eax
jb 0x180001d92
mov eax, dword [r9 + 0x60]
sub eax, dword [r9 + 0x124]
add eax, ebx
cmp r11d, eax
jae 0x180001d92
mov ecx, dword [r9 + 0x5c]
or ecx, dword [0x180059030]
xor ecx, dword [r9 + 0x5c]
xor ecx, 0x3862
mov dword [r9 + 0x5c], ecx
mov rdx, qword [section..data]
cmp esi, r10d
jge 0x180001dd9
cmp dword [rdx + 0x104], 0x15ead
jae 0x180001db9
mov eax, 0xffffe7d3
sub eax, dword [0x180059158]
add dword [r9 + 0x64], eax
lea eax, [r10 - 0x18]
add ebx, 0x9ea
lea ecx, [rsi + 0x786]
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, edi
call sym.iixfgec031pc.dll_NIBPcz441G
jmp 0x180001de4
mov ecx, ebx
xor ecx, r11d
sub dword [rdx + 0x148], ecx
mov rsi, qword [rsp + 0x50]
xor ebx, 0x1c
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180002730
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, dword [rsp + 0x80]
lea r12d, [rdx - 0x5d0]
mov esi, dword [rsp + 0x88]
xor r15d, 0x3389
mov ebp, r8d
mov r14d, edx
xor ebp, 0xbeb
xor r14d, 0x1bfa
add esi, 0xfffff630
lea eax, [r15 + 0x2e92]
cmp r14d, eax
mov rax, qword [rsp + 0x90]
jg 0x1800027bd
cmp dword [rax + 0x80], 0x12283
je 0x180002874
mov rdx, qword [section..data]
mov eax, 0x1325cc
mov ecx, dword [rdx + 0xbc]
xor ecx, dword [rdx + 0x10]
sub eax, ecx
add dword [rdx + 0x2c], eax
jmp 0x180002874
mov edx, dword [0x180059108]
mov qword [rsp + 0x60], rbx
mov ebx, dword [rax + 0x5c]
mov eax, edx
or eax, 0x3537
cmp ebx, eax
je 0x18000286f
mov rcx, qword [section..data]
and ebp, 0x33af
mov qword [rsp + 0x68], rdi
nop dword [rax]
cmp dword [rcx + 0x2c], ebp
jb 0x18000285c
mov r8d, dword [rcx + 0x28]
mov eax, r15d
mov edi, dword [0x18005911c]
or eax, 0x35c7
mov r9d, dword [0x180059104]
sub eax, r14d
mov ecx, dword [rcx + 0x10]
mov r11d, esi
movsxd r10, eax
and edi, esi
imul r11d, r14d
lea eax, [r14 + 0x3bc2]
mov dword [rsp + 0x30], edi
add r9d, 0xffffd207
mov qword [rsp + 0x28], r10
sub ecx, 0x2e7e
imul r8d, r12d
movsxd rdx, eax
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov rcx, qword [section..data]
mov edx, dword [0x180059108]
mov eax, edx
add ebx, 3
or eax, 0x3537
cmp ebx, eax
jne 0x1800027f0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
lea eax, [rsi - 0x99]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x18000b010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rsp + 0x60]
lea ebp, [r8 - 0x3bc2]
mov edx, ecx
lea ebx, [r8 - 0x839]
xor edx, 0xf84
xor ecx, 0x35a4
mov esi, r8d
lea edi, [rax + 0x459]
lea r11d, [rax - 0x35c7]
mov eax, ebp
xor eax, 0x3537
cmp edi, eax
je 0x18000b0ea
cmp dword [r9 + 0x140], 0x4d5
je 0x18000b07c
add dword [0x180059074], 0xfffffcf2
jmp 0x18000b09c
mov rdx, qword [section..data]
mov ecx, dword [r9 + 0x1c]
sub ecx, 0x26bf7
mov eax, dword [rdx + 0x140]
imul eax, ecx
mov dword [rdx + 0x140], eax
cmp dword [0x1800590fc], 0xc5c4
jae 0x18000b0ce
mov eax, dword [r9 + 0xd0]
mov ecx, dword [r9 + 0x1c]
sub ecx, dword [0x180059144]
add ecx, dword [0x180059050]
imul eax, ecx
mov dword [r9 + 0xd0], eax
jmp 0x18000b15c
mov rax, qword [section..data]
mov ecx, dword [rax + 0x60]
sub ecx, dword [rax + 0x148]
sub ecx, 0x13e9ab
xor dword [r9 + 0x64], ecx
jmp 0x18000b15c
mov eax, dword [r9 + 0x70]
or eax, edi
cmp edx, eax
jne 0x18000b15c
mov eax, dword [r9 + 0xdc]
mov r8, qword [section..data]
or eax, ebx
and eax, 0x35a4
cmp dword [r8 + 0x5c], eax
jbe 0x18000b163
add ecx, dword [0x180059034]
mov r10d, dword [r8 + 0x50]
sub edi, ecx
sub r11d, dword [r8 + 0x148]
mov ecx, dword [r8 + 0xd0]
imul r11d, dword [r8 + 0x18]
and ecx, ebx
mov r9d, dword [r9 + 0x28]
add r10d, dword [0x180059060]
add r9d, edx
sub ecx, dword [0x180059110]
movsxd rdx, ebp
mov r8d, r11d
mov qword [rsp + 0x20], r10
or rdx, 0x3a20
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [section..data]
cmp edi, esi
jge 0x18000b176
mov eax, dword [r8 + 0x10]
xor eax, 0xf2
sub dword [0x180059074], eax
mov rbp, qword [rsp + 0x48]
lea eax, [rbx - 0x4f7]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400028f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004310
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004310
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002a90
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400029ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002a35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002990
mov rcx, rbx
call fcn.1400033b0
mov rdi, rax
test rax, rax
je 0x140002ab2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400034f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002a2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002a40
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002a2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400028f0
nop dword [rax]
xor esi, esi
jmp 0x1400029b8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400028f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400028f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003020
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000307c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003073
test rsi, rsi
je 0x140003073
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003058
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400033b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400033d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400033d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400033d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000342d
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 0x140003424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400033d0
add rax, 0x28
cmp rax, r9
jne 0x140003410
xor eax, eax
ret

Function at 0x140003430
Capabilities:
Parse pe header

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

Function at 0x1400034f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000350f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003518
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400012a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax + 0x88]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
lea rcx, str._i__Setup_library__starting_function_checks..._n
call fcn.140001aa0
mov dword [rsp + 0x20], 0
jmp 0x14000139a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140001461
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
call fcn.140007df0
test eax, eax
jne 0x14000145c
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x48]
lea rcx, str._i__Found_matching_function__s_to__s_n
call fcn.140001aa0
mov rax, qword [rsp + 0x50]
jmp 0x140001463
jmp 0x140001390
xor eax, eax
add rsp, 0xa8
ret
Function at 0x140002584
Capabilities:
Parse pe header

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

Function at 0x140008178
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 0x140007fe3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007fe3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007fe3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007fe3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007fe3
cmp dword [rcx + 0x84], 0xe
jbe 0x140007fe3
cmp dword [rcx + 0xf8], 0
je 0x140007fe3
mov ecx, ebx
call fcn.140008094
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.140007e70
nop
cmp dword [rbp + 0x20], 0
je 0x140008031
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000803c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007f74
Function at 0x14000e4a4
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 0x14000e4d4
xor eax, eax
jmp 0x14000e597
mov rbp, rbx
cmp word [rax], si
je 0x14000e4f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e4e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e4dc
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.14000e3c4
movsxd r14, eax
test eax, eax
jne 0x14000e537
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e4cd
mov rcx, r14
call fcn.14000aa04
mov rdi, rax
test rax, rax
jne 0x14000e550
xor ecx, ecx
call fcn.140009d8c
jmp 0x14000e52c
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.14000e3c4
test eax, eax
jne 0x14000e581
mov rcx, rdi
call fcn.140009d8c
jmp 0x14000e58b
xor ecx, ecx
call fcn.140009d8c
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 0x14001279c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400127b2
mov al, 1
jmp 0x140012812
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400127c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012810
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000eca8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012810
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012810
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012810
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012812
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013850
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.14000c958
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400138da
cmp byte [rbp - 0x21], r15b
je 0x1400138d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013910
call fcn.140009fdc
test eax, eax
jne 0x1400138fc
cmp byte [rbp - 0x21], r15b
je 0x1400138f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013910
cmp byte [rbp - 0x21], r15b
je 0x14001390d
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.14000cb10
test eax, eax
jne 0x1400139b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c958
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001394f
cmp byte [rbp - 0x21], r15b
je 0x140013984
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013984
call fcn.140009fdc
test eax, eax
jne 0x140013970
cmp byte [rbp - 0x21], r15b
je 0x140013969
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013984
cmp byte [rbp - 0x21], r15b
je 0x140013981
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.14000cb10
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400139b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400139b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400139c1
mov rcx, rdi
call fcn.140009d8c
cmp byte [rbp + 0x3f], r15b
je 0x1400139d0
mov rcx, qword [rbp + 0x27]
call fcn.140009d8c
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400d7380]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400d7390]
mov dword [rax], 1
mov rax, qword [0x1400d73a0]
mov dword [rax], 1
mov rax, qword [0x1400d7370]
mov dword [rax], 1
mov rax, qword [0x1400d7210]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400d7360]
mov dword [0x140102020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400d7320]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400d7300]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400d6660]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001540
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140102040]
test rax, rax
jne 0x140001594
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
mov r8d, 0
mov edx, 0
lea rcx, [0x140102040]
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call rax
test eax, eax
sete al
test al, al
je 0x140001594
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [0x140102040]
lea rdx, [rbp - 4]
mov r8, rdx
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
call rax
mov eax, dword [rbp - 4]
and eax, 0x7fffffff
add rsp, 0x40
pop rbp
ret