joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400392d9
Capabilities:
Connect socket

Disassembly:
jmp 0x1400a0d39
jmp qword [sym.imp.WS2_32.dll_connect]

Function at 0x140039487
Capabilities:
Terminate process

Disassembly:
jmp 0x1400a3380
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400396fd
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x14004e6c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x1400d7080]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x1400e613b]
call fcn.14003a4cc
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call fcn.140039577
test eax, eax
je 0x14004e73d
mov rax, qword [rbp + 0x3b0]
add rax, 0xd0
mov edx, 1
mov rcx, rax
call fcn.140039031
nop
xor al, al
jmp 0x14004e885
xor r8d, r8d
mov edx, 1
mov rax, qword [rbp + 0x3b0]
mov ecx, dword [rax + 0xd4]
call fcn.140038b09
mov rcx, qword [rbp + 0x3b0]
mov qword [rcx + 0xd8], rax
mov rax, qword [rbp + 0x3b0]
cmp qword [rax + 0xd8], 0xffffffffffffffff
jne 0x14004e798
mov rax, qword [rbp + 0x3b0]
add rax, 0xd0
mov edx, 2
mov rcx, rax
call fcn.140039031
nop
xor al, al
jmp 0x14004e885
mov rax, qword [rbp + 0x3b0]
add rax, 0x80
mov rcx, rax
call fcn.140038334
mov rcx, rax
call fcn.14003a2ec
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
jne 0x14004e7e8
mov rax, qword [rbp + 0x3b0]
add rax, 0xd0
mov edx, 3
mov rcx, rax
call fcn.140039031
nop
xor al, al
jmp 0x14004e885
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x1c8]
mov rcx, qword [rcx + 0x18]
mov r8d, 4
mov rdx, qword [rcx + rax]
lea rcx, [rbp + 0x1ec]
call fcn.1400391cb
nop
mov rax, qword [rbp + 0x3b0]
movzx ecx, word [rax + 0x50]
call fcn.14003a134
mov word [rbp + 0x1ea], ax
mov rax, qword [rbp + 0x3b0]
movzx eax, word [rax + 0xd4]
mov word [rbp + 0x1e8], ax
mov r8d, 0x10
lea rdx, [rbp + 0x1e8]
mov rax, qword [rbp + 0x3b0]
mov rcx, qword [rax + 0xd8]
call fcn.1400392d9
cmp eax, 0xffffffff
jne 0x14004e883
mov rax, qword [rbp + 0x3b0]
add rax, 0xd0
mov edx, 4
mov rcx, rax
call fcn.140039031
nop
xor al, al
jmp 0x14004e885
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400b4b30]
call fcn.140039e3c
mov rax, rdi
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.1400391b7
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x140039923
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400a4710
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400a4730
xor al, al
jmp 0x1400a47b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400a4743
xor al, al
jmp 0x1400a47b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400a476d
xor al, al
jmp 0x1400a47b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400a4781
xor al, al
jmp 0x1400a47b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400a4793
xor al, al
jmp 0x1400a47b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400a47af
xor al, al
jmp 0x1400a47b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400a2520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14003a652
movzx eax, al
test eax, eax
jne 0x1400a2540
mov ecx, 7
call fcn.140039e64
nop
mov byte [rsp + 0x20], 0
call fcn.140039f0e
mov byte [rsp + 0x21], al
cmp dword [0x1400d7bd0], 1
jne 0x1400a2564
mov ecx, 7
call fcn.140039e64
nop
jmp 0x1400a25bc
cmp dword [0x1400d7bd0], 0
jne 0x1400a25b7
mov dword [0x1400d7bd0], 1
lea rdx, [0x1400b3788]
lea rcx, [0x1400b3458]
call fcn.14003916c
test eax, eax
je 0x1400a2598
mov eax, 0xff
jmp 0x1400a26c1
lea rdx, [0x1400b3348]
lea rcx, [section..rdata]
call fcn.140039eeb
mov dword [0x1400d7bd0], 2
jmp 0x1400a25bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140039dfb
call fcn.140039a31
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400a2619
mov rcx, qword [rsp + 0x30]
call fcn.140038e7e
movzx eax, al
test eax, eax
je 0x1400a2619
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1400e8020]
nop
call fcn.140039bcb
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400a264d
mov rcx, qword [rsp + 0x38]
call fcn.140038e7e
movzx eax, al
test eax, eax
je 0x1400a264d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14003a391
nop
call fcn.1400a2730
mov dword [rsp + 0x28], eax
call fcn.140039923
movzx eax, al
test eax, eax
jne 0x1400a266c
mov ecx, dword [rsp + 0x28]
call fcn.1400382c6
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400a267b
call fcn.14003a409
nop
xor edx, edx
mov cl, 1
call fcn.140038ded
mov eax, dword [rsp + 0x28]
jmp 0x1400a26c1
add rsp, 0x68
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100136000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x14007aa3c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140098220], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140098230]
jne 0x14007aa89
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140098258], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140098220], 1
mov ecx, dword [0x140098258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14007ab5e
mov rcx, qword [0x140096d1c]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14007ab89
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140098228]
test rax, rax
je 0x14007aad9
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140098228], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14007aba4]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140098258]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140096d1c]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14007ab89
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x1400a3520
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400d48f0], rbx
je 0x1400a3587
cmp rax, rbx
jne 0x1400a357a
mov ebx, 1
mov esi, ebx
jmp 0x1400a358c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400a355f
mov ebx, 1
mov eax, dword [0x1400d48f8]
cmp eax, ebx
jne 0x1400a35a4
mov edi, 0x1f
mov ecx, edi
call fcn.14017a000
jmp 0x1400a3610
mov eax, dword [0x1400d48f8]
test eax, eax
jne 0x1400a3605
mov dword [0x1400d48f8], ebx
lea r15, [0x1400ac580]
lea rdi, [0x1400ac568]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400a35f7
test eax, eax
jne 0x1400a35fb
cmp qword [rdi], r14
je 0x1400a35ec
mov rax, qword [rdi]
mov rcx, qword [case.0x1400688bc.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400a35ce
test eax, eax
je 0x1400a360b
mov eax, 0xff
jmp 0x1400a3766
mov dword [0x1400d26f0], ebx
mov edi, 0x1f
mov eax, dword [0x1400d48f8]
cmp eax, ebx
jne 0x1400a3637
lea rdx, [0x1400ac560]
lea rcx, [0x1400ac3f8]
call sub.msvcrt.dll__initterm
mov dword [0x1400d48f8], 2
test esi, esi
jne 0x1400a3645
mov rax, r14
xchg qword [0x1400d48f0], rax
cmp qword [0x1400d4910], r14
je 0x1400a3678
lea rcx, [0x1400d4910]
call fcn.1400a4070
test eax, eax
je 0x1400a3678
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400d4910]
mov r9, qword [case.0x1400688bc.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400a3691
mov eax, 0xff
jmp 0x1400a3766
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400a3717
test ax, ax
je 0x1400a36ac
test edx, edx
jne 0x1400a3717
sub ax, bx
cmp ax, di
ja 0x1400a36c2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400a36ac
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000386c
mov dword [0x1400d26ec], eax
cmp dword [0x1400d2710], r14d
jne 0x1400a3700
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400d26f0], r14d
jne 0x1400a3715
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400d26ec]
jmp 0x1400a3766
cmp ax, 0x22
jne 0x1400a372b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400a369a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400a399c
add rsp, 0x28
jmp 0x1400a3520
Function at 0x140001710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400078b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400078b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001d0a4]
mov rbx, rcx
test esi, esi
jle 0x1400018b0
mov rax, qword [0x14001d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021f0
mov rdi, rax
test rax, rax
je 0x1400018d2
mov rax, qword [0x14001d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000184e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001860
add dword [0x14001d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x14001d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001d0e0]
test rbx, rbx
je 0x140001ebc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001eb3
test eax, eax
jne 0x140001eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140016e80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140016e80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140016e80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002600
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140016e50]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140002638
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400026a0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x1400026b0
mov esi, dword [0x14001d188]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140002708
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140002750
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140002627
mov rcx, rbx
call fcn.140002560
mov qword [rsi + r12*8 + 8], rax
jmp 0x140002627
call fcn.140002560
mov qword [rbx + 0x10], rax
jmp 0x140002627
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400027e1
mov r9d, dword [0x140015030]
test r9d, r9d
je 0x140002809
lea rcx, [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400027ee
mov eax, dword [rsi]
test eax, eax
je 0x140002641
lea rcx, [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002641
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140002844
mov qword [rax], rdi
mov ecx, dword [0x14001d188]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000267b
call r13
jmp 0x14000267b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140002844
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14000272b
lea rcx, [0x14001d1a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000283c
lea rdx, [0x140002510]
mov ecx, eax
mov dword [0x14001d188], eax
call fcn.140007fe0
test eax, eax
jne 0x140002844
mov dword [0x140015030], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400026cc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140002641
mov rax, qword [0x14001d180]
lea r12, [rax + 1]
mov qword [0x14001d180], r12
mov qword [rbx + 0x10], r12
jmp 0x1400026e6
lock add dword [0x140015034], 1
je 0x140002799
mov r8d, dword [0x140015030]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140015030]
test r8d, r8d
jne 0x1400027d7
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140002830
jmp 0x1400027d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400027c9
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
cmp qword [rcx], rdx
jae 0x140002860
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000286a
mov qword [rcx + 8], r8
test r9, r9
je 0x140002874
cmp qword [rcx], rdx
je 0x140002878
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14000b7a0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x140015900]
xor ebx, ebx
lea r14, [0x140015740]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.1400078b0]
mov ecx, 1
cmp rbx, rdi
jl 0x14000b826
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400161c9]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.1400146e0
mov rcx, r14
call fcn.140002600
cmp byte [rax], 0
jne 0x14000b858
inc rbx
jmp 0x14000b7d9
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140011390
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rsi
mov r9, rbx
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret