joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dc760
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.1400d6140
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400dc7bd
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
loopne 0x1400dc7e8
mov dword [rbp - 0x18], ecx

Function at 0x1400deea0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x14017d210]
cmp rax, 3
jne 0x1400df092
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400df0b8
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400def38
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400deff4
inc rdx
cmp rax, rdx
jne 0x1400def20
jmp 0x1400df05d
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400def6e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400deff4
inc rdx
cmp rcx, rdx
jne 0x1400def50
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400def72
jmp 0x1400defbe
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x14010f730]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1400defbe
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400def90
sub rax, rcx
je 0x1400df05d
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400deff1
inc rdx
cmp rax, rdx
jne 0x1400defe0
jmp 0x1400df05d
add rdx, rcx
cmp rdx, rdi
jne 0x1400df05d
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400df071
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400df089
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400df0ca
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400df0ca
mov rbx, rdx
call fcn.14010cb30
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x1400deef7
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.14010cba0
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400dfb60
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14017d2b0]
mov edx, 0x10
xor ecx, ecx
call fcn.1400e0010
test rax, rax
je 0x1400dfc53
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400dfd10]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400dfc45
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x1400dfc1e
cmp qword [rax + 0x10], 0x11
jae 0x1400dfc07
mov r8, qword [rbp - 0x10]
jmp 0x1400dfc0f
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14017d208]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14017d208]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140104380
ud2
Function at 0x1400e3d90
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.1400d6140
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400e3e03
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
call fcn.1400db520
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rax, rbx
jne 0x1400e3e16
mov eax, 1
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 8], rax
mov qword [rbp], rdx
lea rcx, [rbp - 0x38]
mov rdx, rdi
mov r8, rsi
call fcn.1400d6140
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
cmp rax, rbx
je 0x1400e3e64
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
call fcn.1400db520
mov rdi, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rdi, rbx
jne 0x1400e3e95
mov r8, qword [rbp]
mov r14, qword [rbp - 8]
mov eax, 1
test r14, r14
je 0x1400e3e08
mov rcx, qword [0x14017d208]
mov rsi, rdx
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
mov rdx, rsi
jmp 0x1400e3e08
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400e3fa0]
lea r9, [rbp - 0x20]
mov rcx, qword [rbp]
mov rbx, rcx
mov rsi, rdx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x1400e3f16
mov rdx, qword [rbp - 0x20]
test rdi, rdi
je 0x1400e3ef2
mov rcx, qword [0x14017d208]
mov rdi, rdx
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rdx, rdi
test r14, r14
je 0x1400e3f0f
mov rcx, qword [0x14017d208]
mov rsi, rdx
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rdx, rsi
xor eax, eax
jmp 0x1400e3e08
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rdi, rdi
je 0x1400e3f43
mov rcx, qword [0x14017d208]
mov rdi, rdx
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rdx, rdi
mov r8, rbx
mov eax, 1
test r14, r14
jne 0x1400e3e76
jmp 0x1400e3e08
Function at 0x1400e4090
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov eax, 1
test rcx, rcx
jne 0x1400e421e
mov rax, qword [0x14017d210]
cmp rax, 3
jne 0x1400e4229
mov r14, rdx
cmp word [rdx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e412b
cmp word [r14], 0
je 0x1400e41a1
movups xmm0, xmmword [r14 + 4]
mov eax, dword [r14 + 0x14]
mov edx, dword [r14 + 0x18]
movzx ecx, word [r14 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400e41b8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400e4145
mov ebx, eax
cmp eax, 0x2726
jne 0x1400e420e
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400e4206
mov rsi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1400e40fe
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400e420e
mov eax, dword [r14 + 2]
movzx ecx, word [r14 + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rbp - 0x1c], r9w
mov word [rbp - 0x1a], cx
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], edx
lea rdx, [rbp - 0x1c]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400e41e8
xor eax, eax
mov rdx, rsi
jmp 0x1400e421e
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdx, rdi
jmp 0x1400e4219
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rdx, rbx
mov eax, 1
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rsi, rdx
call fcn.14010cb30
mov rdx, rsi
jmp 0x1400e40be
Function at 0x1400e7c20
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x30], r8
mov rsi, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x1400e7db7
mov r14, qword [rdx]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
mov r12, qword [rcx + 0x20]
jmp 0x1400e7c97
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r8, r14
mov r9b, 1
call fcn.1400e7550
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400e7dd3
mov r8, qword [rdx]
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r9b, 1
call fcn.1400e7550
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400e7ddd
mov eax, 2
mov r13, rbp
jmp 0x1400e7dfc
cmp al, 2
jne 0x1400e7e12
Function at 0x1400fd340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov rbx, qword [rsp + 0x148]
movzx r11d, byte [rsp + 0x140]
mov eax, 0x2600
mov r13, r8
nop dword [rax + rax]

Function at 0x140102cf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140102d3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140102d3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140102d3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140102d3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140102d3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140102d40
xor al, al
add rsp, 0x28
ret
Function at 0x140108b00
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x140138df5]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x140108b52
mov rdi, rax
lea rdx, [0x140138e16]
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140108b52
mov rsi, rax
lea rdx, [0x140138e24]
mov rcx, rdi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140108b52
mov r14, rax
xor edi, edi
jmp 0x140108bd6
lea rcx, [0x140138db0]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x140108c3e
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140108c3e
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140108c3e
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140108c3e
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140108c3e
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x14017d2b0]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e0010
test rax, rax
je 0x140108c43
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x14017d160], rbx
je 0x140108c31
mov rsi, rax
cmp qword [rbx], 0
je 0x140108c1c
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x14017d208]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140108c60
mov ecx, 8
mov edx, 0x18
call fcn.140104380
int3
Function at 0x14010cba0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r14, r8
inc r14
sete r13b
je 0x14010cdc8
js 0x14010cdd4
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov rsi, rcx
movzx eax, byte [0x14017d2b0]
xor ecx, ecx
mov rdx, r14
call fcn.1400e0010
test rax, rax
je 0x14010cdd9
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, 0x10
jae 0x14010cc38
test rbx, rbx
je 0x14010ccdf
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x14010cd47
inc rax
cmp rbx, rax
jne 0x14010cc20
jmp 0x14010ccdf
lea rax, [r15 + 7]
and rax, 0xfffffffffffffff8
sub rax, r15
jne 0x14010cc90
lea rcx, [rbx - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x14010f730]
movabs rdx, 0x8080808080808080
nop dword [rax]
movdqu xmm1, xmmword [r15 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x14010ccbc
add rax, 0x10
cmp rax, rcx
jbe 0x14010cc60
jmp 0x14010ccbc
cmp rax, rbx
cmovae rax, rbx
xor ecx, ecx
nop dword [rax]
cmp byte [r15 + rcx], 0
je 0x14010cd47
inc rcx
cmp rax, rcx
jne 0x14010cca0
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x14010cc4b
cmp rax, rbx
je 0x14010ccdf
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x14010cd47
inc rax
cmp rbx, rax
jne 0x14010ccd0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.140010a40
mov rbx, rax
mov r14, rdx
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
mov qword [rbp], 0
lea r8, [rbp - 0x30]
mov r9, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14010cd81
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14010cd95
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r13b, r13b
jne 0x14010cdb6
mov rcx, qword [0x14017d208]
xor edx, edx
mov r8, r12
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rdi]
mov rax, qword [rbp]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14010cdb6
mov rcx, qword [0x14017d208]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.140104a40
call fcn.140010910
mov ecx, 1
mov rdx, r14
call fcn.140104360
int3
Function at 0x415ee0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
test edx, edx
mov rbx, rcx
je 0x415f02
sub edx, 1
test edx, edx
mov eax, 0x7fffffff
cmovle edx, eax
mov dword [rbx + 0x70], edx
add rsp, 0x20
pop rbx
ret
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0xc0]
call sub.msvcrt.dll__fileno
mov ecx, eax
call sub.msvcrt.dll__isatty
test eax, eax
mov edx, 0x7fffffff
je 0x415ef9
lea rcx, str.COLUMNS
call sub.msvcrt.dll_getenv
test rax, rax
mov edx, 0x7ffffffe
je 0x415ef9
mov rcx, rax
call fcn.00465f20
test eax, eax
mov edx, 0x7ffffffe
jle 0x415ef9
lea edx, [rax - 1]
jmp 0x415eef
Function at 0x4198f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 0x28]
mov rbx, rcx
test rax, rax
je 0x419920
cmp rax, qword [rcx + 0x20]
je 0x419920
sub rax, 1
cmp qword [rcx + 0x30], rax
jae 0x419920
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_feof
test eax, eax
jne 0x419912
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x419912
mov r8, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
cmp r8, rdx
je 0x419980
mov rcx, qword [rbx + 0x18]
mov r9, qword [rbx + 0x10]
add rcx, rdx
sub r8, rdx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, qword [rbx + 0x10]
mov rsi, rax
call sub.msvcrt.dll_ferror
mov edx, eax
xor eax, eax
test edx, edx
jne 0x419914
add qword [rbx + 0x28], rsi
test rsi, rsi
setne al
jmp 0x419914
test r8, r8
jne 0x4199b0
mov edx, 0x1001
mov esi, 0x1000
mov rcx, qword [rbx + 0x18]
call fcn.00438740
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], rax
mov r8, rsi
mov rdx, qword [rbx + 0x28]
mov rcx, rax
jmp 0x41994b
lea rsi, [r8 + r8]
lea rdx, [rsi + 1]
jmp 0x41998f
Function at 0x4218c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
movzx ecx, byte [rcx + 4]
mov rsi, rdx
lea rdx, [0x004c3ee0]
movsxd rax, ecx
shl rax, 4
add rax, rdx
mov edx, dword [rax]
cmp edx, 1
je 0x421940
cmp edx, 2
je 0x4219b2
test edx, edx
je 0x421904
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx edx, word [rdi + 6]
test dl, 2
jne 0x4219d3
and edx, 0x10
jne 0x421940
mov rbx, qword [rax + 8]
movzx ecx, byte [rbx]
nop dword [rax]
add rbx, 1
mov rdx, rsi
call sub.msvcrt.dll_putc
movzx ecx, byte [rbx]
test ecx, ecx
jne 0x421920
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rdi + 8]
mov edx, dword [rax + 8]
mov rbp, qword [rax]
test edx, edx
je 0x4218f9
xor ebx, ebx
lea r12, [rsp + 0x20]
jmp 0x421997
mov rcx, r12
call fcn.004206f0
mov r9, rsi
mov r8d, 0xa
mov edx, 1
mov rcx, r12
lea rbx, [rbx + rax - 1]
call sub.msvcrt.dll_fwrite
mov rax, qword [rdi + 8]
add rbx, 1
mov edx, dword [rax + 8]
cmp rdx, rbx
jbe 0x4218f9
lea rdx, [rbp + rbx]
test byte [rdx], 0x80
jne 0x421960
mov rax, qword [rax]
mov rdx, rsi
movzx ecx, byte [rax + rbx]
call sub.msvcrt.dll_fputc
jmp 0x421983
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
sub ecx, 0x25
lea rax, [0x004c4420]
movsxd rcx, ecx
mov rbx, qword [rax + rcx*8]
jmp 0x42191a
Function at 0x424c40
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movzx eax, byte [rdx + 0x8d]
mov r13, rcx
mov rsi, rdx
test al, al
jne 0x424d80
movzx r12d, byte [rdx + 0x8b]
test r12b, r12b
jne 0x424d80
mov edx, dword [rdx + 0x84]
test edx, edx
jne 0x424d80
cmp dword [rsi + 0x80], 0xffffffff
je 0x424d90
movzx eax, word [rsi + 0x4e]
and ax, 0xf000
cmp ax, 0x3000
je 0x424db8
cmp ax, 0x8000
je 0x424e0b
mov ecx, 0x2010
xor r14d, r14d
mov edi, 0x2000
call fcn.004386c0
xor ebx, ebx
mov rbp, rax
mov ecx, dword [rsi + 0x80]
lea rdx, [rbp + rbx]
mov r8d, edi
sub r8d, ebx
call sub.msvcrt.dll__read_1
movsxd rdx, eax
cmp rdx, 0
jle 0x424d10
add rbx, rdx
cmp rbx, rdi
jne 0x424cc2
test r14b, r14b
jne 0x424e03
lea rdi, [rbx + rbx]
mov rcx, rbp
lea rdx, [rdi + 0x10]
call fcn.00438740
mov rbp, rax
jmp 0x424cc2
jne 0x424e1e
cmp rbx, rdi
jne 0x424de0
lea rax, [rsi + 0x60]
mov rdx, qword [r13 + 0x430]
lea r9, [rdi + 0x10]
mov qword [rsp + 0x20], rbx
mov r8, rbp
mov rcx, r13
mov qword [rsp + 0x30], rax
lea rax, [rsi + 0x30]
mov qword [rsp + 0x28], rax
call fcn.004327c0
mov byte [rsi + 0x8d], 1
mov qword [rsi + 0x28], rax
mov ecx, dword [rsi + 0x80]
mov byte [rsi + 0x8b], r12b
call sub.msvcrt.dll__close_1
movzx eax, byte [rsi + 0x8b]
mov dword [rsi + 0x80], 0xffffffff
xor eax, 1
nop dword [rax]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
call fcn.00424710
test al, al
jne 0x424c8f
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
mov dword [rsp + 0x4c], eax
call fcn.00424830
mov eax, dword [rsp + 0x4c]
jmp 0x424d80
mov r9, qword [rsi + 8]
lea r8, str._s_is_a_block_device
mov edx, 3
mov rcx, r13
mov r12d, 1
call fcn.004241b0
jmp 0x424d57
test r14b, r14b
je 0x424d1f
mov r9, qword [rsi + 8]
lea r8, str._s_is_shorter_than_expected
xor edx, edx
mov rcx, r13
call fcn.004241b0
jmp 0x424d1f
mov rbx, rdi
jmp 0x424d1f
mov rdi, qword [rsi + 0x60]
mov r14d, 1
lea rcx, [rdi + 0x10]
jmp 0x424cb8
mov r8, qword [rsi + 8]
mov edx, 3
mov rcx, r13
mov r12d, 1
call fcn.004243b0
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x424d57
Function at 0x437870
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12d, 1
lea eax, [r8 - 1]
mov rdi, rdx
mov edx, dword [rcx + 8]
mov r13d, r8d
mov rbx, rcx
cmp eax, 0x20
mov eax, 0x22
cmovbe r13d, eax
test edx, edx
je 0x437944
mov rax, qword [rcx]
xor esi, esi
mov rbp, qword [rax]
mov rcx, rbp
call sub.msvcrt.dll_strlen
mov r12d, eax
nop dword [rax]
mov rdx, rdi
mov rcx, rbp
add esi, 1
call sub.msvcrt.dll_fputs
cmp dword [rbx + 8], esi
jbe 0x437940
mov rax, qword [rbx]
mov r14d, esi
mov rbp, qword [rax + r14*8]
mov rcx, rbp
call sub.msvcrt.dll_strlen
add r12d, eax
test esi, esi
mov r15, rax
je 0x4378c0
cmp r12d, r13d
jbe 0x437920
test r13d, r13d
je 0x437920
lea rcx, str.__n
mov r9, rdi
mov r8d, 4
mov edx, 1
lea r12d, [r15 + 1]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbx]
mov rbp, qword [rax + r14*8]
jmp 0x4378c0
mov rdx, rdi
mov ecx, 0x20
add r12d, 1
call sub.msvcrt.dll_putc
mov rax, qword [rbx]
mov rbp, qword [rax + r14*8]
jmp 0x4378c0
add r12d, 1
mov rdx, rdi
mov ecx, 0x3a
call sub.msvcrt.dll_putc
mov eax, dword [rbx + 0x18]
test r13d, r13d
setne r15b
xor esi, esi
test eax, eax
jne 0x43799e
jmp 0x4379d0
test r15b, r15b
je 0x4379b8
lea rcx, str.__n
lea r12d, [r14 + 1]
mov r9, rdi
mov r8d, 4
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rax, qword [rbx + 0x10]
mov rdx, rdi
add esi, 1
mov rcx, qword [rax + rbp*8]
call sub.msvcrt.dll_fputs
cmp dword [rbx + 0x18], esi
jbe 0x4379d0
mov rax, qword [rbx + 0x10]
mov ebp, esi
mov rcx, qword [rax + rbp*8]
call sub.msvcrt.dll_strlen
add r12d, eax
mov r14, rax
cmp r12d, r13d
ja 0x437963
mov rdx, rdi
mov ecx, 0x20
add r12d, 1
call sub.msvcrt.dll_putc
jmp 0x437986
mov rdx, rdi
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_putc

Function at 0x43f750
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x004dbea0]
test rax, rax
je 0x43f770
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x43f7a5
mov rax, qword [0x004dbea0]
test rax, rax
jne 0x43f762
nop
lea rcx, [0x004cb7b8]
call fcn.00438790
mov qword [0x004dbea0], rax
jmp 0x43f762
mov ecx, eax
call fcn.004386c0
mov ecx, ebx
mov qword [0x004dbea0], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x43f783
mov rcx, qword [0x004dbea0]
call sub.msvcrt.dll_free
mov qword [0x004dbea0], 0
jmp 0x43f790