joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a090
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x40
mov eax, dword [rcx + 8]
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test eax, eax
je 0x14005a0c1
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rcx + 8], 1
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], rsi
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbx
test rcx, rcx
je 0x14005a0fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rsi
lea r8, [0x14005a190]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14005a16a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov r9, rdi
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi], rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
setne sil
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14005d250
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14017c030]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
call fcn.140104680
test eax, eax
jne 0x14005d3e9
mov ecx, 0x228
call fcn.140062f10
mov rbx, rax
test rax, rax
je 0x14005d3e9
xor edx, edx
mov r8d, 0x228
mov rcx, rax
call sub.MSVCR90.dll_memset
test rdi, rdi
je 0x14005d330
movzx edx, byte [rdi]
lea r10, [0x14012ca10]
mov r8, rdi
movzx eax, byte [rdx + r10]
sub eax, 0x2f
jne 0x14005d330
lea r9, [0x140127d5c]
sub r9, rdi
nop
test dl, dl
je 0x14005d2f2
movzx eax, byte [r9 + r8 + 1]
movzx edx, byte [r8 + 1]
inc r8
movzx ecx, byte [rax + r10]
movzx eax, byte [rdx + r10]
sub eax, ecx
je 0x14005d2d0
jmp 0x14005d330
test eax, eax
jne 0x14005d330
lea rdi, [0x1401828b0]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call sub.MSVCR90.dll_memset
lea rcx, str.SystemDrive
mov r8d, 0x8000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14005d32e
cmp eax, 0x8000
jbe 0x14005d330
xor edi, edi
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____
call sub.MSVCR90.dll_memset
lea r8, [0x1401412f4]
lea rcx, [rsp + 0x44]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll__snprintf]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x44]
call qword [sym.imp.MSVCR90.dll__findfirst64i32]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14005d3e1
mov eax, dword [rsp + 0x20]
test al, 2
jne 0x14005d385
test al, 4
je 0x14005d40c
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____
call sub.MSVCR90.dll_memset
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.MSVCR90.dll__findnext64i32]
cmp eax, 0xffffffff
je 0x14005d3e1
nop word [rax + rax]
mov eax, dword [rsp + 0x20]
test al, 2
jne 0x14005d3bc
test al, 4
je 0x14005d40c
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____
call sub.MSVCR90.dll_memset
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.MSVCR90.dll__findnext64i32]
cmp eax, 0xffffffff
jne 0x14005d3b0
mov rcx, rbx
call fcn.14005d530
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140113b50
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x44]
mov r8d, new[]
mov dword [rbx + 0xc], eax
call qword [sym.imp.MSVCR90.dll_strncpy]
mov byte [rbx + 0x114], 0
mov rax, rbx
jmp 0x14005d3eb
Function at 0x14005d580
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov rax, rdx
mov r12, rcx
lea rdx, [0x1401412fc]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_fopen]
mov rdi, rax
test rax, rax
je 0x14005d607
xor edx, edx
mov qword [rsp + 0x40], rbx
mov rcx, rax
lea r8d, [rdx + 2]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
call qword [sym.imp.MSVCR90.dll_fseek]
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_ftell]
mov rcx, rdi
movsxd rsi, eax
call qword [sym.imp.MSVCR90.dll_rewind]
call fcn.140104680
test eax, eax
je 0x14005d613
xor ebx, ebx
mov rcx, rbx
call fcn.140063010
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_fclose]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
test esi, esi
jle 0x14005d5e5
mov rcx, rsi
call fcn.140062f10
mov rbx, rax
test rax, rax
je 0x14005d5e7
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, 1
jne 0x14005d5e7
mov rcx, qword [r12]
lea rax, [fcn.140063010]
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.140086e00
cmp eax, 0x12
jne 0x14005d5ef
mov rcx, r12
call fcn.14008e3d0
jmp 0x14005d5ef
Function at 0x1400851e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r14, rcx
mov r12d, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r15d, r9d
mov r8d, dword [r11 + 0x30]
mov r10, qword [rax + 8]
mov r13, qword [r11]
movsxd rax, dword [r10 + 0x30]
mov ecx, r8d
mov dword [rsp + 0x78], r8d
cmp eax, r8d
mov qword [rsp + 0x28], rax
cmovl ecx, eax
xor ebx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, rax
imul r12, rax
cmp eax, r8d
je 0x140085248
cmp byte [r13 + 0x10], bl
mov eax, 8
cmovne ebx, eax
mov rdi, r12
sub rdi, rcx
test ebx, ebx
jne 0x140085418
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x30], rsi
cmp rdi, r12
jge 0x1400853fa
mov rax, rdi
movsxd rbp, r8d
mov qword [rsp + 0x20], 0
cqo
idiv rbp
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r14 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [0x14017d440]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x1400853ef
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, r10d
mov rcx, r13
call qword [r13 + delete[]]
mov ebx, eax
test eax, eax
jne 0x140085383
mov r8, qword [rsp + 0x20]
test byte [r8 + 0x34], 4
mov rcx, qword [r8 + 0x28]
je 0x1400852fa
mov eax, dword [r8 + 0x30]
cmp dword [rcx + 0x1c], eax
jb 0x1400852fa
cmp dword [rcx + 0x80], ebx
je 0x1400852f6
mov rcx, r8
call fcn.140071da0
mov r8, qword [rsp + 0x20]
mov ebx, eax
jmp 0x14008532f
xor ebx, ebx
jmp 0x140085333
mov ebx, dword [rcx + 0x2c]
test ebx, ebx
jne 0x14008532f
mov eax, dword [rcx + 0xbc]
cmp dword [rcx + 0xb8], eax
jbe 0x140085320
mov rcx, r8
call fcn.1400734e0
mov r8, qword [rsp + 0x20]
mov ebx, eax
jmp 0x14008532f
mov rcx, r8
call fcn.140073430
mov r8, qword [rsp + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x140085388
add rsi, qword [r8 + 8]
movsxd r8, dword [rsp + 0x70]
mov rax, rdi
cqo
mov rcx, rsi
idiv qword [rsp + 0x28]
add rdx, qword [rsp + 0x80]
call sub.MSVCR90.dll_memcpy
mov r11, qword [rsp + 0x20]
mov rax, qword [r11 + 0x10]
mov byte [rax], 0
test rdi, rdi
jne 0x140085383
test r15d, r15d
jne 0x140085383
mov rax, qword [r14 + 0x28]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x3c]
bswap eax
mov dword [rsi + 0x1c], eax
mov r8, qword [rsp + 0x20]
jmp 0x140085388
mov r8, qword [rsp + 0x20]
test r8, r8
je 0x1400853ea
test byte [r8 + 0x34], 0x20
je 0x1400853db
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
mov rcx, qword [r10 + 0x48]
movsxd rax, dword [r10 + 0xbc]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r9, qword [rcx]
mov r8, qword [r8 + 8]
dec edx
imul rdx, rax
call qword [r9 + 0x90]
mov r8d, dword [rsp + 0x78]
jmp 0x1400853ef
mov rcx, r8
call fcn.14006ca50
mov r8d, dword [rsp + 0x78]
jmp 0x1400853ef
mov r8d, dword [rsp + 0x78]
add rdi, rbp
test ebx, ebx
je 0x140085263
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x30]
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x14009cda0
Capabilities:
Create thread

Disassembly:
mov rax, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x14009cdcc
cmp dword [rcx + 0x20], 0
je 0x14009cdc4
mov rcx, qword [rcx]
lea rdx, [0x14009cd70]
mov r8, rax
jmp fcn.140065e20
mov rcx, rax
jmp fcn.14009cc60
xor eax, eax
ret
Function at 0x1400aacc0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rdi, rdx
mov r8, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
lea r9, str.sqlite_master
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.1400b2190
test ebx, ebx
jne 0x1400aad14
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov r9, rdi
mov rcx, rsi
call fcn.1400b2190
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b22a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov r12, rcx
lea r13, [0x14012ca10]
nop dword [rax + rax]
xor ebx, ebx
cmp dword [r12 + 0x28], ebx
jle 0x1400b2386
nop dword [rax]
cmp ebx, 2
mov r10d, ebx
jge 0x1400b22ec
xor r10d, 1
test rbp, rbp
je 0x1400b2350
mov rsi, qword [r12 + 0x20]
movzx edx, byte [rbp]
movsxd r11, r10d
movzx r9d, byte [rdx + r13]
mov rax, r11
mov r8, rbp
shl rax, 5
mov rcx, qword [rax + rsi]
movzx eax, byte [rcx]
movzx eax, byte [rax + r13]
sub r9d, eax
jne 0x1400b2379
shl r11, 5
mov r11, qword [r11 + rsi]
sub r11, rbp
test dl, dl
je 0x1400b234b
movzx edx, byte [r8 + 1]
movzx eax, byte [r11 + r8 + 1]
inc r8
movzx ecx, byte [rax + r13]
movzx r9d, byte [rdx + r13]
sub r9d, ecx
je 0x1400b2328
jmp 0x1400b2379
test r9d, r9d
jne 0x1400b2379
mov rax, qword [r12 + 0x20]
movsxd rcx, r10d
xor r8d, r8d
shl rcx, 5
mov rdx, rdi
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.140067ea0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400b23c1
inc ebx
cmp ebx, dword [r12 + 0x28]
jl 0x1400b22e0
movzx edx, byte [rdi]
movzx eax, byte [rdx + r13]
sub eax, 0x73
jne 0x1400b23bf
lea r8, str.sqlite_master
sub r8, rdi
nop dword [rax]
test dl, dl
je 0x1400b23da
movzx eax, byte [r8 + rdi + 1]
movzx edx, byte [rdi + 1]
inc rdi
movzx ecx, byte [rax + r13]
movzx eax, byte [rdx + r13]
sub eax, ecx
je 0x1400b23a0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, qword [r12 + 0x20]
mov r9, qword [rax + 0x20]
test rbp, rbp
jne 0x1400b23ef
neg r9
sbb eax, eax
jmp 0x1400b2430
test r9, r9
je 0x1400b23bf
movzx eax, byte [r9]
movzx edx, byte [rbp]
mov r8, rbp
movzx ecx, byte [rax + r13]
movzx eax, byte [rdx + r13]
sub eax, ecx
jne 0x1400b2430
sub r9, rbp
test dl, dl
je 0x1400b2430
movzx eax, byte [r9 + r8 + 1]
movzx edx, byte [r8 + 1]
inc r8
movzx ecx, byte [rax + r13]
movzx eax, byte [rdx + r13]
sub eax, ecx
je 0x1400b2410
test eax, eax
jne 0x1400b23bf
lea rdi, str.sqlite_temp_master
jmp 0x1400b22d0
Function at 0x1400b2670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor edi, edi
mov r12, r8
mov r13, rdx
mov ebx, edi
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1400b276c
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
lea r14, [0x14012ca10]
nop word [rax + rax]
cmp ebx, 2
jge 0x1400b26bc
mov eax, ebx
xor eax, 1
jmp 0x1400b26be
mov eax, ebx
mov r11, qword [rsi + 0x20]
movsxd r10, eax
mov rax, r10
shl rax, 5
mov rbp, qword [rax + r11 + 0x18]
test r12, r12
je 0x1400b2728
mov rax, qword [rax + r11]
movzx edx, byte [r12]
mov r8, r12
movzx ecx, byte [rax]
movzx r9d, byte [rdx + r14]
movzx eax, byte [rcx + r14]
sub r9d, eax
jne 0x1400b2740
shl r10, 5
mov r11, qword [r10 + r11]
sub r11, r12
nop
test dl, dl
je 0x1400b2723
movzx edx, byte [r8 + 1]
movzx eax, byte [r11 + r8 + 1]
inc r8
movzx ecx, byte [rax + r14]
movzx r9d, byte [rdx + r14]
sub r9d, ecx
je 0x1400b2700
jmp 0x1400b2740
test r9d, r9d
jne 0x1400b2740
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r13
call fcn.140067ea0
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x1400b274b
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1400b26b0
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rdi
jmp 0x1400b2758
Function at 0x1401140df
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14017c030]
jne 0x140113b6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140113b66
repz ret
ror rcx, 0x10
jmp 0x140114038
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140182370]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140182468]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401140bd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140182370]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1401140df
mov rax, qword [rsp + 0x88]
mov qword [0x140182468], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140182408], rax
mov rax, qword [0x140182468]
mov qword [0x1401822e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401823f0], rax
mov dword [0x1401822d0], 0xc0000409
mov dword [0x1401822d4], 1
mov rax, qword [0x14017c030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14017c038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140182368], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140124380]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140182368], 0
jne 0x140114166
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1400b3af0]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400b8b04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x1400b8b08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x1400b8b08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400b8b08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x1400b8b04], 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 [0x1400b8b08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x1400b8b08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400149d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400b8b60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b8b40]
test rbx, rbx
je 0x140014a2c
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 0x140014a23
test rsi, rsi
je 0x140014a23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a08
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 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140014e00
Capabilities:
Parse pe header

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

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

Function at 0x14001b020
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b12a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001b102
add rax, 1
cmp rax, 0x6b
je 0x14001b11f
cmp byte [rcx + rax], 0
jne 0x14001b0f8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001b11f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001b113

Function at 0x14001b4a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400b9650], 1
je 0x14001b518
lea rdi, [0x1400b9650]
mov rcx, rdi
call fcn.14001ada0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a720
mov esi, dword [0x1400b9650]
test esi, esi
jne 0x14001b528
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140020678], eax
je 0x14001fef6
mov dword [0x1400b9650], 1
mov rcx, rbp
call fcn.14001aa10
test rbx, rbx
je 0x14001b518
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b140
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b4f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a1f0
jmp 0x14001b4f8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop