joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d70
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc30
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rbx, rcx
mov rsi, r8
test ax, ax
je 0x140001e80
lea rdi, [rdx + 2]
lea rbp, str.TEMP
xor edx, edx
lea r12, str.PROGRAM
lea r13, [0x14000c17c]
jmp 0x140001de0
test rdx, rdx
je 0x140001e60
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x140001e80
cmp ax, 0x25
jne 0x140001dc0
test rdx, rdx
je 0x140001e90
xor ecx, ecx
lea r14, [rsp + 0x430]
mov word [rdx], cx
mov rdx, rbp
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x140001f48
mov rdx, r12
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x140001f58
mov rdx, r13
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x140001f10
lea rdx, str.TIME
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x140001eb0
xor eax, eax
add rsp, 0xc30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test rsi, rsi
je 0x140001e48
mov word [rbx], ax
movzx eax, word [rdi]
sub rsi, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x140001de0
xor eax, eax
mov word [rbx], ax
mov eax, 1
jmp 0x140001e4a
xor r8d, r8d
lea rdx, [rsp + 0x430]
mov word [rsp + 0x430], r8w
jmp 0x140001dd0
lea rcx, [rsp + 0x28]
lea r14, [rsp + 0x30]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x28]
mov rcx, r14
lea r8, str._lld
mov edx, 0x400
call fcn.1400017e0
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140001c70
jmp 0x140001f00
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140001ef8
xor edx, edx
jmp 0x140001dd0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r14, [rsp + 0x30]
mov edx, pe_nt_image_headers64
lea r8, [0x14000c184]
mov rcx, r14
mov r9d, eax
call fcn.1400017e0
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140001c70
jmp 0x140001f00
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x140001f00
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [rbx], 0
mov rdx, rsi
mov rcx, qword [rax]
mov rax, rbx
je 0x140001f8e
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x140001f80
movzx r8d, word [rcx]
test r8w, r8w
je 0x140001fc3
test rdx, rdx
jne 0x140001fa9
jmp 0x140001fcd
test rdx, rdx
je 0x14000992a
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x140001fa0
xor edx, edx
mov word [rax], dx
jmp 0x140001f00
jmp 0x14000992a
Function at 0x1400023d0
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 fcn.1400095d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400095d0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140003002
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400201c8]
test eax, eax
je 0x14000309a
lea rax, [0x1400201a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400201d0]
mov qword [rbp - 8], rax
jmp 0x14000307e
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 0x140003072
cmp qword [rbp - 0x10], 0
je 0x140003072
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 0x140003038
lea rax, [0x1400201a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000309b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400031a0
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 0x1400031c8
mov eax, 0
jmp 0x140003216
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 0x1400031f1
mov eax, 0
jmp 0x140003216
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 0x140003211
mov eax, 0
jmp 0x140003216
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000321c
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 0x14000329a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003291
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 0x140003291
mov rax, qword [rbp - 8]
jmp 0x1400032af
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 0x140003264
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001d30
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 0x140001d50
lea rdx, [rbx + rsi*2]
lea r8, [0x14001b82a]
xor ecx, ecx
nop dword [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001d70
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 0x140001ecc
xor r12d, r12d
lea rdx, [rsp + 0x4c]
lea r8, [0x14001b826]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x140001dcc
add rcx, 2
test ax, ax
jne 0x140001db4
xor eax, eax
jmp 0x140001dd1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140001e7e
lea rdx, [rsp + 0x4c]
lea r8, [0x14001b820]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x140001dff
add rcx, 2
test ax, ax
jne 0x140001de7
xor eax, eax
jmp 0x140001e04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140001e7e
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 0x140001e20
test dword [rsp + 0x20], 0x10
je 0x140001e58
mov rcx, rbx
lea rdx, [0x14001b972]
call fcn.14000eb00
mov rcx, rbx
call fcn.140001d30
mov r12d, eax
jmp 0x140001e79
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 0x140001e79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x140001ea6
mov rcx, rdi
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001da6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp r12d, 0x12
jne 0x140001ea6
xor r12d, r12d
mov word [rbx + rsi*2], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12d, r12d
jne 0x140001ec7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140001ed4
mov eax, r12d
jmp 0x140001edd
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001edd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
add rsp, 0x278
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002cd0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x1048
call fcn.14000d290
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, [0x140024240]
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x140002ea8
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 0x140002eac
cmp word [rsp + 0x40], 0x5a4d
jne 0x140002eb9
mov eax, dword [rsp + 0x7c]
movsxd rdx, eax
cmp rdx, 0xef8
jae 0x140002eb9
movsxd rax, eax
lea rax, [rsp + rax + 0x40]
cmp dword [rax], 0x4550
jne 0x140002eb9
lea rdx, [rax + 0x108]
lea rcx, [rsp + 0x1040]
cmp rdx, rcx
jae 0x140002eb9
cmp word [rax + 6], 0
jbe 0x140002dec
xor ecx, ecx
xor r8d, r8d
cmp dword [rdx + 0x14], ecx
ja 0x140002dc6
mov r9d, ecx
jmp 0x140002dd7
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 0x140002dbc
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 0x140002eb9
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 0x140002eac
mov rax, qword [rsp + 0x1040]
mov qword [rbx], rax
cmp dword [rsp + 0x3c], 8
jb 0x140002eac
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 0x140002eac
mov rax, qword [rsp + 0x1040]
mov qword [rdi], rax
cmp dword [rsp + 0x3c], 8
jb 0x140002eac
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002ec4
xor eax, eax
jmp 0x140002ec4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002ec4
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 0x140003a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea rax, [0x140025000]
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 0x140003a30
lea rax, [0x140025400]
lea rdx, [0x140025400]
nop
mov ecx, dword [rdx - 0x400]
lea r8, [0x140025000]
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, [0x140027000]
cmp rdx, rcx
jb 0x140003b00
lea rax, [0x140007860]
mov qword [0x140027020], rax
lea rax, [0x140007860]
mov qword [0x140027000], rax
lea rax, [0x140007940]
mov qword [0x140027040], rax
call fcn.140007b60
test eax, eax
jne 0x140003b79
lea rax, [0x140007940]
mov qword [0x140027000], rax
add rsp, 0x28
ret

Function at 0x140003cf0
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 0x140003d66
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003d22
mov r8d, 0x400000
jmp 0x140003d25
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 0x140003d6a
cmp dword [rsp + 0x2c], 0
je 0x140003d66
test r12, r12
jne 0x140003d11
xor eax, eax
jmp 0x140003d70
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003d80
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 0x140003df6
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003db2
mov r8d, 0x400000
jmp 0x140003db5
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 0x140003dfa
cmp dword [rsp + 0x2c], 0
je 0x140003df6
test r12, r12
jne 0x140003da1
xor eax, eax
jmp 0x140003e00
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003ea0
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 0x140003ec8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003eda
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 0x140003fe0
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 0x140004036
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 0x140004036
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 0x140007720
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 0x140007777
lea rcx, [rsp + 0x648]
call fcn.140017030
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x2c]
mov edx, 0x30e
lea r8, str._ls_ls
lea r9, [rsp + 0x648]
call fcn.14000efe0
jmp 0x14000778a
lea rcx, [rsp + 0x2c]
mov rdx, rbx
mov r8d, 0x30e
call fcn.14000f230
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 0x14000d630
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.140010950
mov qword [0x140027060], rax
call fcn.14000f3c0
test eax, eax
je 0x14000d707
call fcn.14000f650
call fcn.14000f750
call fcn.14000f800
call fcn.14000fbd0
call fcn.14000fc90
lea rbx, [0x14001dae0]
jmp 0x14000d67f
call qword [rbx]
add rbx, 8
lea rax, [0x14001dae0]
cmp rbx, rax
jb 0x14000d679
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.14000fd90
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.140001d10
mov ebx, eax
lea rsi, [0x14001dae0]
jmp 0x14000d6e6
call qword [rsi]
add rsi, 8
lea rax, [0x14001dae0]
cmp rsi, rax
jb 0x14000d6e0
mov ecx, ebx
jmp 0x14000fde0
mov ecx, 0xfffffffe
call fcn.14000fe50
jmp 0x14000d657
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000fe05
mov rax, qword [0x14001e060]
lea rdx, [rax + 1]
mov qword [0x14001e060], rdx
lea rdx, [0x1400277a0]
call qword [rdx + rax*8]
cmp qword [0x14001e060], 0x50
jb 0x14000fde9
cmp qword [0x140027a20], 0
je 0x14000fe3f
mov rax, qword [0x140027a20]
sub rax, 1
mov qword [0x140027a20], rax
lea rdx, [0x1400277a0]
call qword [rdx + rax*8]
cmp qword [0x140027a20], 0
jne 0x14000fe19
mov ecx, ebx
jmp fcn.140010b50

Function at 0x14000fbd0
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 0x14000fc00
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.14000fa20
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + rax*8]
call fcn.14000e000
mov rsi, rax
test rsi, rsi
je 0x14000fc6f
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.14000fa20
sub rdi, 1
mov eax, edi
mov dword [0x140027180], eax
mov qword [0x1400271a0], rsi
jmp 0x14000fc79
mov ecx, 0xfffffffc
call fcn.14000fe50
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000fc90
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 [0x14001e050]
mov rsi, rbx
xor eax, eax
cmp byte [rsi], 0
je 0x14000fcee
nop
nop word [rax + rax]
or rdx, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rdx, 1
cmp byte [rsi + rdx], 0
jne 0x14000fcd0
lea rdi, [rdx + 1]
cmp byte [rsi], 0x3d
je 0x14000fce6
add rax, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000fcc0
lea rcx, [rax + 1]
call fcn.14000e000
mov rdx, rax
mov qword [0x1400271c0], rax
test rax, rax
je 0x14000fd70
mov rsi, rbx
cmp byte [rsi], 0
je 0x14000fd59
nop
or rax, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rax, 1
cmp byte [rsi + rax], 0
jne 0x14000fd20
lea rdi, [rax + 1]
cmp byte [rsi], 0x3d
je 0x14000fd51
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 0x14000fd40
add rdx, rdi
add rsi, rdi
cmp byte [rsi], 0
jne 0x14000fd10
mov byte [rdx], 0
cmp rbx, qword [0x14001e050]
je 0x14000fd7a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x14000fd7a
mov ecx, 0xfffffffc
call fcn.14000fe50
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000fd90
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [rax], 0x22
jne 0x14000fdb9
nop
add rax, 1
cmp byte [rax], 0x22
je 0x14000fdb3
cmp byte [rax], 0
jne 0x14000fda0
cmp byte [rax], 0x22
jne 0x14000fdc4
add rax, 1
jmp 0x14000fdc4
cmp byte [rax], 0x20
jbe 0x14000fdc4
add rax, 1
jmp 0x14000fdb9
mov dl, byte [rax]
test dl, dl
je 0x14000fdcf
cmp dl, 0x20
jbe 0x14000fdb3
add rsp, 0x28
ret
Function at 0x14000fde0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov ecx, 0x2000000
call fcn.140010950
mov qword [0x140027060], rax
call fcn.14000f3c0
test eax, eax
je 0x14000d707
call fcn.14000f650
call fcn.14000f750
call fcn.14000f800
call fcn.14000fbd0
call fcn.14000fc90
lea rbx, [0x14001dae0]
jmp 0x14000d67f
call qword [rbx]
add rbx, 8
lea rax, [0x14001dae0]
cmp rbx, rax
jb 0x14000d679
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.14000fd90
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.140001d10
mov ebx, eax
lea rsi, [0x14001dae0]
jmp 0x14000d6e6
call qword [rsi]
add rsi, 8
lea rax, [0x14001dae0]
cmp rsi, rax
jb 0x14000d6e0
mov ecx, ebx
jmp 0x14000fde0
mov ecx, 0xfffffffe
call fcn.14000fe50
jmp 0x14000d657
push rbx
sub rsp, 0x20
mov ebx, ecx
jmp 0x14000fe05
mov rax, qword [0x14001e060]
lea rdx, [rax + 1]
mov qword [0x14001e060], rdx
lea rdx, [0x1400277a0]
call qword [rdx + rax*8]
cmp qword [0x14001e060], 0x50
jb 0x14000fde9
cmp qword [0x140027a20], 0
je 0x14000fe3f
mov rax, qword [0x140027a20]
sub rax, 1
mov qword [0x140027a20], rax
lea rdx, [0x1400277a0]
call qword [rdx + rax*8]
cmp qword [0x140027a20], 0
jne 0x14000fe19
mov ecx, ebx
jmp fcn.140010b50

Function at 0x14000fe50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [ecx + 0x11]
cmp eax, 0xf
ja 0x14000ff08
lea rax, [0x14001c160]
sub ecx, 0xffffffef
movsxd rdx, ecx
jmp qword [rax + rdx*8]
lea rbx, str.unexpected_error
lea rcx, str.CRT:
lea rdx, [0x14001e190]
call fcn.140010ba0
mov rcx, rbx
lea rdx, [0x14001e190]
call fcn.140010ba0
lea rcx, [0x14001c1f2]
lea rdx, [0x14001e190]
call fcn.140010ba0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000ff72
int3
mov ecx, 0xff
jmp fcn.140010b50
Function at 0x140012630
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 0x140012776
test r12w, r12w
je 0x1400127a3
movsx eax, r12w
add esi, eax
cmp esi, 0x7ff
jge 0x1400127bd
test esi, esi
jg 0x1400127e9
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 0x140012804
cmp ax, 0xfff0
jg 0x1400126e7
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 0x1400126c0
mov dx, ax
neg dx
mov ax, dx
test dx, dx
je 0x140012769
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 0x14001281c
test word [rdi + 6], 0xf
jne 0x140012792
cmp word [rdi + 4], 0
jne 0x140012792
cmp word [rdi + 2], 0
jne 0x140012792
cmp word [rdi], 0
je 0x14001279c
mov eax, 2
jmp 0x14001281c
mov eax, 1
jmp 0x14001281c
mov rcx, rdi
call fcn.140013e80
test ax, ax
jg 0x1400127b9
mov r12w, ax
jmp 0x14001266e
xor eax, eax
jmp 0x14001281c
cmp word [rdi + 6], 0
jge 0x1400127d6
movsd xmm0, qword [0x14001cef0]
xorpd xmm0, xmmword [0x14001cf30]
jmp 0x1400127de
movsd xmm0, qword [0x14001cef0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x14001281c
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 0x14001281c
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 0x1400140a0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x140023880], 0
jne 0x1400140bf
mov dword [0x140023880], 1
lea rcx, [0x140014060]
jmp 0x140014aa0
ret
mov rax, qword [0x140027a20]
cmp qword [0x14001e060], rax
ja 0x140014ab5
jmp 0x140015290
lea rdx, [rax + 1]
mov qword [0x140027a20], rdx
lea rdx, [0x1400277a0]
mov qword [rdx + rax*8], rcx
ret
sub rsp, 0x28
mov ecx, 6
call fcn.1400152e0
mov ecx, 1
jmp 0x14000fde0