joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002aca4
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x470
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r14d, 2
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x14002ace5
cmp word [rcx], 0x17
jne 0x14002ad89
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
mov dword [rsi], eax
lea rcx, [rsp + 0x50]
mov esi, 0x401
mov r8d, esi
call fcn.1400569f8
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x50]
xor r14d, r14d
mov r9d, esi
mov dword [rsp + 0x28], r14d
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14002ad89
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x14002ad3a
cmp rbx, qword [rdi + 0x18]
ja 0x14002ad70
cmp qword [rdi + 0x18], 0x10
mov rsi, rdi
jb 0x14002ad56
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], r14b
jmp 0x14002ad85
mov r8b, byte [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.140007470
mov al, 1
jmp 0x14002ad8b
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140055880
add rsp, 0x470
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002adac
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14002adb8
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14002ae0d
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14002aca4
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140055880
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x14002adb8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14002adb8
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14002ae0d
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14002aca4
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140055880
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x14004be6c
Capabilities:
Encode data using xor

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
xor r15d, r15d
lea r12, [0x140000000]
movzx eax, byte [r15 + r12 + 0x62dd0]
mov edi, eax
mov r8d, eax
shr edi, 5
mov r11d, eax
shr r8d, 6
mov ebp, edi
lea edx, [rax + rax]
shr r11d, 7
xor edx, eax
and ebp, 4
mov r10d, edi
mov r9d, r8d
and edi, 1
and r10d, 2
imul ecx, edi, 0x1b000000
and r8d, 1
lea ebx, [rdx + rdx]
and r9d, 2
lea edx, [rdx*4]
xor ebx, eax
xor edx, eax
shl ebx, 0x19
shl edx, 8
mov esi, eax
xor rbx, rcx
mov r14d, eax
imul ecx, r10d, 0x1b000000
xor rbx, rcx
imul ecx, r8d, 0x1b000000
xor rbx, rcx
imul ecx, r9d, 0x1b000000
xor rbx, rcx
imul ecx, ebp, 0x1b000000
xor rbx, rcx
imul ecx, r11d, 0x1b000000
xor rbx, rcx
imul ecx, edi, 0x11b00
xor rdx, rcx
imul ecx, r10d, 0x11b00
xor rdx, rcx
imul ecx, r8d, 0x11b00
xor rdx, rcx
imul ecx, r9d, 0x11b00
xor rdx, rcx
imul ecx, ebp, 0x11b00
xor rdx, rcx
imul ecx, edi, 0x11b0000
or rbx, rdx
lea edx, [rax*8]
xor edx, eax
lea eax, [rax*4]
shl edx, 0x10
xor eax, r14d
xor rdx, rcx
imul ecx, r10d, 0x11b0000
xor rdx, rcx
imul ecx, ebp, 0x11b0000
xor rdx, rcx
imul ecx, edi, 0x11b
or rbx, rdx
lea edx, [rax + rax]
xor rdx, rcx
imul ecx, r10d, 0x11b
xor rdx, rcx
imul ecx, ebp, 0x11b
xor rdx, rcx
imul ecx, r11d, 0x11b
xor rdx, rcx
xor rdx, rsi
or rdx, rbx
shl rdx, 0x20
or rdx, rbx
or rdx, rsi
mov qword [r12 + r15*8 + 0x7e7b0], rdx
inc r15
cmp r15, 0x100
jl 0x14004be8f
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov byte [0x14007efb1], 1
pop r15
pop r14
pop r12
ret

Function at 0x14004bff8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
lea rbx, [0x140000000]
movzx r9d, byte [r11 + rbx + 0x62cd0]
mov edx, r9d
shr edx, 7
imul r10d, edx, 0x1b000000
lea r8d, [r9 + r9]
imul ecx, edx, 0x11b
mov eax, r8d
shl eax, 0x18
xor r10, rax
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [rbx + r11*8 + 0x7dfa0], rcx
inc r11
cmp r11, 0x100
jl 0x14004c007
and qword [0x14007e7a8], 0
and qword [0x14007e7a0], 0
mov rbx, qword [rsp + 8]
mov byte [0x14007efb0], 1
ret
Function at 0x14004dabc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x14007f0b0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14007efc0], ecx
jg 0x14004db9e
mov eax, ebx
cmp rbx, rax
jne 0x14004db60
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x14004db60
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x14007efb8]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14004dbe1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140055880
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140005d20
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004d7ec
lea rdx, [0x1400750a0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x14007efc0]
call fcn.140055f44
cmp dword [0x14007efc0], 0xffffffff
jne 0x14004db08
lea rcx, [0x14007efb8]
call fcn.14004d700
lea rcx, [0x140059a1c]
call fcn.140055e84
nop
lea rcx, [0x14007efc0]
call fcn.140055ed8
jmp 0x14004db08
mov ecx, eax
call fcn.14004dc24
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140061858]
lea rcx, [rsp + 0x20]
call fcn.140005d20
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004d7ec
lea rdx, [0x1400750a0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14004f028
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x14004f09b
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x14004f05a
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x14004f0dd
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x14004f0c9
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14004f0f8
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x14004f1be
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x14004f189
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14004f13e
test rbx, rbx
je 0x14004f1a6
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x14004f194
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004f1c0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004f26d
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14004f245
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14004f1fd
test rbx, rbx
je 0x14004f25b
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14004f24d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140055184
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x1400551d3
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x1400551aa
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140056868
Capabilities:
Parse pe header

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

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

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

Function at 0x14001fd60
Capabilities:
Parse pe header

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

Function at 0x1a48514
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1a4851e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1a48547
pop rbp
sub rbp, 0x33
sub rbp, 0x1648514
sub rsp, 0x20
jmp 0x1a48566
mov rax, 0x1648514
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
add byte [rax - 0x39], cl
ror dword [rbx], 6
add byte [rax], al
mov rdx, 0xffffffffc6f3bd96
xor byte [rax], dl
inc rax
dec rcx
jne 0x1a48585
invalid
jmp 0x1a4859c
ficomp word [rdi]
jg 0x1a485bd
invalid
fisub word [rcx + 0x74]
ficom word [rdi - 0x65e8e2a9]
xchg esi, eax
xchg esi, eax
xchg esi, eax
ficom word [rdi - 0x21393982]
xor bl, byte cs:[0xffffffff983b1c7a]
xchg esi, eax
xchg esi, eax
fisubr word [rdi]
clc
outsd dx, dword [rsi]
cmpsd dword [rsi], dword [rdi]
xchg edi, eax
xchg esi, eax
xchg esi, eax
xchg esi, eax
xchg esi, eax
ficom word [rdi - 0xcd32181]
or bh, byte [rbx]
rcl byte [rsi + 0x7e969696], cl
xchg ebx, eax
xchg esi, eax
xchg esi, eax
xchg esi, eax
jg 0x1a48576
xchg esi, eax
xchg esi, eax
xchg esi, eax
push rdi
jle 0x1a48590
cmpsd dword [rsi], dword [rdi]
xchg esi, ebx
invalid
Function at 0x1800203a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor edx, edx
mov r12, rcx
call fcn.180040150
mov edx, 0xfa
mov ecx, 0x20
call fcn.180067600
lea rcx, [r12 + 0x18]
xor r8d, r8d
mov edx, eax
call fcn.180040870
lea rcx, [r12 + 0x18]
call fcn.18003fcc0
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, r12
mov esi, eax
mov byte [rsp + 0x70], al
call fcn.1800402b0
lea rcx, [rsp + 0x38]
mov edx, esi
call fcn.180040150
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov edx, esi
call fcn.180040870
xor edi, edi
test esi, esi
jle 0x180020454
nop
lea rcx, [r12 + 0x18]
mov edx, edi
call fcn.18003fcb0
lea rcx, [rsp + 0x20]
mov edx, edi
mov rbx, rax
call fcn.18003fcb0
movzx ebx, byte [rbx]
xor bl, byte [rax]
lea rcx, [rsp + 0x38]
mov edx, edi
call fcn.18003fcb0
inc edi
mov byte [rax], bl
cmp edi, esi
jl 0x180020420
lea rcx, [rsp + 0x38]
call fcn.18003fcc0
lea rcx, [rsp + 0x38]
xor edx, edx
mov ebx, eax
call fcn.18003fcb0
mov r8d, ebx
mov rdx, rax
mov rcx, r12
call fcn.1800402b0
lea rcx, [rsp + 0x20]
call fcn.18003fcc0
lea rcx, [rsp + 0x20]
xor edx, edx
mov ebx, eax
call fcn.18003fcb0
mov r8d, ebx
mov rdx, rax
mov rcx, r12
call fcn.1800402b0
lea rcx, [rsp + 0x20]
call fcn.18003fca0
lea rcx, [rsp + 0x38]
call fcn.18003fca0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rax, r12
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x180037fac
Capabilities:
Decompress data using aplib

Disassembly:
push rbx
push rsi
push rdi
push rdx
mov rsi, rcx
mov rdi, rdx
cld
mov dl, 0x80
xor ebx, ebx
movsb byte [rdi], byte [rsi]
mov bl, 2
call fcn.180038038
jae 0x180037fbb
xor ecx, ecx
call fcn.180038038
jae 0x180037feb
xor eax, eax
call fcn.180038038
jae 0x180037ffb
mov bl, 2
inc ecx
mov al, 0x10
call fcn.180038038
adc al, al
jae 0x180037fdd
jne 0x18003802c
stosb byte [rdi], al
jmp 0x180037fbe
call fcn.180038046
sub ecx, ebx
jne 0x180038004
call fcn.180038044
jmp 0x180038027
lodsb al, byte [rsi]
shr eax, 1
je 0x180038057
adc ecx, ecx
jmp 0x180038021
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [rsi]
call fcn.180038044
cmp eax, 0x7d00
jae 0x180038021
cmp ah, 5
jae 0x180038023
cmp eax, 0x7f
ja 0x180038025
inc ecx
inc ecx
xchg r8d, eax
mov eax, r8d
mov bl, 1
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180037fbe
pop rdx
sub rdi, rdx
xchg edi, eax
pop rdi
pop rsi
pop rbx
ret
Function at 0x180038120
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov r14d, ecx
mov r12, rdx
lea rcx, [rbp - 0x41]
mov edx, 0x40
mov r13d, r9d
call fcn.180040150
mov edx, 0x8f604ef3
mov ecx, 0x6e729370
call fcn.180049ad0
mov rbx, rax
test rax, rax
je 0x180038194
lea rcx, [rbp - 0x41]
xor edx, edx
call fcn.18003fcb0
mov edx, r14d
mov r9d, 0x40
mov r8, rax
lea rax, [rbp - 0x49]
mov rcx, r12
mov qword [rsp + 0x20], rax
call rbx
lea rcx, [rbp - 0x41]
xor edx, edx
call fcn.18003fcb0
lea rcx, [rbp - 0x29]
mov edx, 0xf8
mov edi, dword [rax + 0x3c]
call fcn.180040150
mov edx, 0x8f604ef3
mov ecx, 0x6e729370
call fcn.180049ad0
mov rbx, rax
test rax, rax
je 0x1800381ed
lea rcx, [rbp - 0x29]
xor edx, edx
call fcn.18003fcb0
lea edx, [rdi + r14]
mov r9d, 0xf8
mov r8, rax
lea rax, [rbp - 0x49]
mov rcx, r12
mov qword [rsp + 0x20], rax
call rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
mov qword [rsp + 0xe0], rsi
call fcn.180040230
lea rcx, [rbp - 0x29]
call fcn.18003fca0
lea rcx, [rbp - 0x41]
xor edx, edx
call fcn.18003fcb0
xor ebx, ebx
movzx ecx, word [rax + 0x14]
movzx r15d, word [rax + 6]
lea edx, [rdi + rcx + 0x18]
test r15d, r15d
jle 0x180038339
lea esi, [rdx + r14]
lea rcx, [rbp - 0x29]
mov edx, 0x28
call fcn.180040150
mov edx, 0x8f604ef3
mov ecx, 0x6e729370
call fcn.180049ad0
mov rdi, rax
test rax, rax
je 0x18003827b
lea rcx, [rbp - 0x29]
xor edx, edx
call fcn.18003fcb0
mov edx, esi
mov r9d, 0x28
mov r8, rax
lea rax, [rbp - 0x49]
mov rcx, r12
mov qword [rsp + 0x20], rax
call rdi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x41]
call fcn.180040230
lea rcx, [rbp - 0x29]
call fcn.18003fca0
lea rcx, [rbp - 0x41]
xor edx, edx
call fcn.18003fcb0
mov r12, rax
mov eax, dword [rbp + 0x77]
test dword [r12 + 0x24], eax
je 0x1800382ed
mov edi, dword [r12 + 0xc]
mov edx, 0xdb48f6d
mov ecx, 0x6e729370
add edi, dword [r12 + 8]
add edi, r14d
call fcn.180049ad0
test rax, rax
je 0x180038300
mov rcx, qword [rbp + 0x6f]
mov edx, edi
lea r9, [rbp - 0x11]
xor edi, edi
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x30
call rax
test eax, eax
jns 0x180038302
inc ebx
add esi, 0x28
cmp ebx, r15d
jge 0x180038339
mov r12, qword [rbp + 0x6f]
jmp 0x180038232
xor edi, edi
mov ebx, dword [r12 + 8]
mov eax, dword [rbp + 7]
mov ecx, dword [r12 + 0xc]
sub eax, ebx
sub eax, ecx
sub eax, r14d
add eax, dword [rbp - 0x11]
cmp eax, r13d
jge 0x180038325
sub r13d, eax
lea edi, [r13 + 4]
sub ebx, edi
add ebx, ecx
lea rcx, [rbp - 0x41]
add ebx, r14d
call fcn.18003fca0
mov eax, ebx
jmp 0x180038344
lea rcx, [rbp - 0x41]
call fcn.18003fca0
xor eax, eax
mov rsi, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x180038360
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rdi
push r13
push r14
mov rbp, rsp
sub rsp, 0x60
mov rdi, rcx
mov r14, rdx
lea rcx, [rbp - 0x30]
mov edx, 0x40
mov r13, r8
call fcn.180040150
mov edx, 0x8f604ef3
mov ecx, 0x6e729370
call fcn.180049ad0
mov rbx, rax
test rax, rax
je 0x1800383c2
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.18003fcb0
mov r9d, 0x40
mov rdx, r13
mov r8, rax
lea rax, [rbp + 0x48]
mov rcx, r14
mov qword [rsp + 0x20], rax
call rbx
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.18003fcb0
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x1800383f9
xor edx, edx
mov rcx, rdi
call fcn.180040150
lea rcx, [rbp - 0x30]
call fcn.18003fca0
mov rax, rdi
add rsp, 0x60
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
movsxd rbx, dword [rax + 0x3c]
lea rcx, [rbp - 0x18]
mov edx, 0xf8
add rbx, r13
mov qword [rsp + 0x90], rsi
call fcn.180040150
mov edx, 0x8f604ef3
mov ecx, 0x6e729370
call fcn.180049ad0
mov rsi, rax
test rax, rax
je 0x180038452
lea rcx, [rbp - 0x18]
xor edx, edx
call fcn.18003fcb0
mov r9d, 0xf8
mov rdx, rbx
mov r8, rax
lea rax, [rbp + 0x48]
mov rcx, r14
mov qword [rsp + 0x20], rax
call rsi
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call fcn.180040230
lea rcx, [rbp - 0x18]
call fcn.18003fca0
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.18003fcb0
cmp dword [rax], 0x4550
jne 0x18003854b
mov esi, dword [rax + 0x78]
movsxd rbx, dword [rax + 0x7c]
test esi, esi
je 0x18003854b
test ebx, ebx
je 0x18003854b
lea rcx, [rbp - 0x18]
mov edx, ebx
mov qword [rsp + 0x98], r12
call fcn.180040150
mov edx, 0x8f604ef3
mov ecx, 0x6e729370
call fcn.180049ad0
mov r12, rax
test rax, rax
je 0x1800384e5
lea rcx, [rbp - 0x18]
xor edx, edx
call fcn.18003fcb0
lea rdx, [r13 + rsi]
mov r9, rbx
mov r8, rax
lea rax, [rbp + 0x48]
mov rcx, r14
mov qword [rsp + 0x20], rax
call r12
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call fcn.180040230
lea rcx, [rbp - 0x18]
call fcn.18003fca0
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.18003fcb0
lea rcx, [rbp - 0x30]
sub dword [rax + 0x20], esi
mov edx, dword [rax + 0x20]
sub dword [rax + 0x1c], esi
sub dword [rax + 0x24], esi
mov rbx, rax
call fcn.18003fcb0
mov r12, qword [rsp + 0x98]
xor ecx, ecx
cmp dword [rbx + 0x18], ecx
jbe 0x18003853d
nop dword [rax]
sub dword [rax], esi
inc ecx
add rax, 4
cmp ecx, dword [rbx + 0x18]
jb 0x180038530
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.180040180
jmp 0x180038555
xor edx, edx
mov rcx, rdi
call fcn.180040150
lea rcx, [rbp - 0x30]
call fcn.18003fca0
mov rsi, qword [rsp + 0x90]
mov rax, rdi
add rsp, 0x60
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
Function at 0x18003a7a0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, ecx
mov ebp, edx
lea rcx, [rsp + 0x30]
mov edx, 0x30
call fcn.180040150
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.18003fcb0
mov ecx, 0x6e729370
mov qword [rsp + 0x90], rax
call fcn.1800486f0
xor r13d, r13d
movsxd rdx, dword [rax + 0x3c]
mov r15, rax
mov edi, r13d
add rdx, rax
movzx ecx, word [rdx + 0x14]
movzx r12d, word [rdx + 6]
lea rbx, [rcx + rdx + 0x18]
test r12d, r12d
jle 0x18003a868
test dword [rbx + 0x24], r14d
je 0x18003a85d
mov eax, dword [rbx + 0xc]
mov esi, dword [rbx + 8]
mov edx, 0xdb48f6d
add rax, r15
mov ecx, 0x6e729370
add rsi, rax
call fcn.180049ad0
test rax, rax
je 0x18003a892
mov r9, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, rsi
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0x30
call rax
test eax, eax
jns 0x18003a892
inc edi
add rbx, 0x28
cmp edi, r12d
jl 0x18003a811
lea rcx, [rsp + 0x30]
call fcn.18003fca0
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, qword [rsp + 0x90]
mov ecx, dword [rbx + 8]
mov edx, dword [rbx + 0xc]
mov eax, dword [r8 + 0x18]
sub eax, ecx
sub eax, edx
sub eax, r15d
add eax, dword [r8]
cmp eax, ebp
jge 0x18003a8b8
sub ebp, eax
lea r13d, [rbp + 0x10]
mov rbx, rcx
movsxd rax, r13d
lea rcx, [rsp + 0x30]
sub rbx, rax
add rbx, r15
add rbx, rdx
call fcn.18003fca0
mov rax, rbx
jmp 0x18003a874