joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014380
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14003ad10], 1
je 0x1400143f8
lea rdi, [0x14003ad10]
mov rcx, rdi
call fcn.140013c60
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400135e0
mov esi, dword [0x14003ad10]
test esi, esi
jne 0x140014408
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14002b1f8], eax
cmp eax, 0xffffffff
je 0x14002aae6
mov dword [0x14003ad10], 1
mov rcx, rbp
call fcn.1400138d0
test rbx, rbx
je 0x1400143f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140014000
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400143d8
mov ecx, 2
call qword [fcn.140012e20]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400143d8
call sub.msvcrt.dll_abort
nop

Function at 0x140014430
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140014110
cmp qword [0x14003d048], 0
mov rbx, rax
je 0x140014548
test rax, rax
je 0x140014548
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400177e0
cmp eax, 1
je 0x140014556
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14002aaec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14002b1f8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001455c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140013ee0
nop
jmp fcn.14002aaec

Function at 0x140014570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140014590
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140014430
Function at 0x140015180
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015280
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400177f0
cmp esi, dword [rbx + 0x48]
jae 0x140015200
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140017830
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001528d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001528d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400151cf
call fcn.140014430
mov rbx, rax
jmp 0x1400151ba
mov rcx, r13
call fcn.140017830
mov eax, 0xc
jmp 0x1400151ed

Function at 0x140015310
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015338
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140014430
test rax, rax
jne 0x14001532a
add rsp, 0x28
ret

Function at 0x1400153a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400153c8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140014430
test rax, rax
jne 0x1400153ba
jmp 0x1400153be

Function at 0x1400154e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14003ad18]
test eax, eax
jne 0x1400154f8
xor eax, eax
add rsp, 0x28
ret
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015528
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400154ee
test byte [rax + 0x40], 3
je 0x1400154ee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400154f0
call fcn.140014430
test rax, rax
jne 0x14001550e
jmp 0x1400154ee

Function at 0x140015540
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015580
test ebx, ebx
jle 0x140015570
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140014430
test rax, rax
jne 0x14001555d
add rsp, 0x20
pop rbx
ret
Function at 0x140015670
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400156e8
test byte [rbx + 0x40], 0xc
jne 0x14001569f
mov eax, dword [0x14003ad18]
test eax, eax
jne 0x1400156b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400135e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400156d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400156d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400156fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400138d0
call fcn.140014430
mov rbx, rax
test rax, rax
jne 0x14001568f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001571a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400138d0
call fcn.140015590
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400157a0
call fcn.140016980
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400157d8
call fcn.140014380
mov ecx, dword [0x14002b1f8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015830
test esi, esi
je 0x1400157b6
call fcn.140015670
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015810
mov edx, edi
call fcn.140016a30
call fcn.140015670
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015820
call fcn.140015670
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140015670
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014380
mov ecx, dword [0x14002b1f8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140015775
call fcn.140014430
mov rbx, rax
jmp 0x140015775
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001578e
call fcn.140014430
jmp 0x1400157b6
call fcn.140014430
mov rbx, rax
jmp 0x140015771
Function at 0x140015730
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400156e8
test byte [rbx + 0x40], 0xc
jne 0x14001569f
mov eax, dword [0x14003ad18]
test eax, eax
jne 0x1400156b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400135e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400156d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400156d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400156fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400138d0
call fcn.140014430
mov rbx, rax
test rax, rax
jne 0x14001568f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001571a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400138d0
call fcn.140015590
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400157a0
call fcn.140016980
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400157d8
call fcn.140014380
mov ecx, dword [0x14002b1f8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015830
test esi, esi
je 0x1400157b6
call fcn.140015670
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015810
mov edx, edi
call fcn.140016a30
call fcn.140015670
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015820
call fcn.140015670
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140015670
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014380
mov ecx, dword [0x14002b1f8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140015775
call fcn.140014430
mov rbx, rax
jmp 0x140015775
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001578e
call fcn.140014430
jmp 0x1400157b6
call fcn.140014430
mov rbx, rax
jmp 0x140015771

Function at 0x140015840
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140014380
mov ecx, dword [0x14002b1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400158b0
test esi, esi
je 0x140015890
call fcn.140015670
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400158c0
mov edx, esi
call fcn.140016a30
call fcn.140015670
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140015670
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140015670
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014430
mov rbx, rax
jmp 0x140015861
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001587a
Function at 0x14001a0d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
movabs rsi, 0x657220677562206c
movabs rbx, 0x6c75662074696d62
movabs r9, 0x756f6e6520746f6e
movabs r10, 0x6563617073206867
movabs r11, 0x726f6620726f6620
movabs r12, 0x617078652074616d
movabs r14, 0x5028206e6f69736e
movabs r15, 0x757320657361656c
mov qword [rbp - 0x38], rsi
sub rdx, rcx
movabs rsi, 0x2f2f3a7370747468
mov qword [rbp - 0x40], rbx
lea rax, [rdx + 0x78]
movabs rbx, 0x2074612074726f70
mov qword [rbp - 0x28], rsi
and rax, 0xfffffffffffffff0
movabs rsi, 0x736775622f67726f
mov qword [rbp - 0x18], rsi
movabs rsi, 0x202020200a3a29
mov qword [rbp - 0x30], rbx
movabs rbx, 0x2e756e672e636367
mov qword [rbp - 0x20], rbx
movabs rbx, 0x2f736775622f6772
mov qword [rbp - 0xf], rsi
mov rsi, rdx
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x68], r10
mov qword [rbp - 0x60], r11
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x17], rbx
call fcn.14000d4f0
movabs rdx, 0x657220677562206c
movdqa xmm0, xmmword [rbp - 0x20]
sub rsp, rax
mov r8, rsi
movabs rax, 0x6c75662074696d62
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x20]
movabs rax, 0x2074612074726f70
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x58], rdx
movabs rdx, 0x2f2f3a7370747468
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x68], rdx
mov rdx, rcx
mov rcx, rax
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
movaps xmmword [rsp + 0x70], xmm0
call sub.msvcrt.dll_memcpy
mov rcx, rbx
mov byte [rsp + rsi + 0x88], 0
call fcn.14002a530
nop
nop
nop
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x14002b2e0], 0
jne 0x14001a1d3
mov byte [0x14002b2e0], 1
call fcn.140029d00
test rax, rax
je 0x14001a1a8
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call fcn.14000c300
mov ecx, 2
mov rsi, qword [fcn.140012e20]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sub.msvcrt.dll_fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001a199
call rsi
mov rcx, rbx
mov rdx, rax
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14002c1d1]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14002a397
jmp 0x14002a38f
call rsi
mov rcx, rdi
mov rdx, rax
call sub.msvcrt.dll_fputs
jmp 0x14001a167
mov ecx, 2
call qword [fcn.140012e20]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sub.msvcrt.dll_fwrite
nop
jmp 0x14002a38a
mov ecx, 2
call qword [fcn.140012e20]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x14002a320
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140029ca5
call fcn.140029c00
movabs rax, 0xb8b1aabcbcd4d500
add rax, qword [rbx]
cmp rax, 1
jbe 0x140029caa
call fcn.140029440
mov rcx, qword [rbx - 0x38]
call fcn.1400192d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.140029c00
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.1400192f0
mov rcx, rax
jmp 0x14002a210
call fcn.140029c00
call fcn.140029e50
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x14002a297
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.140018ec0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.140018fb0
test al, al
jne 0x14002a2b5
lea rbx, [0x14002f4e0]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.140018fb0
test al, al
je 0x14002a2ba
mov ecx, 8
call fcn.140029b90
lea r8, [0x1400212f0]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x14002ef70]
add rax, 0x10
mov qword [rcx], rax
call fcn.140029f10
add rbx, 0x90
jmp 0x14002a226
call fcn.140029ec0
mov rcx, rdi
call fcn.1400192d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.140029c00
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.140029b90
lea r8, [fcn.140029290]
lea rdx, [0x14002f5c0]
mov rcx, rax
mov rax, qword [0x14002efe0]
add rax, 0x10
mov qword [rcx], rax
call fcn.140029f10
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x14002a39c
call fcn.140029c00
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.140029d30
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.1400133e8
call fcn.140029ec0
call fcn.140029c00
call fcn.140029d30
jmp 0x14002a38a
Function at 0x140002ac8
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140085930]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov qword [r11 - 0x50], rdx
xor edi, edi
mov rax, qword [rdx + 0x10]
lea ebp, [rax + 1]
xor esi, esi
test eax, eax
jle 0x140002b75
movsxd r14, ecx
movsxd r8, edi
or r9, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001b2c8
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002b63
add edi, eax
sub ebp, eax
cmp qword [rsp + 0x48], 0x10
jb 0x140002b5c
mov rcx, qword [rsp + 0x30]
call fcn.14002df20
cmp edi, dword [rbx + 0x10]
jl 0x140002b0b
jmp 0x140002b75
cmp qword [rsp + 0x48], 0x10
jb 0x140002b75
mov rcx, qword [rsp + 0x30]
call fcn.14002df20
xor edi, edi
cmp esi, 0xffffffff
setne dil
cmp qword [rbx + 0x18], 0x10
jb 0x140002b8d
mov rcx, qword [rbx]
call fcn.14002df20
mov qword [rbx + 0x18], select
and qword [rbx + 0x10], 0
mov byte [rbx], 0
lea eax, [rdi - 1]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002b700
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2030
call fcn.14003bc20
sub rsp, rax
mov rax, qword [0x140085930]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rbp, rdx
movsxd rbx, ecx
lea rdx, [0x140072d02]
mov rcx, rbp
xor r8d, r8d
call fcn.14001e444
lea rdx, [rsp + 0x20]
mov rcx, rbx
xor r9d, r9d
mov r8d, 0x1fff
call qword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
movsxd rsi, eax
test eax, eax
jle 0x140002c4e
cmp rsi, 0x2000
jae 0x140002c73
mov byte [rsp + rsi + 0x20], bl
test eax, eax
jle 0x140002c4e
mov r8b, byte [rsp + rbx + 0x20]
mov edx, 1
mov rcx, rbp
call fcn.14001e220
inc rbx
cmp rbx, rsi
jl 0x140002c34
mov eax, esi
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14002b700
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2030
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e048
int3
Function at 0x140002c7c
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x118]
sub rsp, 0x210
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140085930]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x12b
lea rcx, [rbp - 0x2f]
call fcn.14002f000
xor bl, bl
mov byte [rbp - 0x30], bl
mov dword [rsp + 0x30], 0x12c
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140002dfa
mov bl, 1
mov r14d, select
mov qword [rbp - 0x58], r14
and qword [rbp - 0x60], 0
mov byte [rbp - 0x70], 0
cmp byte [rbp - 0x30], 0
jne 0x140002d0b
xor r8d, r8d
jmp 0x140002d1d
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140002d13
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.14001e444
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14001af54
cmp qword [rbp - 0x58], 0x10
jb 0x140002d46
mov rcx, qword [rbp - 0x70]
call fcn.14002df20
lea rax, [rbp - 0x70]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x58], r14
and qword [rbp - 0x60], 0
mov byte [rbp - 0x70], 0
xor r8d, r8d
lea rdx, [0x140072d02]
lea rcx, [rbp - 0x70]
call fcn.14001e444
nop
mov qword [rsp + 0x50], r14
and qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r8d, 1
lea rdx, str.__U_
lea rcx, [rsp + 0x38]
call fcn.14001e444
nop
mov qword [rsp + 0x70], r14
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14001e320
nop
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x50]
call fcn.140001b88
mov rdx, rax
mov rcx, rdi
call fcn.14001af54
cmp qword [rbp - 0x38], 0x10
jb 0x140002e0f
mov rcx, qword [rbp - 0x50]
call fcn.14002df20
jmp 0x140002e0f
mov r8d, 1
lea rdx, [0x140072db8]
mov rcx, rdi
call fcn.14001e444
neg bl
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14002b700
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003770
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x2068
call fcn.14003bc20
sub rsp, rax
mov rax, qword [0x140085930]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbx, rdx
mov eax, 0x10624dd3
mov edi, r8d
movsxd rbp, ecx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
imul r9d
sar edx, 6
mov rcx, rbp
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x38], edx
imul edx, edx, 0x3e8
sub r9d, edx
mov edx, 0x8004667e
imul r9d, r9d, 0x3e8
mov dword [rsp + 0x3c], r9d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_connect]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x14000380a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000380a
mov eax, ebx
jmp 0x140003864
lea rax, [rsp + 0x38]
lea ecx, [rbp + 1]
lea r8, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
je 0x140003806
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140003806
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14002b700
add rsp, 0x2068
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005974
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor ecx, ecx
mov rax, r8
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov dword [rbx + 0x50], 0x67452301
mov dword [rbx + 0x54], 0xefcdab89
mov dword [rbx + 0x58], 0x98badcfe
mov dword [rbx + 0x5c], 0x10325476
cmp qword [rax + 0x18], 0x10
mov r8, qword [r8 + 0x10]
mov rdi, rdx
mov dword [rsp + 0x20], ecx
jb 0x1400059be
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140005654
mov rdx, rdi
mov rcx, rbx
call fcn.14000571c
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14002c060
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14002bec8

Function at 0x14003a000
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003a018
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003a01a
xor eax, eax
test eax, eax
je 0x14003a02a
mov ecx, eax
call fcn.14002d2ac
or eax, 0xffffffff
jmp 0x14003a02c
xor eax, eax
add rsp, 0x28
ret