joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0044c430]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0044c440]
mov dword [rax], 1
mov rax, qword [0x0044c450]
mov dword [rax], 1
mov rax, qword [0x0044c420]
mov dword [rax], 1
mov rax, qword [0x0044c2e0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0044c410]
mov dword [0x0044f008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x0044c370]
mov qword [rdx], rax
mov rdx, qword [0x0044c360]
mov qword [rdx], rax
mov rax, qword [0x0044c3d0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0044c290]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0044f054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40187a
mov rax, qword [0x0044f058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017ae
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401860
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401792
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4018b2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0044f058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0044f058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401895
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401859
sub eax, 0x40
and eax, 0xffffffbf
je 0x401859
mov r9, rbp
add r9, qword [0x0044f058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401881
add dword [0x0044f054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4017bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x0044f058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402490
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4024a0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4024b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4024f1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4024e8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4024f3
add rax, 0x28
cmp rax, r9
jne 0x4024d4
xor eax, eax
repz ret

Function at 0x4025a0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0044c2e0]
cmp word [rbx], 0x5a4d
je 0x4025c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4025b4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402810
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044f9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044f9a0]
test rbx, rbx
je 0x402864
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40285b
test rsi, rsi
je 0x40285b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402840
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0044f9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004110e0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x402800
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004026c0
test eax, eax
je 0x4027f8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40285d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402854
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4027f8
add rdx, 0x28
cmp rdx, r9
jne 0x402840
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4076a0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x4076f5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4076e0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x407770
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.00406f60
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.00406b10
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.004073d0
mov eax, dword [0x0040f0a0]
cmp eax, 0xffffffff
je 0x40779c
test eax, eax
je 0x40778c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x4076fd
call fcn.0040e870
test al, 1
mov edx, 3
jne 0x40777f
jmp 0x407784
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4077c4
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x0040f0a0], eax
jmp 0x40777b
xor eax, eax
jmp 0x4077b9
Function at 0x40ec00
Capabilities:
Create process on windows

Disassembly:
push rbp
xor ecx, ecx
mov r8d, 0x104
mov rbp, rsp
push rdi
push rsi
push rbx
xor esi, esi
and rsp, 0xfffffffffffffff0
sub rsp, 0x1f0
lea rbx, [rsp + 0xe0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ec40
lea rsp, [rbp - 0x18]
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0xc
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x74], 0
mov qword [rsp + 0xd0], 0
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call fcn.0040ed20
mov qword [rsp + 0x40], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], 0
mov rdx, rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov esi, eax
je 0x40ed00
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
mov esi, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rsp, [rbp - 0x18]
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.Create_process_failed
call fcn.0040ed20
lea rsp, [rbp - 0x18]
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x40ee20
Capabilities:
Accept command line arguments

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
call fcn.004016e0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rdx, [0x0041060b]
mov rcx, rax
call sub.msvcrt.dll_strtok
test rax, rax
je 0x40eede
lea r12, [0x0041060b]
mov rdi, rax
xor ebp, ebp
nop dword [rax]
mov rcx, rdi
add ebp, 1
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov rdx, rdi
mov r8, rbx
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_strncpy
xor ecx, ecx
mov rdx, r12
call sub.msvcrt.dll_strtok
test rax, rax
mov rdi, rax
jne 0x40ee60
cmp ebp, 1
je 0x40eede
lea rdi, [0x0041060d]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
jne 0x40eede
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40eec7
mov ecx, 0x2710
call rbx
call fcn.0040ec00
test eax, eax
jne 0x40eec0
lea rcx, str.Create_process_failed
call fcn.0040ed20
jmp 0x40eee3
call fcn.0040ed80
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140003030
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13c0
call fcn.1401e04b0
sub rsp, rax
mov rax, qword [0x1405eeab8]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14000306f
imul rax, rax, 0x64
jmp 0x14000308d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, rax
mov dword [rsp + 0x13a4], 0xffffffff
mov dword [rsp + 0x24], eax
mov edx, 1
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [rsp + rdx*4 + 0x24], ecx
inc rdx
cmp rdx, 0x270
jb 0x1400030b0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.1400129a0
mov ecx, eax
lea rax, [rcx + rcx*4]
test eax, eax
jne 0x140003105
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.1400129a0
mov ecx, eax
lea rax, [rcx + rcx*4]
cmp eax, 1
jb 0x1400030f0
shr rax, 0x20
test eax, eax
je 0x140003149
sub eax, 1
je 0x140003140
sub eax, 1
je 0x140003137
sub eax, 1
je 0x14000312e
cmp eax, 1
je 0x140003125
xor eax, eax
jmp 0x140003150
lea rax, [0x14043f088]
jmp 0x140003150
lea rax, [0x14043f0a8]
jmp 0x140003150
lea rax, [0x14043f058]
jmp 0x140003150
lea rax, [0x14043f078]
jmp 0x140003150
lea rax, [0x14043f028]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1401df840
add rsp, 0x13c0
pop rbx
ret
Function at 0x140003ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x1405eeab8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx + 0x50]
movabs rax, 0x6666666666666667
mov rbx, qword [rcx + 0x48]
mov rdx, rsi
sub rdx, rbx
mov rbp, rcx
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x140003f3c
xor al, al
jmp 0x140003fe9
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], r14
cmp rbx, rsi
je 0x140003fc0
xor r14d, r14d
mov edx, dword [rbx + 8]
lea r9, [rsp + 0x38]
mov rcx, qword [rbx]
mov r8d, 0x40
mov dword [rsp + 0x38], r14d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000401a
mov ecx, dword [rbx + 8]
call fcn.1400038e0
mov rdi, rax
test rax, rax
je 0x140003f9d
mov r8d, dword [rbx + 8]
mov rdx, rax
mov rcx, qword [rbx]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [rbx + 8]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140003ffe
add rbx, 0x28
cmp rbx, rsi
jne 0x140003f51
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x50]
cmp rcx, rdx
je 0x140003fda
call fcn.140011120
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x50], rax
mov rdi, qword [rsp + 0x78]
mov al, 1
mov r14, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401df840
add rsp, 0x50
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x20]
call fcn.140001570
lea rdx, [0x14045ed98]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
call fcn.140001680
lea rdx, [0x14045eb20]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140005820
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x3a0
mov rax, qword [0x1405eeab8]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov dword [rsp + 0x40], 0x348
xor ebx, ebx
xor edx, edx
xor r9d, r9d
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x140005937
test byte [rsp + 0x184], 1
je 0x1400058d0
lea rdx, [rsp + 0x84]
lea rcx, [rsp + 0x20]
call fcn.14000fd30
nop
cmp qword [rsp + 0x30], 0
je 0x140005892
lea rcx, [rsp + 0x20]
call fcn.140004fa0
test al, al
jne 0x1400058d9
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400058d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005930
call fcn.1401dfd78
inc ebx
mov edx, ebx
jmp 0x140005847
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005917
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005912
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005930
call fcn.1401dfd78
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1401df840
add rsp, 0x3a0
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 0x66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400067c0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1405eeab8]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140005820
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006818
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14000682c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401df840
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140006812
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401df840
add rsp, 0x68
ret
Function at 0x1400127f0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140012821
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1405f30c8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1405f30d8]
lea rdx, [rdi + rdi]
call fcn.140010b40
mov rax, qword [0x1405f30c8]
lea r9, [rdi - 1]
mov qword [0x1405f30f0], r9
mov qword [0x1405f30f8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140012994
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1405f30d8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400128e0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140012955
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14001291d
mov r10, qword [rdx]
cmp r10, rax
je 0x140012917
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140012955
cmp r9, rdx
je 0x140012931
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140012969
cmp r9, rdx
jne 0x140012922
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14001298f
mov r9, qword [0x1405f30f0]
jmp 0x140012891
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140012955
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400129a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140012a01
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400129c0
mov ecx, dword [r9]
jmp 0x140012ae8
cmp ecx, 0x4e0
jb 0x140012ae8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140012a20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140012a70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14001c930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ebp, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
cmp r8, 0xffffffffffffffff
jne 0x14001c983
movzx eax, byte [rdx]
mov edi, ecx
test al, al
je 0x14001c977
imul ecx, ecx, 0x1003f
inc rdi
movzx eax, al
add ecx, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x14001c961
test rdi, rdi
jne 0x14001c9af
xor eax, eax
jmp 0x14001ca32
mov rdx, rcx
test r8, r8
je 0x14001c977
nop dword [rax + rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14001c9aa
imul ecx, ecx, 0x1003f
inc rdx
add ecx, eax
cmp rdx, r8
jb 0x14001c990
jmp 0x14001c977
mov ecx, reloc.WS2_32.dll_recvfrom
mov eax, dword [rbx + 0x128]
mov edx, ecx
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, ecx
movzx ecx, byte [rbx + 0x12c]
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14001ca2a
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14001ca19
cmp dword [rbx + 0x14], ebp
jne 0x14001ca19
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14001ca0a
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001ca21
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001c9f1
test rbx, rbx
je 0x14001ca2a
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e1c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov eax, dword [0x1405f3104]
mov rbx, rcx
test eax, eax
jne 0x14001e239
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec eax
mov edx, eax
shr edx, 1
or edx, eax
mov eax, edx
shr eax, 2
or eax, edx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov edx, ecx
shr edx, 8
or edx, ecx
mov eax, edx
shr eax, 0x10
or eax, edx
inc eax
mov dword [0x1405f3110], eax
mov eax, dword [rsp + 0x48]
mov dword [0x1405f3114], eax
mov eax, 1
xchg dword [0x1405f3104], eax
mov r13d, dword [0x1405f3110]
lea rax, [0x14043f760]
test rbx, rbx
cmovne rax, rbx
mov r12d, dword [rax]
mov r14d, dword [rax + 4]
mov esi, dword [rax + 8]
mov r15d, dword [rax + 0xc]
mov eax, r12d
shr rax, 1
and eax, 1
lea rbp, [rax*2 + 1]
lea eax, [r14 - 0x10000]
cmp eax, 0xfff0000
ja 0x14001e284
lea eax, [r14 - 1]
test r14d, eax
je 0x14001e28b
mov r14d, dword [0x1405f3114]
lea eax, [rsi - 0x40]
cmp eax, 0xc0
ja 0x14001e29c
lea eax, [rsi - 1]
test esi, eax
je 0x14001e2a1
mov esi, 0x40
mov eax, 0xcccccccc
bt r12d, 0x1c
cmovae r15d, eax
imul rcx, rbp, 0x38
add rcx, 0x60
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14001e34f
xorps xmm0, xmm0
lea rcx, [rax + 0x10]
movups xmmword [rax], xmm0
lea rbx, [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov qword [rdi + 0x50], rbx
mov qword [rdi + 0x40], r9
lea rax, [rbx + 0x10]
mov qword [rdi + 0x48], r9
mov r8d, r9d
mov qword [rdi + 0x58], rbp
mov dword [rdi], r12d
mov dword [rdi + 4], r14d
mov dword [rdi + 8], esi
mov dword [rdi + 0xc], r15d
mov dword [rdi + 0x38], r13d
nop dword [rax]
mov qword [rax - 0x10], r9
mov rcx, r8
mov qword [rax - 8], r9
mov edx, esi
shl edx, cl
inc r8
mov qword [rax], r9
mov dword [rax + 8], r9d
mov word [rax + 0xc], dx
mov byte [rax + 0xf], r9b
mov qword [rax + 0x10], r9
mov qword [rax + 0x18], r9
mov qword [rax + 0x20], r9
lea rax, [rax + 0x38]
bsf ecx, edx
mov byte [rax - 0x2a], cl
cmp r8, rbp
jb 0x14001e310
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret