joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010a0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x250
lea rdi, [rsp + 0x50]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002b5c0]
xor rax, rsp
mov qword [rsp + 0x248], rax
call section..text
test eax, eax
je 0x1400010db
call fcn.1400012d0
nop
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x9c], 1
mov eax, 5
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rcx, [0x14002b0d8]
call fcn.14000a8c0
mov qword [rsp + 0x230], rax
lea rcx, [0x14002b0c0]
call fcn.14000a8c0
xor r9d, r9d
mov rcx, qword [rsp + 0x230]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.140008b60
lea rax, [rsp + 0x120]
mov qword [rsp + 0x238], rax
mov qword [rsp + 0x240], 0xffffffffffffffff
inc qword [rsp + 0x240]
mov rax, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x240]
cmp byte [rax + rcx], 0
jne 0x14000118e
mov rax, qword [rsp + 0x240]
mov dword [rsp + 0x224], eax
mov eax, dword [rsp + 0x224]
mov byte [rsp + rax + 0x120], 0x20
mov eax, dword [rsp + 0x224]
inc eax
mov dword [rsp + 0x224], eax
mov eax, dword [rsp + 0x224]
lea rax, [rsp + rax + 0x120]
mov r8d, reloc.WS2_32.dll_send
lea rdx, str._NetworkServerPort
mov rcx, rax
call fcn.1400298b0
mov eax, dword [rsp + 0x224]
add eax, 0x13
mov dword [rsp + 0x224], eax
mov eax, dword [rsp + 0x224]
lea rax, [rsp + rax + 0x120]
mov edx, dword [0x1402b1e10]
mov rcx, rax
call fcn.14000a460
lea rcx, [0x14002b0c0]
call fcn.14000a8c0
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001289
jmp 0x1400012a6
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xe8]
mov qword [0x1402b1e40], rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400166c0
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400167c0
add rsp, 0x250
pop rdi
ret

Function at 0x1400012d0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [0x1402b1e40], 0
je 0x14000130a
mov edx, 1
mov rcx, qword [0x1402b1e40]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x1402b1e40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1402b1e40], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140001310
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140001327
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jae 0x140001386
mov eax, dword [rsp]
mov dword [rsp + 4], eax
mov dword [rsp + 8], 0
jmp 0x14000134b
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 8
jae 0x140001373
mov eax, dword [rsp + 4]
shr eax, 1
mov ecx, dword [rsp + 4]
and ecx, 1
xor edx, edx
sub edx, ecx
mov ecx, edx
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 4], eax
jmp 0x140001341
mov eax, dword [rsp]
lea rcx, [0x1402b2320]
mov edx, dword [rsp + 4]
mov dword [rcx + rax*4], edx
jmp 0x14000131f
mov dword [rsp], 0x100
jmp 0x140001397
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x800
jae 0x1400013e2
mov eax, dword [rsp]
lea rcx, [0x1402b2320]
mov eax, dword [rcx + rax*4 - 0x400]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
and eax, 0xff
mov eax, eax
lea rcx, [0x1402b2320]
mov edx, dword [rsp + 0xc]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp]
lea rdx, [0x1402b2320]
mov dword [rdx + rcx*4], eax
jmp 0x14000138f
lea rax, [0x140001460]
mov qword [0x1402b2318], rax
lea rax, [0x140001460]
mov qword [0x1402b2310], rax
add rsp, 0x10
pop rdi
ret
Function at 0x140007630
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov rax, qword [rsp + 0x10]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x20], 0x5be0cd19
pop rdi
ret
Function at 0x14000a1c0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x14002b5c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a23a
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x34], eax
jne 0x14000a23a
mov dword [rsp + 0x50], 1
jmp 0x14000a242
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.1400166c0
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400167c0
add rsp, 0x60
pop rdi
ret

Function at 0x14000a270
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
add rsp, 0x30
pop rdi
ret

Function at 0x14000a2c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [0x14002b5c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.1400166c0
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400167c0
add rsp, 0x50
pop rdi
ret

Function at 0x14000a330
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x14002b5c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000a3aa
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x34], eax
jne 0x14000a3aa
mov dword [rsp + 0x50], 1
jmp 0x14000a3b2
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov edi, eax
mov rcx, rsp
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.1400166c0
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400167c0
add rsp, 0x60
pop rdi
ret

Function at 0x14000ac20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x14000ac70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x30
pop rdi
ret
Function at 0x14000bc70
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov dword [0x1402b1f74], 1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x1402b1f74]
lea r8, [0x14000c5d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x30
pop rdi
ret

Function at 0x14000bcc0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [0x1402b1e18], 5
jne 0x14000bcd1
jmp 0x14000bd0a
mov dword [0x1402b1e18], 6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000c6b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x30
pop rdi
ret
Function at 0x14000bd10
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x330
lea rdi, [rsp + 0x20]
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002b5c0]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rdx, [0x1402b1d00]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov qword [0x1402b1e00], 0
mov qword [0x1402b1e08], 0
mov qword [0x1402b1e10], 0
mov dword [0x1402b1e18], 7
mov qword [0x1402b1e20], 0
mov qword [0x1402b1e28], 0
mov dword [0x1402b1e30], 0
mov dword [0x1402b1e34], 0
mov dword [0x1402b1e38], 0
lea rcx, [0x14002b110]
call fcn.14000a8c0
xor r9d, r9d
mov r8, rax
lea rdx, [0x1402b1d00]
lea rcx, [rsp + 0x30]
call fcn.140008b60
lea rcx, [rsp + 0x30]
call fcn.14000a0e0
mov qword [rsp + 0x148], rax
cmp qword [rsp + 0x148], 0
je 0x14000be68
mov rcx, qword [rsp + 0x148]
call fcn.14000a2c0
mov eax, eax
mov qword [rsp + 0x150], rax
xor edx, edx
mov rcx, qword [rsp + 0x150]
call fcn.14000a3e0
mov qword [rsp + 0x158], rax
mov r8d, dword [rsp + 0x150]
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x148]
call fcn.14000a1c0
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call fcn.14000c190
mov rcx, qword [rsp + 0x158]
call fcn.14000a430
mov rcx, qword [rsp + 0x148]
call fcn.14000a0c0
nop
mov qword [0x1402b1e40], 0
mov dword [0x1402b1e48], 0
lea rax, [0x1402b1e4c]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
lea rax, [0x1402b1e5b]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 0x1000
call fcn.14000a3e0
mov qword [0x1402b1f60], rax
mov rdi, qword [0x1402b1f60]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [0x1402b1f68], 0
mov dword [0x1402b1f74], 0
mov dword [0x1402b1f78], 1
mov dword [0x1402b1f7c], 1
mov dword [0x1402b1f80], 1
mov dword [0x1402b1f84], 0
mov dword [0x1402b1f88], 0
mov dword [0x1402b1f8c], 0
mov dword [0x1402b1f90], 0
mov dword [0x1402b1f94], 0
mov qword [0x1402b1f98], 0
lea rax, [0x1402b1fa0]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [0x14000bac0]
mov qword [0x1402b20c8], rax
mov dword [0x1402b20d0], 0
mov dword [0x1402b20d4], 0
mov dword [0x1402b20d8], 0
xorps xmm0, xmm0
movss dword [0x1402b20dc], xmm0
lea rax, [0x1402b20e0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov dword [0x1402b21e4], 0
lea rcx, [0x1402b1e00]
call fcn.14000c530
lea rdx, [rsp + 0x170]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000bfc2
xor eax, eax
jmp 0x14000bfc7
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a2c90]
call fcn.1400166c0
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400167c0
add rsp, 0x330
pop rdi
ret
Function at 0x14000c0d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
xor eax, 0xf6fc61e8
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx - 4]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
add rax, 4
mov qword [rsp + 0x28], rax
jmp 0x14000c124
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
ja 0x14000c145
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
xor eax, 0x3db6cc5c
mov rcx, qword [rsp + 0x28]
mov dword [rcx], eax
jmp 0x14000c116
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [0x1402b1e10]
call qword [sym.imp.WS2_32.dll_send]
cdqe
cmp rax, qword [rsp + 0x58]
jne 0x14000c172
mov dword [rsp + 0x30], 1
jmp 0x14000c17a
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret

Function at 0x14000c530
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x14000d120]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x30
pop rdi
ret

Function at 0x14000c580
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
cmp qword [0x1402b1e08], 0
je 0x14000c5a2
mov rcx, qword [0x1402b1e08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x30], 0
je 0x14000c5c3
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x20
pop rdi
ret
Function at 0x1400109f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140010a0a
xor eax, eax
jmp 0x140010a40
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x140010a32
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x140010a40
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
add rsp, 0x20
pop rdi
ret

Function at 0x140010b20
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1402b2200]
call qword [sym.imp.USER32.dll_GetKeyboardState]
lea rcx, [0x1402b2300]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rdx, [0x1402b2300]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp qword [rsp + 0x40], rax
jne 0x140010b6d
mov dword [rsp + 0x20], 1
jmp 0x140010b75
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1402b2308], eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400161f0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x60]
mov ecx, setsockopt
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [0x14002b5c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x60], 0xca0000
mov dword [rsp + 0x64], 0
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x320
mov dword [rsp + 0x84], 0x258
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsp + 0x98], rax
mov r9d, dword [rsp + 0x64]
xor r8d, r8d
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [rsp + 0x7c]
mov ecx, dword [rsp + 0x84]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x80]
sub edx, ecx
mov ecx, edx
mov dword [rsp + 0x30], 6
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 1
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rsp + 0x98]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.1400166c0
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400167c0
add rsp, 0xb0
pop rdi
ret

Function at 0x140017594
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400175de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400175de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400175de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400175de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400175de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400175e0
xor al, al
add rsp, 0x28
ret
Function at 0x14001d4e8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001d557
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d557
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d557
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d557
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d557
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d557
cmp dword [rcx + 0xf8], 0
je 0x14001d557
mov ecx, ebx
call fcn.14001d608
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001d3e4
nop
cmp dword [rbp + 0x20], 0
je 0x14001d5a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d5b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001d4e8

Function at 0x14001d6ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d4e8
Function at 0x140022384
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 0x1400223b4
xor eax, eax
jmp 0x140022477
mov rbp, rbx
cmp word [rax], si
je 0x1400223d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400223c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400223bc
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.1400222a4
movsxd r14, eax
test eax, eax
jne 0x140022417
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400223ad
mov rcx, r14
call fcn.14001e5d8
mov rdi, rax
test rax, rax
jne 0x140022430
xor ecx, ecx
call fcn.14001e59c
jmp 0x14002240c
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.1400222a4
test eax, eax
jne 0x140022461
mov rcx, rdi
call fcn.14001e59c
jmp 0x14002246b
xor ecx, ecx
call fcn.14001e59c
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 0x1400295a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400295c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400295c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006cb0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140006cd8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140006cfe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006d00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006d59
test ecx, ecx
jle 0x140006d39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140006d59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006d59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140006d80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140006da2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006db8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006dd4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006dd6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006e12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140006eae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140006e4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140006e8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140006eae
cmp rbx, rax
ja 0x140006e60
test rbx, rbx
je 0x140006eae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret