joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ad580
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x1400ad70d
inc rsi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
sub r14, 2
call sub.api_ms_win_crt_string_l1_1_0.dll_strspn
cmp r14, rax
je 0x1400ad684
cmp byte [rsi + rax], 0x25
lea r15, [rsi + rax]
mov r14, rax
jne 0x1400ad70d
xor edi, edi
lea rdx, [0x1400da5b4]
lea rcx, [r15 + 1]
lea rbx, [r15 + 1]
lea r8d, [rdi + 2]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x1400ad612
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x1400ad612
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x1400ad70d
mov rcx, rdi
cmp al, 0x5d
je 0x1400ad63d
cmp rcx, 0xf
jge 0x1400ad63d
inc rbx
mov byte [rsp + rcx + 0x20], al
inc edi
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400ad620
test edi, edi
je 0x1400ad70d
cmp byte [rbx], 0x5d
jne 0x1400ad70d
movsxd rax, edi
cmp rax, 0x10
jae 0x1400ad72e
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x14007a9df.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1400ad67e
mov eax, 7
jmp 0x1400ad712
mov word [r15], 0x5d
lea rbx, [r14 + rsi]
mov rdx, rsi
lea r8, [rsp + 0x20]
mov byte [rbx], 0
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1400ad70d
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x16]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1400ad706
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x1400ad6d0
cmp rdx, r14
jae 0x1400ad706
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ad6f0
lea rbx, [rdx + rsi]
mov byte [rbx + 1], al
mov byte [rbx], 0x5d
xor eax, eax
jmp 0x1400ad712
mov eax, socket
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c8ee0
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400c9680
int3
Function at 0x1400b4f40
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140104dc8]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400b4fa4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400b6d70
test al, al
je 0x1400b4f98
mov dword [0x140104dc8], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140104dc8], 1
jmp 0x1400b4fa9
cmp eax, 2
je 0x1400b4ffb
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400b4fda
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400b4ffb
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400b5bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1400b5c91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400b5c55
mov dword [rsi], 0x51
jmp 0x1400b5c8a
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.1400937e0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14007f300
mov rax, qword [rdi + 8]
mov dword [rax + 0xd64], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.14007f490
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400c8ee0
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x318]
test dword [rcx + 0x84], 0x800
jne 0x1400b5e11
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400b5da1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400937e0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14007f300
mov eax, 2
jmp 0x1400b5e13
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.140080a00
test al, al
jne 0x1400b5e11
mov qword [rsp + 0x1e0], rdi
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400937e0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14007f300
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400b5e13
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400c8ee0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1400bcbb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1400fe700]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.140092d40
mov r13, rax
test rax, rax
jne 0x1400bcc2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140093910
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14007f300
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1400ca34e]
jmp 0x1400bcde8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bcca1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140093910
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14007f300
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1400bcdd2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400bccea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140093910
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14007f300
mov ebx, 0x4d
jmp 0x1400bcdc6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1400bcd1f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14007f300
mov ebx, 0x4d
jmp 0x1400bcdbe
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x1400bcd39
lea ebx, [rax + 0x1b]
jmp 0x1400bcdbe
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1400bcd98
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bce0a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400bcd8f
mov edi, esi
jmp 0x1400bcd91
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1400bcd50
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1400bc910
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1400ca34e]
mov rcx, r13
call fcn.1400ca34e
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400c8ee0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140093910
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14007f300
mov ebx, 0x4d
jmp 0x1400bcdb6
Function at 0x1400c4200
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400c4242
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c4289
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c42e2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c42a0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c4323
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400de331]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400de332]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c42f0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b890]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b8a0]
mov dword [rax], 1
mov rax, qword [0x14000b8b0]
mov dword [rax], 1
mov rax, qword [0x14000b820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000b880]
mov dword [0x14000e00c], 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 [0x14000b960]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000b940]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000b7d0]
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 0x1400014a4
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
call sym.__main
mov byte [rbp + 0x1d7], 1
lea rax, section..rdata
mov rdx, rax
lea rax, str.._apod4_int32.bin
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1c8], rax
mov ecx, 0x163fd4
call sym.malloc
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1e8], 0
jmp 0x14000153c
mov rax, qword [rbp + 0x1e8]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x1c0]
add rax, rdx
mov rdx, qword [rbp + 0x1c8]
mov r9, rdx
mov r8d, 1
mov edx, 4
mov rcx, rax
call sym.fread
add qword [rbp + 0x1e8], 1
cmp qword [rbp + 0x1e8], 0x58ff4
jbe 0x1400014fe
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
call sym.fclose
mov dword [rbp + 0x1bc], 0
movzx eax, byte [rbp + 0x1d7]
movzx edx, al
mov rax, qword [rbp + 0x1c0]
mov dword [rsp + 0x48], edx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
lea rdx, [rbp + 0x1bc]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0x14
mov dword [rsp + 0x28], 0x19
mov dword [rsp + 0x20], 4
mov r9d, 4
mov r8d, 0x1fb
mov edx, 0x2cf
mov rcx, rax
call sym.star_extraction
mov eax, dword [rbp + 0x1bc]
mov edx, eax
lea rax, str.Number_of_detected_stars:_d_n
mov rcx, rax
call sym.printf
mov qword [rbp + 0x1e0], 0
jmp 0x1400016cd
mov rax, qword [rbp + 0x1e0]
add rax, 1
mov rdx, rax
lea rax, str.No.__2d:
mov rcx, rax
call sym.printf
mov qword [rbp + 0x1d8], 0
jmp 0x14000165d
mov rdx, qword [rbp + 0x1e0]
mov rax, rdx
add rax, rax
add rax, rdx
mov rdx, qword [rbp + 0x1d8]
add rax, rdx
movss xmm0, dword [rbp + rax*4 - 0x30]
cvtss2sd xmm0, xmm0
movq rax, xmm0
mov rdx, rax
movq xmm0, rdx
movapd xmm1, xmm0
mov rdx, rax
lea rax, str._4.1f
mov rcx, rax
call sym.printf
add qword [rbp + 0x1d8], 1
cmp qword [rbp + 0x1d8], 1
jbe 0x14000160e
mov rdx, qword [rbp + 0x1e0]
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
lea rax, [rax + 0x1f0]
add rax, rbp
sub rax, 0x218
movss xmm0, dword [rax]
cvtss2sd xmm0, xmm0
movq rax, xmm0
mov rdx, rax
movq xmm0, rdx
movapd xmm1, xmm0
mov rdx, rax
lea rax, str.__Brightness:__4.1f
mov rcx, rax
call sym.printf
lea rax, [0x14000b057]
mov rcx, rax
call sym.printf
add qword [rbp + 0x1e0], 1
mov eax, dword [rbp + 0x1bc]
mov edx, 0x28
cmp eax, edx
cmova eax, edx
mov eax, eax
cmp qword [rbp + 0x1e0], rax
jb 0x1400015e4
mov eax, 0
add rsp, 0x270
pop rbp
ret

Function at 0x140003870
Capabilities:
Write file on windows

Disassembly:
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 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 0x1400038e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
test esi, esi
mov rbx, rcx
jle 0x140003a10
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000392b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400039b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003910
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140003a32
mov rax, qword [0x14000e098]
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 [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400039ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400039c0
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000e098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400039ae
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 0x140003938
mov rax, qword [0x14000e098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x140003ffc
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 0x140003ff3
test rsi, rsi
je 0x140003ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003fd8
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 0x140004210
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140004220
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140004230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140004250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004260
Capabilities:
Enumerate pe sections

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

Function at 0x1400042b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140004340
mov rdx, qword [0x14000b820]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000432e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000432e
cmp word [rax + 0x18], 0x20b
jne 0x14000432e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140004340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140004319
add rbx, 0x28
cmp rbx, rdi
je 0x140004340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140004310
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 0x140004350
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400043d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b820]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400043ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400043f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400043ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140004410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b820]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004430
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140004480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140004477
test rcx, rcx
je 0x140004430
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140004468
xor eax, eax
ret

Function at 0x140004490
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000b820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400044f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400044f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400044f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400044f0
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]
cmp rcx, r8
mov rax, r8
jb 0x140004544
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004550
add rdx, 0x28
cmp r9, rdx
jne 0x140004530
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000b820]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004582
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140004582
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]
cmp rax, r9
mov r8, r9
jb 0x1400045e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400045f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400045d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140004617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400045ee
test ecx, ecx
jg 0x140004600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret