joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028520
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bec4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bec4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028670
cmp rax, 0xffffffffffffffff
je 0x140028670
xor edi, edi
test rbp, rbp
jle 0x14002861b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e4b0
mov rbx, rax
test rax, rax
jne 0x1400285a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028611
mov edx, 0x8000
mov ecx, r14d
call fcn.140016068
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cba0
cmp eax, 0xffffffff
je 0x1400285f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400285b8
mov edx, r15d
mov ecx, r14d
call fcn.140016068
jmp 0x140028611
cmp byte [rsi + 0x38], dil
je 0x140028608
cmp dword [rsi + 0x34], 5
jne 0x140028608
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028611
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a588
jmp 0x140028684
jns 0x140028684
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bec4
cmp rax, 0xffffffffffffffff
jne 0x14002863c
cmp byte [rsi + 0x30], dil
je 0x140028684
mov edi, dword [rsi + 0x2c]
jmp 0x140028684
mov ecx, r14d
call fcn.140017668
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028684
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028684
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002867d
mov eax, dword [rsi + 0x2c]
jmp 0x140028682
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bec4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001880
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword gs:[0x60]
mov r14d, edx
mov edx, 0x5c
mov rdi, rcx
mov rsi, qword [rax + 0x18]
add rsi, 0x20
mov rbx, qword [rsi]
call fcn.1400061c4
xor ebp, ebp
test rax, rax
setne bpl
nop
mov rcx, rdi
test ebp, ebp
je 0x1400018cd
mov rdx, qword [rbx + 0x40]
jmp 0x1400018d1
mov rdx, qword [rbx + 0x50]
call fcn.140009cf4
test eax, eax
je 0x140001961
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x1400018c0
test r14d, r14d
je 0x14000195d
xor edx, edx
lea rcx, str.ntdll.dll
call fcn.140001880
mov rcx, rax
mov edx, 0x7f6f58fc
call fcn.140001b50
mov rbx, rax
test rax, rax
je 0x14000195d
mov edx, 0x104
mov dword [rsp + 0x24], 0
mov rcx, rdi
mov qword [rsp + 0x28], rdi
call fcn.140009638
add ax, ax
mov qword [rsp + 0x60], 0
mov word [rsp + 0x20], ax
lea r9, [rsp + 0x60]
add ax, 2
lea r8, [rsp + 0x20]
xor edx, edx
mov word [rsp + 0x22], ax
xor ecx, ecx
call rbx
test eax, eax
js 0x14000195d
mov rax, qword [rsp + 0x60]
jmp 0x140001965
xor eax, eax
jmp 0x140001965
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001980
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x350
mov rax, qword [0x14002b018]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rdx
mov rbp, rcx
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400019b0
add rax, 1
je 0x1400019d4
lea rcx, [rax + rdx]
mov rdi, rcx
dec rcx
cmp byte [rcx], 0x2e
je 0x1400019d9
sub rax, 1
jne 0x1400019c3
mov edi, 1
xor edx, edx
mov qword [rsp + 0x370], rsi
mov r8d, 0x105
lea rcx, [rsp + 0x20]
call fcn.140006350
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call fcn.14000b790
mov r8d, 0x104
lea rdx, [0x1400280a4]
lea rcx, [rsp + 0x20]
call fcn.14000b910
xor edx, edx
lea rcx, [rsp + 0x130]
mov r8d, 0x208
call fcn.140006350
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
call fcn.140009af0
xor edx, edx
lea rcx, [rsp + 0x130]
call fcn.140001880
movzx ecx, byte [rdi]
xor esi, esi
mov r9, rax
mov ebx, 0x1337c0de
test rax, rax
jne 0x140001aed
mov qword [rsp + 0x380], r14
mov edx, esi
test cl, cl
je 0x140001aa1
nop dword [rax]
mov eax, edx
mov ecx, ebx
inc edx
test bl, 1
je 0x140001a90
rol ecx, 8
jmp 0x140001a93
ror ecx, 8
movzx eax, word [rax + rdi]
add eax, ecx
xor ebx, eax
cmp byte [rdx + rdi], sil
jne 0x140001a80
mov rax, qword gs:[0x60]
mov r14, qword [rax + 0x18]
add r14, 0x20
mov rdi, qword [r14]
cmp rdi, r14
je 0x140001ae0
nop word [rax + rax]
mov rcx, qword [rdi + 0x20]
cmp rcx, rbp
je 0x140001ad8
xor r8d, r8d
mov edx, ebx
call fcn.140001b50
test rax, rax
jne 0x140001ae3
mov rdi, qword [rdi]
cmp rdi, r14
jne 0x140001ac0
mov rax, rsi
mov r14, qword [rsp + 0x380]
jmp 0x140001b1f
test cl, cl
je 0x140001b12
mov eax, esi
mov ecx, ebx
inc esi
test bl, 1
je 0x140001b01
rol ecx, 8
jmp 0x140001b04
ror ecx, 8
movzx eax, word [rax + rdi]
add eax, ecx
xor ebx, eax
cmp byte [rsi + rdi], 0
jne 0x140001af1
xor r8d, r8d
mov edx, ebx
mov rcx, r9
call fcn.140001b50
mov rsi, qword [rsp + 0x370]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400049b0
add rsp, 0x350
pop rdi
pop rbp
pop rbx
ret
Function at 0x140001b50
Capabilities:
Parse pe header
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 r12
push r14
push r15
sub rsp, 0x20
mov ebp, edx
mov r10, rcx
test rcx, rcx
je 0x140001c53
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001c53
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001c53
mov ecx, 0x2000
test word [rax + r10 + 0x16], cx
je 0x140001c53
mov r15d, dword [rax + r10 + 0x8c]
test r15d, r15d
je 0x140001c53
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x140001c53
mov r14d, dword [r10 + rcx + 0x1c]
lea rdi, [r10 + rcx]
mov ebx, dword [rdi + 0x20]
add r14, r10
mov r12d, dword [rdi + 0x24]
add rbx, r10
add r12, r10
test edx, edx
je 0x140001c7f
mov esi, dword [rdi + 0x18]
xor r11d, r11d
test esi, esi
je 0x140001c53
nop dword [rax + rax]
mov r9d, dword [rbx]
xor r8d, r8d
add r9, r10
mov edx, 0x1337c0de
cmp byte [r9], r8b
je 0x140001c43
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + r9]
lea r8d, [r8 + 1]
mov eax, edx
test dl, 1
je 0x140001c35
rol eax, 8
jmp 0x140001c38
ror eax, 8
add ecx, eax
xor edx, ecx
cmp byte [r8 + r9], 0
jne 0x140001c20
cmp ebp, edx
je 0x140001c74
inc r11d
add rbx, 4
cmp r11d, esi
jb 0x140001c00
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
movzx ecx, word [r12 + r11*2]
mov eax, dword [r14 + rcx*4]
jmp 0x140001c88
mov eax, dword [rdi + 0x10]
neg eax
mov eax, dword [r14 + rax*4]
mov edx, eax
add rdx, r10
je 0x140001c53
mov rcx, rdx
cmp rdx, rdi
jb 0x140001cab
lea rax, [rdi + r15]
cmp rdx, rax
jae 0x140001cab
mov rcx, r10
call fcn.140001980
mov rcx, rax
mov rax, rcx
jmp 0x140001c55
Function at 0x140001cb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x268]
sub rsp, 0x358
mov rax, qword [0x14002b018]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov qword [r11 + 8], rbx
mov rsi, rdx
mov qword [r11 - 0x18], r13
mov rbx, rcx
mov qword [r11 - 0x20], r14
lea rcx, [rbp + 0x130]
movsxd r13, r8d
mov r14d, pe_nt_image_headers64
mov r8d, r14d
xor edx, edx
call fcn.140006350
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.140006350
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140001d20
cmp r8d, 0x1fe
ja 0x140001e7a
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x388], r12
sub rcx, rbx
mov qword [rsp + 0x340], r15
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140001d50
test r8b, 1
je 0x140001d87
lea rdx, [rsp + 0x30]
dec rdx
nop dword [rax]
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140001d70
movzx ecx, word [0x1400280a8]
inc r8d
mov word [rdx], cx
movzx ecx, word [0x1400280ac]
mov eax, r8d
cdq
mov word [rsp + 0x24], cx
movzx ecx, byte [0x1400280ae]
sub eax, edx
sar eax, 1
xor ebx, ebx
movsxd r12, eax
mov byte [rsp + 0x26], cl
mov byte [rsp + 0x28], 0
test eax, eax
jle 0x140001e04
mov qword [rsp + 0x380], rdi
mov edi, ebx
nop
movzx eax, byte [rsp + rdi*2 + 0x30]
lea r8, [rsp + 0x20]
mov byte [rsp + 0x26], al
lea rdx, [0x1400280b0]
movzx eax, byte [rsp + rdi*2 + 0x31]
lea rcx, [rsp + 0x24]
mov byte [rsp + 0x27], al
call fcn.140001080
movzx eax, byte [rsp + 0x20]
mov byte [rbp + rdi + 0x130], al
inc rdi
cmp rdi, r12
jl 0x140001dc0
mov rdi, qword [rsp + 0x380]
mov r15, qword [rsp + 0x340]
lea rax, [rsp + 0x30]
mov byte [rax], bl
lea rax, [rax + 1]
inc bx
cmp bx, r14w
jl 0x140001e11
xor r10b, r10b
mov word [rbp + 0x30], 0
xor r9b, r9b
lea r8, [rsp + 0x30]
movzx edx, byte [r8]
lea r8, [r8 + 1]
movzx ecx, dl
movzx eax, r10b
add cl, byte [rbp + rax + 0x130]
add r9b, cl
lea rcx, [rsp + 0x30]
movzx eax, r9b
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 - 1], al
movzx eax, r10b
inc eax
mov byte [rcx], dl
cdq
idiv r12d
mov r10d, edx
sub r14, 1
jne 0x140001e31
mov r12, qword [rsp + 0x388]
movzx r9d, byte [rbp + 0x30]
mov r11, r13
movzx r10d, byte [rbp + 0x31]
mov r14, qword [rsp + 0x348]
mov r13, qword [rsp + 0x350]
mov rbx, qword [rsp + 0x370]
test r11, r11
jle 0x140001ee8
inc r9b
lea rdx, [rsp + 0x30]
movzx eax, r9b
lea rcx, [rsp + 0x30]
add rdx, rax
lea rsi, [rsi + 1]
movzx r8d, byte [rdx]
add r10b, r8b
movzx eax, r10b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
add r8b, byte [rdx]
movzx eax, r8b
add r8b, byte [rsp + rax + 0x30]
xor byte [rsi - 1], r8b
sub r11, 1
jne 0x140001ea4
mov al, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400049b0
add rsp, 0x358
pop rsi
pop rbp
ret
Function at 0x140011ce4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011b10
Function at 0xa15030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0xa15040
jne 0xa15040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0xa150eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0xa15088
jne 0xa15088
je 0x499551b6
add r12, rsi
add rbx, rsi
je 0xa150eb
cmp dword [rsi + rdi + 0x14], 0
je 0xa150eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0xa15069
jne 0xa15069
je 0x7564afeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0xa22790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0xa227c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0xa22870
xor r14d, r14d
xor edx, edx
jmp 0xa228ff
mov rax, qword [rcx]
jmp 0xa2280b
push r15
je 0xa228f6
jne 0xa228f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0xa228de
mov rcx, rbp
jmp 0xa228b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0xa227d2
jne 0xa227d2
jmp 0xffffffffffa3b34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0xa22796
call qword [rax + 8]
je 0xa22914
jne 0xa22914
jmp 0xa2d508
jmp 0xa228cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0xa2287d
jne 0xa2287d
por mm3, qword [rdx - 0x17]
je 0xa227ed
jne 0xa227ed
je 0xffffffff84b1d62d
jmp 0xa22821
sub rsp, 0x28
mov rdi, rcx
je 0xa2290b
jmp 0xa22932
push rdi
push rbp
push rbx
jmp 0xa22845
je 0xa22920
mov rax, qword [rcx]
jmp 0xa227ad
call fcn.00a23060
jmp 0xa2295e
jmp 0x15aac90
je 0xa2293b
je 0xa2294f
jne 0xa2294f
je 0xffffffff8e263819
je 0xa22925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0xa2296f
jne 0xa2296f
test rcx, rcx
jmp 0xa2285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0xa227bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0xa2293b
mov rcx, qword [rdi + 0x10]
je 0xa22801
jne 0xa22801
push r14
push rsi
jmp 0xa22857
je 0xa22842
jne 0xa22842
mov rcx, qword [rcx + 0x10]
je 0xa228a8
jne 0xa228a8
jmp 0x18de99d
test eax, eax
jmp 0xa22918
jne 0xa227e0
jmp 0xa2293b
xor r14d, r14d
jmp 0xa2293b
je 0xa22935
jne 0xa22935
jmp 0xa2287c
jne 0xa2290b
jmp 0xa3e77a
mov r14d, 1
mov eax, r14d
jmp 0xa22942
je 0xa2281b
jne 0xa2281b
jmp 0x3901b69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0xa227f5
cmp eax, 1
je 0xa22892
jne 0xa22892
je 0xe7b4bb
mov rax, qword [rbp]
jmp 0xa22838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0xa38de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x00a4fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0xa3ee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0xa3ef1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0xa3f940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.00a3f6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.00a3c300
mov rcx, rdi
mov rdx, rbx
call fcn.00a3c280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0xa3f9a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0xa3f9c0
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00a39700
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00a39390
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00a393b0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.00a3b630
mov rcx, rbx
mov rdx, rbx
call fcn.00a39990
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00a3a130
lea rcx, [rsp + 0x80]
call fcn.00a39390
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.00a39370
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00a396e0
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00a39390
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.00a39540
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.00a39540
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.00a3b630
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.00a3b630
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00a393b0
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00a393b0
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00a3a130
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00a3a130
mov rcx, rbp
mov rdx, rbx
call fcn.00a39c20
mov rcx, rbx
mov rdx, rsi
call fcn.00a39c20
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00a393b0
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.00a3b630
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00a3a130
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.00a3b630
mov rcx, rdi
mov rdx, rdi
call fcn.00a39c20
mov rcx, r14
mov rdx, rbx
call fcn.00a3ac70
mov rcx, r12
mov rdx, r12
call fcn.00a39c20
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00a393b0
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00a3a130
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00a3a130
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0xa3fa90
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.00a39540
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.00a39540
mov rcx, rdi
mov rdx, rdi
call fcn.00a39990
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00a3a130
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.00a3a9a0
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140003fb0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003fe4
cmp word [rcx], 0x5a4d
jne 0x140003fe4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003fe4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003fe4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003ef0
test eax, eax
jne 0x140004000
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003f60
test rax, rax
je 0x140003ff5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400047b8
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400046b0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004b14
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409b1d58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409b1d54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004b62
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004b5a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004c49
inc ebx
add rax, 0x28
jmp 0x140004b3a
mov rcx, r12
call fcn.140005341
mov rbp, rax
test rax, rax
jne 0x140004b81
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004ab0
movsxd rbx, ebx
mov rax, qword [0x1409b1d58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400053ef
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409b1d58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004be3
mov rax, qword [0x1409b1d58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004ab0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004c43
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004c43
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 [0x1409b1d58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004ab0
inc dword [0x1409b1d54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140005070
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409b1dc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409b1da0]
test rbx, rbx
je 0x1400050bc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x1400050b6
test eax, eax
jne 0x1400050b6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000508e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005270
Capabilities:
Parse pe header

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

Function at 0x140005294
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400052ce
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400052c5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400052d0
inc r8d
add rax, 0x28
jmp 0x1400052ac
xor eax, eax
ret

Function at 0x140005341
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409acdb0]
mov r8, rcx
mov rcx, r9
call fcn.140005270
test eax, eax
je 0x14000536d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005294
xor eax, eax
add rsp, 0x28
ret