joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f750
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r14
sub rsp, 0x28
mov r14, rcx
call fcn.14000b4c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x14000f783
nop
cmp dx, 0x20
ja 0x14000f783
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x14000f770
movzx r8d, word [rax]
movzx ecx, r8w
cmp r8w, 0x22
jne 0x14000f796
movzx ecx, word [rax + 2]
mov edx, 0x22
lea rdi, [rax + 2]
mov r9d, 0x20
cmovne rdi, rax
cmovne dx, r9w
cmp cx, dx
je 0x14000f7c5
test cx, cx
je 0x14000f7ce
movzx ecx, word [rdi + 2]
add rdi, 2
cmp cx, dx
jne 0x14000f7b3
test cx, cx
je 0x14000f7ce
add rdi, 2
cmp r8w, 0x22
jne 0x14000f7df
cmp word [rdi], r9w
jne 0x14000f7df
add rdi, 2
movzx eax, word [rdi]
test ax, ax
je 0x14000f96e
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r15
xor r15d, r15d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
cmp ax, 0x22
jne 0x14000f8b2
movzx eax, word [rdi + 2]
add rdi, 2
mov rsi, rdi
test ax, ax
je 0x14000f833
nop dword [rax]
cmp ax, 0x22
je 0x14000f833
movzx eax, word [rsi + 2]
add rsi, 2
test ax, ax
jne 0x14000f820
mov rbx, rsi
sub rbx, rdi
sar rbx, 1
test rbx, rbx
jle 0x14000f868
mov rax, qword [r14]
add rbx, rbx
mov rcx, r14
lea rdx, [rbx + 2]
call qword [rax]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbp, rax
call fcn.140016730
mov word [rbx + rbp], r15w
jmp 0x14000f86b
mov rbp, r15
mov rbx, qword [r14 + 0x30]
lea rcx, [r14 + 8]
mov rax, qword [rcx + 0x20]
sub rax, rbx
cmp rax, 8
jl 0x14000f88f
mov rax, qword [rcx + 0x18]
mov qword [rbx + rax], rbp
add qword [rcx + 0x28], 8
jmp 0x14000f89c
lea rdx, [rbx + 8]
call fcn.140010780
mov qword [rax + rbx], rbp
mov rdi, rsi
cmp word [rsi], r15w
je 0x14000f94e
lea rdi, [rsi + 2]
jmp 0x14000f94e
cmp ax, 0x20
jbe 0x14000f94a
mov rsi, rdi
nop
cmp ax, 0x22
je 0x14000f8d9
cmp ax, 0x20
jbe 0x14000f8d9
movzx eax, word [rsi + 2]
add rsi, 2
test ax, ax
jne 0x14000f8c0
mov rbx, rsi
sub rbx, rdi
sar rbx, 1
test rbx, rbx
jle 0x14000f90e
mov rax, qword [r14]
add rbx, rbx
mov rcx, r14
lea rdx, [rbx + 2]
call qword [rax]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbp, rax
call fcn.140016730
mov word [rbx + rbp], r15w
jmp 0x14000f911
mov rbp, r15
mov rbx, qword [r14 + 0x30]
lea rcx, [r14 + 8]
mov rax, qword [rcx + 0x20]
sub rax, rbx
cmp rax, 8
jl 0x14000f938
mov rax, qword [rcx + 0x18]
mov rdi, rsi
mov qword [rbx + rax], rbp
add qword [rcx + 0x28], 8
jmp 0x14000f94e
lea rdx, [rbx + 8]
call fcn.140010780
mov rdi, rsi
mov qword [rax + rbx], rbp
jmp 0x14000f94e
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x14000f802
mov r15, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, qword [r14 + 0x30]
shr rax, 3
add rsp, 0x28
pop r14
pop rdi
ret
Function at 0x140016e7c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140016d0f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016d0f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016d0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016d0f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016d0f
cmp dword [rcx + 0x84], 0xe
jbe 0x140016d0f
cmp dword [rcx + 0xf8], 0
je 0x140016d0f
mov ecx, ebx
call fcn.140016db0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140016ba0
cmp dword [rbp + 0x20], 0
je 0x140016d5c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140016d64
int3
xor r8d, r8d
xor edx, edx
jmp 0x140016ca8
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
sbb byte [rdx - 0x399e4151], dh
jno 0x1400c3e46
invalid
test al, 0x2f
and eax, 0xe37a1eaa
jae 0x1400c3df1
invalid
sbb eax, 0x74711c9f
mov cl, 0x3f
out dx, eax
and dh, ch
jge 0x1400c3ee7
mov spl, 0xef
ficom dword [rbx + rcx*4 + 0x63]
push rsp
mov esp, dword [rbx - 0x45]
sbb al, 0xe9
ror byte [rbx - 0x4282eb9b], 1
push rsp
mov esp, dword [rbx - 0x45]
sbb al, 0xe9
ror byte [rbx - 0x4282eb9b], 1
enter 0x5997, 0xffffffffffffff94
xchg esp, eax
invalid
mov ah, ah
rol byte [rbx + rcx*4], 1
pop rbp
iretd

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x2fc4db250
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dbc52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbcea
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbcce
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 0x2fc4dbcc2
cmp qword [rbp - 0x10], 0
je 0x2fc4dbcc2
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 0x2fc4dbc88
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbceb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbdf0
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 0x2fc4dbe18
mov eax, 0
jmp 0x2fc4dbe66
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 0x2fc4dbe41
mov eax, 0
jmp 0x2fc4dbe66
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 0x2fc4dbe61
mov eax, 0
jmp 0x2fc4dbe66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbe6c
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 0x2fc4dbeea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbee1
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 0x2fc4dbee1
mov rax, qword [rbp - 8]
jmp 0x2fc4dbeff
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 0x2fc4dbeb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001280
Capabilities:
Create thread
Set console window title

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
test rcx, rcx
je 0x1800013e3
cmp rdx, 1
jne 0x1800013bd
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
lea rdx, [0x180005408]
lea rcx, [0x18000540c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
lea rcx, [0x180005410]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x180001327
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov rbx, rax
test rax, rax
je 0x180001327
xor r8d, r8d
mov edx, 0xf060
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0xf020
mov rcx, rbx
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0xf030
mov rcx, rbx
call qword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
mov edx, 0x4000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov ecx, eax
lea rdx, [0x180005408]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rcx], rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1800013f0
xor eax, eax
lea r8, [0x180001140]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x1800013d8
mov rcx, qword [0x18000ca08]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1800013d8
mov rcx, qword [rcx + 0x10]
mov qword [rdx], rcx
mov eax, 1
add rsp, 0x30
pop rdi
ret
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180001650
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18000169f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18000ca40]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800016dd
cmp rsi, r14
jb 0x1800016d5
cmp rsi, r15
jae 0x1800016d5
cmp qword [rsi + 8], 0
jne 0x1800018a7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800016c0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180001772
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001769
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001769
cmp dword [rsp + 0x40], 0x10000
je 0x1800017eb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001769
sub rbx, rbp
cmp rbx, r14
jae 0x180001730
test rsi, rsi
jne 0x180001850
cmp rdi, r15
ja 0x18000188f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000188f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000188f
cmp dword [rsp + 0x40], 0x10000
je 0x180001821
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800017a2
jmp 0x18000188f
test rbx, rbx
je 0x180001769
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001850
cmp rbx, r14
jae 0x180001710
jmp 0x180001772
test rdi, rdi
je 0x18000188f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001850
cmp rdi, r15
jbe 0x180001780
jmp 0x18000188f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180001860
mov rax, qword [0x18000ca40]
mov qword [rsi], rax
mov qword [0x18000ca40], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180002ff0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180002220
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000234b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180002342
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180002324
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180002324
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180002324
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800022e2
mov rcx, qword [0x18000ca00]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180002342
jmp 0x180002317
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180002317
mov rcx, qword [0x18000ca00]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180002342
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180002290
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800023a3
cmp dword [rbx + 0xc], esi
jbe 0x1800023a3
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000239c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180002070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180002360
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180002ff0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800023d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18000ca30]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002443
mov eax, 0xa
jmp 0x1800024d6
test esi, esi
je 0x180002465
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180002488
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180002488
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180002481
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180002488
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180002ff0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180002500
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18000ca3c]
mov ebx, edi
test ecx, ecx
je 0x18000263b
mov rax, qword [0x18000ca30]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180002558
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180002530
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18000263b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180002220
mov r8d, dword [0x18000ca3c]
cmp ebx, r8d
jae 0x1800025c8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18000ca30]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800025c1
mov edx, esi
mov ecx, ebx
call fcn.1800023d0
mov edi, eax
test eax, eax
jne 0x1800025c8
mov r8d, dword [0x18000ca3c]
inc ebx
cmp ebx, r8d
jb 0x180002590
cmp qword [rsp + 0x20], 0
je 0x18000263b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180002627
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002618
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800025f0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18000ca00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180002a40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18000c9f8], ebp
je 0x180002a97
cmp rbx, 0x20
jae 0x180002a80
xor ecx, ecx
jmp 0x180002a82
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18000c9f8], ebp
jne 0x180002a76
cmp qword [0x18000ca00], r15
je 0x180002b91
test rdi, rdi
jne 0x180002ab7
mov ecx, esi
call fcn.180002500
mov ebp, eax
jmp 0x180002b96
mov ecx, dword [0x18000ca3c]
mov ebx, r15d
test ecx, ecx
je 0x180002adf
mov r8, qword [0x18000ca30]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180002ae9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180002ad0
mov ebp, 4
jmp 0x180002b96
cmp ebx, 0xffffffff
je 0x180002adf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180002b88
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180002220
mov edx, esi
mov ecx, ebx
call fcn.1800023d0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180002b96
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180002b72
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180002b68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180002b40
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18000ca00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002b96
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180002b96
mov ebp, 2
xchg dword [0x18000c9f8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140001050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
mov ebx, r8d
mov r9, rdx
mov r10d, 1
test rdx, rdx
je 0x140001072
cmp ebx, 2
jb 0x140001072
test rcx, rcx
jne 0x140001077
mov word [rdx], 0x30
mov rax, r9
pop rbx
ret
mov qword [rsp + 0x10], rsi
mov rax, rcx
cqo
mov qword [rsp + 0x18], rdi
mov r8, rax
mov rdi, rcx
xor r8, rdx
shr rdi, 0x3f
sub r8, rdx
mov r11, r10
movabs rsi, 0xcccccccccccccccd
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
mul r8
shr rdx, 3
lea rcx, [rdx + rdx*4]
add rcx, rcx
cmp r8, rcx
jne 0x1400010cb
test rdx, rdx
je 0x1400010f1
cmp r10d, ebx
jg 0x1400010f1
movzx eax, dl
inc r10d
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r11 + r9], r8b
inc r11
mov r8, rdx
jmp 0x1400010b0
mov rsi, qword [rsp + 0x10]
mov ecx, r10d
shr ecx, 1
mov eax, r10d
and eax, 1
mov edx, r10d
add ecx, eax
movsxd r8, ecx
cmp r11, r8
jle 0x14000113b
nop
dec r11
dec r10d
mov eax, edx
sub eax, r10d
mov ecx, eax
movzx eax, byte [rax + r9]
mov byte [r9], al
movzx eax, byte [r11 + r9]
mov byte [rcx + r9], al
movzx eax, byte [r9]
mov byte [r11 + r9], al
cmp r11, r8
jg 0x140001110
cmp edi, 1
mov byte [rdx + r9], 0
mov rdi, qword [rsp + 0x18]
jne 0x140001153
mov byte [r9], 0x2d
mov rax, r9
pop rbx
ret
mov byte [r9], 0x2b
lea rax, [r9 + 1]
pop rbx
ret