joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001deb0
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.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dfb0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400203f0
cmp esi, dword [rbx + 0x48]
jae 0x14001df30
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.140020430
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 0x14001dfbd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001dfbd
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 0x14001deff
call fcn.14001d160
mov rbx, rax
jmp 0x14001deea
mov rcx, r13
call fcn.140020430
mov eax, 0xc
jmp 0x14001df1d

Function at 0x14001e040
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e068
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001d160
test rax, rax
jne 0x14001e05a
add rsp, 0x28
ret

Function at 0x14001e0d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e0f8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001d160
test rax, rax
jne 0x14001e0ea
jmp 0x14001e0ee

Function at 0x14001e210
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002ace8]
test eax, eax
jne 0x14001e228
xor eax, eax
add rsp, 0x28
ret
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e258
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001e21e
test byte [rax + 0x40], 3
je 0x14001e21e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001e220
call fcn.14001d160
test rax, rax
jne 0x14001e23e
jmp 0x14001e21e

Function at 0x14001e270
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e2b0
test ebx, ebx
jle 0x14001e2a0
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.14001d160
test rax, rax
jne 0x14001e28d
add rsp, 0x20
pop rbx
ret
Function at 0x14001e3a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e418
test byte [rbx + 0x40], 0xc
jne 0x14001e3cf
mov eax, dword [0x14002ace8]
test eax, eax
jne 0x14001e3e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c310
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001e403
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001e403
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001e42c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c600
call fcn.14001d160
mov rbx, rax
test rax, rax
jne 0x14001e3bf
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 0x14001e44a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c600
call fcn.14001e2c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001e4d0
call fcn.14001f580
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001e508
call fcn.14001d0b0
mov ecx, dword [0x140022338]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e560
test esi, esi
je 0x14001e4e6
call fcn.14001e3a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e540
mov edx, edi
call fcn.14001f630
call fcn.14001e3a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e550
call fcn.14001e3a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e3a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d0b0
mov ecx, dword [0x140022338]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001e4a5
call fcn.14001d160
mov rbx, rax
jmp 0x14001e4a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e4be
call fcn.14001d160
jmp 0x14001e4e6
call fcn.14001d160
mov rbx, rax
jmp 0x14001e4a1
Function at 0x14001e460
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e418
test byte [rbx + 0x40], 0xc
jne 0x14001e3cf
mov eax, dword [0x14002ace8]
test eax, eax
jne 0x14001e3e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c310
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001e403
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001e403
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001e42c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c600
call fcn.14001d160
mov rbx, rax
test rax, rax
jne 0x14001e3bf
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 0x14001e44a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c600
call fcn.14001e2c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001e4d0
call fcn.14001f580
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001e508
call fcn.14001d0b0
mov ecx, dword [0x140022338]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e560
test esi, esi
je 0x14001e4e6
call fcn.14001e3a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e540
mov edx, edi
call fcn.14001f630
call fcn.14001e3a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e550
call fcn.14001e3a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e3a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d0b0
mov ecx, dword [0x140022338]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001e4a5
call fcn.14001d160
mov rbx, rax
jmp 0x14001e4a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e4be
call fcn.14001d160
jmp 0x14001e4e6
call fcn.14001d160
mov rbx, rax
jmp 0x14001e4a1

Function at 0x14001e570
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001d0b0
mov ecx, dword [0x140022338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e5e0
test esi, esi
je 0x14001e5c0
call fcn.14001e3a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e5f0
mov edx, esi
call fcn.14001f630
call fcn.14001e3a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001e3a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e3a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001d160
mov rbx, rax
jmp 0x14001e591
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e5aa
Function at 0x140002bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x140002bdb
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140002be2
mov al, 1
jmp 0x140002d3c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1400035c0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1400035c0
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1400035d0
movzx eax, al
test eax, eax
je 0x140002c39
xor al, al
jmp 0x140002d3c
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140002ca9
cmp dword [rsp + 0x30], 1
je 0x140002cb5
cmp dword [rsp + 0x30], 3
je 0x140002d2a
jmp 0x140002d3a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140002d01
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140002d01
xor al, al
jmp 0x140002d3c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140002d1b
mov dword [rsp + 0x34], 1
jmp 0x140002d23
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140002d3c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140002d3c
xor al, al
add rsp, 0xa8
ret
Function at 0x140004560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140004585
xor eax, eax
jmp 0x14000474b
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1400045ae
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000474b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14000464d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140001df0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140003540
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14000473b
mov rcx, qword [rsp + 0x70]
call fcn.140003100
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400046ee
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400046ec
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14000474b
jmp 0x140004673
cmp qword [rsp + 0x20], 0
jbe 0x14000473b
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x140004750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140004789
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140004877
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x14000481f
cmp qword [rsp + 0x20], 0
jle 0x14000481f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400047c9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140003540
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140004867
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140004867
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140007970
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1400079e7
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1400079e7
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400079e5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400079f4
jmp 0x1400079a9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x278
ret

Function at 0x140007a80
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
lea rax, str.MySection
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x160]
call fcn.140003570
mov qword [rsp + 0x38], rax
lea rax, str.C:HPGdwm.ini
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x50]
lea r8, [0x1403d6617]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x160]
call fcn.140002540
mov rax, qword [rsp + 0x48]
add rsp, 0x158
ret
Function at 0x14000a7e4
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x1403dc048]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rsi, r9
xor ecx, ecx
mov r14, r8
movzx edi, dx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov rcx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll_srand
movzx edx, di
mov rcx, rbx
call fcn.14000ba30
test al, al
je 0x14000ba11
cmp byte [0x1403dc5a8], 0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
jne 0x14000b863
lea rcx, [0x1403e2120]
mov byte [0x1403dc5a8], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [reloc.WS2_32.dll_closesocket], 3
jne 0x14000b87a
sar byte [0x1403dc050], 2
mov byte [reloc.WS2_32.dll_closesocket], 0x30
lea rcx, [0x1403e1fe0]
sub rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14000b890
mov word [0x1403e1fc6], di
mov rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x14000b8b0
movzx eax, word [r14]
lea rcx, [rsp + 0x20]
xor edx, edx
mov byte [rsp + 0x22], 0
mov word [rsp + 0x20], ax
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx ecx, word [r14 + 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov edi, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx ecx, word [r14 + rbp - 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov ebx, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
xor eax, ebx
mov r8, rbp
movzx ecx, al
mov rdx, r14
movzx eax, dil
xor ecx, eax
mov dword [0x1403e1d84], ecx
lea ebx, [rcx + rcx]
mov r12d, ebx
lea rcx, [0x1403e1c80]
add r12, 2
sub r8, r12
call fcn.140010dab
xor edi, edi
mov r15d, ebx
mov ebx, edi
test r15, r15
je 0x14000b990
sub r14, r12
lea r12, [0x1403e1da0]
nop word [rax + rax]
lea rax, [r14 + rbx]
xor edx, edx
movzx ecx, word [rax + rbp]
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
xor al, dil
add rbx, 2
mov byte [rdi + r12], al
inc rdi
cmp rbx, r15
jb 0x14000b960
mov r15, qword [rsp + 0x30]
lea rcx, [0x1403e1b60]
mov r12, qword [rsp + 0x38]
sub rcx, rsi
mov rbp, qword [rsp + 0x40]
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x14000b9b0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x14000b9f0
lea rdx, [0x1403e1ec0]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14000b9e0
mov al, 1
mov byte [0x1403e1fc4], al
mov edx, 8
movzx eax, byte [0x1403e1b4c]
test al, al
mov ecx, eax
mov al, 1
cmove ecx, edx
mov byte [0x1403e1b4c], cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140010ab0
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000ba30
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1403dc048]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx edi, dx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000bac6
mov qword [rsp + 0x1f0], rsi
movzx ecx, di
mov esi, 2
mov word [0x1403e20f0], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [0x1403e20f4]
mov rdx, rbx
mov ecx, esi
mov word [0x1403e20f2], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
xor r8d, r8d
lea edx, [rsi - 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, qword [rsp + 0x1f0]
mov qword [0x1403e2100], rax
cmp rax, 0xffffffffffffffff
je 0x14000bac6
mov al, 1
jmp 0x14000bad3
mov qword [0x1403e2100], 0
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140010ab0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x14000bb00
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
movsxd rbx, edx
mov rcx, qword [0x1403e2100]
test rcx, rcx
jne 0x14000bb6a
movzx edx, word [0x1403e1fc6]
test dx, dx
je 0x14000bb6a
lea rcx, [0x1403e1fe0]
call fcn.14000ba30
mov rcx, qword [0x1403e2100]
test al, al
jne 0x14000bb6a
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, 0xffffffffffffffff
mov qword [0x1403e2100], 0
mov dword [0x1403e20e4], ebx
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rsi
lea rdx, [0x1403e20f0]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1403e20e4], eax
cmp eax, 0xffffffff
jne 0x14000bc13
mov rsi, qword [0x1403e2100]
test rsi, rsi
jne 0x14000bc1a
movzx edx, word [0x1403e1fc6]
test dx, dx
je 0x14000bc1a
lea rcx, [0x1403e1fe0]
call fcn.14000ba30
mov rcx, qword [0x1403e2100]
test al, al
je 0x14000bbe3
lea r8d, [rsi + 0x10]
lea rdx, [0x1403e20f0]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1403e20e4], eax
cmp eax, 0xffffffff
jne 0x14000bc13
mov rcx, qword [0x1403e2100]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov dword [0x1403e20e4], ebx
xor al, al
mov qword [0x1403e2100], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [0x1403e2100]
test ebx, ebx
jne 0x14000bc2e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14000bc25
lea rcx, [0x1403e2120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x30]
mov al, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret