joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017faf0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x6c8
mov rax, qword [0x140280480]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14017fb2e
xor al, al
jmp 0x14017fc11
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14017fb5b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14017fc11
mov edx, dword [rsp + 0x38]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14017fbed
mov dword [rsp + 0x270], 0x438
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x14017fbe1
mov rdx, qword [rsp + 0x6d0]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
jne 0x14017fbcb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14017fc11
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x14017fb97
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14017fb5b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.140183e40
add rsp, 0x6c8
ret

Function at 0x1401800a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, Ordinal_50
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401800e7
xor al, al
jmp 0x140180189
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140180111
xor al, al
jmp 0x140180189
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x140180181
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x140180181
mov al, 1
jmp 0x140180189
jmp 0x140180187
xor al, al
add rsp, 0x78
ret
Function at 0x140180490
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1404e2398]
mov qword [rsp + 0x28], rax
jmp 0x1401804b0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401804df
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1401804dd
call sub.KERNEL32.dll_GetLastError
jmp 0x1401804e1
jmp 0x1401804a2
xor eax, eax
add rsp, 0x38
ret
Function at 0x140180520
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1404e23b0], eax
je 0x14018054d
mov eax, 0x10dd
jmp 0x140180766
cmp dword [0x1404e23b4], 0
je 0x140180561
mov eax, dword [0x1404e23b4]
jmp 0x140180766
cmp qword [rsp + 0x78], 0
jne 0x140180573
mov eax, 0x57
jmp 0x140180766
cmp qword [rsp + 0x70], 0
jne 0x140180585
mov eax, 6
jmp 0x140180766
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1401805b7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1404e23b4], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1404e23b8], rax
mov eax, dword [rsp + 0x20]
jmp 0x140180766
mov ecx, Ordinal_50
call fcn.14018372c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140180629
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1404e23b4], eax
cmp qword [rsp + 0x30], 0
je 0x140180614
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x50]
call fcn.1401839b0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1404e23b8], rax
mov eax, dword [rsp + 0x20]
jmp 0x140180766
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1401804f0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1401804f0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x140180686
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1401806a3
mov dword [rsp + 0x20], 9
cmp dword [0x1404e23a8], 0
je 0x14018069e
jmp 0x1401805ea
jmp 0x1401805e0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1401806d0
mov dword [rsp + 0x20], 9
cmp dword [0x1404e23a8], 0
je 0x1401806cb
jmp 0x1401805ea
jmp 0x1401805e0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140180707
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1401805e0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1404e23c8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1404e23c8], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x140180770
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1404e23b0], eax
je 0x14018078b
mov eax, 0x10dd
jmp 0x1401808b0
mov rax, qword [0x1404e23c8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140180835
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140180800
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140180800
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.14017fea0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.1401839b0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140180797
mov qword [0x1404e23c8], 0
call fcn.140180250
mov rax, qword [0x1404e23c0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140180899
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.1401839b0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140180851
mov qword [0x1404e23c0], 0
mov dword [0x1404e23b0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140180de0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1404e23b4], 0
je 0x140180dfd
mov eax, dword [0x1404e23b4]
jmp 0x140180ec3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140180e10
xor eax, eax
jmp 0x140180ec3
mov ecx, reloc.WS2_32.dll_recv
call fcn.14018372c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140180e7e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140180e63
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.1401839b0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1404e23b4], eax
mov qword [0x1404e23b8], 0
mov eax, dword [rsp + 0x20]
jmp 0x140180ec3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140180e98
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140180e39
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1404e23c0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1404e23c0], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x140180ed0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140280480]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
nop
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
je 0x140180f18
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140183e40
add rsp, 0x38
ret

Function at 0x140180f30
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x30
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x4d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140180fe9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x30], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140180fd5
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x48], 0
jne 0x140180fcc
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x50], 0
jne 0x140180fcc
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x58], 0
jne 0x140180fcc
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x60], 0
je 0x140180fd5
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
add rsp, 0x30
pop rdi
ret
Function at 0x140180ff0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x140280480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_50
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x44]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140181069
xor eax, eax
jmp 0x1401810d9
mov r8d, 1
mov edx, 0xc3
mov rcx, qword [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
nop
mov eax, dword [rsp + 0x44]
lea r9, [rsp + 0x70]
mov r8d, 0x140
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401810a3
xor eax, eax
jmp 0x1401810d9
call qword [rsp + reloc.WLDAP32.dll_Ordinal_32]
nop
jmp 0x1401810c1
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140183e40
add rsp, 0x80
pop rdi
ret

Function at 0x1401811b0
Capabilities:
Print debug messages
Terminate process

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x2c], 0x3e8
mov dword [rsp + 0x20], 0
mov rax, qword [0x1404e23e0]
test rax, rax
jne 0x1401811ed
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x3e8
je 0x1401811ed
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
jmp 0x1401811c4
cmp dword [rsp + 0x20], 0x3e8
jl 0x140181200
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov edx, 0x1388
mov rcx, qword [0x1404e23e0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140181226
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov eax, dword [0x1404e23ec]
cmp eax, 0xdeadbeef
je 0x14018123c
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rcx, str.All_seems_fine_for_TLSCallbackProcess.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x1404e23ec]
cmp eax, 0xdeadbeef
jne 0x140181260
mov dword [rsp + 0x24], 0
jmp 0x140181268
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1401815b0
Capabilities:
Check for unexpected memory writes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140280480]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14018160e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140252030]
call fcn.1400464b0
mov eax, dword [rsp + 0x30]
jmp 0x14018171c
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140181664
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140252058]
call fcn.1400464b0
mov eax, dword [rsp + 0x30]
jmp 0x14018171c
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax], 0x4d2
mov qword [rsp + 0x48], 0x1000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x1401816d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140252080]
call fcn.1400464b0
mov dword [rsp + 0x30], 0
jmp 0x1401816f2
cmp qword [rsp + 0x48], 1
je 0x1401816e2
mov dword [rsp + 0x34], 1
jmp 0x1401816ea
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140183e40
add rsp, 0x68
ret
Function at 0x1401819e0
Capabilities:
Check for unexpected memory writes

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140280480]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140181a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1402524d0]
call fcn.1400464b0
mov eax, dword [rsp + 0x30]
jmp 0x140181b7c
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140181a94
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1402524f8]
call fcn.1400464b0
mov eax, dword [rsp + 0x30]
jmp 0x140181b7c
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x50], 0x1000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x140181b02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140252520]
call fcn.1400464b0
mov dword [rsp + 0x30], 0
jmp 0x140181b52
cmp qword [rsp + 0x50], 1
je 0x140181b14
mov dword [rsp + 0x38], 1
jmp 0x140181b1c
mov dword [rsp + 0x38], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp dword [rcx + rax], 1
jne 0x140181b3a
mov dword [rsp + 0x34], 1
jmp 0x140181b42
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140183e40
add rsp, 0x78
ret

Function at 0x140182d90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1402531b0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140182dca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140182dcf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140182e18
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140182e18
dec r8
sub rdx, 1
jne 0x140182dfe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401846f4
Capabilities:
Parse pe header

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

Function at 0x140186290
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1404e2e80]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f1c], ecx
test rbx, rbx
je 0x1401862ff
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140186160
lea rdx, [0x1402541dc]
mov rcx, rbx
mov rdi, rax
call fcn.1401a1cd0
mov rbx, rax
test rax, rax
je 0x1401862fa
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140186620
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1404e2e80]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140186683
mov qword [rsp], rbx
lea rbx, [0x1402546c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140186663
cmp byte [r8], r9b
jne 0x140186663
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140186650
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f30]
not eax
mov r8, qword [r10 + 0x5f38]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1401866af
cmp dword [r8 + 8], eax
je 0x1401866b6
add r8, 0x48
cmp r8, rcx
jne 0x1401866a0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret

Function at 0x140186ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fc0], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140186d23
xor edx, edx
add rcx, 0x5fc8
call fcn.140047ce0
mov r8, rsi
lea rcx, [rbx + 0x5fc8]
mov rdx, rbp
call fcn.1401a0ac0
mov eax, dword [rbx + 0x5fc8]
xor edx, edx
mov r9, qword [rbx + 0x5fc0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x5fd0]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x1404e2e78]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140186d2f
add rcx, 0x5fc8
call fcn.1401a0ac0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14018cde0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1404e2e80]
mov edi, ecx
cmp byte [rbx + 0x4d21], 0
jne 0x14018ce32
cmp byte [rbx + 0x4d22], 0
jne 0x14018ce32
movsx r9d, word [rbx + 0x5e68]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1401a2110
test dil, 2
je 0x14018cf5f
jmp 0x14018cebd
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e68]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14025d860]
mov edx, reloc.WS2_32.dll_recv
mulss xmm1, dword [0x14025d84c]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x4a00], rax
mov dword [rbx + 0x49ec], 1
movss dword [rbx + 0x49f8], xmm0
movss dword [rbx + 0x49fc], xmm1
movss xmm0, dword [rbx + 0x3a2c]
mulss xmm0, dword [0x14025d6f0]
or dword [rbx + 0x49e8], 0x41
movss dword [rbx + 0x4a48], xmm0
call fcn.1401a2110
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14018cf10
lea r11, [0x1402546c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14018cef3
cmp byte [r8], r9b
jne 0x14018cef3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14018cee0
not ecx
call fcn.1401984c0
test rax, rax
je 0x14018cf5f
cmp byte [rax + 0xbe], 0
je 0x14018cf5f
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, reloc.WS2_32.dll_recv
inc word [rbx + 0x5e68]
movsx r9d, word [rbx + 0x5e68]
call fcn.1401a2110
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.140192fe0
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret