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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401fbf28]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x248]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14004688a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140023930
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400468af
lea rdx, str.Error_accept__ing_server_connect
call fcn.140022cd0
lea eax, [rbx + 0x1f]
jmp 0x14004692b
lea rdx, str.Connection_accepted_from_server_n
call fcn.140022e50
and dword [rdi + 0x3c4], 0xfffff7ff
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x248], rbx
call fcn.14004f5b0
mov byte [rdi + 0x261], 1
cmp qword [rsi + 0x738], 0
je 0x140046929
mov dl, 1
mov rcx, rsi
call fcn.140012dd0
mov rcx, qword [rsi + 0x740]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x738]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140012dd0
test ebx, ebx
je 0x140046929
mov rcx, rdi
call fcn.140046e50
mov eax, Ordinal_46
jmp 0x14004692b
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000e6b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
test dword [rax + 0xe70], 0x200
jne 0x140047ac8
cmp dword [rax + 0x9f8], 0
je 0x140047af4
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140047af4
lea rdx, str.MDTM__s
call fcn.140055d50
test eax, eax
jne 0x140047b01
mov dword [rbx + 0x854], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140048920
add rsp, 0x20
pop rbx
ret
Function at 0x1400482b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
mov rax, qword [r8 + 0x1f8]
cmp dword [rax + 0x20], 0
je 0x1400482e5
mov r8d, reloc.WS2_32.dll_listen
mov dword [rcx + 0x854], 0xd
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.1400483f0
mov eax, dword [r8 + 0xe70]
bt eax, 0xe
jae 0x1400482fe
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140048e20
test byte [r8 + 0xe74], 1
je 0x14004839d
mov rcx, qword [rcx + 0x820]
test rcx, rcx
jne 0x140048357
mov r8, qword [r8 + 0xbf8]
test r8, r8
jne 0x14004833a
bt eax, 0xd
lea r8, str.LIST
lea rax, str.NLST
cmovb r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.140055d50
test eax, eax
je 0x14004838d
add rsp, 0x20
pop rbx
ret
mov r8, rcx
lea rcx, [rbx + 0x798]
bt eax, 0x19
jae 0x14004837d
lea rdx, str.PRET_STOR__s
call fcn.140055d50
test eax, eax
je 0x14004838d
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140055d50
test eax, eax
jne 0x1400483a7
mov dword [rbx + 0x854], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140048d90
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x20], 0
je 0x14004872d
cmp qword [rcx + 0x820], 0
je 0x14004872d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140055d50
test eax, eax
jne 0x140048737
mov dword [rbx + 0x854], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400482b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x20], 1
jne 0x14004890c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14004890c
lea rdx, str.SIZE__s
call fcn.140055d50
test eax, eax
jne 0x140048919
mov dword [rbx + 0x854], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400486e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov rdx, qword [rcx]
mov r9, rcx
mov ecx, dword [rdx + 0xe70]
bt ecx, 0x18
jae 0x14004897e
cmp qword [r9 + 0x820], 0
je 0x14004897e
movsx eax, byte [r9 + 0x844]
shr ecx, 0xb
not cl
and ecx, 1
shl ecx, 3
or ecx, 0x41
cmp eax, ecx
je 0x14004897e
mov rax, qword [rdx + 0x1f8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
mov edx, dword [rdx + 0xe70]
shr edx, 0xb
and dl, 1
jmp fcn.140047110
mov rcx, r9
jmp fcn.1400488c0
Function at 0x140048990
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x1400489d4
lea rdx, str.Couldnt_set_desired_mode
call fcn.140022cd0
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp edx, 0xc8
je 0x1400489eb
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140022e50
mov qword [rsp + 0x48], rbp
cmp edi, 0x13
jne 0x140048a02
mov rcx, rsi
call fcn.1400488c0
jmp 0x140048b5f
cmp edi, 0x14
jne 0x140048b41
mov rbp, qword [rsi]
mov rax, qword [rbp + 0x1f8]
mov rdi, qword [rax + 0x10]
mov rax, rbx
mov qword [rsp + 0x40], rbx
cmp dword [rbp + 0xb90], 2
jne 0x140048a99
test rdi, rdi
je 0x140048a99
cmp byte [rdi], al
je 0x140048a99
mov edx, Ordinal_50
mov rcx, rdi
call fcn.14005cb1c
test rax, rax
je 0x140048a94
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], bl
jne 0x140048a50
cmp byte [rax + rdi - 1], 0x2f
je 0x140048a6f
mov edx, Ordinal_50
mov rcx, rdi
call fcn.14005cb9c
sub rax, rdi
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x40]
mov r8, rax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, rbp
call fcn.140038bd0
test eax, eax
jne 0x140048b5f
mov rax, qword [rsp + 0x40]
mov rdx, qword [rbp + 0xbf8]
test rdx, rdx
jne 0x140048ac1
test dword [rbp + 0xe70], 0x2000
lea rcx, str.NLST
lea rdx, str.LIST
cmovne rdx, rcx
test rax, rax
lea r8, [0x140088908]
mov r9, r8
lea rcx, reloc.WLDAP32.dll_Ordinal_32
cmovne r8, rcx
cmovne r9, rax
lea rcx, [0x14008b8b0]
call fcn.140031750
mov rbp, rax
test rax, rax
jne 0x140048b01
mov rcx, qword [rsp + 0x40]
call qword [fcn.140060adc]
lea ebx, [rbp + 0x1b]
jmp 0x140048b61
lea rcx, [rsi + 0x798]
mov r8, rbp
lea rdx, [0x14009062c]
call fcn.140055d50
mov rcx, qword [rsp + 0x40]
mov edi, eax
call qword [fcn.140060adc]
mov rcx, rbp
call qword [fcn.140060adc]
test edi, edi
je 0x140048b35
mov ebx, edi
jmp 0x140048b61
mov dword [rsi + 0x854], 0x1f
jmp 0x140048b61
cmp edi, 0x15
jne 0x140048b4c
lea r8d, [rdi - 8]
jmp 0x140048b55
cmp edi, 0x16
jne 0x140048b61
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rsi
call fcn.1400483f0
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400555b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400555d0
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x50], rdi
cmp rbx, rax
ja 0x1400556f4
test rbx, rbx
je 0x140055602
lea rcx, [rbx + rbx]
call qword [fcn.140065f00]
jmp 0x14005560f
lea rcx, [0x140088908]
call qword [str.l_b_]
mov rdi, rax
test rax, rax
je 0x1400556f4
xor ecx, ecx
test rbx, rbx
je 0x140055644
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
mov byte [rdi + rcx*2], al
mov byte [rdi + rcx*2 + 1], 0
inc rcx
cmp rcx, rbx
jb 0x140055630
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400556df
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400556d2
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.140060adc]
xor eax, eax
jmp 0x1400556f9
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x140055710
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401fbf28]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140055847
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.1400594b0
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x14005584b
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x140055890
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000e6b0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005abd0
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.140065f00]
mov rdi, rax
test rax, rax
jne 0x14005ac12
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 0x14005ac59
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 0x14005acb2
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 0x14005ac70
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14005acf3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400972aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400972ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14005acc0
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 0x140060df8
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 0x140060c63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140060c63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140060c63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140060c63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140060c63
cmp dword [rcx + 0x84], 0xe
jbe 0x140060c63
cmp dword [rcx + 0xf8], 0
je 0x140060c63
mov ecx, ebx
call fcn.140060d14
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.140060af0
nop
cmp dword [rbp + 0x20], 0
je 0x140060cb1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140060cbc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140060bf4
Function at 0x140065594
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 [0x1401fbf28]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140098518]
mov rbp, rcx
call fcn.140078e40
xor edi, edi
test rax, rax
je 0x14006567a
mov ebx, edi
call fcn.140067050
mov r14d, dword [rax]
call fcn.140067050
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140078d8c
mov rsi, rax
test rax, rax
je 0x14006560b
call fcn.140067050
mov dword [rax], r14d
jmp 0x140065635
call fcn.140067050
cmp dword [rax], 0x22
jne 0x140065672
call fcn.140067050
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140078d8c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140065672
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140065639
cmp rax, 3
je 0x140065654
mov rcx, rsi
call fcn.1400654f0
test al, al
je 0x140065665
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140065665
mov dil, 1
mov rcx, rbx
call fcn.140060adc
mov al, dil
jmp 0x14006567c
mov rcx, rbx
call fcn.140060adc
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000e6b0
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 0x140065e18
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 0x140065e4f
call fcn.140067050
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140060a44
xor eax, eax
jmp 0x140065edd
mov rdx, r9
mov rcx, r8
call fcn.140065db4
mov rbx, rax
test rax, rax
je 0x140065eda
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140065ce0]
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 0x140065ec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140066fc4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140065eae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140065ebd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400738f0
jmp 0x140065eda
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140065ed7
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 0x140071804
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000ec50
sub rsp, rax
mov rax, qword [0x1401fbf28]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140075540
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140071853
mov rax, rbp
jmp 0x14007195b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, sym.MZ_brS__NMLJbm6_FgnfQzkN7Q_b._kHHv_K__V
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1feef0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140072b8c
mov r13, rax
lea rax, sym.MZ_brS__NMLJbm6_FgnfQzkN7Q_b._kHHv_K__V
mov rcx, qword [rax + rbx*8 + 0x1feef0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140071957
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140071957
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140072b8c
test rax, rax
js 0x140071957
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140071957
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140071949
lea r8, sym.MZ_brS__NMLJbm6_FgnfQzkN7Q_b._kHHv_K__V
cmp rcx, rdx
jae 0x140071949
cmp byte [rcx], 0xd
jne 0x14007192f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007193e
cmp byte [rcx + 1], 0xa
jne 0x14007193e
inc rcx
jmp 0x14007193e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1fc400]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140071911
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007195b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000e6b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140076a4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140076a62
mov al, 1
jmp 0x140076ac2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140076a73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140076ac0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007956c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140076ac0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140076ac0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140076ac0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140076ac2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140076b94
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, [0x1401feef0]
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 0x140076beb
cmp word [rdx], r13w
jne 0x140076beb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140076bf0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140076d15
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140076d36
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140076c29
mov rdx, r9
mov word [rbx], cx
jmp 0x140076c50
cmp r9, r8
jae 0x140076c60
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 0x140076c0a
jmp 0x140076d15
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 0x140076d0a
cmp dword [rsp + 0x80], esi
je 0x140076d0a
lea r8, [0x1401feef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140076ce2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140076cb2
mov word [rbx], r13w
jmp 0x140076d12
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 0x140076cbf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140076d12
cmp word [rsp + 0x70], r13w
jne 0x140076cef
cmp rbx, r14
je 0x140076cac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140072b94
cmp word [rsp + 0x70], r13w
je 0x140076d15
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, [0x1401feef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140076d0f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140076d15