joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401eccb0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1402c9798]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1400151f4
cmp rax, rbx
jne 0x1401ecd4c
cmp edi, 1
je 0x1401eccf4
cmp edi, 2
je 0x1401ecd4c
mov rcx, qword [rsi + 0x40]
call fcn.140015278
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003e9d0
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1401ecd70
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1401ecda5
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400151f4
xor ebx, ebx
test rsi, rsi
jle 0x1401ecdca
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x1401ecdca
inc rbx
cmp rsi, rbx
jne 0x1401ecdac
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401ecde0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x1402c9798]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp edx, 0xffffffff
je 0x1401ece4a
mov r15d, edx
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x1401ece70
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.1400151f4
mov esi, 0xffffffff
cmp rax, 1
je 0x1401ece4d
jmp 0x1401ece50
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003e9d0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp qword [rsp + 0x40], rsi
je 0x1401ecf20
mov ebp, eax
cmp eax, 3
je 0x1401eceff
cmp ebp, 1
ja 0x1401ecf20
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1400151f4
cmp rax, rsi
jne 0x1401ecf20
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x1401ece88
jmp 0x1401ece4d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1400151f4
cmp rax, 1
je 0x1401ece4d
mov esi, 0xffffffff
jmp 0x1401ece50

Function at 0x1401ecf70
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1401ecfa5
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400151f4
xor ebx, ebx
test rsi, rsi
jle 0x1401ecfcb
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x1401ecfcb
inc rbx
cmp rsi, rbx
jne 0x1401ecfac
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401ecfe0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x1402c9798]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp dx, 0xffff
je 0x1401ed04a
mov r15d, edx
mov rdi, rcx
mov word [rsp + 0x56], dx
cmp byte [rcx + 0x58], 0
je 0x1401ed070
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.1400151f4
mov si, 0xffff
cmp rax, 1
je 0x1401ed04d
jmp 0x1401ed050
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003e9d0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
cmp qword [rsp + 0x40], rsi
je 0x1401ed120
mov ebp, eax
cmp eax, 3
je 0x1401ed0ff
cmp ebp, 1
ja 0x1401ed120
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1400151f4
cmp rax, rsi
jne 0x1401ed120
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x1401ed088
jmp 0x1401ed04d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1400151f4
cmp rax, 1
je 0x1401ed04d
mov si, 0xffff
jmp 0x1401ed050
Function at 0x1402037f0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140203827
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x140203801
ret

Function at 0x140203880
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1402038b8
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x140203891
ret

Function at 0x148aff058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.148aff1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x148aff089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x148aff06f
add dl, dl
jne 0x148aff096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x148aff0f6
xor eax, eax
add dl, dl
jne 0x148aff0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x148aff1ad
add dl, dl
jne 0x148aff0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148aff0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148aff0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148aff0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x148aff0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x148aff07e
mov eax, 1
add dl, dl
jne 0x148aff106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x148aff113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x148aff0fb
sub eax, ebx
mov ebx, 1
jne 0x148aff14c
mov ecx, 1
add dl, dl
jne 0x148aff12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x148aff13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x148aff123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x148aff07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x148aff168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x148aff175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x148aff15d
cmp eax, 0x7d00
jae 0x148aff19b
cmp eax, 0x500
jb 0x148aff196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x148aff07e
cmp eax, 0x7f
ja 0x148aff19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x148aff07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x148aff1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x148aff07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int 0x3d
call 0x13b2bfa42
invalid
push 1
retf
invalid
jl 0x1400c3e51
clc
sal dword [rdx], 1
xor dh, dh
sahf
jle 0x1400c3ee1
mov ch, 0xbf
mov edi, 0xf1cfdfff
cmp al, 0xfa
invalid
jnp 0x1400c3efd
loop 0x1400c3efc
pop rdx
fnstcw word [rdi + rsi*8]
push rsp
fbld tbyte [rdi + rbx*8]
test esp, ebx
ret
invalid
or eax, 0x37de03ef
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140002a00
Capabilities:
Parse pe header

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

Function at 0x14000f550
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14000f57c
xor al, al
jmp 0x14000f6a0
movdqa xmm0, xmmword [0x14002fae0]
movdqa xmm1, xmmword [0x14002faf0]
mov rax, qword [r9]
xor r11d, r11d
mov qword [rsp + 0x50], r12
mov rcx, r8
movdqa xmmword [rsp], xmm0
movdqa xmm0, xmmword [0x14002fb00]
movdqa xmmword [rsp + 0x10], xmm1
lea r12, [r8 + rax]
mov edx, r11d
movdqa xmm1, xmmword [0x14002fb10]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
test rbx, rbx
je 0x14000f692
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14000f5f9
mov r11d, 2
jmp 0x14000f61d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14000f613
mov r11d, 1
jmp 0x14000f61d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, r12
ja 0x14000f6b5
mov eax, r10d
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov eax, r10d
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14000f65a
mov byte [rcx + 2], 0x3d
jmp 0x14000f66a
shr r10, 6
and r10d, 0x3f
movzx eax, byte [rsp + r10]
mov byte [rcx + 2], al
add rcx, 3
add r8, 3
test r11, r11
je 0x14000f67c
mov byte [rcx], 0x3d
jmp 0x14000f683
movzx eax, byte [rsp + r9]
mov byte [rcx], al
inc rcx
inc r8
cmp rdx, rbx
jb 0x14000f5e0
sub rcx, rsi
mov al, 1
mov qword [rbp], rcx
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor al, al
jmp 0x14000f69b
Function at 0x14013d2f4
Capabilities:
Check http status code

Disassembly:
bswap r10d
clc
ror r10d, 1
test r13b, 0xc8
stc
bswap r10d
test edx, esi
clc
push r8
xor dword [rsp], r10d
xor r8b, r11b
pop r8
cmc
cmp r9b, r10b
clc
movsxd r10, r10d
jmp 0x1401713e0
inc r10d
jmp 0x1401275b6
push r12
push rdi
push rdx
not edi
setne dil
xchg dil, dil
push r13
setnp dil
movzx edi, di
movzx rdi, dx
push rax
push r10
pushfq
push rbp
neg dil
xadd bp, r10w
movsx ebp, bx
push r14
sal r10b, cl
or r10w, 0x6898
push r8
sub bp, r12w
sar di, cl
test r11b, 0x73
push rcx
bt ebp, r15d
ror r10b, 0xc
push r11
xadd di, bp
movsx r8, dx
push r15
or bp, r13w
push rsi
cmc
push r9
sar r8b, 0x84
push rbx
sal rdi, cl
movabs rbp, 0
bt bx, 1
push rbp
cmove r10w, r9w
btc r10w, r15w
mov rsi, qword [rsp + 0x90]
sal r8d, 0x88
sar di, cl
xor esi, 0x5c280b40
bswap di
rol esi, 2
movsx rdi, r15w
not esi
cmovns r8d, eax
rol esi, 1
add rsi, rbp
clc
movzx edi, bp
movabs rbp, 0x100000000
sar dil, cl
inc bx
test di, 0x52c6
add rsi, rbp
adc r8b, r8b
mov rbx, rsp
inc r10b
xor bpl, 0x34
sub rsp, 0x180
rcr r8b, 0x2c
test r15b, 0xbb
inc bpl
and rsp, 0xfffffffffffffff0
rcl r10w, 0x24
xor bpl, r9b
mov r8, rsi
movabs rbp, 0
btc di, 0x9e
sub r8, rbp
sar r10b, 0x13
and edi, 0x3621b5b
lea rdi, [0x14013d408]
sub rsi, 4
btr r10, rcx
neg r10w
sets r10b
mov r10d, dword [rsi]
test sil, 0x4b
xor r10d, r8d
jmp 0x1401285c9
jmp rdi
add rdi, r10
jmp 0x1401598eb
Function at 0x1403b053d
Capabilities:
Check http status code

Disassembly:
bswap r10d
clc
ror r10d, 1
test r13b, 0xc8
stc
bswap r10d
test edx, esi
clc
push r8
xor dword [rsp], r10d
xor r8b, r11b
pop r8
cmc
cmp r9b, r10b
clc
movsxd r10, r10d
jmp 0x1403b302e
push r12
push rdi
push rdx
not edi
setne dil
xchg dil, dil
push r13
setnp dil
movzx edi, di
movzx rdi, dx
push rax
push r10
pushfq
push rbp
neg dil
xadd bp, r10w
movsx ebp, bx
push r14
sal r10b, cl
or r10w, 0x6898
push r8
sub bp, r12w
sar di, cl
test r11b, 0x73
push rcx
bt ebp, r15d
ror r10b, 0xc
push r11
xadd di, bp
movsx r8, dx
push r15
or bp, r13w
push rsi
cmc
push r9
sar r8b, 0x84
push rbx
sal rdi, cl
movabs rbp, 0
bt bx, 1
push rbp
cmove r10w, r9w
btc r10w, r15w
mov rsi, qword [rsp + 0x90]
sal r8d, 0x88
sar di, cl
xor esi, 0x5c280b40
bswap di
rol esi, 2
movsx rdi, r15w
not esi
cmovns r8d, eax
rol esi, 1
add rsi, rbp
clc
movzx edi, bp
movabs rbp, 0x100000000
sar dil, cl
inc bx
test di, 0x52c6
add rsi, rbp
adc r8b, r8b
mov rbx, rsp
inc r10b
xor bpl, 0x34
sub rsp, 0x180
rcr r8b, 0x2c
test r15b, 0xbb
inc bpl
and rsp, 0xfffffffffffffff0
rcl r10w, 0x24
xor bpl, r9b
mov r8, rsi
movabs rbp, 0
btc di, 0x9e
sub r8, rbp
sar r10b, 0x13
and edi, 0x3621b5b
lea rdi, [0x1403b0651]
sub rsi, 4
btr r10, rcx
neg r10w
sets r10b
mov r10d, dword [rsi]
test sil, 0x4b
xor r10d, r8d
jmp 0x14045d050
add rdi, r10
jmp 0x1403b71b4
jmp rdi
inc r10d
jmp 0x14036bfa4
Function at 0x140002bb0
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.140003d70
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.140003d70
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 0x140002c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002d50
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002c6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002cf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002c50
mov rcx, rbx
call fcn.140003670
mov rdi, rax
test rax, rax
je 0x140002d72
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400037b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002d57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002cee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d00
add dword [0x1400080a4], 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 [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002bb0
nop dword [rax]
xor esi, esi
jmp 0x140002c78
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002bb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002bb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400032e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000333c
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 0x140003333
test rsi, rsi
je 0x140003333
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003318
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 0x140003670
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400036f0
Capabilities:
Parse pe header

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

Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400059c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400037cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400037d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x180001070
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread

Disassembly:
sub rsp, 0x5c8
mov edx, 0x68
lea rcx, [rsp + 0x80]
call section..text
mov dword [rsp + 0x80], 0x68
call fcn.180001260
test eax, eax
je 0x180001202
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000044
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180004218]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18000114c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.rundll32.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180001202
mov dword [rsp + 0x120], 0x100003
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, section..data
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x1e8], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]