joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400af980
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400ef080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400afa15
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400afa76
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14008a180
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c2b20
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400afb31
sub ecx, 1
je 0x1400afba4
sub ecx, 1
je 0x1400afae0
cmp ecx, 1
je 0x1400afac3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d7588]
call fcn.14008a180
jmp 0x1400afba4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400af6b0
test eax, eax
je 0x1400afba4
jmp 0x1400afa4a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400afba4
sub rax, rsi
cmp rax, rbp
jae 0x1400afba4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14008a300
jmp 0x1400afba4
cmp r8d, 4
jle 0x1400afba4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400afba4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14008a0a0
mov esi, eax
test eax, eax
je 0x1400afb83
mov edx, 5
mov rcx, rbx
call fcn.1400b0670
mov eax, esi
jmp 0x1400afa4a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140098aa0
mov rcx, r14
call fcn.140098d80
test eax, eax
je 0x1400afa48
mov edx, 5
mov rcx, rbx
call fcn.1400b0670
mov eax, Ordinal_45
jmp 0x1400afa4a
Function at 0x1400c2940
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.P__f_]
mov rdi, rax
test rax, rax
jne 0x1400c2982
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c29c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c2a22
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c29e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c2a63
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d65d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d65d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c2a30
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c3ac0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140015720
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 0x14001137a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016a70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016a90
xor al, al
jmp 0x140016b11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016aa3
xor al, al
jmp 0x140016b11
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 0x140016acd
xor al, al
jmp 0x140016b11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016ae1
xor al, al
jmp 0x140016b11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016af3
xor al, al
jmp 0x140016b11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140016b0f
xor al, al
jmp 0x140016b11
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4c5ca0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c66a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c673a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c671e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c6712
cmp qword [rbp - 0x10], 0
je 0x2fc4c6712
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c66d8
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c673b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c6840
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6868
mov eax, 0
jmp 0x2fc4c68b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6891
mov eax, 0
jmp 0x2fc4c68b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c68b1
mov eax, 0
jmp 0x2fc4c68b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c68bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c693a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6931
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6931
mov rax, qword [rbp - 8]
jmp 0x2fc4c694f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6904
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005118
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov edx, ecx
mov ebx, 0x10
mov ecx, ebx
call fcn.14000d080
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140005155
sub ebx, dword [rsp + 0x38]
mov ecx, ebx
call fcn.14000d180
jmp 0x14000515c
mov ecx, edi
call fcn.14000d1b0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140008cb0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008d27
movsxd rdx, ecx
lea rcx, [0x140008c0c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140013a98]
test rbx, rbx
je 0x140008d9a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008d1d
cmp byte [rbx + 0x20], 0
je 0x140008d1d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008ce3
jmp 0x140008d9a
mov rbx, qword [0x140013a98]
test rbx, rbx
je 0x140008d9a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008d92
cmp byte [rbx + 0x21], 0
je 0x140008d56
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008d82
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140013a98]
call fcn.14000c2d8
mov rbx, rdi
test rdi, rdi
jne 0x140008d33
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140009504
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140013c80]
call fcn.14000b914
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140009601
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14000955b
add rax, 2
cmp word [rax], 0x20
je 0x140009551
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140009599
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x1400095d9
cmp cx, r9w
je 0x14000958b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140009579
cmp word [rax], bp
je 0x1400095d9
mov rcx, rax
add rax, 2
jmp 0x1400095e1
test dx, dx
je 0x1400095de
mov rbx, rax
cmp dx, 0x20
je 0x14000958b
add rax, 2
cmp word [rax], r9w
jne 0x1400095cf
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x1400095d9
cmp cx, r9w
je 0x1400095cf
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400095bd
movzx edx, word [rax]
test dx, dx
jne 0x1400095a1
jmp 0x14000958b
mov rcx, rax
jmp 0x1400095e1
mov r8d, ebp
cmp dword [r14], esi
jne 0x1400095eb
test rdi, rdi
jne 0x14000960b
test r8d, r8d
je 0x1400095f2
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14000954b
test rdi, rdi
jne 0x140009620
movsxd rax, esi
jmp 0x140009622
test rbx, rbx
je 0x140009620
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140009622
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140009638
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140013c80]
call fcn.14000b914
xor ecx, ecx
add rsp, 0x28
jmp fcn.140009504
Function at 0x14000a070
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14000a1d2
cmp word [rcx], di
je 0x14000a1d2
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14000a10f
cmp word [rsp + 0x22], 0x3a
jne 0x14000a10f
cmp edx, 2
jne 0x14000a0f6
lea rdx, [0x14000ef84]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000a1d2
jmp 0x14000a1aa
cmp word [rcx], 0x5c
je 0x14000a11b
cmp word [rcx], 0x2f
jne 0x14000a124
mov word [rcx], di
sub rcx, 2
jmp 0x14000a10f
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14000a16b
test byte [rbp + 0x130], 0x10
je 0x14000a150
mov rbx, 0xfffffffffffffffe
jmp 0x14000a163
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000a1d2
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14000a180
cmp ax, cx
je 0x14000a196
cmp cx, 0x2f
jne 0x14000a18b
cmp ax, cx
je 0x14000a196
cmp cx, 0x2e
jne 0x14000a1d2
cmp ax, cx
jne 0x14000a1d2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a1b3
test al, 0x10
je 0x14000a1d2
mov rbx, 0xfffffffffffffffe
jmp 0x14000a1d2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14000a3ac
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14000a436
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000a422
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14000a422
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14000a422
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000a3f4
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x14000a438
xor eax, eax
add rsp, 0x230
pop rbx
ret
Function at 0x14000a4e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000a524
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14000ab20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140013cd0]
call fcn.14000b994
mov rbx, rax
test rax, rax
je 0x14000ab73
cmp qword [rax + 8], 0
je 0x14000ab52
cmp dword [rax + 0x1c], 0
jne 0x14000ab52
mov rcx, rax
call fcn.14000a4e0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14000ac90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140013cd0]
call fcn.14000b994
test rax, rax
je 0x14000ad3a
sub ebx, 2
je 0x14000ad01
sub ebx, 2
je 0x14000acf2
dec ebx
je 0x14000ace3
dec ebx
je 0x14000acd4
cmp ebx, 0x13
jne 0x14000ad3a
lea r8d, [rbx - 0x11]
lea rdx, [0x14000ef88]
jmp 0x14000ad0e
mov r8d, 4
lea rdx, [0x14000ef9c]
jmp 0x14000ad0e
mov r8d, 4
lea rdx, [0x14000ef94]
jmp 0x14000ad0e
mov r8d, 2
lea rdx, [0x14000ef90]
jmp 0x14000ad0e
mov r8d, 3
lea rdx, [0x14000ef8c]
cmp qword [rax + 8], 0
je 0x14000ad23
mov rcx, rax
call fcn.14000b490
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rbx
ret
Function at 0x14000ad40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x14000ae43
cmp word [rdx], 0
je 0x14000ae43
cmp r8d, 0x19
jne 0x14000add3
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x14000ada1
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000ad80
lea r8d, [rax + rax]
call fcn.14000b490
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000ada1
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.14000b5e0
mov rdi, rax
test rax, rax
je 0x14000ae3e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x14000ae15
mov rcx, rbx
call fcn.14000b490
mov dword [rsp + 0x48], eax
jmp 0x14000ae2c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140013a48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x140013cd0]
mov ebx, r8d
call fcn.14000b994
test rax, rax
je 0x14000aecc
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000ad40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ae90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x14000ae43
cmp word [rdx], 0
je 0x14000ae43
cmp r8d, 0x19
jne 0x14000add3
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x14000ada1
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000ad80
lea r8d, [rax + rax]
call fcn.14000b490
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000ada1
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.14000b5e0
mov rdi, rax
test rax, rax
je 0x14000ae3e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x14000ae15
mov rcx, rbx
call fcn.14000b490
mov dword [rsp + 0x48], eax
jmp 0x14000ae2c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140013a48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x140013cd0]
mov ebx, r8d
call fcn.14000b994
test rax, rax
je 0x14000aecc
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000ad40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000aee0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x140013a48]
mov rsi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000b0a4
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
cmp rsi, 0xffffffffffffffff
je 0x14000af4a
test rsi, rsi
je 0x14000b00a
dec rsi
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x14000af69
mov r8d, 1
mov rcx, rdi
call fcn.14000b6a0
mov dword [rsp + 0x34], eax
jmp 0x14000af86
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x14000b00a
test r8b, r8b
je 0x14000afa2
mov byte [rbx], r8b
movzx r8d, byte [rsp + 0x30]
inc rbx
lea eax, [r14 - 1]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x14000afe4
mov rcx, qword [0x140013a48]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x14000b00a
test r15d, r15d
jne 0x14000af38
cmp r8b, 0xd
je 0x14000b00f
cmp r8b, 0xa
jne 0x14000af38
dec rbx
jmp 0x14000b08d
test r15d, r15d
jne 0x14000b08d
cmp r8b, 0xa
jne 0x14000b01a
dec rbx
jmp 0x14000b08d
cmp r8b, 0xd
jne 0x14000b08d
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x14000b042
mov r8d, 1
mov rcx, rdi
call fcn.14000b6a0
mov dword [rsp + 0x34], eax
jmp 0x14000b05b
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x14000b08d
cmp qword [rdi + 8], r13
je 0x14000b06d
inc dword [rdi + 0x14]
jmp 0x14000b08d
mov rcx, qword [rdi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], r13b
mov rbx, qword [rsp + 0x70]
mov rax, rbp
jmp 0x14000b0a7
mov rax, r13
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret