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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x750]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1801ca57c
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x1801ca5d7
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1801b3450
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1801e5c70
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rax, qword [rbx + 0x168]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x1801ca669
sub edx, 1
je 0x1801ca6df
sub edx, 1
je 0x1801ca63d
cmp edx, 1
je 0x1801ca620
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18033cc4c]
call fcn.1801b3450
jmp 0x1801ca6df
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rbx
call fcn.1801ca210
test eax, eax
je 0x1801ca6df
jmp 0x1801ca5a9
movzx ecx, byte [rax + 2]
lea rdx, [0x18022ee00]
movzx eax, byte [rax + 3]
mov r8, qword [rbx + 0x168]
shl ecx, 8
add r8, 4
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.1801b3550
jmp 0x1801ca6df
cmp r8d, 4
jle 0x1801ca6df
movzx ecx, byte [rax + 2]
mov rdx, rax
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1801ca6df
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1801b3130
mov esi, eax
test eax, eax
je 0x1801ca6be
mov edx, 5
mov rcx, rbx
call fcn.1801cb170
mov eax, esi
jmp 0x1801ca5a9
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1801bf410
mov rcx, r14
call fcn.1801bf7a0
test eax, eax
je 0x1801ca5a7
mov edx, 5
mov rcx, rbx
call fcn.1801cb170
mov eax, Ordinal_46
jmp 0x1801ca5a9
Function at 0x1801d2ff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x240]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x28]
mov rbx, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rcx, rbp
or rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1801d3061
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1801b3f80
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x1801d3086
lea rdx, str.Error_accept__ing_server_connect
call fcn.1801b3450
lea eax, [rdi + 0x1f]
jmp 0x1801d30e7
lea rdx, str.Connection_accepted_from_server_n
call fcn.1801b3550
mov byte [rbx + 0x3b4], 0
mov edx, 1
mov rcx, rdi
mov qword [rbx + 0x240], rdi
call fcn.1801da660
mov byte [rbx + 0x259], 1
mov rax, qword [rsi + 0x2c8]
test rax, rax
je 0x1801d30e5
mov rcx, qword [rsi + 0x2d0]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x1801d30e5
mov rcx, rbx
call fcn.1801d3730
mov eax, Ordinal_46
jmp 0x1801d30e7
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1801e5c70
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x750
cmp byte [rax + 0x732], 0
jne 0x1801d4385
cmp dword [rax + 0x590], 0
je 0x1801d43b1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1801d43b1
lea rdx, str.MDTM__s
call fcn.1801e0be0
test eax, eax
jne 0x1801d43be
mov dword [rbx + 0x80c], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801d5230
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1f8]
cmp dword [rax + 0x18], 0
je 0x1801d4bd8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x80c], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801d4cf0
cmp byte [rcx + 0x737], 0
je 0x1801d4bf0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801d5710
cmp byte [rcx + 0x74e], 0
je 0x1801d4c91
mov r8, qword [rbx + 0x7d8]
test r8, r8
jne 0x1801d4c4b
mov r8, qword [rcx + 0x7a8]
test r8, r8
jne 0x1801d4c2e
cmp byte [rcx + 0x736], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x750]
lea rdx, str.PRET__s
call fcn.1801e0be0
test eax, eax
je 0x1801d4c81
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x742], 0
lea rcx, [rbx + 0x750]
je 0x1801d4c71
lea rdx, str.PRET_STOR__s
call fcn.1801e0be0
test eax, eax
je 0x1801d4c81
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1801e0be0
test eax, eax
jne 0x1801d4c9e
mov dword [rbx + 0x80c], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801d5680
add rsp, 0x20
pop rbx
ret
Function at 0x1801d4fe0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x18], 0
je 0x1801d502d
cmp qword [rcx + 0x7d8], 0
je 0x1801d502d
add rcx, 0x750
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1801e0be0
test eax, eax
jne 0x1801d5037
mov dword [rbx + 0x80c], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1801d4ba0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x750
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x18], 1
jne 0x1801d521c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1801d521c
lea rdx, str.SIZE__s
call fcn.1801e0be0
test eax, eax
jne 0x1801d5229
mov dword [rbx + 0x80c], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801d4fe0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0x741], 0
je 0x1801d5288
cmp qword [rcx + 0x7d8], 0
je 0x1801d5288
cmp byte [r9 + 0x734], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x7fc]
cmp eax, edx
je 0x1801d5288
mov rax, qword [r9 + 0x1f8]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x18], 1
movzx edx, byte [r9 + 0x734]
jmp fcn.1801d39e0
jmp fcn.1801d51d0
Function at 0x1801d5290
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x1801d52d4
lea rdx, str.Couldnt_set_desired_mode
call fcn.1801b3450
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp edx, 0xc8
je 0x1801d52eb
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1801b3550
mov qword [rsp + 0x48], rbp
cmp edi, 0x13
jne 0x1801d5302
mov rcx, rsi
call fcn.1801d51d0
jmp 0x1801d544f
cmp edi, 0x14
jne 0x1801d5431
mov rbp, qword [rsi]
mov rax, rbx
mov rdi, qword [rbp + 0x5050]
mov qword [rsp + 0x40], rbx
cmp dword [rbp + 0x718], 2
jne 0x1801d538d
test rdi, rdi
je 0x1801d538d
cmp byte [rdi], al
je 0x1801d538d
mov edx, Ordinal_50
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1801d5388
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], bl
jne 0x1801d5345
cmp byte [rax + rdi - 1], 0x2f
je 0x1801d5364
mov edx, Ordinal_50
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
sub rax, rdi
mov byte [rsp + 0x28], bl
lea r9, [rsp + 0x40]
mov r8, rax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1801c6940
test eax, eax
jne 0x1801d544f
mov rax, qword [rsp + 0x40]
mov rdx, qword [rbp + 0x7a8]
test rdx, rdx
jne 0x1801d53b1
cmp byte [rbp + 0x736], bl
lea rcx, str.NLST
lea rdx, str.LIST
cmovne rdx, rcx
test rax, rax
lea r8, [0x18030b3c8]
mov r9, r8
lea rcx, [0x180229e34]
cmovne r8, rcx
cmovne r9, rax
lea rcx, [0x180230548]
call fcn.1801c1770
mov rbp, rax
test rax, rax
jne 0x1801d53f1
mov rcx, qword [rsp + 0x40]
call qword [0x1803bc5a0]
lea ebx, [rbp + 0x1b]
jmp 0x1801d5451
lea rcx, [rsi + 0x750]
mov r8, rbp
lea rdx, [0x18033cc4c]
call fcn.1801e0be0
mov rcx, qword [rsp + 0x40]
mov edi, eax
call qword [0x1803bc5a0]
mov rcx, rbp
call qword [0x1803bc5a0]
test edi, edi
je 0x1801d5425
mov ebx, edi
jmp 0x1801d5451
mov dword [rsi + 0x80c], 0x1f
jmp 0x1801d5451
cmp edi, 0x15
jne 0x1801d543c
lea r8d, [rdi - 8]
jmp 0x1801d5445
cmp edi, 0x16
jne 0x1801d5451
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.1801d4cf0
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1801dd300
Capabilities:
Resolve dns

Disassembly:
test rdx, rdx
je 0x1801dd32d
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x68]
mov rbx, rdx
call qword [0x1803bc5a0]
mov rcx, rbx
mov qword [rbx + 0x68], 0
call qword [0x1803bc5a0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.WS2_32.dll_gethostbyname]

Function at 0x1801e3bc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test edx, edx
je 0x1801e3c09
lea eax, [rdx - 0x90312]
cmp eax, 2
jbe 0x1801e3c09
call fcn.1801d9350
mov rcx, qword [rbx]
lea rdx, str.SSPI_error:__s_failed:__s
mov r9, rax
mov r8, rdi
call fcn.1801b3450
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_ioctlsocket]

Function at 0x1801e54b0
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 [fcn.1801e7acc]
mov rdi, rax
test rax, rax
jne 0x1801e54f2
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 0x1801e5539
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 0x1801e5592
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 0x1801e5550
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1801e55d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18023b03a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18023b03b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1801e55a0
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 0x1801e6c90
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180412de0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x180412e0d
xor al, al
jmp 0x180412f6f
mov rax, qword [0x180433700]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x180433708]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x180433710]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x180433718]
mov qword [rcx + 0x18], rax
mov rax, qword [0x180433720]
mov qword [rcx + 0x20], rax
mov rax, qword [0x180433728]
mov qword [rcx + 0x28], rax
mov rax, qword [0x180433730]
mov qword [rcx + 0x30], rax
mov rax, qword [0x180433738]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x180433740]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x180412f61
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x180412eb9
mov r11d, 2
jmp 0x180412edd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x180412ed3
mov r11d, 1
jmp 0x180412edd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x180412f85
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x180412f22
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x180412f3a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x180412f4a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x180412f58
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x180412ea0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x180412f6a
Function at 0x180a7e304
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
neg rbx
movsxd rbx, edx
mov qword [rsp + 0x10], rsi
sbb bx, r13w
movsxd rbx, edx
push rdi
ror bx, cl
sub rsp, 0x20
mov rsi, r8
sbb di, 0x6919
mov rdi, rdx
btr dx, 0x64
mov rbx, rcx
and dl, r14b
xadd dx, dx
nop
cmp dword [rbx + 0x44], 0
mov dl, 0x4b
cdq
mov rdx, rdi
jmp 0x180a7e34d
jne 0x180a7e381
mov r8d, dword [rbx + 0xc]
add al, 0x56
cdqe
mov rcx, qword [rbx + 0x30]
rcl ax, cl
add al, r10b
mov rax, rdi
sub r8d, dword [rbx + 0x40]
sub rax, rcx
jmp 0x180a7e374
cmp rax, r8
jbe 0x180a7e381
lea rdx, [r8 + rcx]
mov r8, rsi
movsx rcx, si
bswap cx
xchg ecx, ecx
mov rcx, rbx
jmp 0x180a7e395
call fcn.180a7c471
test eax, eax
jne 0x180a7e426
mov eax, dword [rbx + 0xc]
jmp 0x180a7e3ae
cmp dword [rbx + 0x40], eax
jmp 0x180a7e3b6
jb 0x180a7e3c8
mov dword [rbx + 0x44], eax
movsx dx, r15b
movzx rdx, r15w
mov rdx, rdi
mov rcx, rbx
jmp 0x180a7e3d3
call fcn.180a7e1a4
cmp qword [rbx + 0x30], rdi
jae 0x180a7e3fe
cmp qword [rbx + 0x20], rsi
jae 0x180a7e3fe
cmp dword [rbx + 0x5c], 0x112
jmp 0x180a7e3f8
jb 0x180a7e33e
cmp dword [rbx + 0x5c], 0x112
jmp 0x180a7e40a
jbe 0x180a7e424
mov dword [rbx + 0x5c], 0x112
movzx si, r13b
shl si, 0x15
bsf rdi, rbx
sub eax, eax
mov rbx, qword [rsp + 0x30]
xor sil, r8b
sar rsi, cl
mov rsi, qword [rsp + 0x38]
movsx di, r8b
add rsp, 0x20
movzx di, r15b
movzx rdi, r15w
pop rdi
jmp 0x180a7e44e
ret
Function at 0x1400031b0
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 fcn.140004000
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.140004000
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003220
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003350
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000326b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400032f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003250
mov rcx, rbx
call fcn.140003c70
mov rdi, rax
test rax, rax
je 0x140003372
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003db0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003357
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400032ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003300
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400032ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400031b0
nop dword [rax]
xor esi, esi
jmp 0x140003278
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400031b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400031b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400038e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000393c
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 0x140003933
test rsi, rsi
je 0x140003933
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003918
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 0x140003c70
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003cf0
Capabilities:
Parse pe header

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

Function at 0x140003db0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400064f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003dcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003dd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004098b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004098c0]
mov dword [rax], 1
mov rax, qword [0x004098d0]
mov dword [rax], 1
mov rax, qword [0x004098a0]
mov dword [rax], 1
mov rax, qword [0x00409760]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x00409890]
mov dword [0x0040d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00409850]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x00409830]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00409710]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401b20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]