joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006bc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rsi, rax
je 0x140006cb0
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140006cb0
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x140006cb0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140006cb0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140006cb0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rbx
jne 0x140006cb0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140006c9a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x140006cd0
mov rbx, r15
test rbx, rbx
jne 0x140006c80
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140006c29
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140006cb2
Function at 0x140007310
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x2068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c9d0
sub rsp, rax
mov dword [rsp + 0x3c], 0
mov rsi, rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140007408
lea rdi, [rsp + 0x60]
xor ebx, ebx
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140007386
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call fcn.140006ce0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
lea r8, [rsp + 0x48]
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140007490
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r12, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov qword [rsp + 0x20], r12
mov edx, 1
call rdi
test eax, eax
jne 0x14000743e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007366
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r13, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rcx, qword [rsp + 0x40]
test rax, rax
mov rbx, rax
je 0x140007366
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8, rax
mov edx, 1
call rdi
lea rdi, [rsp + 0x60]
test eax, eax
je 0x14000736d
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x14000736d
mov eax, 0xffffffff
jmp 0x1400073f5

Function at 0x140007ad0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov r11d, 0x80000000
test ecx, ecx
je 0x140007b4c
lea rsi, [0x140011880]
mov ebx, 3
jmp 0x140007af7
add ebx, 1
sar ecx, 1
je 0x140007b4c
test cl, 1
je 0x140007af0
mov eax, ebx
mov edx, 0x80000000
and eax, 0x1f
mov r10d, dword [rsi + rax*4]
mov eax, r11d
xor r11d, r11d
jmp 0x140007b34
mov r9d, eax
shr eax, 1
mov r8d, eax
and r9d, 1
shr edx, 1
xor r8d, 0xedb88320
test r9d, r9d
cmovne eax, r8d
test r10d, edx
je 0x140007b18
lea r8d, [rdx - 1]
xor r11d, eax
test r8d, r10d
jne 0x140007b18
add ebx, 1
sar ecx, 1
jne 0x140007af7
mov eax, r11d
pop rbx
pop rsi
ret
Function at 0x14000bc30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000d390
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000bca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140026484]
test esi, esi
mov rbx, rcx
jle 0x14000bdd0
mov rax, qword [0x140026488]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000bceb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bd75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000bcd0
mov rcx, rbx
call fcn.14000c6f0
test rax, rax
mov rdi, rax
je 0x14000bdf2
mov rax, qword [0x140026488]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000c830
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140026488]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bdd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000bd6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000bd80
add dword [0x140026484], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140026488]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bd6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bc30
nop dword [rax]
xor esi, esi
jmp 0x14000bcf8
mov rax, qword [0x140026488]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bc30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000bc30
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000c360
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400264e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400264c0]
test rbx, rbx
je 0x14000c3bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000c3b3
test rsi, rsi
je 0x14000c3b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c398
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000c6f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140015280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c710
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c718
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c710
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c76d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000c764
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c710
add rax, 0x28
cmp rax, r9
jne 0x14000c750
xor eax, eax
ret

Function at 0x14000c770
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140015280]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c78f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c798
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c78f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000c830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140015280]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c84f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c858
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800016b0
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r11d, r8d
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x1800016c6
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x180001811
nop
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jl 0x1800017bd
mov r8d, edx
shr r8, 4
mov eax, r8d
neg eax
shl eax, 4
add edx, eax
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r8, 1
jne 0x180001700
test edx, edx
je 0x1800017e2
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x1800017d0
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r11d, r11d
jne 0x1800016d0
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x180002450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov r14, rcx
mov qword [rsp + 0x50], rbp
xor r13d, r13d
mov qword [rsp + 0x58], rdi
nop word [rax + rax]
mov ebx, dword [r14 + 0x50]
lea r8, [r14 + 0x48]
mov edx, dword [r14 + 0x8c]
sub ebx, edx
mov eax, dword [r14 + 0x94]
sub ebx, eax
jne 0x1800024af
test edx, edx
jne 0x1800024be
lea r8, [r14 + 0x48]
test eax, eax
jne 0x1800024be
mov ebx, esi
jmp 0x180002550
cmp ebx, 0xffffffff
jne 0x1800024be
mov ebx, 0xfffffffe
jmp 0x180002550
mov ecx, dword [r14 + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x180002550
mov rcx, qword [r8]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.180008d30
mov r8d, dword [r14 + 0x6c]
mov rax, qword [r14 + 0x60]
sub dword [r14 + 0x90], esi
sub dword [r14 + 0x8c], esi
sub dword [r14 + 0x7c], esi
lea rdx, [rax + r8*2]
nop
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r13w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x180002500
mov rax, qword [r14 + 0x58]
mov r8d, esi
lea rdx, [rax + rsi*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r13w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x180002530
add ebx, esi
mov r15, qword [r14]
mov eax, dword [r15 + 8]
test eax, eax
je 0x18000261a
mov r10d, dword [r14 + 0x8c]
mov ebp, dword [r14 + 0x94]
add rbp, r10
add rbp, qword [r14 + 0x48]
cmp eax, ebx
cmovbe ebx, eax
test ebx, ebx
jne 0x180002582
mov ebx, r13d
jmp 0x1800025c3
sub eax, ebx
mov dword [r15 + 8], eax
mov rax, qword [r15 + 0x28]
cmp dword [rax + 0x2c], r13d
jne 0x1800025a5
mov rdx, qword [r15]
mov r8d, ebx
mov ecx, dword [r15 + 0x4c]
call fcn.1800016b0
mov dword [r15 + 0x4c], eax
mov rdx, qword [r15]
mov rcx, rbp
mov r8d, ebx
mov edi, ebx
call fcn.180008d30
add qword [r15], rdi
add dword [r15 + 0xc], ebx
mov r10d, dword [r14 + 0x8c]
mov r9d, dword [r14 + 0x94]
add r9d, ebx
mov dword [r14 + 0x94], r9d
cmp r9d, 3
jb 0x180002604
mov rdx, qword [r14 + 0x48]
mov ecx, dword [r14 + 0x78]
mov eax, r10d
movzx r8d, byte [rax + rdx]
lea eax, [r10 + 1]
mov dword [r14 + 0x68], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [r14 + 0x74]
mov dword [r14 + 0x68], r8d
cmp r9d, 0x106
jae 0x18000261a
mov rax, qword [r14]
cmp dword [rax + 8], r13d
jne 0x180002480
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x180006d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
mov eax, dword [rcx + 0x3c]
mov r11d, r9d
mov rdi, rdx
mov r14, r8
xor edx, edx
mov rbx, rcx
mov esi, dword [rax + rcx + 0x88]
mov eax, edx
add rsi, rcx
mov r15d, dword [rsi + 0x20]
mov r10d, dword [rsi + 0x1c]
add r15, rcx
mov r9d, dword [rsi + 0x24]
add r10, rcx
mov r8d, dword [rsi + 0x14]
add r9, rcx
test r8d, r8d
je 0x180006e06
cmp eax, 0xffff
ja 0x180006e06
mov ecx, dword [r10]
add rcx, rbx
cmp rcx, rdi
jne 0x180006dfb
dec r11d
test r11d, r11d
jle 0x180006e1f
inc eax
add r10, 4
cmp eax, r8d
jb 0x180006de1
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
pop r15
ret
mov r8d, dword [rsi + 0x18]
test r8d, r8d
je 0x180006e06
movzx ecx, word [r9]
cmp eax, ecx
je 0x180006e3d
inc edx
add r9, 2
cmp edx, r8d
jb 0x180006e28
jmp 0x180006e06
mov edx, dword [r15 + rdx*4]
test r14, r14
je 0x180006e49
mov dword [r14], eax
lea rax, [rbx + rdx]
jmp 0x180006e08

Function at 0x180007450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
xor r10d, r10d
mov rbx, rdx
mov r11, rcx
test r8d, r8d
je 0x1800074ef
xor r9b, 1
mov qword [rsp + 0x10], rsi
shl r9b, 5
mov esi, 0x100
add r9b, 0x37
mov qword [rsp + 0x18], rdi
movzx r9d, r9b
mov edi, r8d
nop word [rax + rax]
movzx edx, byte [r11]
mov ecx, gethostbyaddr
movzx eax, dl
and al, 0xf
cmp al, 0xa
movzx eax, al
cmovae cx, r9w
shr dl, 4
add cx, ax
movzx eax, dl
movzx r8d, cx
imul r8d, esi
cmp dl, 0xa
jae 0x1800074c3
add eax, 0x30
jmp 0x1800074c6
add eax, r9d
or ax, r8w
inc r11
mov byte [r10 + rbx], al
inc r10d
shr ax, 8
mov byte [r10 + rbx], al
inc r10d
sub rdi, 1
jne 0x180007490
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x10]
mov eax, r10d
pop rbx
ret
Function at 0x180008a60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov byte [r11 + 0x20], r9b
mov dword [r11 + 0x18], r8d
mov qword [r11 + 8], rcx
push r12
push r13
push r14
push r15
sub rsp, 0x78
xor r15d, r15d
mov r12d, r8d
mov r13, rdx
mov rax, rcx
mov r14d, r8d
test r8d, r8d
je 0x180008c64
mov qword [r11 + 0x10], rbx
movzx r12d, r9b
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x30], rsi
nop word [rax + rax]
lea rbx, [r15 + rax]
mov r8d, gethostbyaddr
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180008c45
mov rbp, qword [rsp + 0x48]
mov eax, r14d
cmp rbp, rax
mov eax, dword [rsp + 0x54]
cmova ebp, r14d
cmp eax, 4
je 0x180008bba
cmp eax, 0x40
je 0x180008bba
lea r9, [rsp + 0x20]
mov edx, ebp
mov r8d, 0x40
mov esi, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180008c45
lea rcx, [r15 + r13]
mov r8d, esi
cmp rbx, rcx
ja 0x180008b2f
mov rdx, rcx
mov rcx, rbx
call fcn.180008d30
jmp 0x180008b91
shr r8, 3
mov r9, rsi
and r9d, 7
jbe 0x180008b62
lea rdx, [rbx - 1]
add rdx, rsi
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rdx], al
lea rdx, [rdx - 1]
sub r9, 1
jne 0x180008b50
jmp 0x180008b65
sub rcx, rbx
test r8, r8
je 0x180008b91
lea rdx, [r8 - 1]
lea rdx, [rbx + rdx*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx + rdx]
mov qword [rdx], rax
lea rdx, [rdx - 8]
sub r8, 1
jne 0x180008b80
test r12b, r12b
je 0x180008c31
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180008c45
jmp 0x180008c31
lea rdx, [r15 + r13]
mov r9d, ebp
mov r8d, r9d
cmp rbx, rdx
ja 0x180008bd3
mov rcx, rbx
call fcn.180008d30
jmp 0x180008c31
shr r8, 3
lea rax, [rbp - 1]
and r9d, 7
jbe 0x180008c02
lea rcx, [rax + rbx]
sub rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub r9, 1
jne 0x180008bf0
jmp 0x180008c05
sub rdx, rbx
test r8, r8
je 0x180008c31
lea rax, [r8 - 1]
lea rax, [rbx + rax*8]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdx + rax]
mov qword [rax], rcx
lea rax, [rax - 8]
sub r8, 1
jne 0x180008c20
mov rax, qword [rsp + 0xa0]
add r15d, ebp
sub r14d, ebp
jne 0x180008ab0
mov r12d, dword [rsp + 0xb0]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa8]
sub r12d, r14d
mov eax, r12d
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x180009730
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x258
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
jmp 0x18000975e
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x30]
movzx eax, word [rax + rcx*2]
test eax, eax
je 0x180009795
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x260]
mov r8, qword [rsp + 0x30]
movzx edx, word [rdx + r8*2]
mov word [rax + rcx*2], dx
jmp 0x180009751
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov word [rcx + rdx*2], ax
mov dword [rsp + 0x20], 0
jmp 0x1800097b9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x180009852
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1800097f5
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2f
jne 0x18000984d
movsxd rax, dword [rsp + 0x20]
xor ecx, ecx
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax*2], cx
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x260]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x18000982d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x18000983a
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movsxd rax, dword [rsp + 0x20]
mov ecx, 0x5c
mov rdx, qword [rsp + 0x28]
mov word [rdx + rax*2], cx
jmp 0x1800097af
add rsp, 0x258
ret

Function at 0x18000bbe0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x3c]
add ecx, eax
mov eax, ecx
mov eax, eax
add rax, 0x18
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
test eax, eax
jne 0x18000bc6d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x54]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 0x1c]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 0x20]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 0x24]
jmp 0x18000bcd2
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x18], rax
mov dword [rsp], 0
jmp 0x18000bc96
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x10]
add rax, 0x28
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x18000bcc2
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov ecx, dword [rcx + 0x14]
cmp dword [rax + 0x14], ecx
jbe 0x18000bcc0
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x18], rax
jmp 0x18000bc80
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x18]
add eax, dword [rcx + 0x10]
add rsp, 0x38
ret
Function at 0x18000f8d0
Capabilities:
Encrypt data using blowfish

Disassembly:
push rbx
mov eax, 0x1020
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rbx, rcx
lea r8d, [rax - 0x20]
lea rcx, [rsp + 0x20]
lea rdx, [0x1800441f0]
call fcn.180008d30
lea r8, [rsp + 0x20]
mov dword [rbx], 0x243f6a88
sub r8, rbx
mov dword [rbx + 4], 0x85a308d3
lea r9, [rsp + 0x24]
mov dword [rbx + 8], 0x13198a2e
sub r9, rbx
mov dword [rbx + 0xc], 0x3707344
mov dword [rbx + 0x10], 0xa4093822
lea rax, [rbx + 0x4c]
mov dword [rbx + 0x14], 0x299f31d0
mov r10d, 4
mov dword [rbx + 0x18], 0x82efa98
mov dword [rbx + 0x1c], 0xec4e6c89
mov dword [rbx + 0x20], 0x452821e6
mov dword [rbx + 0x24], 0x38d01377
mov dword [rbx + 0x28], 0xbe5466cf
mov dword [rbx + 0x2c], 0x34e90c6c
mov dword [rbx + 0x30], 0xc0ac29b7
mov dword [rbx + 0x34], 0xc97c50dd
mov dword [rbx + 0x38], 0x3f84d5b5
mov dword [rbx + 0x3c], 0xb5470917
mov dword [rbx + 0x40], 0x9216d5d9
mov dword [rbx + 0x44], 0x8979fb1b
nop
mov edx, 0x80
nop word [rax + rax]
mov ecx, dword [r8 + rax - 0x4c]
mov dword [rax - 4], ecx
mov ecx, dword [r9 + rax - 0x4c]
mov dword [rax], ecx
add rax, 8
sub rdx, 1
jne 0x18000f9a0
sub r10, 1
jne 0x18000f990
mov rax, rbx
add rsp, 0x1020
pop rbx
ret
Function at 0x1800112e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
test edx, edx
mov rbx, r9
lea rdx, [0x18007e468]
mov edi, r8d
jne 0x180011302
lea rdx, [rcx + 0xd9]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.180033bf0
test edi, edi
je 0x1800113fb
mov r9d, dword [rbx + 8]
mov edi, 0
mov r11, qword [rbx]
and r9d, 0x1fffffff
mov r10d, edi
sub r9d, 1
je 0x180011360
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [r9 + r11]
mov ecx, r10d
inc r10d
movzx eax, byte [rcx + r11]
mov byte [r9 + r11], al
dec r9d
mov byte [rcx + r11], r8b
cmp r10d, r9d
jb 0x180011340
mov ecx, dword [rbx + 8]
mov rax, qword [rbx]
and ecx, 0x1fffffff
lea rdx, [rcx + rax]
cmp rax, rdx
cmova rcx, rdi
test rcx, rcx
je 0x1800113e3
cmp rcx, 0x40
jb 0x1800113e3
movdqa xmm2, xmmword [0x1800451f0]
and rcx, 0xffffffffffffffc0
nop
movdqu xmm0, xmmword [rax]
add rdi, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm0, xmmword [rax + 0x20]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm0, xmmword [rax + 0x30]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
add rax, 0x40
cmp rdi, rcx
jb 0x180011390
cmp rax, rdx
jae 0x1800113fb
nop dword [rax + rax]
xor byte [rax], 0x7b
inc rax
cmp rax, rdx
jb 0x1800113f0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret