joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180228780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rcx + 0x40], r9d
cmp r9d, 1
je 0x18020fd7e
mov rdx, r8
add rcx, 8
call fcn.180216a00
mov eax, dword [r14]
test eax, eax
jne 0x18020fbf7
test rdi, rdi
jne 0x18020fbf7
mov rdi, qword [rbx + 0x28]
jmp 0x18020fc13
mov rdi, qword [rbx + 0x28]
cmp rdi, qword [rbx + 0x20]
jae 0x18020fc13
mov r8d, 0x10000
test eax, eax
cmovne r8, rbp
je 0x18020fd8a
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x90]
call fcn.180220720
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], rdi
lea rdi, [rbx + 0x50]
mov rsi, qword [rbx + 0x48]
mov rbx, qword [rdi]
mov ecx, dword [0x180725560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18020fc66
cmp qword [rax], rbx
je 0x18020fd59
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18020fc54
lea rax, [rsp + 0x90]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x90]
mov ecx, 0xb0
call fcn.1801e2240
mov rbx, rax
mov qword [rax + 0x20], rbp
lea rax, [fcn.180223a40]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x90]
call fcn.180223f30
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1801f2450
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rbp
test al, al
je 0x18020fd4a
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x180725560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
mov ecx, dword [0x180725560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x50], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, rbx
call fcn.180223a40
nop
lea rcx, [rsp + 0x50]
call fcn.1801f2230
nop
mov rdx, qword [rsp + 0x48]
mov ecx, dword [0x180725560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x98]
call fcn.1801fb110
jmp 0x18020fdb6
cmp qword [rax + 8], 0
je 0x18020fc66
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x90]
call fcn.1802264a0
nop
nop
jmp 0x18020fd4a
mov r8d, 0x10000
cmp dword [rdx], ebp
cmovne r8, rbp
lea rdx, [rsp + 0x90]
lea rcx, [rbx + 8]
call fcn.180216a60
mov rcx, qword [rbx]
lea rdx, [rcx + 8]
mov rcx, qword [rcx]
add rcx, 0x28
mov qword [rsp + 0x20], rbx
mov r8, rax
call fcn.180220330
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.18027f010
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x38
mov r8, qword [rcx + 0x128]
add rcx, 0x60
xor r9d, r9d
lea rdx, [rcx + 0xb8]
add rsp, 0x38
jmp 0x18020fba0
Function at 0x1802287c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x38
mov r8, qword [rcx + 0x120]
add rcx, 0x60
xor r9d, r9d
lea rdx, [rcx + 0xb0]
add rsp, 0x38
jmp fcn.18020f610

Function at 0x18022e8c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18022ea7a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18022ea08
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x18022e9c2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18022e9c2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18022e9c2
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18022e984
mov rcx, qword [0x180722e18]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18022e9eb
jmp 0x18022e9b5
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18022e9b5
mov rcx, qword [0x180722e18]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18022e9eb
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18022e932
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18022ea08
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18022ea08
mov rcx, qword [0x180722e18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18022ea7a
cmp qword [rbx], r15
je 0x18022ea75
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18022ea75
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18022ea6e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18022e710
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18022ea30
mov eax, r15d
jmp 0x18022ea7f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18027f010
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18022eaa0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18022eb11
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18022eafa
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18022eaee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18022eac0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180722e18]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18022eb20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180725600]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18022eb84
mov eax, 0xa
jmp 0x18022ec17
test esi, esi
je 0x18022eba6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18022ebc9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18022ebc9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18022ebc2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18022ebc9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18022ec30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18072560c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18022ec77
mov rax, qword [0x180725600]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18022ec84
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18022ec60
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18022ec77
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18022e8c0
mov edi, eax
test eax, eax
jne 0x18022ed6f
mov r9d, dword [0x18072560c]
cmp ebx, r9d
jae 0x18022ecfc
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180725600]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18022ecf5
mov edx, esi
mov ecx, ebx
call fcn.18022eb20
mov edi, eax
test eax, eax
jne 0x18022ecfc
mov r9d, dword [0x18072560c]
inc ebx
cmp ebx, r9d
jb 0x18022ecc0
cmp qword [rsp + 0x20], 0
je 0x18022ed6d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18022ed59
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18022ed4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18022ed20
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180722e18]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x18022f990
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18022f9d0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1807255f0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18022fa0e
cmp rsi, r14
jb 0x18022fa06
cmp rsi, r15
jae 0x18022fa06
cmp qword [rsi + 8], 0
jne 0x18022fbd7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18022f9f1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18022faa2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18022fa99
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18022fa99
cmp dword [rsp + 0x70], 0x10000
je 0x18022fb1b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18022fa99
sub rbx, rbp
cmp rbx, r14
jae 0x18022fa60
test rsi, rsi
jne 0x18022fb80
cmp rdi, r15
ja 0x18022fbbf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18022fbbf
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18022fbbf
cmp dword [rsp + 0x70], 0x10000
je 0x18022fb51
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18022fad2
jmp 0x18022fbbf
test rbx, rbx
je 0x18022fa99
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18022fb80
cmp rbx, r14
jae 0x18022fa40
jmp 0x18022faa2
test rdi, rdi
je 0x18022fbbf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18022fb80
cmp rdi, r15
jbe 0x18022fab0
jmp 0x18022fbbf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18022fb90
mov rax, qword [0x1807255f0]
mov qword [rsi], rax
mov qword [0x1807255f0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180230940
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
mov ecx, 0x5a4d
mov r9, rdx
cmp word [r8], cx
jne 0x180230a24
movsxd rcx, dword [r8 + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180230a24
test rcx, rcx
je 0x180230a24
mov edx, dword [rcx + 0x50]
test rdx, rdx
je 0x180230a24
add r8, rdx
cmp byte [0x180721cda], 0
je 0x1802309ea
cmp byte [0x180721cd8], 0
je 0x1802309be
movaps xmm0, xmmword [r9]
mov rdx, rax
lea r9, [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.180231590
mov rax, rbx
add rsp, 0x30
pop rbx
ret
cmp byte [0x180721cd7], 0
je 0x1802309ea
movaps xmm0, xmmword [r9]
mov rdx, rax
lea r9, [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.1802310c0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
cmp byte [0x180721cd4], 0
mov rdx, rax
movaps xmm0, xmmword [r9]
mov rcx, rbx
movdqa xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
je 0x180230a16
call fcn.180230bb0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
call fcn.180230880
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov qword [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret

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

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, 0x30
movaps xmm0, xmmword [r8]
mov eax, 0x5a4d
xor r13d, r13d
movdqa xmmword [rsp + 0x20], xmm0
mov rbp, r9
mov r15, rdx
mov r14, rcx
cmp word [r9], ax
jne 0x180230ad3
movsxd rdi, dword [r9 + 0x3c]
add rdi, r9
cmp dword [rdi], 0x4550
jne 0x180230ad3
test rdi, rdi
je 0x180230ad3
movzx ebx, word [rdi + 0x14]
mov esi, r13d
add rbx, 0x18
add rbx, rdi
cmp r13w, word [rdi + 6]
jae 0x180230ad3
mov r12, qword [rsp + 0x20]
nop dword [rax + rax]
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call fcn.180298c90
test eax, eax
je 0x180230af6
movzx eax, word [rdi + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jl 0x180230ab0
mov qword [r14], r13
mov rbx, qword [rsp + 0x60]
mov rax, r14
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, dword [rbx + 0xc]
mov eax, dword [rbx + 8]
add rdx, rbp
test rax, rax
je 0x180230ad3
cmp byte [0x180721cda], r13b
lea r8, [rdx + rax]
je 0x180230b55
cmp byte [0x180721cd8], r13b
je 0x180230b33
movaps xmm0, xmmword [r15]
lea r9, [rsp + 0x20]
mov rcx, r14
movdqa xmmword [rsp + 0x20], xmm0
call fcn.180231590
jmp 0x180230ad6
cmp byte [0x180721cd7], r13b
je 0x180230b55
movaps xmm0, xmmword [r15]
lea r9, [rsp + 0x20]
mov rcx, r14
movdqa xmmword [rsp + 0x20], xmm0
call fcn.1802310c0
jmp 0x180230ad6
cmp byte [0x180721cd4], r13b
lea r9, [rsp + 0x20]
movaps xmm0, xmmword [r15]
mov rcx, r14
movdqa xmmword [rsp + 0x20], xmm0
je 0x180230b7a
call fcn.180230bb0
jmp 0x180230ad6
call fcn.180230880
jmp 0x180230ad6
Function at 0x180234b10
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x180721d08]
mov ecx, eax
inc eax
mov dword [0x180721d08], eax
test ecx, ecx
jne 0x180234c47
cmp byte [0x180722ea9], cl
lea rax, [fcn.180297cd0]
mov qword [fcn.180297cd0], rax
lea rax, [fcn.18028d8d8]
mov qword [fcn.18028d8d8], rax
lea rax, [fcn.180298184]
mov qword [fcn.180298184], rax
lea rax, [case.0x1802427eb.0]
mov qword [case.0x1802427eb.0], rax
lea rax, [fcn.18028d920]
mov qword [fcn.18028d920], rax
jne 0x180234ba8
mov rax, qword [0x180718360]
mov byte [0x180722ea9], 1
call qword [rax + 0x20]
test eax, eax
je 0x180234c67
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180234c67
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x180234c61
shr ax, 8
cmp al, 2
jne 0x180234c61
call fcn.18024e5c0
test eax, eax
jne 0x180234c67
lea rcx, str.iphlpapi.dll
call fcn.18023d750
mov qword [0x180722eb8], rax
test rax, rax
je 0x180234c1a
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180234c1a
mov qword [0x180722eb0], rax
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
mov ecx, 6
call fcn.18024e7d0
test al, al
lea rcx, [0x1807255e0]
setne byte [0x1807255e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18027f010
add rsp, 0x1e8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x180721d08]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18027f010
add rsp, 0x1e8
ret

Function at 0x18023a110
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x18023a1de
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov rax, qword [0x180718360]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov rcx, rbx
call qword [rax + 0x50]
cmp eax, 4
jne 0x18023a187
cmp byte [0x180722ea8], bpl
jne 0x18023a191
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x18023a1e3
mov ecx, dword [rsp + 0x50]
jmp 0x18023a1ae
imul ecx, dword [0x180721d58], 0x41c64e6d
add ecx, 0x3039
mov dword [0x180721d58], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x18023a140
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x18023a140
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18023d750
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18023d77a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x180333418]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180333468]
mov rcx, rbx
mov r14, rax
call fcn.18029f2a0
test rax, rax
je 0x18023d7db
mov rcx, rbx
test r14, r14
je 0x18023d7c8
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x18023d812
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18023d812
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x18023d8da
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x18023d840
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.180297cd0]
mov rsi, rax
test rax, rax
je 0x18023d8cc
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18023d8cc
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x18023d870
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x18023d881
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x18023d8a0
mov rcx, rsi
test r14, r14
je 0x18023d8c3
xor edx, edx
mov r8d, 8
call r14
jmp 0x18023d8c9
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [fcn.18028d8d8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x18023ddb0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18023dea5
call fcn.180244eb0
test al, al
jne 0x18023dea5
xor r8d, r8d
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x18023dde0
test rdx, rdx
je 0x18023de44
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x18023de44
nop word [rax + rax]
cmp byte [rcx], 0x2e
je 0x18023de0f
dec rcx
cmp rcx, rbx
jae 0x18023de00
jmp 0x18023de44
test rcx, rcx
je 0x18023de44
cmp rcx, rbx
je 0x18023de44
dec rcx
cmp rcx, rbx
jb 0x18023de44
cmp byte [rcx], 0x2e
je 0x18023de30
dec rcx
cmp rcx, rbx
jae 0x18023de21
jmp 0x18023de44
mov r8, rcx
test rcx, rcx
je 0x18023de44
inc r8
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
mov r8d, 0x1505
lea r9, [rbx + rdx]
cmp rbx, r9
jae 0x18023de78
lea rdx, [0x180332fb0]
movzx eax, byte [rbx]
inc rbx
imul r8, r8, 0x21
movsx rcx, byte [rax + rdx]
xor r8, rcx
cmp rbx, r9
jb 0x18023de61
mov rcx, r8
movabs rax, 0x410410410410411
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub r8, rcx
mov rax, r8
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret