joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140324c30
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x70], eax
jne 0x140324c86
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
cmp eax, 0x6a
je 0x140324cbf
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
cmp eax, 0x6b
je 0x140324cbf
call fcn.1402506f0
lea r8, str.RSA_padding_check_X931
mov edx, 0x43
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x89
mov ecx, 4
call fcn.1402507b0
mov eax, 0xffffffff
jmp 0x140324e3c
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x2c], 0x6b
jne 0x140324dcc
mov eax, dword [rsp + 0x68]
sub eax, 3
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x140324d02
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jge 0x140324d7d
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0x20]
cmp eax, 0xba
jne 0x140324d33
jmp 0x140324d7d
movzx eax, byte [rsp + 0x20]
cmp eax, 0xbb
je 0x140324d78
call fcn.1402506f0
lea r8, str.RSA_padding_check_X931
mov edx, Ordinal_79
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x8a
mov ecx, 4
call fcn.1402507b0
mov eax, 0xffffffff
jmp 0x140324e3c
jmp 0x140324cf8
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x28], 0
jne 0x140324dca
call fcn.1402506f0
lea r8, str.RSA_padding_check_X931
mov edx, 0x56
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x8a
mov ecx, 4
call fcn.1402507b0
mov eax, 0xffffffff
jmp 0x140324e3c
jmp 0x140324dd7
mov eax, dword [rsp + 0x68]
sub eax, 2
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x140324e22
call fcn.1402506f0
lea r8, str.RSA_padding_check_X931
mov edx, 0x5f
lea rcx, str.crypto_rsa_rsa_x931.c
call fcn.140250740
xor r8d, r8d
mov edx, Ordinal_143
mov ecx, 4
call fcn.1402507b0
mov eax, 0xffffffff
jmp 0x140324e3c
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret
Function at 0x1403d3840
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rcx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.140473cc0
sub rsp, rax
mov r8d, 0xf0
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0
jmp 0x1403d3878
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 8
jge 0x1403d389f
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x14050e620]
movsxd rdx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x40]
mov rax, qword [rcx + rax*8]
mov qword [r8 + rdx*8], rax
jmp 0x1403d386e
add rsp, 0x38
ret

Function at 0x1403dd6b0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.140473cc0
sub rsp, rax
mov r8d, 0x80
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0
jmp 0x1403dd6e8
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 8
jge 0x1403dd70e
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x14050e850]
movsxd rdx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov dword [r8 + rdx*4], eax
jmp 0x1403dd6de
add rsp, 0x38
ret
Function at 0x140467170
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.140473cc0
sub rsp, rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 5
je 0x1404671c7
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1404685e0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jg 0x1404671c7
mov eax, dword [rsp + 0x20]
jmp 0x140467284
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x40], 0
je 0x140467223
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rsp + 0x40]
call fcn.14026ba80
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x40]
call fcn.14026cf20
mov dword [rsp + 0x20], eax
mov edx, reloc.WS2_32.dll_ntohs
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x40]
call fcn.14026ce40
mov edx, eax
mov rcx, qword [rsp + 0x40]
call fcn.14026ce00
mov eax, dword [rsp + 0x20]
jmp 0x140467284
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x38]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rsp + 0x40]
call fcn.14026ba80
cmp dword [rsp + 0x20], 0
jg 0x140467280
mov ecx, dword [rsp + 0x20]
call fcn.1402f5060
test eax, eax
je 0x140467280
mov edx, 0xa
mov rcx, qword [rsp + 0x40]
call fcn.14026ce00
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14046f920
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x38], rax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x38], 0
je 0x14046f982
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x38]
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x30], eax
jmp 0x14046f9cd
mov rax, qword [rsp + 0x38]
mov rcx, rax
call fcn.1402975b0
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x38]
mov rcx, rax
call fcn.1402517f0
mov rcx, qword [rsp + 0x50]
movsxd rcx, dword [rcx + 0x38]
mov edx, dword [rsp + 0x34]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rsp + 0x30], eax
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rsp + 0x50]
call fcn.14026ba80
cmp dword [rsp + 0x30], 0
jg 0x14046fa0d
mov ecx, dword [rsp + 0x30]
call fcn.140470cd0
test eax, eax
je 0x14046fa0d
mov edx, 0xa
mov rcx, qword [rsp + 0x50]
call fcn.14026ce00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x3c], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140470d80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x58
call fcn.140473cc0
sub rsp, rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.140292650
test eax, eax
jne 0x140470f2d
mov dword [rsp + 0x34], 4
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x38]
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jge 0x140470e26
call fcn.1402506f0
lea r8, str.dgram_adjust_rcv_timeout
mov edx, 0x13e
lea rcx, str.crypto_bio_bss_dgram.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getsockopt__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
jmp 0x140470e43
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0xf4240
mov rcx, rax
call fcn.140292570
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x50], rax
call fcn.1402dafd0
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.1402926a0
mov qword [rsp + 0x40], rax
mov ecx, 0x3e8
call fcn.140292570
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.1402925a0
test eax, eax
jge 0x140470e88
mov ecx, 0x3e8
call fcn.140292570
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x50]
call fcn.140292650
test eax, eax
jne 0x140470eb1
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x50]
call fcn.1402925a0
test eax, eax
jl 0x140470f2d
mov rcx, qword [rsp + 0x40]
call fcn.1402517f0
xor edx, edx
mov ecx, 0xf4240
div rcx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x38]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140470f2d
call fcn.1402506f0
lea r8, str.dgram_adjust_rcv_timeout
mov edx, 0x15c
lea rcx, str.crypto_bio_bss_dgram.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
add rsp, 0x58
ret

Function at 0x140471010
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x48]
call fcn.140292650
test eax, eax
jne 0x1404710c6
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x50]
call fcn.1402517f0
xor edx, edx
mov ecx, 0xf4240
div rcx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x38]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404710c6
call fcn.1402506f0
lea r8, str.dgram_reset_rcv_timeout
mov edx, 0x18b
lea rcx, str.crypto_bio_bss_dgram.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
add rsp, 0x48
ret
Function at 0x1404710d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.140473cc0
sub rsp, rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], Ordinal_33
mov rax, qword [rsp + 0x28]
add rax, 0x1c
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 0x38]
lea r8, [rsp + 0x20]
mov rdx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x14047112d
mov rax, qword [rsp + 0x28]
add rax, 0x1c
mov rcx, rax
call fcn.1402972c0
add rsp, 0x38
ret

Function at 0x1404740f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14047413a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14047413a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14047413a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14047413a
cmp dword [rcx + 0x84], 0xe
jbe 0x14047413a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14047413c
xor al, al
add rsp, 0x28
ret
Function at 0x403440
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00409624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4035c8
mov rax, qword [0x00409628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40348c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x403515
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403470
mov rcx, rbx
call fcn.004040e0
test rax, rax
mov r12, rax
je 0x4035fd
mov rax, qword [0x00409628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00404210
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4035e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40350e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403570
add dword [0x00409624], 1
cmp edi, 8
jae 0x403543
test dil, 4
jne 0x4035b4
test edi, edi
je 0x403538
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4035cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x403538
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40355c
jmp 0x403538
add rsi, qword [0x00409628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40350e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004045e0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x403538
xor esi, esi
jmp 0x403497
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x403538
mov rax, qword [0x00409628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004045e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004045e0
nop
nop dword [rax]

Function at 0x403d50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x403da4
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 0x403d9b
test rsi, rsi
je 0x403d9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403d80
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4040e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406d00]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40414d
mov rcx, r8
call fcn.00403fc0
test eax, eax
je 0x40414d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40414d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x404144
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40414f
add rax, 0x28
cmp rax, r9
jne 0x404130
xor eax, eax
add rsp, 0x28
ret

Function at 0x4045e0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.004044a0
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.004044a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400078b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000d610], rbx
je 0x1400078fc
cmp rax, rbx
jne 0x1400078ef
mov ebx, 1
mov esi, ebx
jmp 0x140007901
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400078d4
mov ebx, 1
mov eax, dword [0x14000d618]
cmp eax, ebx
jne 0x140007917
mov ecx, 0x1f
call fcn.1400a0000
jmp 0x14000797c
mov eax, dword [0x14000d618]
test eax, eax
jne 0x140007976
mov dword [0x14000d618], ebx
lea r15, [0x140009560]
lea rdi, [0x140009548]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140007968
test eax, eax
jne 0x14000796c
cmp qword [rdi], 0
je 0x14000795d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000793e
test eax, eax
je 0x14000797c
mov eax, 0xff
jmp 0x140007a58
mov dword [0x14000b164], ebx
mov eax, dword [0x14000d618]
cmp eax, ebx
jne 0x1400079a3
lea rdx, [0x140009540]
lea rcx, [0x140009530]
call sub.msvcrt.dll__initterm
mov dword [0x14000d618], 2
test esi, esi
jne 0x1400079b0
xor eax, eax
xchg qword [0x14000d610], rax
cmp qword [0x14000d620], 0
je 0x1400079e4
lea rcx, [0x14000d620]
call fcn.140007e30
test eax, eax
je 0x1400079e4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000d620]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x14000b178]
mov rdx, qword [0x14000b170]
mov ecx, dword [0x14000b168]
call fcn.140002630
mov dword [0x14000b160], eax
cmp dword [0x14000b180], 0
jne 0x140007a14
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b164], 0
jne 0x140007a29
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b160]
jmp 0x140007a58
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140007ec4
add rsp, 0x28
jmp 0x1400078b0

Function at 0x140007d1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007d68
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007d60
cmp dword [rcx + 0x3c], edx
jl 0x140007d60
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007d60
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 0x140007d68
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140011109
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1400123f0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
lea rcx, [0x1400430f7]
call fcn.14001139d
mov rax, qword [rbp + 0x200]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xc4], 0
jmp 0x1400124c4
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0xc4], eax
jae 0x140012543
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rcx, qword [rbp + 0xe8]
call fcn.1400113a7
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0x208], eax
jne 0x14001253e
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x200]
add rcx, rax
mov rax, rcx
jmp 0x140012545
jmp 0x1400124b6
xor eax, eax
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret

Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013ce0
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 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015030
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015050
xor al, al
jmp 0x1400150d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015063
xor al, al
jmp 0x1400150d1
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 0x14001508d
xor al, al
jmp 0x1400150d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400150a1
xor al, al
jmp 0x1400150d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400150b3
xor al, al
jmp 0x1400150d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400150cf
xor al, al
jmp 0x1400150d1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001131b
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x1400121f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x788
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x14a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x7a8]
mov rax, qword [0x14003c780]
xor rax, rbp
mov qword [rbp + 0x758], rax
lea rcx, [0x1400430f7]
call fcn.14001139d
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
add rax, 0x20
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rbp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x4e8], rax
jmp 0x1400122ad
mov rax, qword [rbp + 0x4e8]
mov rax, qword [rax]
mov qword [rbp + 0x4e8], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x4e8], rax
je 0x140012357
mov rax, qword [rbp + 0x4e8]
sub rax, 0x10
mov qword [rbp + 0x508], rax
mov r8d, 0x208
xor edx, edx
lea rcx, [rbp + 0x90]
call fcn.1400112ee
mov r8d, 0x208
xor edx, edx
lea rcx, [rbp + 0x2c0]
call fcn.1400112ee
mov rax, qword [rbp + 0x508]
mov r8, qword [rax + 0x50]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov r8, qword [rbp + 0x780]
mov edx, 0x104
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x2c0]
call fcn.140011131
test eax, eax
je 0x140012352
mov rax, qword [rbp + 0x508]
mov rax, qword [rax + 0x30]
jmp 0x140012359
jmp 0x14001229c
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acc0]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x758]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0x768]
pop rdi
pop rbp
ret