joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a8490
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1401a85dd
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1402bb8f0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x140320008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x140320008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x140320008]
test r14, r14
je 0x1401a8573
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1401a8563
lea r14, [rsi + 0xf8]
mov eax, dword [0x14030b094]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1401a85e1
call fcn.140090c60
lea rax, [0x14008f760]
test r14, r14
je 0x1401a85ae
lea rcx, [0x14008ea00]
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1401a85c0
bt eax, 9
jae 0x1401a8601
call fcn.140091d50
lea rax, [0x140092220]
test r14, r14
je 0x1401a85ae
lea rcx, [0x140091f20]
jmp 0x1401a85ab
call fcn.140252f10
lea rax, [0x140253710]
test r14, r14
je 0x1401a85ae
lea rcx, [0x140252dd0]
jmp 0x1401a85ab

Function at 0x1401aff60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1402ff774]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401aff94
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1401aff94
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1401aff8e
Function at 0x1401b5a50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1401b5a7b
xor ecx, ecx
lea r9, [0x1402d38e0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x1401b5a60
ret
Function at 0x1401b96c0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x1402ffa30]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1c8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1c8]
mov qword [rax + 0x1c8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x1402fe210], 9
jne 0x1401b9755
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call qword [0x140320008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x1401b973e

Function at 0x1401bb360
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140135c00]
mov qword [rsp + 0x20], rax
lea rcx, [0x14030d278]
lea rdx, [0x140135aa0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401bb3f4
cmp dword [0x14030d280], 0
jne 0x1401bb3f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14030d284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401bb3f0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d5680
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1401bb3d8
call fcn.1401ed7b0
int3

Function at 0x1401d49f4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401d4f18
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401d4f18
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401d4f18
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401d4f0c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401d4f2a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401d4efa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401d4f1a

Function at 0x1401e7c88
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 0x1401e7cbf
call fcn.1401eaf00
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401ed858
xor eax, eax
jmp 0x1401e7d4d
mov rdx, r9
mov rcx, r8
call fcn.1401e7d70
mov rbx, rax
test rax, rax
je 0x1401e7d4a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401e7de0]
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 0x1401e7d37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401eaf40
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401e7d1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401e7d2d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140169160
jmp 0x1401e7d4a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401e7d47
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 0x1401e7eb4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401e7ffc
Function at 0x1401eb280
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1402adf28]
mov rbp, rcx
call fcn.140206cf4
xor edi, edi
test rax, rax
je 0x1401eb366
mov ebx, edi
call fcn.1401eaf00
mov r14d, dword [rax]
call fcn.1401eaf00
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401f1230
mov rsi, rax
test rax, rax
je 0x1401eb2f7
call fcn.1401eaf00
mov dword [rax], r14d
jmp 0x1401eb321
call fcn.1401eaf00
cmp dword [rax], 0x22
jne 0x1401eb35e
call fcn.1401eaf00
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401f1230
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401eb35e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401eb325
cmp rax, 3
je 0x1401eb340
mov rcx, rsi
call fcn.1401eb1dc
test al, al
je 0x1401eb351
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401eb351
mov dil, 1
mov rcx, rbx
call fcn.140169160
mov al, dil
jmp 0x1401eb368
mov rcx, rbx
call fcn.140169160
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401d5680
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401f153c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401f1586
call fcn.1401eaf20
mov dword [rax], recvfrom
call fcn.1401eaf00
mov dword [rax], recvfrom
call fcn.1401ed858
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d5680
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401f1591
lea eax, [rbx + 1]
jmp 0x1401f1573
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401f1571
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401f1573
Function at 0x1401fe810
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401fe838
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401fe838
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1402084b8
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.1402023b4
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 0x140208559
cmp ebx, dword [rsp + 0x30]
je 0x140208552
test esi, esi
je 0x140208552
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14020852d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14020853a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140208517
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14020853e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14020855b
mov eax, 1
jmp 0x14020855b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140209994
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 0x1402099c4
xor eax, eax
jmp 0x140209a87
mov rbp, rbx
cmp word [rax], si
je 0x1402099e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402099d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402099cc
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.1402098b4
movsxd r14, eax
test eax, eax
jne 0x140209a27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402099bd
mov rcx, r14
call fcn.1400d1fa0
mov rdi, rax
test rax, rax
jne 0x140209a40
xor ecx, ecx
call fcn.140169160
jmp 0x140209a1c
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.1402098b4
test eax, eax
jne 0x140209a71
mov rcx, rdi
call fcn.140169160
jmp 0x140209a7b
xor ecx, ecx
call fcn.140169160
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 0x140209aa4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140209b2b
mov rsi, rbx
cmp word [rax], bp
je 0x140209aea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140209ad4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140209ad0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d1fa0
mov rdi, rax
test rax, rax
je 0x140209b18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401d7120
mov rbp, rdi
xor ecx, ecx
call fcn.140169160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14020c0e4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401e24f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14020c16e
cmp byte [rbp - 0x21], r15b
je 0x14020c169
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14020c1a4
call fcn.140202b84
test eax, eax
jne 0x14020c190
cmp byte [rbp - 0x21], r15b
je 0x14020c188
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14020c1a4
cmp byte [rbp - 0x21], r15b
je 0x14020c1a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401e7b0c
test eax, eax
jne 0x14020c244
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401e24f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14020c1e3
cmp byte [rbp - 0x21], r15b
je 0x14020c218
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14020c218
call fcn.140202b84
test eax, eax
jne 0x14020c204
cmp byte [rbp - 0x21], r15b
je 0x14020c1fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14020c218
cmp byte [rbp - 0x21], r15b
je 0x14020c215
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401e7b0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14020c244
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14020c247
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14020c255
mov rcx, rdi
call fcn.140169160
cmp byte [rbp + 0x3f], r15b
je 0x14020c264
mov rcx, qword [rbp + 0x27]
call fcn.140169160
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14020dc10
Capabilities:
Get file size

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

Function at 0x1402161b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1402161fe
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x14021623c
cmp rdi, rsi
jae 0x14021623c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1402161f7
jmp 0x1402161f4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140221180
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x28]
mov qword [rdi], rdx
mov rdx, rdi
call fcn.140170bd0
lea rdx, [rsi + 0xa0]
mov r8d, dword [rdi]
mov rcx, qword [rsi + 0x90]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1402211db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140221208
mov byte [rsi + 0xc0], 1
mov eax, 1
lock xadd dword [rsi + 8], eax
cmp eax, 0x7fffffff
je 0x140221214
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
nop
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call fcn.1400d58b0
jmp 0x1402211f3
int3
Function at 0x140248450
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
mov qword [rsp + 0x48], r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx ebp, word [rcx + 0x28]
movzx esi, word [rcx + 0x2a]
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov r14d, eax
movzx r13d, word [rdi + 0x2a]
movzx r12d, word [rdi + 0x28]
call r15
mov word [rsp + 0x46], ax
lea r15, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.1401d77d0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.140100d00
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140248555
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140248555
mov r8d, dword [rsp + 0x54]
test r8d, r8d
je 0x140248555
dec r8d
mov rcx, qword [rsp + 0x48]
call fcn.140190f60
mov sil, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.1401d77d0
movzx eax, r14w
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.140100d00
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1402485d6
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1402485d6
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x14024851f
lea r14, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1401d77d0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.140100d00
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140248657
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140248657
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x14024851f
lea r14, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1401d77d0
movzx eax, word [rsp + 0x46]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.140100d00
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1402486dc
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1402486dc
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x14024851f
xor esi, esi
jmp 0x14024852f
Function at 0x14024ae40
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14030abb0], 0
je 0x14024ae86
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14030ab88]
test rdi, rdi
je 0x14024af27
test byte [reloc.WS2_32.dll_accept], 1
je 0x14024ae69
cmp byte [rdi + 0x17], 0
jns 0x14024aea8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14030abb0], rax
inc rax
cmp rax, 1
ja 0x14024ae69
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d77d0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x14024aff0
xor esi, esi
jmp 0x14024ae69
mov ecx, 0x18
call fcn.1401d4088
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401d77d0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1402bb8f0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1402138f0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x14024af8d
and eax, 0x7f
mov rcx, rdi
jmp 0x14024af94
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x14024afcf
lea r8, [rax + rax]
test r8, r8
je 0x14024afcf
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x14024af9d
cmp rdx, 0xfffffffffffffffe
je 0x14024afcf
sar rdx, 1
cmp rax, rdx
jbe 0x14024b0b7
inc rdx
mov rcx, rdi
call fcn.140213a30
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.1400f8400
mov qword [0x14030ab88], rdi
jmp 0x14024ae96
mov rdi, qword [0x14030ab88]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1401fc5f4
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400f8280
mov rcx, qword [0x14030ab88]
call fcn.1402421e0
cmp word [rax], 0x5c
je 0x14024b03d
mov rcx, qword [0x14030ab88]
lea rdx, [0x1402c7418]
mov r8d, 1
call fcn.1400f8400
mov rcx, qword [0x14030ab88]
lea rdx, str.debug.log
mov r8d, 9
call fcn.1400f8400
mov rcx, qword [0x14030ab88]
cmp byte [rcx + 0x17], 0
jns 0x14024b066
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14030abb0], rax
inc rax
cmp rax, 1
ja 0x14024ae69
mov qword [0x14030abb0], 0
jmp 0x14024af20
mov rcx, rdi
call fcn.140213a10
int3