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

Disassembly:
push rsi
push rdi
sub rsp, 0x1e8
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea rcx, str.Removing_current_executable
call fcn.14003ac44
mov qword [rsp + 0x198], 0
mov qword [rsp + 0x1a0], 7
mov qword [rsp + 0x1a8], recv
mov dword [rsp + 0x190], 0x536d6f43
mov dword [rsp + 0x193], 0x63657053
mov byte [rsp + 0x197], 0
lea rsi, [rsp + 0x1b0]
lea rdx, [rsp + 0x190]
mov rcx, rsi
call fcn.140018230
lea rdi, [rsp + 0x80]
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000406a
lea rcx, [0x14005720b]
call fcn.14003ac44
mov qword [rsp + 0x1d8], rdi
movabs rax, 0xb000000000000000
mov qword [rsp + 0x1d0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], recv
lea rdi, [rsp + 0x60]
mov edx, 0x3f
mov rcx, rdi
call fcn.140004be0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x58], rax
lea rax, str._c__timeout_4__del__f__:s__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x1f
lea rcx, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rdi
call fcn.1400049b0
cmp qword [rsp + 0x78], 0x10
jb 0x140004108
mov rdi, qword [rsp + 0x60]
cmp qword [rsp + 0x1c8], 0x10
jb 0x14000411b
mov rsi, qword [rsp + 0x1b0]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rsi
mov r9, rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140004179
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140004174
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400041d7
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14002bcbc
mov rax, qword [rsp + 0x1c8]
cmp rax, 0x10
jb 0x1400041bc
mov rcx, qword [rsp + 0x1b0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400041b7
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400041d7
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14002bcbc
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14002bd70
nop
add rsp, 0x1e8
pop rdi
pop rsi
ret
call fcn.140038150
int3
Function at 0x140004240
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1060
call fcn.14002bd10
sub rsp, rax
movaps xmmword [rsp + 0x1050], xmm6
mov rsi, rcx
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x1048], rax
mov r15, qword [rcx]
lea rdi, [rsp + 0x40]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140055dc0
mov rcx, qword [r15]
mov rdx, rdi
mov r8d, 0x1000
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400043ac
xorps xmm6, xmm6
lea rdi, [rsp + 0x40]
lea rbx, [rsp + 0x20]
mov r12, qword [sym.imp.WS2_32.dll_recv]
jmp 0x1400042f4
add rdx, 0x27
mov rcx, rax
call fcn.14002bcbc
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
mov rcx, qword [r15]
mov rdx, rdi
mov r8d, 0x1000
xor r9d, r9d
call r12
test eax, eax
jle 0x1400043ac
mov r14d, eax
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
cmp eax, 0x1000
jb 0x140004330
lea rcx, [r14 + 0x27]
call fcn.14002bc78
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x14000433b
mov rcx, r14
call fcn.14002bc78
mov rcx, rax
mov qword [rsp + 0x20], rcx
lea r13, [rcx + r14]
mov qword [rsp + 0x30], r13
mov rdx, rdi
mov r8, r14
call fcn.140055720
mov qword [rsp + 0x28], r13
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x1400043f0
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400042da
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400042c7
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jb 0x1400042c0
call fcn.140038150
lea rcx, str.connection_lost
call fcn.14003ac44
mov rax, qword [r15 + 0x18]
test rax, rax
je 0x1400043c5
xor ecx, ecx
call rax
mov rcx, qword [rsp + 0x1048]
xor rcx, rsp
call fcn.14002bd70
movaps xmm6, xmmword [rsp + 0x1050]
add rsp, 0x1060
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14002cbe8
int3
Function at 0x140019fe0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14001a076
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14001a07d
mov r15, rsi
jmp 0x14001a03b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140055720
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x14001a06e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a053
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x14001a010
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001a06e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x14001a03b
sub rsi, r15
jmp 0x14001a16a
xor esi, esi
jmp 0x14001a16a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a0d0
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14001a0d0
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140055720
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x14001a0e1
jmp 0x14001a167
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14001a167
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14001a110
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x14001a143
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14003a3d0
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14001a110
jmp 0x14001a167
test r14, r14
je 0x14001a164
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.14003a3d0
sub r14, rax
jmp 0x14001a167
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140028eb0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, qword [rdx + 0x10]
mov qword [rdx + 0x10], 0
mov rdi, qword [rdx]
mov rax, qword [rdx + 8]
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov r15, rax
sub r15, rdi
cmp r15, 4
jb 0x140028f0e
mov rbx, rcx
mov ecx, dword [rdi]
cmp ecx, 0x8cc03faf
je 0x140028f4d
cmp ecx, 0x2c684
je 0x1400290ac
cmp rax, rdi
je 0x140028f43
test r15, r15
js 0x1400290a7
cmp r15, 0x1000
jb 0x140028fdf
lea rcx, [r15 + 0x27]
call fcn.14002bc78
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140028fea
xor ebx, ebx
xor r14d, r14d
jmp 0x140028ffc
lea r14, [0x14008bbe0]
mov rcx, r14
mov dl, 1
call fcn.140016a70
movzx r8d, word [rbx + 8]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 9
mov qword [rsp + 0x80], recv
movabs rax, 0x2e302e302e373231
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x70], 0x31
lea rdx, [rsp + 0x68]
mov rcx, r14
call fcn.140001b00
lea rax, vtable.._AV___Func_impl_no_alloc_V_lambda_1___0___R_lambda_0___0__mainthread__YAXXZ_QEBA_A__auto___V__vector_EV__allocator_E_std___std___Z_XV56__std__.0
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x60], rbx
mov rcx, r14
mov rdx, rbx
call fcn.140001d70
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140029053
cmp rcx, rbx
setne dl
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x140029053
mov rcx, r15
call fcn.14002bc78
mov rbx, rax
lea r14, [rbx + r15]
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call fcn.140055720
mov rcx, qword [0x14008bbe0]
test rcx, rcx
je 0x14002901a
mov r8d, r14d
sub r8d, ebx
mov rdx, rbx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test rbx, rbx
je 0x14002904e
sub r14, rbx
cmp r14, 0x1000
jb 0x140029043
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x1400290a2
add r14, 0x27
mov rbx, rax
mov rcx, rbx
mov rdx, r14
call fcn.14002bcbc
test rdi, rdi
je 0x140029082
sub rsi, rdi
cmp rsi, 0x1000
jb 0x140029077
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x1400290a2
add rsi, 0x27
mov rdi, rax
mov rcx, rdi
mov rdx, rsi
call fcn.14002bcbc
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002bd70
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140038150
call fcn.140004400
call fcn.140003fc0
xor ecx, ecx
mov dl, 1
call fcn.14002a180
xor ecx, ecx
call fcn.140035078
int3
Function at 0x140029110
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, qword [rdx + 0x10]
mov qword [rdx + 0x10], 0
mov rdi, qword [rdx]
mov r15, qword [rdx + 8]
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
sub r15, rdi
je 0x14002915f
js 0x140029221
cmp r15, 0x1000
jb 0x140029166
lea rcx, [r15 + 0x27]
call fcn.14002bc78
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140029171
xor ebx, ebx
xor r14d, r14d
jmp 0x140029183
mov rcx, r15
call fcn.14002bc78
mov rbx, rax
lea r14, [rbx + r15]
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call fcn.140055720
mov rcx, qword [0x14008bbc0]
test rcx, rcx
je 0x1400291a1
mov r8d, r14d
sub r8d, ebx
mov rdx, rbx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test rbx, rbx
je 0x1400291d5
sub r14, rbx
cmp r14, 0x1000
jb 0x1400291ca
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x140029226
add r14, 0x27
mov rbx, rax
mov rcx, rbx
mov rdx, r14
call fcn.14002bcbc
test rdi, rdi
je 0x140029214
sub rsi, rdi
cmp rsi, 0x1000
jb 0x1400291fe
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x140029226
add rsi, 0x27
mov rdi, rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14002bcbc
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140004400
call fcn.140038150
int3
Function at 0x14002e158
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002e192
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002e197
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002e1e0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140079830]
cmp byte [rcx + rax], 0
je 0x14002e1e0
dec r8
sub rdx, 1
jne 0x14002e1c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002e690
Capabilities:
Parse pe header

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

Function at 0x140034e58
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140034e8f
call fcn.140037728
mov dword [rax], socket
call fcn.140038130
xor eax, eax
jmp 0x140034f1d
mov rdx, r9
mov rcx, r8
call fcn.140034f40
mov rbx, rax
test rax, rax
je 0x140034f1a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140034fa4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140034f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037768
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140034eee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140034efd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400427b0
jmp 0x140034f1a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140034f17
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140035078
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400351c0
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 0x14003522f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003522f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003522f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003522f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003522f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003522f
cmp dword [rcx + 0xf8], 0
je 0x14003522f
mov ecx, ebx
call fcn.1400350f8
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.140035354
nop
cmp dword [rbp + 0x20], 0
je 0x14003527d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003518c
int3

Function at 0x1400351c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400351c0
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 0x14003522f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003522f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003522f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003522f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003522f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003522f
cmp dword [rcx + 0xf8], 0
je 0x14003522f
mov ecx, ebx
call fcn.1400350f8
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.140035354
nop
cmp dword [rbp + 0x20], 0
je 0x14003527d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003518c
int3

Function at 0x14003f270
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003f298
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003f298
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140049798
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.140042a1c
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 0x140049839
cmp ebx, dword [rsp + 0x30]
je 0x140049832
test esi, esi
je 0x140049832
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004980d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004981a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400497f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004981e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004983b
mov eax, 1
jmp 0x14004983b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004abbc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002bd10
sub rsp, rax
mov rax, qword [0x14008ae00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140046d58
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004ac0b
mov rax, rbp
jmp 0x14004ad13
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8d1a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004a8ec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8d1a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004ad0f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004ad0f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004a8ec
test rax, rax
js 0x14004ad0f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004ad0f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004ad01
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004ad01
cmp byte [rcx], 0xd
jne 0x14004ace7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004acf6
cmp byte [rcx + 1], 0xa
jne 0x14004acf6
inc rcx
jmp 0x14004acf6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8b980]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004acc9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004ad13
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002bd70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004b558
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 0x14004b588
xor eax, eax
jmp 0x14004b64b
mov rbp, rbx
cmp word [rax], si
je 0x14004b5ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004b594
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004b590
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.1400428dc
movsxd r14, eax
test eax, eax
jne 0x14004b5eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004b581
mov rcx, r14
call fcn.1400427ec
mov rdi, rax
test rax, rax
jne 0x14004b604
xor ecx, ecx
call fcn.1400427b0
jmp 0x14004b5e0
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.1400428dc
test eax, eax
jne 0x14004b635
mov rcx, rdi
call fcn.1400427b0
jmp 0x14004b63f
xor ecx, ecx
call fcn.1400427b0
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 0x14004d450
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004d466
mov al, 1
jmp 0x14004d4c6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004d477
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004d4c4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004bab0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004d4c4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004d4c4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004d4c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004d4c6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004ddfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14008d1a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004de53
cmp word [rdx], r13w
jne 0x14004de53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004de58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004df7d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004df9e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004de91
mov rdx, r9
mov word [rbx], cx
jmp 0x14004deb8
cmp r9, r8
jae 0x14004dec8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004de72
jmp 0x14004df7d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004df72
cmp dword [rsp + 0x80], esi
je 0x14004df72
lea r8, [0x14008d1a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004df4a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004df1a
mov word [rbx], r13w
jmp 0x14004df7a
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004df27
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004df7a
cmp word [rsp + 0x70], r13w
jne 0x14004df57
cmp rbx, r14
je 0x14004df14
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004a848
cmp word [rsp + 0x70], r13w
je 0x14004df7d
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14008d1a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004df77
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004df7d