joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000eb90
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x70]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], r12
mov sil, cl
mov rdi, rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
nop
test sil, sil
je 0x10000ecce
movzx eax, sil
sub eax, 0xffffffc0
mov word [rbp - 8], ax
mov word [rbp - 6], 0x3a
mov word [rbp - 4], 0
mov word [rbp - 2], 0
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
xor r8, r8
xor edx, edx
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.1000077e0
mov r8, qword [rdi]
test r8, r8
jne 0x10000ec1f
lea r8, [0x1000494e0]
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
mov edx, ebx
call sub.kernel32.dll_GetFullPathNameW
mov r12d, eax
test eax, eax
jne 0x10000ec8b
call sub.kernel32.dll_GetLastError
mov ecx, eax
call fcn.1000029e0
lea rcx, [rbp - 0x18]
call fcn.100006990
and esi, 0xff
lea edx, [esi + 0x41]
sub edx, 1
and edx, 0xffff
lea rcx, [rbp - 0x20]
call fcn.100006e70
mov rdx, qword [rbp - 0x20]
lea r8, [0x100031784]
lea rcx, [rbp - 0x18]
call fcn.100006d10
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.1000072e0
jmp 0x10000ed20
mov eax, ebx
sub rax, 1
mov edx, r12d
cmp rax, rdx
je 0x10000eca4
mov edx, r12d
mov rcx, rdi
call fcn.1000077e0
cmp byte [0x10002e520], 0
jne 0x10000ed20
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.100007a40
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1000073a0
nop dword [rax]
jmp 0x10000ed20
xor edx, edx
xor ecx, ecx
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.1000077e0
mov rdx, qword [rdi]
test rdx, rdx
jne 0x10000ecf6
lea rdx, [0x1000494e0]
mov ecx, ebx
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x10002e520], 0
jne 0x10000ed20
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.100007a40
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1000073a0
nop
nop
mov rcx, rbp
call fcn.10000eb60
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
mov r12, qword [rbp - 0x30]
lea rsp, [rbp]
pop rbp
ret
Function at 0x10000f170
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x128]
xor esi, esi
mov qword [0x100049420], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rsp + rax + 0x24], 0
mov r8d, ebx
xor edx, edx
mov rcx, rsp
call fcn.10000f350
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x100049420]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.100002210
call sub.kernel32.dll_GetCommandLineA
mov qword [0x10002e350], rax
mov r14, rax
jmp 0x10000f2f7
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x10000f1f8
cmp byte [r14], 0
je 0x10000f301
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x10000f260
mov al, byte [r14]
cmp al, 1
jb 0x10000f258
sub al, 0x20
jbe 0x10000f234
sub al, 2
je 0x10000f240
jmp 0x10000f258
test dil, dil
je 0x10000f266
add ebx, 1
jmp 0x10000f25c
cmp byte [r14 + 1], 0x22
je 0x10000f250
test dil, dil
sete dil
jmp 0x10000f25c
add r14, 1
jmp 0x10000f25c
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x10000f220
test esi, esi
je 0x10000f2f4
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.10000f350
xor dil, dil
mov r14, r12
mov rdx, qword [0x100049420]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x10000f2e8
mov al, byte [r14]
cmp al, 1
jb 0x10000f2d8
sub al, 0x20
jbe 0x10000f2ac
sub al, 2
je 0x10000f2c0
jmp 0x10000f2d8
test dil, dil
je 0x10000f2ee
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x10000f2e4
cmp byte [r14 + 1], 0x22
je 0x10000f2d0
test dil, dil
sete dil
jmp 0x10000f2e4
add r14, 1
jmp 0x10000f2e4
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x10000f298
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x10000f1fc
mov dword [0x100049410], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x100049420]
call fcn.10000c370
mov rax, qword [0x100049420]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x128]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret

Function at 0x100017890
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x100017911
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.1000077e0
cmp ebx, 1
jle 0x100017900
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.100007180
jmp 0x10001791c
mov rcx, rsi
mov rdx, r13
call fcn.100005180
nop
mov rcx, rbp
call fcn.100017870
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret
Function at 0x100017b00
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0
nop
xor ebx, ebx
nop dword [rax]
add ebx, 1
mov eax, ebx
lea rdx, [0x10004acf0]
lea rcx, [rdx + rax*8 - 8]
xor edx, edx
call fcn.100005180
mov eax, ebx
lea rdx, [0x10004ad30]
mov dword [rdx + rax*4 - 4], 0xffffffff
cmp ebx, 7
jl 0x100017b20
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
lea r8, [rbp - 0xc]
mov ecx, esi
mov r9d, 0xb
mov edx, 0x100b
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x100017bd4
nop
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0xc]
xor r9d, r9d
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.100005ca0
mov rcx, qword [rbp - 0x18]
mov edx, 1
call fcn.100011290
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x100017bd4
lea rcx, [0x1000179a0]
mov r8d, ebx
mov edx, esi
mov r9d, 4
call sub.kernel32.dll_EnumCalendarInfoA
lea rcx, [0x100017a50]
mov r8d, ebx
mov edx, esi
mov r9d, 3
call sub.kernel32.dll_EnumCalendarInfoA
nop dword [rax]
nop
mov rcx, rbp
call fcn.100017ae0
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret

Function at 0x100018270
Capabilities:
Check os version

Disassembly:
lea rsp, [rsp - 0xb8]
mov qword [0x10004ad70], 0
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rsp + 0x30]
mov dword [0x10004abb0], eax
mov eax, dword [rsp + 0x24]
mov dword [0x10004abc0], eax
mov eax, dword [rsp + 0x28]
mov dword [0x10004abd0], eax
mov eax, dword [rsp + 0x2c]
mov dword [0x10004abe0], eax
lea rdx, [0x10004abf1]
lea rcx, [rsp + 0x34]
mov r8d, pe_nt_image_headers64
call fcn.100002210
lea rcx, [rsp + 0x34]
call fcn.100002ed0
mov byte [0x10004abf0], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x10004ad80], rax
test rax, rax
je 0x100018318
mov rcx, qword [0x10004ad80]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x10004ad70], rax
nop
cmp dword [0x10004abc0], 6
jae 0x10001832c
mov dword [0x10002eb20], 0
nop
cmp dword [0x10004abc0], 6
jb 0x100018348
cmp dword [0x10004abd0], 1
jb 0x100018348
mov dword [0x10002eb30], 2
nop
lea rsp, [rsp + 0xb8]
ret
Function at 0x10002d3e0
Capabilities:
Get user security identifier

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x80]
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r13
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov qword [rbp - 0x10], 0
nop
xor r12d, r12d
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov dword [rbp - 8], 0
mov dword [rbp - 4], 0
mov qword [rsp + 0x20], 0
lea rax, [rbp - 0x14]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x28], rax
mov rdx, rsi
test rsi, rsi
jne 0x10002d451
lea rdx, [0x1000494e0]
mov rcx, rbx
test rbx, rbx
jne 0x10002d460
lea rcx, [0x1000494e0]
lea r9, [rbp - 8]
xor r8, r8
call sub.advapi32.dll_LookupAccountNameW
mov r13d, eax
test eax, eax
jne 0x10002d50e
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
sete al
and eax, 0xff
neg eax
je 0x10002d50e
mov edx, dword [rbp - 4]
lea rcx, [rbp - 0x10]
call fcn.100006ef0
mov ecx, dword [rbp - 8]
call fcn.10000b0c0
mov qword [rdi], rax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x10]
test rax, rax
jne 0x10002d4c8
lea rax, [0x1000494e0]
mov qword [rsp + 0x20], rax
mov r8, qword [rdi]
mov rdx, rsi
test rsi, rsi
jne 0x10002d4df
lea rdx, [0x1000494e0]
mov rcx, rbx
test rbx, rbx
jne 0x10002d4ee
lea rcx, [0x1000494e0]
lea r9, [rbp - 8]
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x10002d516
mov rcx, qword [rdi]
call fcn.10000b080
mov qword [rdi], 0
nop
jmp 0x10002d516
call sub.kernel32.dll_GetLastError
mov r12d, eax
nop
mov rcx, rbp
call fcn.10002d3c0
mov eax, r12d
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov r12, qword [rbp - 0x28]
mov r13, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret
Function at 0x140001290
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1278
call fcn.140002ca0
sub rsp, rax
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x1250], rax
lea r8, [rsp + 0x28]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x1400012f1
lea rcx, str.____EnumProcesses_function_failed_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.140001ec0
add rsp, 0x1278
ret
mov qword [rsp + 0x1280], rbx
mov qword [rsp + 0x1288], rbp
mov qword [rsp + 0x1290], rsi
mov qword [rsp + 0x1298], rdi
mov qword [rsp + 0x1270], r12
mov r12d, dword [rsp + 0x28]
mov qword [rsp + 0x1268], r14
xor r14d, r14d
shr r12d, 2
mov qword [rsp + 0x1260], r15
test r12d, r12d
je 0x14000149d
lea r15, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [r15]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14000148d
lea r9, [rsp + 0x2c]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001484
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x1030]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x140001484
lea r9, [rsp + 0x2c]
xor edx, edx
lea r8, [rsp + 0x1140]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x140001484
xor edi, edi
lea rax, [rsp + 0x1030]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], dil
jne 0x1400013e2
sub rbx, 5
nop
lea rsi, [rsp + 0x1030]
mov r8d, 5
add rsi, rdi
lea rdx, str.paint
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
je 0x14000141f
inc rdi
cmp rdi, rbx
jbe 0x1400013f0
jmp 0x140001428
test rsi, rsi
jne 0x1400014fb
xor edi, edi
lea rax, [rsp + 0x1140]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140001440
sub rbx, 5
nop dword [rax]
lea rsi, [rsp + 0x1140]
mov r8d, 5
add rsi, rdi
lea rdx, str.paint
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
je 0x14000147f
inc rdi
cmp rdi, rbx
jbe 0x140001450
jmp 0x140001484
test rsi, rsi
jne 0x1400014fb
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14d
add r15, 4
cmp r14d, r12d
jb 0x140001350
lea rcx, str.____Process_not_found_n
call fcn.140001010
xor eax, eax
mov r14, qword [rsp + 0x1268]
mov r12, qword [rsp + 0x1270]
mov rdi, qword [rsp + 0x1298]
mov rsi, qword [rsp + 0x1290]
mov rbp, qword [rsp + 0x1288]
mov rbx, qword [rsp + 0x1280]
mov r15, qword [rsp + 0x1260]
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.140001ec0
add rsp, 0x1278
ret
lea rbx, [rsp + 0x30]
mov r8d, dword [rbx + r14*4]
lea rbx, [rbx + r14*4]
lea rdx, [rsp + 0x1030]
lea rcx, str.___Process_found:__s__PID:__d__n_n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbx]
jmp 0x1400014ab
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400098b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400098c0]
mov dword [rax], 1
mov rax, qword [0x1400098d0]
mov dword [rax], 1
mov rax, qword [0x140009860]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400098a0]
mov dword [0x14000d00c], 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 [0x140009980]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009960]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009810]
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 0x140001493
Capabilities:
Move file
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call dbg.__main
lea rax, str.C:Program_Files__x86_MicrosoftEdgemsedge.exe
mov rdx, rax
lea rax, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileW]
call rax
test eax, eax
jne 0x1400014cb
mov eax, 1
jmp 0x1400015f7
lea rax, [0x1400090e2]
mov rdx, rax
lea rax, str.._main.exe
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
lea rax, [0x1400090f0]
mov rdx, rax
lea rax, str._Program_Files__x86__Microsoft_Edge_Application_msedge.exe
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x10], 0
jne 0x140001516
mov eax, 1
jmp 0x1400015f7
cmp qword [rbp - 0x18], 0
jne 0x140001527
mov eax, 1
jmp 0x1400015f7
mov rax, qword [rbp - 0x10]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.ftell
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
add eax, 1
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x28], rax
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov byte [rax], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.rewind
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
mov dword [rbp - 4], 0x3e0a8
jmp 0x1400015de
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
movzx eax, byte [rax]
movsx edx, al
mov rax, qword [rbp - 0x18]
mov r8d, edx
lea rdx, [0x140009133]
mov rcx, rax
call sym.fprintf
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x1c]
jl 0x1400015b1
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x1400018c0
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 0x140001930
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
mov rbx, rcx
test esi, esi
jle 0x140001a60
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000197b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001960
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a82
mov rax, qword [0x14000d098]
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 [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a10
add dword [0x14000d094], 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 [0x14000d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019fe
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 0x140001988
mov rax, qword [0x14000d098]
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 0x140001ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000204c
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 0x140002043
test rsi, rsi
je 0x140002043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002028
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 0x140002260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002290
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 0x1400022dd
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 0x1400022d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022df
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

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

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

Function at 0x140002400
Capabilities:
Parse pe header

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

Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009860]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002460
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002468
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002460
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024a7
test rcx, rcx
je 0x140002460
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002498
xor eax, eax
ret
Function at 0x1400024c0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140009860]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025b2
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 0x140002615
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002628
add rdx, 0x28
cmp rdx, r10
jne 0x140002600
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002637
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002647
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000261e
test ecx, ecx
jg 0x140002630
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret