joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430cc0
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x430f46
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
mov rcx, qword [rax + 0x1268]
lea rsi, [rax + 0x1278]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x430f3a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x00d7a5e0], 0
jne 0x430d1a
xor edx, edx
xor ebx, ebx
jmp 0x430d60
xor edx, edx
jmp 0x430d45
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call fcn.0041fe00
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x430d1e
add rax, 0x1268
call fcn.00430c40
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x430ed4
mov rsi, qword [rax + rdx*8 + 0x1278]
cmp rsi, 0x1000
jb 0x430d5b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.00414000
test rax, rax
jne 0x430dac
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x430d5b
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x430dec
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x430d5b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x430f2d
lea r10, [0x00d4c9b8]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x11440]
lea r8, [r8 + r10]
lea r8, [r8 + 0x11440]
test r11b, r9b
jne 0x430e6f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x6a]
test r8b, 1
je 0x430ea5
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x70]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x430d5b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x430f25
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x430d5b
cmp rbx, 0x200
ja 0x430f14
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00426620
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call fcn.00430c40
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.00467840
mov rax, r8
call fcn.004677c0
mov rax, r8
mov ecx, 0x40
call fcn.004677e0
mov edx, 0x200
nop
call fcn.00467820
nop
mov qword [rsp + 8], rax
call fcn.0046c0e0
mov rax, qword [rsp + 8]
jmp fcn.00430cc0
Function at 0x446260
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4463c7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x446272
cmp edx, ecx
jne 0x4463b5
nop word [rax + rax]
test rsi, rsi
jne 0x4463b5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4462d4
nop
call fcn.00469080
xorps xmm15, xmm15
mov r14, qword [0x00d7aa40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00446180
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x4463b0
mov rdx, qword [0x00d25178]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x4463a5
mov rcx, qword [0x00d25170]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00d26ff0]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00d26ff0], rax
nop
mov edx, 1
lea rsi, [0x00d26ff8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x446393
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x00935e5b]
mov ebx, 0x28
nop
call fcn.004376c0
mov rax, rsi
mov rcx, rdx
call fcn.004677c0
call fcn.00435be0
lea rax, [0x00930eee]
mov ebx, 0x23
call fcn.004376c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00465500
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00446260
Function at 0x4533e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x453557
movzx edx, byte [rax]
test edx, edx
jne 0x453414
nop dword [rax]
test r8b, r8b
jne 0x453414
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x453427
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x453517
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x453505
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x4534f7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45347d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x4534c0
mov eax, 1
cmp rax, rbx
ja 0x4534ab
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00467880
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x4534ef
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x4534b3
mov rcx, r11
mov eax, r12d
jmp 0x453482
mov rcx, rbx
call fcn.004677c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004677c0
mov eax, r8d
mov rcx, rbx
call fcn.00467880
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45354d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x453510
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45342d
mov eax, edx
mov rcx, rbx
call fcn.004677c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004677c0
nop
int3
Function at 0x45ada0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45ae4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x0045aea0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004653c0
xorps xmm15, xmm15
mov r14, qword [0x00d7aa40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00465500
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0045ada0
Function at 0x467340
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00d7af80]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00d7a5d9], 0
je 0x467376
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00d7b920]
aesenc xmm0, xmmword [0x00d7b930]
aesenc xmm0, xmmword [0x00d7b940]
movq rax, xmm0
ret
jmp 0x409f60

Function at 0x477ee0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x477faa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403e60
xorps xmm15, xmm15
mov r14, qword [0x00d7aa40]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x477f8f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x008b1bc0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044bc20
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00479a80
inc rbx
cmp rcx, rbx
jae 0x477f7e
mov edi, 1
lea rsi, [0x008b1bc0]
call fcn.0044bd00
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x009e5a40]
lea rsi, [0x009e3aa8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00465500
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00477ee0
Function at 0x6cd380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x6cd574
push rbp
mov rbp, rsp
sub rsp, 0x68
movq qword [rsp + 0x60], xmm15
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x94], esi
mov byte [rsp + 0x37], 0
mov dword [rsp + 0x38], 0
mov ebx, 8
call fcn.0069f4c0
movups xmmword [rsp + 0x50], xmm15
lea rcx, [0x006cd5c0]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x60], rdx
mov byte [rsp + 0x37], 1
mov rdx, rax
mov rsi, qword [rsp + 0x88]
mov qword [rax], rsi
mov r8d, dword [rsp + 0x94]
test r8d, r8d
je 0x6cd430
mov rax, rdx
mov rdx, qword [rdx]
mov esi, dword [rsp + 0x90]
mov rbx, rax
xor edi, edi
jmp 0x6cd54e
mov eax, 1
mov qword [rsp + 0x48], rdx
mov r10, qword [rsp + 0x80]
lea r11, [r10 + 0x100]
add dword [r11], eax
mov r11, rdx
mov rbx, qword [rdx]
mov rdx, rbx
cmp dword [rdx + 0x30], 1
jne 0x6cd47f
mov rax, rcx
nop
call fcn.006cd100
mov rcx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x80]
mov r11, qword [rsp + 0x48]
mov rbx, qword [r10 + 0x128]
mov r12, qword [r10 + 0xc8]
mov rdi, qword [r11]
movzx r9d, byte [r10 + 0xf]
mov rax, rcx
mov rcx, r12
mov esi, dword [rsp + 0x90]
call fcn.006db3e0
test eax, eax
jne 0x6cd4cb
mov rsi, qword [rsp + 0x80]
mov r8, rsi
cmp qword [rsi + 0x70], 0
je 0x6cd4cb
mov dword [rsp + 0x3c], eax
mov rsi, qword [rsp + 0x48]
mov rsi, qword [rsi]
jmp 0x6cd4ef
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x37], 0
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x38]
add rsp, 0x68
pop rbp
ret
mov rsi, qword [rsi + 0x20]
mov r8, r9
test rsi, rsi
je 0x6cd4cb
mov r9, r8
mov rbx, qword [r8 + 0x70]
nop dword [rax + rax]
test rbx, rbx
je 0x6cd4e8
mov qword [rsp + 0x40], rsi
mov ecx, dword [rsi + 0x30]
mov rdi, qword [rsi + 8]
mov rax, qword [rsp + 0x78]
call fcn.006fa800
mov eax, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x40]
mov r9, qword [rsp + 0x80]
jmp 0x6cd4e8
mov r11, rdx
add r11, 0x20
lea r12d, [rdi + 1]
mov r13, qword [rdx + 0x20]
cmp dword [rdx + 0x30], esi
cmovbe r10, r11
cmovbe edi, r12d
mov rdx, r13
mov rax, r10
mov r10, rax
mov qword [rax], rdx
test rdx, rdx
jne 0x6cd52e
mov rdx, rbx
mov eax, edi
nop
jmp 0x6cd435
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], esi
call fcn.00465500
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
jmp fcn.006cd380
Function at 0x6d3b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x6d3d63
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x48], rax
mov rsi, qword [rbx + 0x78]
movsxd rdi, ecx
imul rdi, rdi, 0x38
mov r8d, dword [rbx + 0x80]
mov dword [rsp + 0x24], r8d
mov rbx, rsi
mov rcx, rdi
nop dword [rax]
call fcn.006af200
test rax, rax
je 0x6d3c0e
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x24]
movsxd rsi, edx
imul rsi, rsi, 0x38
lea rbx, [rsi + rax]
mov esi, dword [rsp + 0x70]
sub esi, edx
movsxd rsi, esi
imul rdi, rsi, 0x38
xor ecx, ecx
mov rax, qword [rsp + 0x48]
call fcn.006a0ce0
mov rdx, qword [rsp + 0x68]
mov rsi, rdx
mov r8, qword [rsp + 0x30]
mov qword [rdx + 0x78], r8
mov eax, dword [rsp + 0x24]
jmp 0x6d3c2b
mov eax, 7
add rsp, 0x50
pop rbp
ret
mov rsi, rdx
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rdx + 0x80], eax
mov r8, rdi
mov ecx, dword [rsp + 0x70]
cmp ecx, eax
jle 0x6d3d5b
mov dword [rsp + 0x28], eax
movsxd rdx, eax
imul rdx, rdx, 0x38
mov qword [rsp + 0x40], rdx
lea rdi, [rdx + r8]
mov r9, rdi
mov r10, rsi
mov esi, dword [rsi + 0x20]
mov dword [rdi + 0x18], esi
mov rsi, r10
mov rdi, qword [r10 + 0x50]
cmp qword [rdi], 0
je 0x6d3c78
mov rdi, qword [r10 + 0x60]
test rdi, rdi
jle 0x6d3c78
mov r10, r9
mov qword [r9], rdi
mov rdi, r10
jmp 0x6d3c85
mov rdi, r9
mov r10d, dword [r10 + 0xb8]
mov qword [r9], r10
mov qword [rsp + 0x38], rdi
mov rdx, rsi
mov esi, dword [rsi + 0x3c]
mov dword [rdi + 0x1c], esi
mov edx, dword [rdx + 0x20]
mov dword [rsp + 0x2c], edx
mov rax, qword [rsp + 0x48]
mov ebx, 0x200
call fcn.006af5a0
test rax, rax
je 0x6d3cb9
mov rcx, rax
mov edx, dword [rsp + 0x2c]
mov dword [rax], edx
jmp 0x6d3cbc
mov rcx, rax
mov rdx, qword [rsp + 0x38]
mov rsi, rdx
mov qword [rdx + 0x10], rcx
mov rcx, rsi
mov dword [rsi + 0x20], 1
mov rcx, qword [rcx + 0x10]
test ecx, ecx
je 0x6d3d50
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
mov rcx, qword [rcx + 0x128]
test rcx, rcx
je 0x6d3d46
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
lea r8, [rdi + rsi]
lea r8, [r8 + 0x24]
mov r9, rcx
mov ecx, dword [rcx + 0x58]
lea r10, [rdi + rsi]
lea r10, [r10 + 0x28]
lea r11, [r9 + 0x60]
lea r12, [rdi + rsi]
lea r12, [r12 + 0x2c]
lea r13, [r9 + 0x64]
lea rsi, [rdi + rsi]
lea rsi, [rsi + 0x30]
mov dword [r8], ecx
mov ecx, dword [r11]
mov dword [r10], ecx
mov ecx, dword [r13]
mov dword [r12], ecx
mov ecx, dword [r9 + 0x88]
mov dword [rsi], ecx
jmp 0x6d3c19
mov rdi, qword [rsp + 0x30]
jmp 0x6d3c19
mov eax, 7
add rsp, 0x50
pop rbp
ret
xor eax, eax
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], ecx
call fcn.00465500
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x18]
jmp fcn.006d3b80
Function at 0x2fc4d6c90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d7692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d772a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d770e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7702
cmp qword [rbp - 0x10], 0
je 0x2fc4d7702
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d76c8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d772b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7830
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7858
mov eax, 0
jmp 0x2fc4d78a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7881
mov eax, 0
jmp 0x2fc4d78a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d78a1
mov eax, 0
jmp 0x2fc4d78a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d78ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d792a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7921
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d7921
mov rax, qword [rbp - 8]
jmp 0x2fc4d793f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d78f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001270
Capabilities:
Create directory

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, 0x30
and dword [r8], 0
mov r14, r9
mov r10d, dword [rsp + 0x70]
mov rsi, r8
mov rdi, qword [rcx + 0x228]
mov ebx, r10d
and ebx, 0x200
mov rbp, rcx
test rdx, rdx
je 0x18000e074
mov r11, qword [rdx + 0x228]
test r11, r11
je 0x18000e074
mov r9, qword [rsp + 0x60]
mov r8d, r10d
and r8d, 0x40
mov eax, r10d
and eax, 0x10
shl r8d, 4
or r8d, eax
mov ecx, r10d
shr ecx, 1
add r8d, r8d
and ecx, 0x10
mov eax, r10d
and eax, 4
and r10b, 8
or ecx, eax
shr ecx, 1
or r8d, ecx
mov rcx, r11
neg r10b
sbb eax, eax
and eax, 0x50
or r8d, eax
mov eax, ebx
neg eax
mov rax, qword [rsp + 0x68]
sbb edx, edx
and edx, 0x40000000
sub edx, 0xffffff80
or r8d, edx
mov rdx, rdi
mov dword [rsp + 0x28], r8d
mov r8, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNELBASE.dll_PrivCopyFileExW]
nop dword [rax + rax]
test eax, eax
je 0x18000e08b
test ebx, ebx
je 0x18000e064
xor edx, edx
mov rcx, rbp
call sym.ulib.dll_public:_static_class_FSN_DIRECTORY____ptr64___cdecl_SYSTEM::QueryDirectory_class_PATH_const____ptr64__unsigned_char_
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
test eax, eax
jne 0x18000134a
jmp 0x18000e08b
mov rcx, rdi
call fcn.18001d550
movzx eax, al
jmp 0x180001370
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
nop
jmp 0x180001370
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsi], eax
xor eax, eax
jmp 0x180001354
Function at 0x180001db0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18002c868]
lea rdx, sym.ulib.dll_const_DSTRING::vftable
xor ebx, ebx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x30], rdx
or r9d, 0xffffffff
mov rdx, rcx
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x48], ebx
xor r8d, r8d
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], ebx
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x10], rbx
mov dword [rbp - 8], ebx
call sym.ulib.dll_public:_unsigned_char___cdecl_WSTRING::Initialize_class_WSTRING_const____ptr64__unsigned_long_int__unsigned_long_int____ptr64
test al, al
je 0x180001e5e
or r8d, 0xffffffff
lea rdx, [0x180022170]
lea rcx, [rbp - 0x30]
call sym.ulib.dll_public:_unsigned_char___cdecl_WSTRING::Initialize_char_const____ptr64__unsigned_long_int____ptr64
test al, al
je 0x180001e5e
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call sym.ulib.dll_public:_unsigned_char___cdecl_WSTRING::Strcat_class_WSTRING_const____ptr64____ptr64
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180001e5e
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
sub eax, 2
je 0x180001e84
sub eax, 1
jne 0x18000e0dc
lea ebx, [rax + 2]
lea rcx, [rbp - 0x30]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbp - 0x60]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
mov ebx, 1
jmp 0x180001e5e
sub eax, 1
je 0x18000e101
sub eax, 1
je 0x18000e0f7
cmp eax, 1
jne 0x180001e5e
lea ebx, [rax + 4]
jmp 0x180001e5e
mov ebx, 4
jmp 0x180001e5e
mov ebx, 3
jmp 0x180001e5e
Function at 0x180001ea0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x18]
lea rax, [0x180020088]
mov qword [rcx], rax
mov rbx, rcx
test r8, r8
je 0x180001ee5
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
lea rsi, [rbx + 0x1b0]
mov rax, qword [rsi]
movabs r10, 0xca8007397c547370
mov rax, qword [rax + 0x30]
mov rcx, rsi
call qword [0x1800214b0]
mov rdi, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x28]
movabs r10, 0x83602fef5e53c270
mov rcx, rdi
call qword [0x1800214b0]
mov r8, rax
test rax, rax
jne 0x180001fd6
mov rax, qword [rdi]
movabs r10, 0xfd980fd51c5c1870
mov rax, qword [rax]
mov edx, 1
mov rcx, rdi
call qword [0x1800214b0]
lea rcx, [rbx + 0x1e0]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
mov rcx, rsi
call sym.ulib.dll_public_virtual:_void___cdecl_ARRAY::destructor_void____ptr64
lea rcx, [rbx + 0x180]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0x150]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0x120]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0xf0]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0xc0]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0x90]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0x60]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbx + 0x30]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
mov rsi, qword [rsp + 0x38]
lea rax, vtable.LL__qHV_.0
mov qword [rbx], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [r8]
mov rax, qword [rcx]
movabs r10, 0xfd980fd51c5c1870
mov edx, 1
mov rcx, r8
call qword [0x1800214b0]
mov rax, qword [rdi]
movabs r10, 0x83602fef5e53c270
mov rax, qword [rax + 0x28]
mov rcx, rdi
call qword [0x1800214b0]
jmp 0x180001f23