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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, qword [rcx + 0x10]
lea rsi, [0x1400cdb70]
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
test r11, r11
je 0x1400117dd
movzx eax, byte [rdx]
mov r10, rdx
test al, al
je 0x1400117c2
movzx eax, al
lea r10, [r10 + 1]
movzx ecx, byte [rax + rsi]
lea eax, [r9*8]
xor ecx, eax
movzx eax, byte [r10]
xor r9d, ecx
test al, al
jne 0x1400117a2
mov eax, r9d
xor edx, edx
div dword [rbx]
mov eax, edx
shl rax, 4
add rax, r11
mov r9d, edx
mov r11, qword [rax + 8]
mov ebx, dword [rax]
jmp 0x1400117e4
mov r11, qword [rcx + 8]
mov ebx, dword [rcx + 4]
mov dword [r8], r9d
test ebx, ebx
je 0x140011850
nop dword [rax + rax]
mov r10, qword [r11 + 0x18]
dec ebx
mov r8, rdi
movzx r9d, byte [r10]
test r9b, r9b
je 0x140011835
movzx eax, r9b
sub r10, rdi
nop dword [rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + rsi]
cmp byte [rcx + rsi], al
jne 0x140011835
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x140011810
movzx eax, byte [r8]
movzx ecx, byte [rax + rsi]
movzx eax, r9b
movzx eax, byte [rax + rsi]
cmp eax, ecx
je 0x140011862
mov r11, qword [r11]
test ebx, ebx
jne 0x1400117f0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rbx, qword [rsp + 8]
mov rax, r11
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140011880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rdx
lea r8, [rsp + 0x48]
mov rbx, rcx
call fcn.140011770
mov rcx, rax
test rax, rax
je 0x14001192b
mov rdi, qword [rax + 0x10]
test rbp, rbp
jne 0x14001191b
mov rdx, qword [rax + 8]
mov rax, qword [rax]
test rdx, rdx
je 0x1400118c9
mov qword [rdx], rax
jmp 0x1400118cd
mov qword [rbx + 8], rax
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400118dd
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140011900
mov edx, dword [rsp + 0x48]
shl rdx, 4
add rdx, rax
cmp qword [rdx + 8], rcx
jne 0x1400118fe
mov rax, qword [rcx]
mov qword [rdx + 8], rax
dec dword [rdx]
call fcn.14000d020
add dword [rbx + 4], 0xffffffff
jne 0x140011923
mov rcx, rbx
call fcn.1400114f0
mov rax, rdi
jmp 0x140011a2e
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, rdi
jmp 0x140011a2e
test rbp, rbp
je 0x140011a2c
mov ecx, 0x20
call fcn.14000cbd0
mov rdi, rax
test rax, rax
jne 0x14001194e
mov rax, rbp
jmp 0x140011a2e
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rbp
mov edx, dword [rbx + 4]
inc edx
mov dword [rbx + 4], edx
cmp edx, 0xa
jb 0x1400119b4
mov eax, dword [rbx]
add eax, eax
cmp edx, eax
jbe 0x1400119b4
add edx, edx
mov rcx, rbx
call fcn.1400115e0
test eax, eax
je 0x1400119b4
movzx ecx, byte [rsi]
xor eax, eax
test cl, cl
je 0x1400119ae
lea r8, [0x1400cdb70]
nop dword [rax]
movzx ecx, cl
lea rsi, [rsi + 1]
movzx edx, byte [rcx + r8]
lea ecx, [rax*8]
xor edx, ecx
movzx ecx, byte [rsi]
xor eax, edx
test cl, cl
jne 0x140011990
xor edx, edx
div dword [rbx]
jmp 0x1400119b8
mov edx, dword [rsp + 0x48]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140011a0c
shl rdx, 4
add rdx, rcx
je 0x140011a0c
mov eax, dword [rdx]
test eax, eax
je 0x1400119d6
mov rcx, qword [rdx + 8]
jmp 0x1400119d8
xor ecx, ecx
inc eax
mov qword [rdx + 8], rdi
mov dword [rdx], eax
test rcx, rcx
je 0x140011a0c
mov qword [rdi], rcx
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x140011a02
mov qword [rax], rdi
mov qword [rcx + 8], rdi
jmp 0x140011a2c
mov qword [rbx + 8], rdi
mov qword [rcx + 8], rdi
jmp 0x140011a2c
mov rax, qword [rbx + 8]
mov qword [rdi], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x140011a20
mov qword [rax + 8], rdi
mov qword [rdi + 8], 0
mov qword [rbx + 8], rdi
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140049e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov r14, qword [rcx + 0x10]
xor r10d, r10d
mov rbx, rcx
mov esi, r9d
add rcx, 0x88
mov ebp, r8d
nop dword [rax]
cmp dword [rcx + 0xc], 0
jle 0x140049ec2
cmp dword [rcx], esi
jne 0x140049ec2
movsx eax, word [rcx + 4]
cmp eax, ebp
je 0x140049f18
inc r10d
add rcx, 0x14
cmp r10d, 0xa
jl 0x140049eb0
mov qword [rsp + 0x40], rdi
mov r9d, ebp
mov edi, dword [rsp + 0x60]
mov r8d, esi
mov rcx, r14
mov dword [rsp + 0x20], edi
call fcn.140049d90
movzx r8d, byte [rsp + 0x68]
test r8b, r8b
je 0x140049fbf
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140049fcf
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r8b
jmp 0x140049fcf
mov eax, dword [rbx + 0x74]
mov dword [rcx + 0x10], eax
inc dword [rbx + 0x74]
mov eax, dword [rcx + 0xc]
cmp dword [rbx + 0x94], eax
jne 0x140049f33
mov byte [rbx + 0x8e], 0
cmp dword [rbx + 0xa8], eax
jne 0x140049f42
mov byte [rbx + 0xa2], 0
cmp dword [rbx + 0xbc], eax
jne 0x140049f51
mov byte [rbx + 0xb6], 0
cmp dword [rbx + 0xd0], eax
jne 0x140049f60
mov byte [rbx + 0xca], 0
cmp dword [rbx + 0xe4], eax
jne 0x140049f6f
mov byte [rbx + 0xde], 0
cmp dword [rbx + 0xf8], eax
jne 0x140049f7e
mov byte [rbx + 0xf2], 0
cmp dword [rbx + 0x10c], eax
jne 0x140049f8d
mov byte [rbx + 0x106], 0
cmp dword [rbx + 0x120], eax
jne 0x140049f9c
mov byte [rbx + 0x11a], 0
cmp dword [rbx + 0x134], eax
jne 0x140049fab
mov byte [rbx + 0x12e], 0
cmp dword [rbx + 0x148], eax
jne 0x140049fba
mov byte [rbx + 0x142], 0
mov eax, dword [rcx + 0xc]
jmp 0x140049fd6
mov r9d, edi
mov r8d, ebp
mov edx, esi
mov rcx, rbx
call fcn.140049660
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14004c130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x28
mov r12d, r8d
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
je 0x14004c332
test rdx, rdx
je 0x14004c332
mov r11d, dword [rcx + 4]
mov r9d, dword [rdx + 4]
mov ecx, r9d
mov qword [rsp + 0x58], rbp
or ecx, r11d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], ecx
bt ecx, 0xa
jae 0x14004c1bb
and r9d, r11d
bt r9d, 0xa
jae 0x14004c2a1
mov eax, dword [rdx + 8]
cmp dword [rsi + 8], eax
jne 0x14004c2a1
xor eax, eax
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
movzx r10d, byte [rsi]
cmp r10b, byte [rdx]
je 0x14004c200
cmp r10b, 0x5f
jne 0x14004c1d8
mov rcx, qword [rsi + 0x10]
call fcn.14004c130
cmp eax, 2
jl 0x14004c1f9
cmp byte [rdi], 0x5f
jne 0x14004c2a1
mov rdx, qword [rdi + 0x10]
mov r8d, r12d
mov rcx, rsi
call fcn.14004c130
cmp eax, 2
jge 0x14004c2a1
mov eax, 1
jmp 0x14004c19d
lea eax, [r10 + 0x66]
test al, 0xfd
je 0x14004c24c
mov rax, qword [rsi + 8]
test rax, rax
je 0x14004c24c
mov r8, qword [rdx + 8]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14004c233
inc rax
test ecx, ecx
jne 0x14004c220
test edx, edx
je 0x14004c248
xor ebx, ebx
cmp r10b, 0x5f
setne bl
lea eax, [rbx + 1]
jmp 0x14004c19d
mov ecx, dword [rsp + 0x50]
xor r9d, r11d
test r9b, 0x10
jne 0x14004c2a1
bt ecx, 0xe
jb 0x14004c19b
bt ecx, 0xb
jb 0x14004c2a1
mov rdx, qword [rdi + 0x10]
mov r8d, r12d
mov rcx, qword [rsi + 0x10]
call fcn.14004c130
test eax, eax
jne 0x14004c2a1
mov rdx, qword [rdi + 0x18]
mov r8d, r12d
mov rcx, qword [rsi + 0x18]
call fcn.14004c130
test eax, eax
jne 0x14004c2a1
mov r15, qword [rsi + 0x20]
xor ebx, ebx
mov r13, qword [rdi + 0x20]
test r15, r15
jne 0x14004c2ab
test r13, r13
je 0x14004c2f6
mov eax, 2
jmp 0x14004c19d
test r13, r13
je 0x14004c2a1
mov eax, dword [r15]
cmp eax, dword [r13]
jne 0x14004c2a1
mov ebp, ebx
test eax, eax
jle 0x14004c2f6
mov r14, rbx
mov rdx, qword [r13 + 8]
mov rcx, qword [r15 + 8]
movzx eax, byte [rdx + r14 + 0x18]
cmp byte [rcx + r14 + 0x18], al
jne 0x14004c2a1
mov rdx, qword [rdx + r14]
mov r8d, r12d
mov rcx, qword [rcx + r14]
call fcn.14004c130
test eax, eax
jne 0x14004c2a1
inc ebp
add r14, 0x28
cmp ebp, dword [r15]
jl 0x14004c2c2
test dword [rsp + 0x50], 0x2000
jne 0x14004c19b
movzx eax, word [rdi + 0x30]
cmp word [rsi + 0x30], ax
jne 0x14004c2a1
mov eax, dword [rsi + 0x2c]
mov ecx, dword [rdi + 0x2c]
cmp eax, ecx
je 0x14004c19b
cmp eax, r12d
jne 0x14004c2a1
mov eax, 2
test ecx, ecx
cmovns ebx, eax
mov eax, ebx
jmp 0x14004c19d
xor ebx, ebx
mov eax, 2
cmp rdi, rsi
cmove eax, ebx
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004de40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
xor esi, esi
movsxd r15, edx
mov r12d, r8d
mov rbx, rcx
test rdi, rdi
jne 0x14004deae
call fcn.14002f9d0
mov qword [rbx + 0x10], rax
mov rdi, rax
test rax, rax
je 0x14004de8f
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.14002fbb0
cmp qword [rbx + 0x1c0], rsi
jne 0x14004dea5
mov rax, qword [rbx]
test byte [rax + 0x4c], 8
jne 0x14004dea5
mov byte [rbx + 0x23], 1
test rdi, rdi
je 0x14004e044
movzx eax, byte [rbx + 0x1f]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r14
lea r14, [rbx + 0x54]
test al, al
jne 0x14004ded4
mov ebp, dword [r14]
inc ebp
mov dword [r14], ebp
inc dword [r14]
mov r14d, dword [r14]
jmp 0x14004def7
sub al, 1
movzx ecx, al
mov byte [rbx + 0x1f], cl
mov ebp, dword [rbx + rcx*4 + 0x24]
jne 0x14004deea
inc dword [r14]
mov r14d, dword [r14]
jmp 0x14004def7
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0x24]
mov r9d, ebp
mov dword [rsp + 0x20], 2
mov r8d, r15d
mov edx, 0x33
mov rcx, rdi
call fcn.14002fbb0
mov eax, dword [rdi + 0x94]
bts eax, r15d
mov dword [rdi + 0x94], eax
cmp r15d, 1
je 0x14004df51
mov rax, qword [rdi]
mov rdx, r15
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], sil
je 0x14004df51
mov eax, dword [rdi + 0x98]
bts eax, r15d
mov dword [rdi + 0x98], eax
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r12d
mov edx, 0x19
mov rcx, rdi
call fcn.14002fbb0
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov r8d, r14d
mov rcx, rdi
lea edx, [r9 + 0x53]
call fcn.14002fbb0
mov r12d, eax
mov rax, qword [rdi + 8]
test rax, rax
je 0x14004df97
movsxd rcx, dword [rdi + 0x3c]
lea rdx, [rcx + rcx*2]
mov byte [rax + rdx*8 - 0x15], 0x90
mov r9d, 2
mov dword [rsp + 0x20], r14d
mov r8d, r15d
mov rcx, rdi
lea edx, [r9 + 0x32]
call fcn.14002fbb0
mov edx, dword [rdi + 0x3c]
cmp edx, r12d
jbe 0x14004dfc5
mov rax, qword [rdi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
test ebp, ebp
je 0x14004e004
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14004e004
mov ecx, esi
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], ebp
je 0x14004e000
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14004dfe7
mov dword [rbx + rdx*4 + 0x24], ebp
inc byte [rbx + 0x1f]
jmp 0x14004e004
mov byte [rax + 6], 1
mov rbp, qword [rsp + 0x50]
test r14d, r14d
je 0x14004e03f
movzx ecx, byte [rbx + 0x1f]
cmp cl, 8
jae 0x14004e03f
lea rax, [rbx + 0x88]
nop
cmp dword [rax + 0xc], r14d
je 0x14004e03b
inc esi
add rax, 0x14
cmp esi, 0xa
jl 0x14004e020
mov dword [rbx + rcx*4 + 0x24], r14d
inc byte [rbx + 0x1f]
jmp 0x14004e03f
mov byte [rax + 6], 1
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
Function at 0x1400527b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, dword [rcx + 0x28]
xor edi, edi
xor ebx, ebx
mov rsi, r8
mov r15, rdx
mov rbp, rcx
test r14d, r14d
jle 0x1400528c4
mov qword [rsp + 0x58], r12
lea r12, [0x1400cdb70]
nop word [rax + rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test rsi, rsi
je 0x14005286d
mov rax, qword [rbp + 0x20]
movzx r9d, byte [rsi]
movsxd rcx, r10d
shl rcx, 5
mov r8, qword [rcx + rax]
test r9b, r9b
je 0x140052857
mov r11, rsi
movzx eax, r9b
sub r11, r8
nop word [rax + rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + r12]
cmp byte [rcx + r12], al
jne 0x140052857
movzx eax, byte [r11 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x140052830
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, r9b
movzx eax, byte [rax + r12]
cmp eax, ecx
jne 0x1400528a0
mov rax, qword [rbp + 0x20]
lea r8, [rsp + 0x50]
movsxd rcx, r10d
mov rdx, r15
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.140011770
test rax, rax
je 0x14005289e
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x1400528ab
jmp 0x1400528a0
xor edi, edi
inc ebx
cmp ebx, r14d
jl 0x1400527f0
mov r12, qword [rsp + 0x58]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400529f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x28
mov ebp, dword [rcx + 0x28]
xor r11d, r11d
xor ebx, ebx
mov rdi, r8
mov r14, rdx
test ebp, ebp
jle 0x140052af7
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
lea r12, [0x1400cdb70]
mov qword [rsp + 0x20], r15
mov r15, qword [rcx + 0x20]
nop word [rax + rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
cdqe
shl rax, 5
mov rsi, qword [rax + r15 + 0x18]
test rdi, rdi
je 0x140052aad
movzx r9d, byte [rdi]
mov r8, qword [rax + r15]
test r9b, r9b
je 0x140052a97
mov r10, rdi
movzx eax, r9b
sub r10, r8
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + r12]
cmp byte [rcx + r12], al
jne 0x140052a97
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x140052a70
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, r9b
movzx eax, byte [rax + r12]
cmp eax, ecx
jne 0x140052ad1
lea rcx, [rsi + 0x20]
mov rdx, r14
lea r8, [rsp + 0x50]
call fcn.140011770
test rax, rax
je 0x140052ace
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x140052adb
jmp 0x140052ad1
xor r11d, r11d
inc ebx
cmp ebx, ebp
jl 0x140052a30
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rbp
pop rbx
ret
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140067700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push r13
push r14
sub rsp, 0x38
mov r14, qword [rcx + 0x1b8]
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
mov r13, qword [rcx]
test r14, r14
je 0x1400678f7
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x30], r15
nop dword [rax]
movsxd r9, dword [r14 + 0x10]
movzx eax, byte [rsi + 0x1f]
mov r15d, dword [r14 + 0x14]
shl r9, 5
add r9, qword [r13 + 0x20]
test al, al
jne 0x140067760
inc dword [rsi + 0x54]
mov ebp, dword [rsi + 0x54]
jmp 0x14006776c
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov ebp, dword [rsi + rax*4 + 0x24]
mov r9, qword [r9 + 0x18]
xor edx, edx
mov r8d, dword [r14 + 0x10]
mov rcx, rsi
mov dword [rsp + 0x20], 0x37
mov r9, qword [r9 + 0x68]
call fcn.140067050
xor r9d, r9d
mov dword [rsp + 0x20], r12d
lea r8d, [r15 + 1]
mov rcx, rbx
lea edx, [r9 + 0x4d]
call fcn.14002fbb0
xor r8d, r8d
mov r12d, eax
lea r9d, [r15 + 1]
mov dword [rsp + 0x20], 0
mov rcx, rbx
lea edx, [r8 + 0x4a]
call fcn.14002fbb0
mov edx, dword [rbx + 0x3c]
cmp edx, r12d
jbe 0x1400677d4
mov rax, qword [rbx + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x3c]
dec ecx
mov dword [rax + 0x64], ecx
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x1400677f9
mov rcx, rbx
call fcn.14002fb00
test eax, eax
jne 0x14006782d
mov rax, qword [rbx + 8]
lea rcx, [rdi + rdi*2]
inc dword [rbx + 0x3c]
xor r12d, r12d
mov word [rax + rcx*8], 0x31
mov byte [rax + rcx*8 + 3], 0
lea rdx, [rax + rcx*8]
lea eax, [r15 - 1]
mov dword [rdx + 8], 2
mov dword [rdx + 4], eax
mov dword [rdx + 0xc], ebp
mov qword [rdx + 0x10], r12
jmp 0x140067830
xor r12d, r12d
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x140067849
mov rcx, rbx
call fcn.14002fb00
test eax, eax
jne 0x140067875
mov rax, qword [rbx + 8]
lea rcx, [rdi + rdi*2]
inc dword [rbx + 0x3c]
mov word [rax + rcx*8], 0x4b
mov byte [rax + rcx*8 + 3], 0
lea rdx, [rax + rcx*8]
lea eax, [r15 + 1]
mov dword [rdx + 4], r12d
mov dword [rdx + 0xc], eax
mov dword [rdx + 8], ebp
mov qword [rdx + 0x10], r12
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14006788b
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x3d]
call fcn.14002fbb0
test ebp, ebp
je 0x1400678d7
cmp byte [rsi + 0x1f], 8
jae 0x1400678d7
mov ecx, r12d
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x1400678d3
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x1400678b6
movzx eax, byte [rsi + 0x1f]
mov dword [rsi + rax*4 + 0x24], ebp
inc byte [rsi + 0x1f]
jmp 0x1400678d7
mov byte [rax + 6], 1
mov r14, qword [r14]
test r14, r14
jne 0x140067740
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x38
pop r14
pop r13
pop rsi
pop rbx
ret
Function at 0x1400a1db8
Capabilities:
Parse pe header

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

Function at 0x1400b130c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400b1343
call fcn.1400b3cc4
mov dword [rax], 0x16
call fcn.1400b113c
xor eax, eax
jmp 0x1400b13d1
mov rdx, r9
mov rcx, r8
call fcn.1400b12a8
mov rbx, rax
test rax, rax
je 0x1400b13ce
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b11d4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400b13bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b3c38
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b13a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b13b1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400b48f0
jmp 0x1400b13ce
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b13cb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b1c4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b1a48
Function at 0x1400b9a90
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 0x1400b9ac0
xor eax, eax
jmp 0x1400b9b83
mov rbp, rbx
cmp word [rax], si
je 0x1400b9ae5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b9acc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b9ac8
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.1400b99b0
movsxd r14, eax
test eax, eax
jne 0x1400b9b23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b9ab9
mov rcx, r14
call fcn.1400b492c
mov rdi, rax
test rax, rax
jne 0x1400b9b3c
xor ecx, ecx
call fcn.1400b48f0
jmp 0x1400b9b18
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.1400b99b0
test eax, eax
jne 0x1400b9b6d
mov rcx, rdi
call fcn.1400b48f0
jmp 0x1400b9b77
xor ecx, ecx
call fcn.1400b48f0
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 0x1400b9ba0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b9c27
mov rsi, rbx
cmp word [rax], bp
je 0x1400b9be6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b9bd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b9bcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b492c
mov rdi, rax
test rax, rax
je 0x1400b9c14
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c1d20
mov rbp, rdi
xor ecx, ecx
call fcn.1400b48f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bd12c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bd142
mov al, 1
jmp 0x1400bd1a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bd153
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bd1a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400bad10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bd1a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bd1a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bd1a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bd1a2
xor al, al
add rsp, 0x20
pop rbx
ret