joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400192f8
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 0x14001937f
mov rsi, rbx
cmp word [rax], bp
je 0x14001933e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019328
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019324
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016830
mov rdi, rax
test rax, rax
je 0x14001936c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001ff20
mov rbp, rdi
xor ecx, ecx
call fcn.140015910
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 0x14001b440
Capabilities:
Get file size

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

Function at 0x14001f700
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f728
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f728
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001550
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x278
mov rbx, rcx
or rsi, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rsi, 1
cmp word [rbx + rsi*2], 0
jne 0x140001570
lea rdx, [rbx + rsi*2]
lea r8, [0x14001a0ba]
xor ecx, ecx
nop dword [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001590
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov word [rbx + rsi*2], 0
cmp rdi, 0xffffffffffffffff
je 0x1400016ec
xor r12d, r12d
lea rdx, [rsp + 0x4c]
lea r8, [0x14001a0b6]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x1400015ec
add rcx, 2
test ax, ax
jne 0x1400015d4
xor eax, eax
jmp 0x1400015f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14000169e
lea rdx, [rsp + 0x4c]
lea r8, [0x14001a0b0]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x14000161f
add rcx, 2
test ax, ax
jne 0x140001607
xor eax, eax
jmp 0x140001624
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14000169e
lea rdx, [rbx + rsi*2]
lea r8, [rsp + 0x4c]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001640
test dword [rsp + 0x20], 0x10
je 0x140001678
mov rcx, rbx
lea rdx, [0x14001a202]
call fcn.14000e020
mov rcx, rbx
call fcn.140001550
mov r12d, eax
jmp 0x140001699
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001699
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x1400016c6
mov rcx, rdi
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400015c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp r12d, 0x12
jne 0x1400016c6
xor r12d, r12d
mov word [rbx + rsi*2], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12d, r12d
jne 0x1400016e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400016f4
mov eax, r12d
jmp 0x1400016fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400016fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
add rsp, 0x278
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400021f0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x1048
call fcn.14000cc10
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov dword [rsi], 0
mov qword [rbx], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
lea rcx, [0x1400231e0]
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x1400023c8
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400023cc
cmp word [rsp + 0x40], 0x5a4d
jne 0x1400023d9
mov eax, dword [rsp + 0x7c]
movsxd rdx, eax
cmp rdx, 0xef8
jae 0x1400023d9
movsxd rax, eax
lea rax, [rsp + rax + 0x40]
cmp dword [rax], 0x4550
jne 0x1400023d9
lea rdx, [rax + 0x108]
lea rcx, [rsp + 0x1040]
cmp rdx, rcx
jae 0x1400023d9
cmp word [rax + 6], 0
jbe 0x14000230c
xor ecx, ecx
xor r8d, r8d
cmp dword [rdx + 0x14], ecx
ja 0x1400022e6
mov r9d, ecx
jmp 0x1400022f7
mov r10d, dword [rdx + 0x14]
mov r11d, r10d
add r11d, dword [rdx + 0x10]
mov dword [rsi], r11d
mov r9d, r10d
mov ecx, r9d
add rdx, 0x28
add r8d, 1
movzx r9d, word [rax + 6]
cmp r8d, r9d
jl 0x1400022dc
mov eax, dword [rsi]
lea edx, [eax + 2]
mov rcx, r12
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400023d9
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400023cc
mov rax, qword [rsp + 0x1040]
mov qword [rbx], rax
cmp dword [rsp + 0x3c], 8
jb 0x1400023cc
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400023cc
mov rax, qword [rsp + 0x1040]
mov qword [rdi], rax
cmp dword [rsp + 0x3c], 8
jb 0x1400023cc
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400023e4
xor eax, eax
jmp 0x1400023e4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400023e4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x1048
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea rax, [0x140023f20]
xor edx, edx
nop dword [rax]
mov ecx, edx
shr ecx, 1
mov r8d, edx
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add edx, 1
cmp edx, 0x100
jb 0x140002f50
lea rax, [0x140024320]
lea rdx, [0x140024320]
nop
mov ecx, dword [rdx - 0x400]
lea r8, [0x140023f20]
mov r9d, ecx
and r9d, 0xff
mov r8d, dword [r8 + r9*4]
shr ecx, 8
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add rdx, 4
lea rcx, [0x140025f20]
cmp rdx, rcx
jb 0x140003020
lea rax, [0x140006d80]
mov qword [0x140025f40], rax
lea rax, [0x140006d80]
mov qword [0x140025f20], rax
lea rax, [0x140006e60]
mov qword [0x140025f60], rax
call fcn.140007080
test eax, eax
jne 0x140003099
lea rax, [0x140006e60]
mov qword [0x140025f20], rax
add rsp, 0x28
ret

Function at 0x140003210
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x140003286
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003242
mov r8d, 0x400000
jmp 0x140003245
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x14000328a
cmp dword [rsp + 0x2c], 0
je 0x140003286
test r12, r12
jne 0x140003231
xor eax, eax
jmp 0x140003290
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400032a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x140003316
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x1400032d2
mov r8d, 0x400000
jmp 0x1400032d5
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x14000331a
cmp dword [rsp + 0x2c], 0
je 0x140003316
test r12, r12
jne 0x1400032c1
xor eax, eax
jmp 0x140003320
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400033c0
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1400033e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400033fa
mov eax, dword [rsp + 0x24]
shl rax, 0x20
mov edx, esi
add rax, rdx
mov qword [rbx], rax
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret

Function at 0x140003500
Capabilities:
Timestomp file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, r8
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x140003556
mov rcx, rdi
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140003556
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov rcx, rdi
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006c40
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xa60
mov rbx, rcx
lea rcx, [rsp + 0x648]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x140006c97
lea rcx, [rsp + 0x648]
call fcn.140016550
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x2c]
mov edx, 0x30e
lea r8, str._ls_ls
lea r9, [rsp + 0x648]
call fcn.14000e500
jmp 0x140006caa
lea rcx, [rsp + 0x2c]
mov rdx, rbx
mov r8d, 0x30e
call fcn.14000e750
lea rcx, [rsp + 0x2c]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0xa60
pop rbx
ret
Function at 0x14000cb00
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.14000fe70
mov qword [0x140025f80], rax
call fcn.14000e8e0
test eax, eax
je 0x14000cbd7
call fcn.14000eb70
call fcn.14000ec70
call fcn.14000ed20
call fcn.14000f0f0
call fcn.14000f1b0
lea rbx, [0x14001c338]
jmp 0x14000cb4f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c338]
cmp rbx, rax
jb 0x14000cb49
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f2b0
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001530
mov ebx, eax
lea rsi, [0x14001c338]
jmp 0x14000cbb6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c338]
cmp rsi, rax
jb 0x14000cbb0
mov ecx, ebx
jmp 0x14000f300
mov ecx, 0xfffffffe
call fcn.14000f370
jmp 0x14000cb27
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f325
mov rax, qword [0x14001d060]
lea rdx, [rax + 1]
mov qword [0x14001d060], rdx
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x14001d060], 0x50
jb 0x14000f309
cmp qword [0x140026940], 0
je 0x14000f35f
mov rax, qword [0x140026940]
sub rax, 1
mov qword [0x140026940], rax
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x140026940], 0
jne 0x14000f339
mov ecx, ebx
jmp fcn.140010070

Function at 0x14000f0f0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
cmp byte [rbx], 0
jne 0x14000f120
xor ecx, ecx
lea rdx, [rsp + 0x3c]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rbx, [rsp + 0x3c]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
xor edx, edx
xor r8, r8
lea r9, [rsp + 0x30]
call fcn.14000ef40
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rax*8]
call fcn.14000d520
mov rsi, rax
test rsi, rsi
je 0x14000f18f
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x30]
lea r8, [rsi + rdi*8]
mov rcx, rbx
mov rdx, rsi
lea r9, [rsp + 0x30]
call fcn.14000ef40
sub rdi, 1
mov eax, edi
mov dword [0x1400260a0], eax
mov qword [0x1400260c0], rsi
jmp 0x14000f199
mov ecx, 0xfffffffc
call fcn.14000f370
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f1b0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
cmovne rbx, rax
cmove rbx, qword [0x14001d050]
mov rsi, rbx
xor eax, eax
cmp byte [rsi], 0
je 0x14000f20e
nop
nop word [rax + rax]
or rdx, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rdx, 1
cmp byte [rsi + rdx], 0
jne 0x14000f1f0
lea rdi, [rdx + 1]
cmp byte [rsi], 0x3d
je 0x14000f206
add rax, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f1e0
lea rcx, [rax + 1]
call fcn.14000d520
mov rdx, rax
mov qword [0x1400260e0], rax
test rax, rax
je 0x14000f290
mov rsi, rbx
cmp byte [rsi], 0
je 0x14000f279
nop
or rax, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rax, 1
cmp byte [rsi + rax], 0
jne 0x14000f240
lea rdi, [rax + 1]
cmp byte [rsi], 0x3d
je 0x14000f271
xor ecx, ecx
nop
nop word [rax + rax]
mov al, byte [rsi + rcx]
mov byte [rdx + rcx], al
add rcx, 1
test al, al
jne 0x14000f260
add rdx, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000f230
mov byte [rdx], 0
cmp rbx, qword [0x14001d050]
je 0x14000f29a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x14000f29a
mov ecx, 0xfffffffc
call fcn.14000f370
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000f2b0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [rax], 0x22
jne 0x14000f2d9
nop
add rax, 1
cmp byte [rax], 0x22
je 0x14000f2d3
cmp byte [rax], 0
jne 0x14000f2c0
cmp byte [rax], 0x22
jne 0x14000f2e4
add rax, 1
jmp 0x14000f2e4
cmp byte [rax], 0x20
jbe 0x14000f2e4
add rax, 1
jmp 0x14000f2d9
mov dl, byte [rax]
test dl, dl
je 0x14000f2ef
cmp dl, 0x20
jbe 0x14000f2d3
add rsp, 0x28
ret
Function at 0x14000f300
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.14000fe70
mov qword [0x140025f80], rax
call fcn.14000e8e0
test eax, eax
je 0x14000cbd7
call fcn.14000eb70
call fcn.14000ec70
call fcn.14000ed20
call fcn.14000f0f0
call fcn.14000f1b0
lea rbx, [0x14001c338]
jmp 0x14000cb4f
call qword [rbx]
add rbx, 8
lea rax, [0x14001c338]
cmp rbx, rax
jb 0x14000cb49
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call fcn.14000f2b0
mov r8, rax
movzx eax, word [rsp + 0x60]
mov edx, 0xa
test dword [rsp + 0x5c], 1
cmove r9d, edx
cmovne r9d, eax
mov rcx, rbx
xor edx, edx
call fcn.140001530
mov ebx, eax
lea rsi, [0x14001c338]
jmp 0x14000cbb6
call qword [rsi]
add rsi, 8
lea rax, [0x14001c338]
cmp rsi, rax
jb 0x14000cbb0
mov ecx, ebx
jmp 0x14000f300
mov ecx, 0xfffffffe
call fcn.14000f370
jmp 0x14000cb27
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000f325
mov rax, qword [0x14001d060]
lea rdx, [rax + 1]
mov qword [0x14001d060], rdx
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x14001d060], 0x50
jb 0x14000f309
cmp qword [0x140026940], 0
je 0x14000f35f
mov rax, qword [0x140026940]
sub rax, 1
mov qword [0x140026940], rax
lea rdx, [0x1400266c0]
call qword [rdx + rax*8]
cmp qword [0x140026940], 0
jne 0x14000f339
mov ecx, ebx
jmp fcn.140010070

Function at 0x14000f370
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [ecx + 0x11]
cmp eax, 0xf
ja 0x14000f428
lea rax, [0x14001a9f0]
sub ecx, 0xffffffef
movsxd rdx, ecx
jmp qword [rax + rdx*8]
lea rbx, str.unexpected_error
lea rcx, str.CRT:
lea rdx, [0x14001d190]
call fcn.1400100c0
mov rcx, rbx
lea rdx, [0x14001d190]
call fcn.1400100c0
lea rcx, [0x14001aa82]
lea rdx, [0x14001d190]
call fcn.1400100c0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000f492
int3
mov ecx, 0xff
jmp fcn.140010070
Function at 0x140011b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov qword [rsp + 0x20], rbx
mov rdi, rbx
mov ax, word [rdi + 6]
and ax, 0x7ff0
shr ax, 4
mov r12w, ax
cmp r12w, 0x7ff
je 0x140011c96
test r12w, r12w
je 0x140011cc3
movsx eax, r12w
add esi, eax
cmp esi, 0x7ff
jge 0x140011cdd
test esi, esi
jg 0x140011d09
mov ax, word [rdi + 6]
mov r14w, ax
and r14w, 0x8000
and ax, 0xf
or ax, 0x10
mov word [rdi + 6], ax
lea eax, [esi - 1]
cmp eax, 0xffffffcc
jl 0x140011d24
cmp ax, 0xfff0
jg 0x140011c07
nop
nop word [rax + rax]
mov dx, word [rdi + 2]
mov word [rdi], dx
mov dx, word [rdi + 4]
mov word [rdi + 2], dx
mov dx, word [rdi + 6]
mov word [rdi + 4], dx
mov word [rdi + 6], 0
add ax, 0x10
cmp ax, 0xfff0
jle 0x140011be0
mov dx, ax
neg dx
mov ax, dx
test dx, dx
je 0x140011c89
movsx eax, ax
mov edx, eax
neg edx
add edx, 0x10
movzx r8d, word [rdi]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 2]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi], cx
movzx r8d, word [rdi + 2]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 4]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov cx, r8w
mov word [rdi + 2], cx
movzx r8d, word [rdi + 4]
mov ecx, eax
sar r8d, cl
movzx r9d, word [rdi + 6]
mov ecx, edx
shl r9d, cl
or r8d, r9d
mov dx, r8w
mov word [rdi + 4], dx
movzx edx, word [rdi + 6]
mov ecx, eax
sar edx, cl
mov ax, dx
mov word [rdi + 6], ax
or word [rdi + 6], r14w
or eax, 0xffffffff
jmp 0x140011d3c
test word [rdi + 6], 0xf
jne 0x140011cb2
cmp word [rdi + 4], 0
jne 0x140011cb2
cmp word [rdi + 2], 0
jne 0x140011cb2
cmp word [rdi], 0
je 0x140011cbc
mov eax, 2
jmp 0x140011d3c
mov eax, 1
jmp 0x140011d3c
mov rcx, rdi
call fcn.1400133a0
test ax, ax
jg 0x140011cd9
mov r12w, ax
jmp 0x140011b8e
xor eax, eax
jmp 0x140011d3c
cmp word [rdi + 6], 0
jge 0x140011cf6
movsd xmm0, qword [0x14001b780]
xorpd xmm0, xmmword [0x14001b7c0]
jmp 0x140011cfe
movsd xmm0, qword [0x14001b780]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x140011d3c
mov ax, word [rdi + 6]
and ax, 0x800f
mov dx, si
shl dx, 4
or ax, dx
mov word [rdi + 6], ax
or eax, 0xffffffff
jmp 0x140011d3c
mov word [rdi + 6], r14w
mov word [rdi + 4], 0
mov word [rdi + 2], 0
mov word [rdi], 0
xor eax, eax
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400135c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x1400227c0], 0
jne 0x1400135df
mov dword [0x1400227c0], 1
lea rcx, [0x140013580]
jmp 0x140013fc0
ret
mov rax, qword [0x140026940]
cmp qword [0x14001d060], rax
ja 0x140013fd5
jmp 0x1400147b0
lea rdx, [rax + 1]
mov qword [0x140026940], rdx
lea rdx, [0x1400266c0]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.140014800
mov ecx, 1
jmp 0x14000f300
Function at 0x140013720
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x14001383b
lea rax, [rsp + 0x82f]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x1400137b1
nop dword [rax]
cmp r12, rdi
jae 0x1400137b1
cmp byte [r12], 0xa
jne 0x14001379c
add qword [rsp + 0x838], 1
mov byte [rdx], 0xd
add rdx, 1
add rdx, 1
add r12, 1
mov cl, byte [r12 - 1]
mov byte [rdx - 1], cl
cmp rdx, rax
jb 0x140013780
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014350
test eax, eax
je 0x1400137e2
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov r9d, r14d
mov edx, dword [0x140026960]
lea r8, [rsp + 0x30]
call fcn.140014510
mov ecx, esi
call fcn.1400142f0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001382e
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x14001383b
add r12, 1
cmp r12, rdi
jb 0x140013766
jmp 0x14001383b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013870
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x850
mov rbx, rcx
mov esi, edx
lea rdi, [r8 + r9]
mov qword [rsp + 0x830], 0
mov qword [rsp + 0x838], 0
mov dword [rsp + 0x840], 0
mov r12, r8
cmp r12, rdi
jae 0x1400139bf
lea rax, [rsp + 0x82e]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
cmp rax, rcx
jbe 0x140013906
nop dword [rax]
cmp r12, rdi
jae 0x140013906
cmp word [r12], 0xa
jne 0x1400138ef
add qword [rsp + 0x838], 2
mov word [rdx], InitCommonControls
add rdx, 2
add rdx, 2
add r12, 2
mov cx, word [r12 - 2]
mov word [rdx - 2], cx
cmp rdx, rax
jb 0x1400138d0
lea rax, [rsp + 0x30]
sub rdx, rax
mov r14d, edx
mov ecx, esi
call fcn.140014350
test eax, eax
je 0x140013979
mov ecx, esi
call fcn.1400142f0
mov rcx, rax
mov qword [rsp + 0x20], 0
mov eax, r14d
shr rax, 1
mov r8d, eax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x1400139b2
mov eax, dword [rsp + 0x2c]
add rax, rax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add qword [rsp + 0x830], rax
cmp dword [rsp + 0x2c], r14d
jb 0x1400139bf
add r12, 2
cmp r12, rdi
jb 0x1400138b6
jmp 0x1400139bf
mov ecx, esi
call fcn.1400142f0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013957
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
jmp 0x1400139bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x840], eax
movups xmm0, xmmword [rsp + 0x830]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x840]
mov qword [rbx + 0x10], rax
mov rax, rbx
add rsp, 0x850
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret