joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400511f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x4b0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140051241
cmp qword [rdx + 0x90], 0
je 0x140051241
xor r9d, r9d
lea r8, [0x14000a198]
call fcn.1400651a0
mov r8d, eax
test eax, eax
jne 0x14005124b
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.14004f5b0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140050ec0
add rsp, 0x20
pop rbx
ret

Function at 0x140051510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x140051560
mov r9, qword [rdx + 0x540]
test r9, r9
je 0x140051560
lea r8, [0x14000a1a0]
add rdx, 0x4b0
call fcn.1400651a0
mov r8d, eax
test eax, eax
jne 0x14005156a
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.14004f5b0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400511f0
add rsp, 0x20
pop rbx
ret

Function at 0x1400517c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xb1c], 0
mov r10, rcx
mov r11, qword [rcx + 0x18]
je 0x14005181c
cmp qword [r11 + 0x540], 0
je 0x14005181c
movzx edx, byte [rcx + 0x1368]
mov rcx, r11
call fcn.14004f9c0
test eax, eax
je 0x14005181c
mov rax, qword [r10 + 0x1b0]
mov r9d, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1368]
add rsp, 0x28
jmp fcn.14004f920
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.140051510

Function at 0x140051830
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14005186c
lea rdx, [0x14000a498]
call fcn.140034b00
lea eax, [rdi + 0x11]
jmp 0x1400518c4
cmp edx, 0xc8
je 0x140051883
mov r8d, edx
lea rdx, [0x14000a4b8]
call fcn.140034be0
cmp esi, 0x13
jne 0x140051895
mov rdx, rbp
mov rcx, rbx
call fcn.140051510
jmp 0x1400518c0
cmp esi, 0x14
jne 0x1400518a4
mov rcx, rbx
call fcn.140050460
jmp 0x1400518c0
cmp esi, 0x15
jne 0x1400518b3
mov rcx, rbx
call fcn.140051500
jmp 0x1400518c0
cmp esi, 0x16
jne 0x1400518c2
mov rcx, rbx
call fcn.140051710
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140058250
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1400582d1
sub r8d, 1
je 0x1400582a8
cmp r8d, 1
jne 0x1400582e5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400582c9
cmp ecx, r8d
jne 0x1400582e5
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.140058470
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400582c9
cmp ecx, 1
jne 0x1400582e5
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.140058470
ret

Function at 0x1400582f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x140058394
sub r8d, 2
je 0x14005834d
cmp r8d, 1
jne 0x140058386
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140058340
cmp ecx, r8d
jne 0x140058386
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140058387
cmp ecx, 1
jne 0x140058386
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.140058470
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x140058379
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.140058470

Function at 0x1400583c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14005844d
sub r8d, 1
je 0x14005841e
cmp r8d, 1
jne 0x140058464
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140058442
cmp ecx, r8d
jne 0x140058464
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.140058470
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140058442
cmp ecx, 1
jne 0x140058464
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.140058470
ret
Function at 0x140058470
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1f0]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400584cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x14000bbd8]
mov rcx, rbx
mov r8d, eax
call fcn.140034b00
mov r9d, edi
lea rdx, [0x14000bbf4]
mov r8d, esi
mov rcx, rbx
call fcn.140057c60
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140058820
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x140058873
test r9d, r9d
je 0x14005885d
sub r9d, 2
je 0x140058885
cmp r9d, r8d
jne 0x1400588b3
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x1400588b3
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.140058470
sub r9d, 1
je 0x14005889d
sub r9d, 1
je 0x140058845
cmp r9d, 1
jne 0x1400588b3
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x1400588b3
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.140058470
ret

Function at 0x1400588c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x140058919
test r9d, r9d
je 0x140058900
sub r9d, 2
je 0x14005892b
cmp r9d, r8d
jne 0x14005895c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14005895c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.140058470
sub r9d, 1
je 0x140058943
sub r9d, 1
je 0x1400588e8
cmp r9d, 1
jne 0x14005895c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14005895c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.140058470
ret
Function at 0x140059b30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x4b0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x140059bc9
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.140096ae0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x140059c2a
lea rdx, [0x14000c310]
mov rcx, rsi
call fcn.140034b00
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.140059670
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x140059c5b.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x59d74]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x140059c5b.4
mov rcx, r14
call fcn.140059650
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x140059c5b.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.140034a20
mov ebx, eax
test eax, eax
je 0x140059cb6
mov edx, 5
mov rcx, rdi
call fcn.14005a5e0
mov eax, ebx
jmp 0x140059bfe
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140044230
jmp case.0x140059c5b.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.140059650
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14005a6f0
cmp rax, rbx
jae case.0x140059c5b.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, [0x14000c330]
call fcn.140034be0
jmp case.0x140059c5b.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.140059890
test eax, eax
je case.0x140059c5b.4
jmp 0x140059bfe
lea r8, [0x14000c340]
mov rcx, rsi
lea rdx, [0x140004c10]
call fcn.140034b00
mov rcx, rsi
call fcn.1400444d0
test eax, eax
je 0x140059bfc
mov edx, 5
mov rcx, rdi
call fcn.14005a5e0
mov eax, Ordinal_46
jmp 0x140059bfe
Function at 0x14005bc50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140001120]
mov rdi, rax
test rax, rax
je 0x14005bccd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14005bcf8
cmp ebx, esi
je 0x14005bcf8
cmp ebx, 0x8000
ja 0x14005bcf8
cmp ebx, esi
jb 0x14005bcf3
mov edx, ebx
mov rcx, rdi
call qword [fcn.140001120]
mov rdi, rax
test rax, rax
jne 0x14005bc90
mov rcx, rbp
call qword [fcn.140001118]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14005bcd8
mov rcx, rdi
jmp 0x14005bcd0
jmp 0x14005bc50

Function at 0x14005bd00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140001120]
mov rdi, rax
test rax, rax
je 0x14005bccd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14005bcf8
cmp ebx, esi
je 0x14005bcf8
cmp ebx, 0x8000
ja 0x14005bcf8
cmp ebx, esi
jb 0x14005bcf3
mov edx, ebx
mov rcx, rdi
call qword [fcn.140001120]
mov rdi, rax
test rax, rax
jne 0x14005bc90
mov rcx, rbp
call qword [fcn.140001118]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14005bcd8
mov rcx, rdi
jmp 0x14005bcd0
jmp 0x14005bc50
Function at 0x140067bb0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140067c7c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.140067cf0
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.140069160
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x140067c80
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x140067cca
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400692b0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140068290
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.140001110]
mov rdi, rax
test rax, rax
jne 0x1400682d2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140068319
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140068372
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140068330
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400683b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14000d848]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14000d849]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140068380
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006a028
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14006f1eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f1eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f1eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f1eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f1eb
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f1eb
cmp dword [rcx + 0xf8], 0
je 0x14006f1eb
mov ecx, ebx
call fcn.14006f29c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14006f078
nop
cmp dword [rbp + 0x20], 0
je 0x14006f239
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006f244
int3
xor r8d, r8d
xor edx, edx
jmp 0x14006f17c

Function at 0x14006f380
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14006f1eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f1eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f1eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f1eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f1eb
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f1eb
cmp dword [rcx + 0xf8], 0
je 0x14006f1eb
mov ecx, ebx
call fcn.14006f29c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14006f078
nop
cmp dword [rbp + 0x20], 0
je 0x14006f239
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006f244
int3
xor r8d, r8d
xor edx, edx
jmp 0x14006f17c
Function at 0x14007f36c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140001180]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140010670]
mov rbp, rcx
call fcn.14007df3c
xor edi, edi
test rax, rax
je 0x14007f452
mov ebx, edi
call fcn.140070830
mov r14d, dword [rax]
call fcn.140070830
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14008ce80
mov rsi, rax
test rax, rax
je 0x14007f3e3
call fcn.140070830
mov dword [rax], r14d
jmp 0x14007f40d
call fcn.140070830
cmp dword [rax], 0x22
jne 0x14007f44a
call fcn.140070830
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14008ce80
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14007f44a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14007f411
cmp rax, 3
je 0x14007f42c
mov rcx, rsi
call fcn.14007f2c8
test al, al
je 0x14007f43d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14007f43d
mov dil, 1
mov rcx, rbx
call fcn.140070850
mov al, dil
jmp 0x14007f454
mov rcx, rbx
call fcn.140070850
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400692b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14007faa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14007fad7
call fcn.140070830
mov dword [rax], socket
call fcn.140070d48
xor eax, eax
jmp 0x14007fb65
mov rdx, r9
mov rcx, r8
call fcn.14007fa3c
mov rbx, rax
test rax, rax
je 0x14007fb62
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14007f968]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14007fb4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400707a4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007fb36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14007fb45
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140085ae0
jmp 0x14007fb62
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007fb5f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140083690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a0440]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400836e7
cmp word [rdx], r13w
jne 0x1400836e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400836ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140083811
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140083832
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140083725
mov rdx, r9
mov word [rbx], cx
jmp 0x14008374c
cmp r9, r8
jae 0x14008375c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140083706
jmp 0x140083811
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140083806
cmp dword [rsp + 0x80], esi
je 0x140083806
lea r8, [0x1400a0440]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400837de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400837ae
mov word [rbx], r13w
jmp 0x14008380e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400837bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008380e
cmp word [rsp + 0x70], r13w
jne 0x1400837eb
cmp rbx, r14
je 0x1400837a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140080268
cmp word [rsp + 0x70], r13w
je 0x140083811
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a0440]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008380b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140083811