joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003000
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.140004bf0
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.140004bf0
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 0x140003070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x1400031a0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400030bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003145
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400030a0
mov rcx, rbx
call fcn.140003ac0
mov rdi, rax
test rax, rax
je 0x1400031c2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400031a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000313e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003150
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000313e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003000
nop dword [rax]
xor esi, esi
jmp 0x1400030c8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003000
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003000
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003730
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000378c
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 0x140003783
test rsi, rsi
je 0x140003783
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003768
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 0x140003ac0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003b40
Capabilities:
Parse pe header

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

Function at 0x140003c00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006af0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x25758
Capabilities:
Access pe header
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x00065100]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea r9, [r11 - 0x38]
lea rdx, [r11 - 0x30]
lea edi, [rbx + 0xb]
lea r8d, [rbx + 0xa]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x64536d4d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
test rax, rax
je 0x25961
mov edx, dword [0x0006669c]
mov r15d, 0x165c
add edx, 0x7c
mov dword [0x0006669c], edx
cmp edx, r15d
jbe 0x257dd
add edx, 8
mov dword [0x0006669c], edx
mov r8d, dword [rsp + 0x30]
and edx, 0x19
lea r9, [rsp + 0x30]
mov dword [0x000666cc], edx
mov ecx, edi
mov rdx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jne 0x25896
mov r13d, dword [rbp]
xor r12d, r12d
lea rdi, [rbp + 8]
test r13d, r13d
je 0x25896
lea rsi, [rdi + 0x28]
mov rcx, rsi
test rsi, rsi
je 0x25838
inc rcx
cmp byte [rcx], bl
jne 0x25822
jmp 0x2582f
cmp al, 0x5c
je 0x25860
dec rcx
mov al, byte [rcx]
test al, al
jne 0x2582b
mov eax, dword [0x00066698]
add eax, 0x7c
mov dword [0x00066698], eax
cmp eax, r15d
jbe 0x25855
add eax, 8
mov dword [0x00066698], eax
and eax, 0x19
xor ecx, ecx
mov dword [0x000666cc], eax
test rcx, rcx
jne 0x2586a
mov rcx, rsi
jmp 0x2586d
inc rcx
lea rdx, [0x000669a0]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x25892
mov eax, 0x128
inc r12d
add rdi, rax
add rsi, rax
cmp r12d, r13d
jb 0x2581a
jmp 0x25896
mov rbx, qword [rdi + 0x10]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x25961
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov r11, rax
test rax, rax
je 0x25961
mov eax, dword [0x000666a8]
add eax, 0x7c
mov dword [0x000666a8], eax
cmp eax, r15d
jbe 0x258dc
add eax, 8
mov dword [0x000666a8], eax
and eax, 0x19
mov dword [0x000666cc], eax
mov eax, dword [r11 + 0x88]
test eax, eax
je 0x25961
lea rcx, [rbx + rax]
cmp dword [rcx + 0x1c], 0
je 0x2595a
cmp dword [rcx + 0x20], 0
je 0x2595a
mov eax, dword [0x000666a4]
mov r9d, dword [rcx + 0x1c]
mov r8d, dword [rcx + 0x20]
mov r10d, dword [rcx + 0x24]
add eax, 0x7c
add r9, rbx
add r8, rbx
add r10, rbx
mov dword [0x000666a4], eax
cmp eax, r15d
jbe 0x25932
add eax, 8
mov dword [0x000666a4], eax
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], r8
mov r8d, dword [rcx + 0x18]
and eax, 0x19
lea rcx, [0x000669b8]
mov rdx, rbx
mov dword [0x000666cc], eax
call fcn.0002569c
jmp 0x2595c
xor eax, eax
test rax, rax
jne 0x25963
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.00055060
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x30408
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x00065100]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
lea rcx, [0x0005e3b0]
call fcn.0003f5b0
lea rbp, str.d:code20210715_kernelsslpcmonitorpolarssl2_ssl_tls.c
mov r9d, 0xc43
mov edx, 2
mov rcx, rbx
mov r8, rbp
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov r8d, dword [rbx + 0x1b8]
mov rax, qword [rbx + 0xd8]
lea rdx, [rsp + 0x30]
xor r8d, 1
mov rcx, rbx
call qword [rax + 0x810]
lea rcx, str.switching_to_new_transform_spec_for_inbound_data
call fcn.0003f5b0
mov r9d, 0xc4a
mov r8, rbp
mov edx, 3
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov rax, qword [rbx + 0xf8]
xor ecx, ecx
mov qword [rbx + 0xe0], rax
mov rax, qword [rbx + 0xd0]
mov qword [rbx + 0xb8], rax
mov rax, qword [rbx + 0x100]
mov qword [rax], rcx
cmp dword [rbx + 0xc], 2
jl 0x304eb
mov rax, qword [rbx + 0xf8]
mov rcx, qword [rax + 0x18]
sub rcx, qword [rax + 0x20]
add rcx, qword [rbx + 0x110]
mov qword [rbx + 0x118], rcx
jmp 0x304f9
mov rax, qword [rbx + 0x110]
mov qword [rbx + 0x118], rax
mov rcx, rbx
call fcn.0002e40c
mov edi, eax
test eax, eax
je 0x30534
mov dword [rsp + 0x28], eax
lea rax, str.ssl_read_record
mov r9d, 0xc67
mov r8, rbp
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f684
mov eax, edi
jmp 0x30681
cmp dword [rbx + 0x128], 0x16
je 0x3056e
lea rcx, str.bad_finished_message
call fcn.0003f5b0
mov r9d, 0xc6d
mov r8, rbp
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov eax, 0xffff8900
jmp 0x30681
mov eax, dword [rbx + 0xc]
mov r8, qword [rbx + 0x118]
neg eax
sbb edx, edx
and edx, 0xffffffe8
add edx, 0x24
cmp byte [r8], 0x14
jne 0x30655
lea ecx, [rdx + 4]
cmp qword [rbx + 0x140], rcx
jne 0x30655
xor r9b, r9b
lea rcx, [r8 + 4]
mov r8d, edx
test edx, edx
je 0x305e2
lea rdx, [rsp + 0x30]
mov r10, r8
sub rdx, rcx
mov al, byte [rdx + rcx]
xor al, byte [rcx]
inc rcx
or r9b, al
sub r10, 1
jne 0x305b5
test r9b, r9b
je 0x305e2
lea rcx, str.bad_finished_message
call fcn.0003f5b0
mov r9d, 0xc7d
jmp 0x30667
lea rcx, [rbx + 0x294]
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x268], r8
call fcn.000550e0
mov r11, qword [rbx + 0xd8]
cmp dword [r11 + 0xa68], 0
je 0x30628
mov eax, dword [rbx + 0x1b8]
test eax, eax
jne 0x3061b
mov dword [rbx], 0xa
cmp eax, 1
jne 0x3062a
mov dword [rbx], 0xf
jmp 0x3062a
inc dword [rbx]
lea rcx, str.__parse_finished
call fcn.0003f5b0
mov r9d, 0xc8f
mov r8, rbp
mov edx, 2
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
xor eax, eax
jmp 0x30681
lea rcx, str.bad_finished_message
call fcn.0003f5b0
mov r9d, 0xc77
mov r8, rbp
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov eax, 0xffff8180
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.00055060
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x454d4
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 4], 0
mov r9, r8
mov rbx, rcx
jne 0x4550e
cmp r8, 1
jne 0x454fa
cmp byte [rdx], 0
jne 0x454fa
mov dword [rcx + 0x260], r8d
jmp 0x45550
lea rcx, str.non_zero_length_renegotiated_connection_field
call fcn.0003f5b0
mov r9d, 0x18b
jmp 0x45566
mov r8, qword [rcx + 0x268]
lea rax, [r8 + 1]
cmp r9, rax
jne 0x45554
movzx eax, byte [rdx]
cmp rax, r8
jne 0x45554
lea rcx, [rdx + 1]
xor dl, dl
lea r9, [rbx + 0x294]
test r8, r8
je 0x45550
sub r9, rcx
mov al, byte [r9 + rcx]
xor al, byte [rcx]
inc rcx
or dl, al
sub r8, 1
jne 0x4553b
test dl, dl
jne 0x45554
xor eax, eax
jmp 0x45598
lea rcx, str.non_matching_renegotiated_connection_field
call fcn.0003f5b0
mov r9d, 0x19d
lea r8, str.d:code20210715_kernelsslpcmonitorpolarssl2_ssl_srv.c
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov r8b, 0x28
mov dl, 2
mov rcx, rbx
call fcn.0002eaac
mov ecx, 0xffff8700
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x487dc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov r10, qword [rcx + 0xa8]
mov r9, r8
mov rsi, rdx
mov rbx, rcx
test r10, r10
jne 0x48859
cmp qword [rcx + 0x230], r10
je 0x48824
cmp qword [rcx + 0x240], r10
je 0x48824
cmp qword [rcx + 0x248], r10
je 0x48824
cmp qword [rcx + 0x238], r10
jne 0x48859
lea rcx, str.got_no_pre_shared_key
call fcn.0003f5b0
lea r8, str.d:code20210715_kernelsslpcmonitorpolarssl2_ssl_srv.c
mov r9d, 0x984
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov eax, 0xffff8a00
jmp 0x48986
mov rcx, qword [rdx]
lea r8, [rcx + 2]
cmp r8, r9
jbe 0x4887c
lea rcx, str.bad_client_key_exchange_message
call fcn.0003f5b0
mov r9d, 0x98d
jmp 0x48968
movzx eax, byte [rcx]
mov qword [rdx], r8
shl eax, 8
movsxd rdi, eax
movzx eax, byte [rcx + 1]
or rdi, rax
lea rax, [rdi - 1]
cmp rax, 0xfffe
ja 0x48956
lea rax, [r8 + rdi]
cmp rax, r9
ja 0x48956
test r10, r10
je 0x488c5
mov rcx, qword [rbx + 0xb0]
mov r9, rdi
mov rdx, rbx
call r10
test eax, eax
jne 0x48908
cmp rdi, qword [rbx + 0x248]
jne 0x48908
mov rcx, qword [rbx + 0x240]
mov r8, qword [rsi]
xor dl, dl
test rdi, rdi
je 0x488fd
mov r9, r8
mov r10, rdi
sub r9, rcx
mov al, byte [r9 + rcx]
xor al, byte [rcx]
inc rcx
or dl, al
sub r10, 1
jne 0x488e8
test dl, dl
jne 0x48908
lea rax, [r8 + rdi]
mov qword [rsi], rax
xor eax, eax
jmp 0x48986
mov rax, qword [rsi]
mov qword [rsp + 0x30], rdi
lea r8, str.d:code20210715_kernelsslpcmonitorpolarssl2_ssl_srv.c
mov qword [rsp + 0x28], rax
lea rax, str.Unknown_PSK_identity
mov r9d, 0x9ad
mov edx, 3
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f71c
mov r8b, 0x73
mov dl, 2
mov rcx, rbx
call fcn.0002eaac
mov ecx, 0xffff9380
test eax, eax
cmovne ecx, eax
mov eax, ecx
jmp 0x48986
lea rcx, str.bad_client_key_exchange_message
call fcn.0003f5b0
mov r9d, 0x996
lea r8, str.d:code20210715_kernelsslpcmonitorpolarssl2_ssl_srv.c
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.0003f5f8
mov eax, 0xffff8400
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x280db8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
bswap r11
sar r11, 0x6b
mov qword [rsp + 0x10], rdi
dec r10b
ror r9w, cl
sub edi, edi
movsxd r11, r11d
movzx ebx, r8b
movzx r9, ax
cmovb r9w, r13w
movzx r10d, r11w
mov r11, rcx
mov r8, rdi
movzx r9, si
movsxd r10, esi
nop
movsx r10w, r11b
movzx r9w, cl
setae r9b
movzx r9d, byte [r11]
movsx r10w, r11b
xchg r10, r10
movsx r10d, cx
movzx r10d, byte [rdx]
jmp 0x280e1b
inc r11
jmp 0x280e23
inc rdx
test bl, bl
jmp 0x280e2d
je 0x280e64
mov ecx, r8d
jmp 0x280e3b
mov eax, 0x56b47b99
jmp 0x280e47
rol eax, cl
jmp 0x280e50
add al, r8b
clc
xor r9b, al
inc r8
cmc
jmp 0x280e64
test r9b, r9b
je 0x280e7b
cmp r9b, r10b
jmp 0x280e75
je 0x280e02
cmp r9b, r10b
jmp 0x280e83
jae 0x280eb1
or eax, 0xffffffff
movzx di, bl
movsx rbx, r15w
xchg dil, dil
mov rbx, qword [rsp + 8]
mov dil, 0x8e
xchg dil, dil
cmovbe rdi, r15
mov rdi, qword [rsp + 0x10]
jmp 0x280eb0
ret
mov rbx, qword [rsp + 8]
cbw
movsx eax, bp
seta dil
mov eax, edi
mov rdi, qword [rsp + 0x10]
ret
Function at 0x14000631c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140010960], rbx
je 0x140006383
cmp rax, rbx
jne 0x140006376
mov ebx, 1
mov esi, ebx
jmp 0x140006388
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000635b
mov ebx, 1
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x1400063a0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000640c
mov eax, dword [0x140010968]
test eax, eax
jne 0x140006401
mov dword [0x140010968], ebx
lea r15, [0x1400089c8]
lea rdi, [0x1400089b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400063f3
test eax, eax
jne 0x1400063f7
cmp qword [rdi], r14
je 0x1400063e8
mov rax, qword [rdi]
mov rcx, qword [0x140008930]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400063ca
test eax, eax
je 0x140006407
mov eax, 0xff
jmp 0x140006562
mov dword [0x14000e3e4], ebx
mov edi, 0x1f
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x140006433
lea rdx, [0x1400089a8]
lea rcx, [0x140008938]
call sub.msvcrt.dll__initterm
mov dword [0x140010968], 2
test esi, esi
jne 0x140006441
mov rax, r14
xchg qword [0x140010960], rax
cmp qword [0x140010970], r14
je 0x140006474
lea rcx, [0x140010970]
call fcn.140006730
test eax, eax
je 0x140006474
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140010970]
mov r9, qword [0x140008930]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000648d
mov eax, 0xff
jmp 0x140006562
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006513
test ax, ax
je 0x1400064a8
test edx, edx
jne 0x140006513
sub ax, bx
cmp ax, di
ja 0x1400064be
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400064a8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001394
mov dword [0x14000e3e0], eax
cmp dword [0x14000e400], r14d
jne 0x1400064fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e3e4], r14d
jne 0x140006511
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e3e0]
jmp 0x140006562
cmp ax, 0x22
jne 0x140006527
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140006496
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14013d000
add rsp, 0x28
jmp 0x14000631c
Function at 0x1400029f0
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.140003a90
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.140003a90
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 0x140002a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002b90
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002aab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002a90
mov rcx, rbx
call fcn.1400034b0
mov rdi, rax
test rax, rax
je 0x140002bb2
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400035f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002b97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002b2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002b40
add dword [0x1400080a4], 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 [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400029f0
nop dword [rax]
xor esi, esi
jmp 0x140002ab8
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400029f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400029f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000317c
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 0x140003173
test rsi, rsi
je 0x140003173
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003158
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 0x1400034b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003530
Capabilities:
Parse pe header

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

Function at 0x1400035f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400059a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000360f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003618
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 [0x004bd9d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004bd9e0]
mov dword [rax], 1
mov rax, qword [0x004bd9f0]
mov dword [rax], 1
mov rax, qword [0x004bd9c0]
mov dword [rax], 1
mov rax, qword [0x004bd890]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004bd9b0]
mov dword [0x004e400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004bd970]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004bccd0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
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, [dbg._matherr]
call dbg.__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 0x40c2b0
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]