joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095c24
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.140079484
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140095cae
cmp byte [rbp - 0x21], r15b
je 0x140095ca9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140095ce4
call fcn.140088de0
test eax, eax
jne 0x140095cd0
cmp byte [rbp - 0x21], r15b
je 0x140095cc8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140095ce4
cmp byte [rbp - 0x21], r15b
je 0x140095ce1
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.14007d618
test eax, eax
jne 0x140095d84
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140079484
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140095d23
cmp byte [rbp - 0x21], r15b
je 0x140095d58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140095d58
call fcn.140088de0
test eax, eax
jne 0x140095d44
cmp byte [rbp - 0x21], r15b
je 0x140095d3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140095d58
cmp byte [rbp - 0x21], r15b
je 0x140095d55
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.14007d618
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140095d84
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140095d87
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140095d95
mov rcx, rdi
call fcn.140087ee4
cmp byte [rbp + 0x3f], r15b
je 0x140095da4
mov rcx, qword [rbp + 0x27]
call fcn.140087ee4
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 0x140097710
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140097738
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140097738
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400316bc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140031734
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031734
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140031734
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031728
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031746
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031716
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140031736

Function at 0x140033280
Capabilities:
Parse pe header

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

Function at 0x14003c014
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bd78

Function at 0x140045f30
Capabilities:
Parse pe header

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

Function at 0x140001bec
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140016e00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001143d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018150
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018170
xor al, al
jmp 0x1400181f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018183
xor al, al
jmp 0x1400181f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400181ad
xor al, al
jmp 0x1400181f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400181c1
xor al, al
jmp 0x1400181f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400181d3
xor al, al
jmp 0x1400181f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400181ef
xor al, al
jmp 0x1400181f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140015f50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011622
movzx eax, al
test eax, eax
jne 0x140015f70
mov ecx, 7
call fcn.14001150f
nop
mov byte [rsp + 0x20], 0
call fcn.14001154b
mov byte [rsp + 0x21], al
cmp dword [0x140023b78], 1
jne 0x140015f94
mov ecx, 7
call fcn.14001150f
nop
jmp 0x140015fec
cmp dword [0x140023b78], 0
jne 0x140015fe7
mov dword [0x140023b78], 1
lea rdx, [0x14001e660]
lea rcx, [0x14001e330]
call fcn.1400112cb
test eax, eax
je 0x140015fc8
mov eax, 0xff
jmp 0x1400160f1
lea rdx, [0x14001e220]
lea rcx, [section..rdata]
call fcn.140011532
mov dword [0x140023b78], 2
jmp 0x140015fec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114fb
call fcn.140011465
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016049
mov rcx, qword [rsp + 0x30]
call fcn.140011244
movzx eax, al
test eax, eax
je 0x140016049
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002a020]
nop
call fcn.1400114ab
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001607d
mov rcx, qword [rsp + 0x38]
call fcn.140011244
movzx eax, al
test eax, eax
je 0x14001607d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115c8
nop
call fcn.1400161a0
mov dword [rsp + 0x28], eax
call fcn.14001143d
movzx eax, al
test eax, eax
jne 0x14001609c
mov ecx, dword [rsp + 0x28]
call fcn.140011082
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400160ab
call fcn.1400115d7
nop
xor edx, edx
mov cl, 1
call fcn.14001121c
mov eax, dword [rsp + 0x28]
jmp 0x1400160f1
add rsp, 0x68
ret
Function at 0x140004e70
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140004e91
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x1400621b0
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140013210
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x1400133bf
test rdx, rdx
jle 0x140013286
mov ebx, dword [rcx]
mov rcx, qword [0x14006fb90]
call fcn.140059380
cmp byte [rax], 0
jne 0x1400132a0
xor r12d, r12d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x1400132a8
cmp rsi, rcx
jle 0x140013288
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x140013255
xor ecx, ecx
lea rdx, [rsi - 1]
call fcn.14000b210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
jmp 0x140013293
mov rax, rsi
and eax, 3
je 0x1400133ea
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x1400133f1
cmp r8, rax
jb 0x1400133f1
test rdx, rdx
jne 0x1400133b3
cmp rsi, r8
jle 0x1400133a0
test r8, r8
js 0x1400133a0
movzx edx, byte [rbp + r8]
test rax, rax
je 0x14001334c
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x1400133fb
cmp r9, rax
jb 0x1400133fb
mov r8, r9
test r10, r10
jne 0x1400133b3
cmp rsi, r9
jle 0x1400133a0
test r9, r9
js 0x1400133a0
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x14001334c
test rcx, rcx
js 0x14001339d
cmp rsi, rcx
jle 0x14001339d
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x14006fb90]
call fcn.140059380
cmp byte [rax], 0
jne 0x1400132a0
imul ebx, ebx, 0x1b873593
mov eax, r12d
xor eax, esi
xor eax, ebx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul edx, eax, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul edx, eax, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140013293
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.14000b210
xor eax, eax
jmp 0x140013293
call fcn.140008300
xor eax, eax
jmp 0x140013293
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x1400133e7
sub rax, 1
xor ecx, ecx
xor r12d, r12d
mov r8, rax
jmp 0x1400132d8
xor r12d, r12d
xor ebx, ebx
jmp 0x140013355
mov edx, 1
jmp 0x1400132cf
mov r10d, 1
jmp 0x140013311
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x140013438
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
add rsp, 0x28
jmp 0x140013210
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.14000dcd0
xor eax, eax
add rsp, 0x28
ret
Function at 0x140013410
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x1400133bf
test rdx, rdx
jle 0x140013286
mov ebx, dword [rcx]
mov rcx, qword [0x14006fb90]
call fcn.140059380
cmp byte [rax], 0
jne 0x1400132a0
xor r12d, r12d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x1400132a8
cmp rsi, rcx
jle 0x140013288
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x140013255
xor ecx, ecx
lea rdx, [rsi - 1]
call fcn.14000b210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
jmp 0x140013293
mov rax, rsi
and eax, 3
je 0x1400133ea
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x1400133f1
cmp r8, rax
jb 0x1400133f1
test rdx, rdx
jne 0x1400133b3
cmp rsi, r8
jle 0x1400133a0
test r8, r8
js 0x1400133a0
movzx edx, byte [rbp + r8]
test rax, rax
je 0x14001334c
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x1400133fb
cmp r9, rax
jb 0x1400133fb
mov r8, r9
test r10, r10
jne 0x1400133b3
cmp rsi, r9
jle 0x1400133a0
test r9, r9
js 0x1400133a0
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x14001334c
test rcx, rcx
js 0x14001339d
cmp rsi, rcx
jle 0x14001339d
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x14006fb90]
call fcn.140059380
cmp byte [rax], 0
jne 0x1400132a0
imul ebx, ebx, 0x1b873593
mov eax, r12d
xor eax, esi
xor eax, ebx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul edx, eax, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul edx, eax, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140013293
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.14000b210
xor eax, eax
jmp 0x140013293
call fcn.140008300
xor eax, eax
jmp 0x140013293
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x1400133e7
sub rax, 1
xor ecx, ecx
xor r12d, r12d
mov r8, rax
jmp 0x1400132d8
xor r12d, r12d
xor ebx, ebx
jmp 0x140013355
mov edx, 1
jmp 0x1400132cf
mov r10d, 1
jmp 0x140013311
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x140013438
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
add rsp, 0x28
jmp 0x140013210
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.14000dcd0
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400434b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
lea rbp, [rdx + 7]
mov rsi, rcx
mov r14, rdx
cmovns rbp, rdx
mov ebx, r8d
sar rbp, 3
cmp rdx, 7
jle 0x1400435c5
mov rcx, qword [0x14006fb90]
call fcn.140059380
cmp byte [rax], 0
jne 0x1400435b8
xor ecx, ecx
lea r8, [0x14006ae80]
nop word [rax + rax]
mov edx, dword [rsi + rcx*8 + 4]
mov eax, dword [rsi + rcx*8]
add rcx, 1
mov r9d, edx
xor eax, ebx
movzx r10d, dl
movzx edi, dh
shr r9d, 0x18
shr edx, 0x10
mov ebx, dword [r8 + r9*4]
movzx r9d, al
xor ebx, dword [r8 + r10*4 + 0xc00]
movzx edx, dl
xor ebx, dword [r8 + r9*4 + 0x1c00]
mov r9d, eax
shr r9d, 0x18
xor ebx, dword [r8 + r9*4 + 0x1000]
xor ebx, dword [r8 + rdi*4 + 0x800]
xor ebx, dword [r8 + rdx*4 + 0x400]
movzx edx, ah
shr eax, 0x10
xor ebx, dword [r8 + rdx*4 + 0x1800]
movzx edx, al
xor ebx, dword [r8 + rdx*4 + 0x1400]
cmp rbp, rcx
jg 0x140043500
lea rdx, [rbp*8]
cmp r14, 7
mov ebp, 8
cmovle rdx, rbp
cmp r14, rdx
jle 0x1400435b8
add rdx, rsi
lea r8, [0x14006ae80]
add rsi, r14
nop dword [rax]
movzx ecx, byte [rdx]
add rdx, 1
xor ecx, ebx
shr ebx, 8
movzx ecx, cl
xor ebx, dword [r8 + rcx*4]
cmp rsi, rdx
jne 0x1400435a0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
xor edx, edx
jmp 0x14004358b
Function at 0x140058420
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140062780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140062780
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140058490
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400774f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140058640
mov rax, qword [0x1400774f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400584dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140058567
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400584c0
mov rcx, r12
call fcn.140058f40
mov rbp, rax
test rax, rax
je 0x14005869d
mov rax, qword [0x1400774f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140059070
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400774f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140058682
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140058560
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400585f0
add dword [0x1400774f4], 1
cmp ebx, 8
jae 0x140058598
test bl, 4
jne 0x140058650
test ebx, ebx
je 0x140058589
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140058670
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140058589
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400585ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400774f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140058560
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140058420
xor edi, edi
jmp 0x1400584e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140058589
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140058589
mov rax, qword [0x1400774f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140058420
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140058420
nop
nop dword [rax]
Function at 0x140058bb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140077560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140077540]
test rbx, rbx
je 0x140058c04
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140058bfb
test r12, r12
je 0x140058bfb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140058be0
lea rcx, [0x140077560]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140058f40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14006fbb0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140058fb9
mov rcx, r10
call fcn.140058e10
test eax, eax
je 0x140058fb9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140058fb6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140058fad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140058fb9
add r8, 0x28
cmp r8, r9
jne 0x140058f98
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140059320
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x1400775e0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400775e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140059370
lea rdx, [0x140059230]
mov dword [0x1400775d8], eax
call fcn.1400629d0
test eax, eax
jne 0x140059378
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140059367
call sub.msvcrt.dll_abort
nop
nop