joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015060
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x14004daa0]
lea r10, [0x140040bb0]
movsxd r9, ecx
mov rbx, qword [r8 + 0x1c20]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x1c54], edi
jne 0x140015105
mov r8, r9
mov edx, 4
mov ecx, edi
call fcn.14001c250
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x140015139
inc r8d
test ecx, ecx
je 0x140015122
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140015127
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.14001d210
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140016130
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14004daa0]
mov edi, ecx
cmp byte [rbx + 0x1fad], 0
jne 0x140016191
cmp byte [rbx + 0x1fae], 0
jne 0x140016191
movsx r9d, word [rbx + 0x308e]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140008d70
test dil, 1
je 0x1400162b8
jmp 0x14001621a
movss xmm1, dword [rbx + 0x1628]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x308e]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140045530]
mulss xmm1, dword [0x140045524]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d30], rax
mov dword [rbx + 0x1d1c], 1
movss dword [rbx + 0x1d28], xmm0
movss dword [rbx + 0x1d2c], xmm1
movss xmm0, dword [rbx + 0x1684]
mulss xmm0, dword [0x140045480]
or dword [rbx + 0x1d18], 0x41
movss dword [rbx + 0x1d78], xmm0
call fcn.140008d70
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140016270
lea r11, [0x140040bb0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140016253
cmp byte [r8], r9b
jne 0x140016253
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140016240
not ecx
call fcn.14000fbd0
test rax, rax
je 0x1400162b8
cmp byte [rax + 0x8e], 0
je 0x1400162b8
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x308e]
mov edx, 0x10
movsx r9d, word [rbx + 0x308e]
call fcn.140008d70
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140012280
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003e340
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001b020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3130], 0
lea rbx, [rcx + 0x3138]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001b0c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001b07a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001cfe0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400094f0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3130]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3140]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14004dab0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001b0cf
mov rcx, rbx
call fcn.1400094f0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14003dfa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x14003dfe6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x14003dfd6
cmp byte [rax], cl
jne 0x14003dfe6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x14003dfc7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14003e14a
cmp byte [r8 + 1], dl
je 0x14003e14a
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14003e022
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14003e04a
sub dl, 0x61
cmp dl, 0x19
ja 0x14003e03c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14003e04a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14003e005
jmp 0x14003e04d
inc r9
cmp r8, r9
jae 0x14003e07f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14003e074
bt rdx, rax
jb 0x14003e07a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14003e060
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.140008d70
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14003e0b8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x14003e0b0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14003e138
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14003e0d3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x14003e0e9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x14003e126
movss xmm2, dword [0x140045528]
cmp al, 0x39
ja 0x14003e126
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x14003e100
cmp r9b, 0x2d
jne 0x14003e145
xorps xmm1, xmmword [0x140045690]
movaps xmm0, xmm1
jmp 0x14003e14d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003e14d
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003e340
add rsp, 0x90
pop rbx
ret
Function at 0x14003e170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x14003e1b6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x14003e1a6
cmp byte [rax], cl
jne 0x14003e1b6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x14003e197
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14003e314
cmp byte [r8 + 1], dl
je 0x14003e314
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14003e1f2
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14003e21a
sub dl, 0x61
cmp dl, 0x19
ja 0x14003e20c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14003e21a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14003e1d5
jmp 0x14003e21d
inc r9
cmp r8, r9
jae 0x14003e24f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14003e244
bt rdx, rax
jb 0x14003e24a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14003e230
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140008d70
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14003e288
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14003e280
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14003e306
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14003e2a3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x14003e2b9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x14003e2f4
movsd xmm2, qword [0x1400454f0]
cmp al, 0x39
ja 0x14003e2f4
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14003e2d0
cmp r9b, 0x2d
jne 0x14003e30f
xorps xmm1, xmmword [0x140045680]
movaps xmm0, xmm1
jmp 0x14003e317
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003e317
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003e340
add rsp, 0x90
pop rbx
ret

Function at 0x14003efd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f022
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f022
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f022
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f022
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f022
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003f024
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x48
cmp ecx, 2
jge 0x14000108f
lea rcx, str.____usage:_program.exe__PID__n
call fcn.140001010
mov eax, 1
add rsp, 0x48
ret
mov rcx, qword [rdx + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, eax
mov dword [0x14000487c], eax
lea rcx, str.___Getting_handle_to_process___ld__n
call fcn.140001010
mov r8d, dword [0x14000487c]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140004868], rax
test rax, rax
jne 0x1400010f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x14000487c]
lea rcx, str.____Unable_to_open_handle_to_the_process___ld__error:__ld_n
mov r8d, eax
call fcn.140001010
mov eax, 1
add rsp, 0x48
ret
mov rdx, rax
mov qword [rsp + 0x40], rbx
lea rcx, str.___Got_a_handle_to_the_process_0x_p_n
call fcn.140001010
mov rcx, qword [0x140004868]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, 0x200
lea rcx, str.___Allocated__zu_bytes_with_r_w_e_permissions_n
mov qword [0x140004870], rax
call fcn.140001010
mov rdx, qword [0x140004870]
lea r8, [0x140004080]
mov rcx, qword [0x140004868]
xor ebx, ebx
mov r9d, 0x200
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, 0x200
lea rcx, str.___Wrote__zu_bytes_to_process_memory___creating_and_running_thread_on_shellcode_n
call fcn.140001010
mov r9, qword [0x140004870]
lea rax, [0x140004878]
mov rcx, qword [0x140004868]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov rbx, qword [rsp + 0x40]
mov qword [0x140004860], rax
test rax, rax
jne 0x1400011e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Unable_to_get_a_handle_to_thread._error:__ld_n
call fcn.140001010
mov rcx, qword [0x140004868]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x48
ret
mov r8d, dword [0x140004878]
lea rcx, str.___Successfully_created_thread._Handle:_0x_p_Thread_PID:__ld_n
mov rdx, rax
call fcn.140001010
lea rcx, str.___Waiting_for_thread_to_finish_executing_n
call fcn.140001010
mov rcx, qword [0x140004860]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___thread_finished_executing_n
call fcn.140001010
mov rcx, qword [0x140004860]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140004868]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___Finished__see_you_next_time_:3_n
call fcn.140001010
xor eax, eax
add rsp, 0x48
ret
Function at 0x140001b30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b7a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b7c
xor al, al
add rsp, 0x28
ret

Function at 0x1408aa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408aa1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408aa089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408aa06f
add dl, dl
jne 0x1408aa096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408aa0f6
xor eax, eax
add dl, dl
jne 0x1408aa0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408aa1ad
add dl, dl
jne 0x1408aa0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408aa0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408aa07e
mov eax, 1
add dl, dl
jne 0x1408aa106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408aa0fb
sub eax, ebx
mov ebx, 1
jne 0x1408aa14c
mov ecx, 1
add dl, dl
jne 0x1408aa12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408aa13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408aa123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408aa07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408aa168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408aa175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408aa15d
cmp eax, 0x7d00
jae 0x1408aa19b
cmp eax, 0x500
jb 0x1408aa196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408aa07e
cmp eax, 0x7f
ja 0x1408aa19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408aa07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408aa1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408aa07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004420]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004380]
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 [dbg._matherr]
call dbg.__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 0x140001760
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001900
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000181b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001800
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001922
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000189e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400018b0
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000189e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001828
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001eb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001f0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001f03
test eax, eax
jne 0x140001f03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ee8
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 0x140002120
Capabilities:
Parse pe header

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

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

Function at 0x1400021a0
Capabilities:
Parse pe header

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

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

Function at 0x1400022c0
Capabilities:
Parse pe header

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

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002320
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002328
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002320
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002370
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002367
test rcx, rcx
je 0x140002320
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002358
xor eax, eax
ret
Function at 0x140002380
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400043a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002472
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002480
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002472
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002472
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002472
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024e8
add rdx, 0x28
cmp r10, rdx
jne 0x1400024c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002507
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024de
test ecx, ecx
jg 0x1400024f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret