joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140205700
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov rbx, rcx
xor ecx, ecx
mov r12, r8
mov rsi, r9
mov dword [r9], ecx
mov rcx, qword [rax + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r13, eax
mov rdi, r13
cmp r13d, 0xffffffff
jne 0x14020578c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x140205757
mov dword [rsi], 0x51
jmp 0x14020578c
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
mov rcx, qword [rbx + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call sym.Curl_failf
mov rax, qword [rbx + 8]
mov dword [rax + 0xccc], ebp
mov dword [rsi], 0x38
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1402057c8
test byte [rcx + 0xa0e], 0x20
je 0x1402057c8
mov rdx, qword [rbx]
test rdx, rdx
je 0x1402057c8
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x1402057c8
mov eax, dword [rsi]
mov dword [rsp + 0x20], edi
mov r9, r12
lea r8, str.nw_in_read_len_zu______d__err_d
mov dword [rsp + 0x28], eax
call sym.Curl_trc_cf_infof
mov rax, r13
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14020afa0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
mov r8d, 0x1008
mov edx, 0xffff
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x50], rcx
lea r9, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14020aff0
cmp dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x50]
jne 0x14020aff0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
nop
add rsp, 0x48
ret
Function at 0x14020cf90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp sym.Curl_win32_random

Function at 0x14020d900
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
mov rsi, r8
mov rbp, rcx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x40], rcx
mov rdi, rsi
mov r12, rdx
mov rbx, r9
mov qword [rsp + 0x48], rcx
mov rcx, r9
xor edx, edx
rep stosb byte [rdi], al
mov dword [rsp + 0x34], r8d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x3c], r9d
mov r9d, 0x18
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14020da0f
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14020d9ed
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14020d9ed
xor edx, edx
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
mov rbp, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov dword [rsp + 0x20], edx
lea r8, [rsp + 0x34]
mov edx, 4
call rbp
test eax, eax
je 0x14020d9ed
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
cmp rbx, rax
jb 0x14020d9ed
xor eax, eax
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x20], eax
call rbp
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14020d9fd
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14020da0f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x2b0]
mov eax, dword [rax + 0x84]
mov rsi, rcx
mov rbx, rdx
and eax, 0x800
jne 0x14020f3e4
lea rbp, [rsp + 0x40]
mov ecx, 0x20
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x3c], pe_nt_image_headers64
mov rdi, rbp
mov rdx, rbp
rep stosd dword [rdi], eax
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14020f389
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov ecx, eax
mov esi, eax
call sym.Curl_strerror
mov r8d, esi
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
jmp 0x14020f3db
mov edx, dword [rsp + 0x3c]
lea r9, [rsi + 0x144]
lea r8, [rsi + 0x114]
mov rcx, rbp
call sym.Curl_addr2string
test al, al
jne 0x14020f3e4
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov ecx, dword [rax]
call sym.Curl_strerror
mov qword [rsp + 0x28], rax
call rsi
mov r9, qword [rsp + 0x28]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, dword [rax]
mov rcx, rbx
call sym.Curl_failf
nop
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14020fab0
Capabilities:
Parse credit card information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x10]
and eax, 3
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
cmp eax, 1
je 0x14020fae2
cmp eax, 2
je 0x14020fb0a
test eax, eax
jne 0x14020faf0
call sym.parser_skip_inner_list
test eax, eax
jne 0x14020fb85
mov eax, dword [rbx + 0x10]
and eax, 0xfffffffc
or eax, 2
mov dword [rbx + 0x10], eax
jmp 0x14020fb0a
mov r8d, 0x283
lea rdx, str.nghttp2_lib_sfparse.c
lea rcx, [0x1402c0bd7]
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [rbx]
mov rbp, qword [rbx + 8]
cmp rax, rbp
je 0x14020fb1b
cmp byte [rax], 0x3b
je 0x14020fb26
or dword [rbx + 0x10], 3
mov eax, 0xfffffffe
jmp 0x14020fb85
inc rax
mov rcx, rbx
mov qword [rbx], rax
call sym.parser_discard_sp
cmp rbp, qword [rbx]
jne 0x14020fb3e
or eax, 0xffffffff
jmp 0x14020fb85
mov rdx, rdi
call sym.parser_key
test eax, eax
jne 0x14020fb85
mov rdx, qword [rbx]
cmp rbp, rdx
je 0x14020fb57
cmp byte [rdx], 0x3d
je 0x14020fb6a
test rsi, rsi
je 0x14020fb85
xor edx, edx
mov dword [rsi + 8], 1
mov qword [rsi], rdx
jmp 0x14020fb85
inc rdx
mov qword [rbx], rdx
cmp rdx, rbp
je 0x14020fb39
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.parser_bare_item
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1402125c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x140
mov r8d, 1
mov rbx, rcx
mov dword [rsp + 0x3c], 1
mov rcx, rdx
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
test rbx, rbx
je 0x140212631
test eax, eax
jns 0x140212631
test byte [rbx + 0xa0e], 0x20
je 0x140212631
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_infof
nop
add rsp, 0x140
pop rbx
ret
Function at 0x1419d90b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1419d9237
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 0x1419d90e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419d90c7
add dl, dl
jne 0x1419d90ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419d914e
xor eax, eax
add dl, dl
jne 0x1419d90fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419d9205
add dl, dl
jne 0x1419d910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419d911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419d9128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419d9135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419d9142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1419d90d6
mov eax, 1
add dl, dl
jne 0x1419d915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419d916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419d9153
sub eax, ebx
mov ebx, 1
jne 0x1419d91a4
mov ecx, 1
add dl, dl
jne 0x1419d9186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419d9193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419d917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419d90d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1419d91c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419d91cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419d91b5
cmp eax, 0x7d00
jae 0x1419d91f3
cmp eax, 0x500
jb 0x1419d91ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419d90d6
cmp eax, 0x7f
ja 0x1419d91f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419d90d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419d922a
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 0x1419d90d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400363e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400363f0]
mov dword [rax], 1
mov rax, qword [0x140036400]
mov dword [rax], 1
mov rax, qword [0x140036390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400363d0]
mov dword [0x14003900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400364a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140036480]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140036340]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x1400015ca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
call sym.check_emu
test eax, eax
jne 0x140001632
mov eax, dword [0x140035a3c]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov eax, dword [0x140035a3c]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, section..data
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
mov rax, rax
jmp rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001900
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400390a4]
mov rbx, rcx
test esi, esi
jle 0x140001aa0
mov rax, qword [0x1400390a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ac2
mov rax, qword [0x1400390a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400390a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a50
add dword [0x1400390a4], 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 [0x1400390a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019c8
mov rax, qword [0x1400390a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002050
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140039100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400390e0]
test rbx, rbx
je 0x1400020ac
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 rsi, rsi
je 0x1400020a3
test eax, eax
jne 0x1400020a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002088
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 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000233d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002334
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000233f
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023d0
mov rdx, qword [0x140036390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023be
cmp word [rax + 0x18], 0x20b
jne 0x1400023be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400023d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002460
Capabilities:
Parse pe header

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

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140036390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002510
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002507
test rcx, rcx
je 0x1400024c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400024f8
xor eax, eax
ret
Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140036390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000253f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002548
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002560
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140036390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002580
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002588
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002580
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002580
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025e0
add rdx, 0x28
cmp rdx, r9
jne 0x1400025c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400025f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140036390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002612
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002620
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002612
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002612
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002612
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002675
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002688
add rdx, 0x28
cmp r10, rdx
jne 0x140002660
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002697
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000267e
test ecx, ecx
jg 0x140002690
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140011082
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x140015510
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x140022048]
xor rax, rbp
mov qword [rbp + 0x140], rax
lea rcx, [0x1400283cc]
call fcn.1400114a1
mov qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400155bc
xor eax, eax
jmp 0x14001568c
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call fcn.1400113a7
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015644
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Rading_File__s:__d
call fcn.14001121c
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x180]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x178]
cmp qword [rax], 0
je 0x140015683
mov rax, qword [rbp + 0x180]
mov eax, dword [rax]
test rax, rax
jne 0x140015687
xor eax, eax
jmp 0x14001568c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f7f0]
call fcn.140011410
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.140011235
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret