joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14024e3a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14024e3ba
mov al, 1
jmp 0x14024e41a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14024e3cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14024e418
mov ecx, dword [rcx + 0x18]
nop
call fcn.140254094
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14024e418
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14024e418
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14024e418
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14024e41a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140252ec4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140252ee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140236c60
or eax, 0xffffffff
jmp 0x140252ee6
xor eax, eax
add rsp, 0x28
ret
Function at 0x14025a8c0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14025a8f0
xor eax, eax
jmp 0x14025a9b3
mov rbp, rbx
cmp word [rax], si
je 0x14025a915
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14025a8fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14025a8f8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140256cc0
movsxd r14, eax
test eax, eax
jne 0x14025a953
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14025a8e9
mov rcx, r14
call fcn.14024f0e4
mov rdi, rax
test rax, rax
jne 0x14025a96c
xor ecx, ecx
call fcn.14024bf34
jmp 0x14025a948
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140256cc0
test eax, eax
jne 0x14025a99d
mov rcx, rdi
call fcn.14024bf34
jmp 0x14025a9a7
xor ecx, ecx
call fcn.14024bf34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14025a9d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14025aa57
mov rsi, rbx
cmp word [rax], bp
je 0x14025aa16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14025aa00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14025a9fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14024f0e4
mov rdi, rax
test rax, rax
je 0x14025aa44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14026c820
mov rbp, rdi
xor ecx, ecx
call fcn.14024bf34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14025e5b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14024b3cc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14025e655
cmp ebx, dword [rsp + 0x30]
je 0x14025e64e
test esi, esi
je 0x14025e64e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14025e629
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14025e636
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14025e613
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14025e63a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14025e657
mov eax, 1
jmp 0x14025e657
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14025f934
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14023a220
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14023a220
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14025fa84
cmp rax, 0xffffffffffffffff
je 0x14025fa84
xor edi, edi
test rbp, rbp
jle 0x14025fa2f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14024beb4
mov rbx, rax
test rax, rax
jne 0x14025f9bc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14025fa25
mov edx, 0x8000
mov ecx, r14d
call fcn.140245330
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140248fc8
cmp eax, 0xffffffff
je 0x14025fa05
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14025f9cc
mov edx, r15d
mov ecx, r14d
call fcn.140245330
jmp 0x14025fa25
cmp byte [rsi + 0x38], dil
je 0x14025fa1c
cmp dword [rsi + 0x34], 5
jne 0x14025fa1c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14025fa25
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14024bf34
jmp 0x14025fa98
jns 0x14025fa98
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14023a220
cmp rax, 0xffffffffffffffff
jne 0x14025fa50
cmp byte [rsi + 0x30], dil
je 0x14025fa98
mov edi, dword [rsi + 0x2c]
jmp 0x14025fa98
mov ecx, r14d
call fcn.140254094
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14025fa98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14025fa98
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14025fa91
mov eax, dword [rsi + 0x2c]
jmp 0x14025fa96
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14023a220
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140263d58
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402ea100]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140263da2
call fcn.140236ccc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140236cec
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140230914
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401e4050
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140263dad
lea eax, [rbx + 1]
jmp 0x140263d8f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140263d8d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140263d8f
Function at 0x14026499c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401f7028
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140264a26
cmp byte [rbp - 0x21], r15b
je 0x140264a21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140264a5c
call fcn.14024cc68
test eax, eax
jne 0x140264a48
cmp byte [rbp - 0x21], r15b
je 0x140264a40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140264a5c
cmp byte [rbp - 0x21], r15b
je 0x140264a59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140233e90
test eax, eax
jne 0x140264afc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401f7028
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140264a9b
cmp byte [rbp - 0x21], r15b
je 0x140264ad0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140264ad0
call fcn.14024cc68
test eax, eax
jne 0x140264abc
cmp byte [rbp - 0x21], r15b
je 0x140264ab5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140264ad0
cmp byte [rbp - 0x21], r15b
je 0x140264acd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140233e90
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140264afc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140264aff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140264b0d
mov rcx, rdi
call fcn.14024bf34
cmp byte [rbp + 0x3f], r15b
je 0x140264b1c
mov rcx, qword [rbp + 0x27]
call fcn.14024bf34
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140267120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140267148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140267148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001450
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
test eax, eax
je 0x18000146f
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x180001477
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
add rsp, 0x18
ret

Function at 0x180039f60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x180059008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x58], 0xeb
mov byte [rsp + 0x59], 8
mov byte [rsp + 0x5a], 0x48
mov byte [rsp + 0x5b], 0x89
mov byte [rsp + 0x5c], 0x8c
mov byte [rsp + 0x5d], 0x24
mov byte [rsp + 0x5e], 0xdd
mov byte [rsp + 0x5f], 0xe3
mov byte [rsp + 0x60], 0xf1
mov byte [rsp + 0x61], 8
mov byte [rsp + 0x62], 0xc3
lea rax, [rsp + 0x78]
test rax, rax
jne 0x180039fc9
lea rax, [rsp + 0x58]
call rax
xor eax, eax
call rax
mov edx, 0x18
lea rcx, [rsp + 0x40]
call fcn.180001490
lea rax, [rsp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180001390
nop
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rsp + 0x88]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18003a02e
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
call fcn.180001410
mov rax, qword [rsp + 0x28]
jmp 0x18003a061
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.18003a080
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.180001410
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18003e070
add rsp, 0x78
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011840
push rbp
push rsi
push rdi
sub rsp, 0x2e0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x1400210f2]
call fcn.140011375
lea rax, [rbp + 0x10]
lea rcx, [0x140019c90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x149
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x149
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x178], rax
mov r8d, 0x149
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x178]
call fcn.1400111b3
mov dword [rbp + 0x1b4], 0
jmp 0x1400118e6
mov eax, dword [rbp + 0x1b4]
inc eax
mov dword [rbp + 0x1b4], eax
movsxd rax, dword [rbp + 0x1b4]
cmp rax, 0x149
jae 0x14001191d
movsxd rax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x178]
movsx eax, byte [rcx + rax]
xor eax, 0x35
movsxd rcx, dword [rbp + 0x1b4]
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx], al
jmp 0x1400118d8
lea rax, [rbp + 0x194]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x178]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x1d8], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140019c50]
call fcn.14001130c
mov eax, edi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.1400111ae
lea rsp, [rbp + 0x2b0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014150
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014170
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014183
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141ad
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141c1
xor al, al
jmp 0x1400141f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141d3
xor al, al
jmp 0x1400141f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ef
xor al, al
jmp 0x1400141f1
mov al, 1
add rsp, 0x38
ret
Function at 0x1425489a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1425489ae
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1425489d7
pop rbp
sub rbp, 0x33
sub rbp, 0x25489a4
sub rsp, 0x20
jmp 0x1425489f6
mov rax, 0x25489a4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x56bbde0d
xor byte [rax], dl
inc rax
dec rcx
jne 0x142548a15
jmp 0x142548a2c
test r12b, r12b
xchg byte [rcx + rsi + 0x450d0d0d], al
mov esp, cs
add eax, 0x450d0d0c
or al, 0xe4
retf 0x3cd
Function at 0x1400040b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
test rcx, rcx
jne 0x140004155
test rdx, rdx
jne 0x140004181
mov ecx, 0x21c
call sub.msvcrt.dll_malloc
mov rbx, rax
mov rsi, rax
mov ecx, 0x10e
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp eax, 0x10f
jb 0x14000411d
mov ecx, edi
add rcx, rcx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rbx, rbx
je 0x14000410a
mov rcx, rbx
call fcn.1400352c0
mov ecx, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
jne 0x14000414a
jmp 0x140004124
mov rsi, rbx
test edi, edi
jne 0x14000414a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004230
mov edi, eax
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], edi
test rsi, rsi
je 0x140004148
mov rcx, rsi
call fcn.1400352c0
xor esi, esi
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rax, str.Windows_getcwd___assumes_in_bufnullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str._home_runner_work_llvm_mingw_llvm_mingw_llvm_project_libcxx_src_filesystem_posix_compat.h
lea r9, str.in_buf__nullptr
mov r8d, 0x145
call fcn.140003f80
lea rax, str.Windows_getcwd___assumes_in_size0
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str._home_runner_work_llvm_mingw_llvm_mingw_llvm_project_libcxx_src_filesystem_posix_compat.h
lea r9, str.in_size__0
mov r8d, 0x146
call fcn.140003f80
mov rdi, rax
test rsi, rsi
je 0x1400041bd
mov rcx, rsi
call fcn.1400352c0
mov rcx, rdi
call fcn.140007940
int3

Function at 0x140005070
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 fcn.140009b40
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140009b40
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

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

Function at 0x14000a0b0
Capabilities:
Parse pe header

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

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

Function at 0x14000aae0
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.14000ae90
test al, al
je 0x14000ab33
mov r14, qword [fcn.140009b40]
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.14000aab0
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14000afa0

Function at 0x14000abc0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14000ae90
test al, al
je 0x14000ac08
mov rbx, qword [fcn.140009b40]
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.14000aab0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14000afa0
Function at 0x14000ac30
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm12
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rsp + 0x60], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rdi, rdx
mov rsi, rcx
cmp byte [0x14024460b], 1
jne 0x14000ac83
cmp byte [0x14024460a], 0
jne 0x14000aca2
jmp 0x14000acd4
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x14024460b], 1
test rax, rax
setne byte [0x14024460a]
je 0x14000acd4
mov rbx, qword [fcn.140009b40]
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.140007750
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
lea rax, [0x140037a18]
mov qword [rsi], rax
lea rax, [0x1402445f8]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x580]
lea rcx, [rsi + 0xb0]
xorps xmm0, xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x50], xmm0
movaps xmmword [rsi + 0x60], xmm0
movaps xmmword [rsi + 0x70], xmm0
movaps xmmword [rsi + 0x80], xmm0
movaps xmmword [rsi + 0x90], xmm0
mov qword [rsi + 0xa0], 0
movaps xmmword [rsi + 0x580], xmm0
movaps xmmword [rsi + 0x590], xmm0
movaps xmmword [rsi + 0x5a0], xmm0
movaps xmmword [rsi + 0x5b0], xmm0
movaps xmmword [rsi + 0x5c0], xmm0
movaps xmmword [rsi + 0x5d0], xmm0
movaps xmmword [rsi + 0x5e0], xmm0
movaps xmmword [rsi + 0x5f0], xmm0
movaps xmmword [rsi + 0x600], xmm0
movaps xmmword [rsi + 0x610], xmm0
movaps xmmword [rsi + 0x620], xmm0
movaps xmmword [rsi + 0x630], xmm0
movaps xmmword [rsi + 0x640], xmm0
movups xmmword [rsi + 0x649], xmm0
mov qword [rsi + 0x80], rcx
mov qword [rsi + 0x98], rax
mov rbx, qword [rdi]
mov r14, qword [rdi + 8]
mov r15, qword [rdi + 0x80]
movups xmm6, xmmword [rdi + 0x10]
movdqu xmm0, xmmword [rdi + 0x30]
pshufd xmm7, xmm0, 0x4e
movdqu xmm0, xmmword [rdi + 0x20]
pshufd xmm8, xmm0, 0x4e
movups xmm9, xmmword [rdi + 0x40]
movups xmm10, xmmword [rdi + 0x50]
movups xmm11, xmmword [rdi + 0x60]
movups xmm12, xmmword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov dword [rsi + 0xe0], 0x10000b
mov qword [rsi + 0x128], rbx
movaps xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x140], r14
movdqu xmmword [rsi + 0x148], xmm7
movdqu xmmword [rsi + 0x158], xmm8
movups xmmword [rsi + 0x168], xmm9
movups xmmword [rsi + 0x178], xmm10
movups xmmword [rsi + 0x188], xmm11
movups xmmword [rsi + 0x198], xmm12
mov qword [rsi + 0x1a8], r15
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
xor edx, edx
call qword [0x140247008]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm10, xmmword [rsp + 0x60]
movaps xmm11, xmmword [rsp + 0x70]
movaps xmm12, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret