joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e2f94
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140221800]
call fcn.14012a578
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x1400e3091
mov rcx, qword [rsp + 0x40]
mov r9w, SafeArrayAllocDescriptor
cmp dx, 0x20
jne 0x1400e2feb
add rax, 2
cmp word [rax], 0x20
je 0x1400e2fe1
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x1400e3029
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x1400e3069
cmp cx, r9w
je 0x1400e301b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400e3009
cmp word [rax], bp
je 0x1400e3069
mov rcx, rax
add rax, 2
jmp 0x1400e3071
test dx, dx
je 0x1400e306e
mov rbx, rax
cmp dx, 0x20
je 0x1400e301b
add rax, 2
cmp word [rax], r9w
jne 0x1400e305f
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x1400e3069
cmp cx, r9w
je 0x1400e305f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400e304d
movzx edx, word [rax]
test dx, dx
jne 0x1400e3031
jmp 0x1400e301b
mov rcx, rax
jmp 0x1400e3071
mov r8d, ebp
cmp dword [r14], esi
jne 0x1400e307b
test rdi, rdi
jne 0x1400e309b
test r8d, r8d
je 0x1400e3082
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x1400e2fdb
test rdi, rdi
jne 0x1400e30b0
movsxd rax, esi
jmp 0x1400e30b2
test rbx, rbx
je 0x1400e30b0
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x1400e30b2
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400e30c8
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140221800]
call fcn.14012a578
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400e2f94

Function at 0x1400e315c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140221800]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14012a578
test ebx, ebx
js 0x1400e318b
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.1400e2f94
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.14012bbd0
mov ecx, ebp
jmp 0x1400e31c7
test edi, edi
je 0x1400e31cc
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x1400e31ba
inc ecx
jmp 0x1400e31c1
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x1400e31a9
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14012bd10
Function at 0x1400e31e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x1400e3216
dec edi
mov edx, ebx
mov ecx, edi
call fcn.14012bbd0
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd rcx, edi
mov word [rbx + rcx*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e3950
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x1400e3965
mov edx, DispGetIDsOfNames
jmp 0x1400e397d
test dword [rcx + 0x28], 0x100
jne 0x1400e397d
test dword [rcx + 0x28], 0x200
mov eax, reloc.OLEAUT32.dll_SafeArrayPutElement
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp fcn.1400e3b04

Function at 0x1400e398c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp fcn.1400e3b04
Function at 0x1400e3b04
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x1400e3c43
cmp edx, 2
je 0x1400e3c43
mov rcx, qword [0x14021be74]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400e3c2c
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x1400e3c24
cmp r13d, 0xffffffff
je 0x1400e3bb1
cmp r14d, r13d
jae 0x1400e3c24
add r14d, 2
test edi, edi
jne 0x1400e3bdc
mov rcx, qword [0x14021be74]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x1400e3c24
cmp ax, 0xd
je 0x1400e3bfc
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x1400e3b9f
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1401b96c0
jmp 0x1400e3d0c
mov r8, rcx
mov rcx, qword [0x14021be74]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x1400e3c76
cmp r14d, r15d
jae 0x1400e3ce0
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e3ce0
cmp dword [rsp + 0x38], 1
jne 0x1400e3ce0
inc r14d
test edi, edi
jne 0x1400e3cc4
mov rcx, qword [0x14021be74]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400e3ce0
cmp al, 0xd
je 0x1400e3c6b
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x1400e3c6b
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400e3d07
call fcn.1401b9720
jmp 0x1400e3d0c
call fcn.1401b94f0
mov rcx, qword [0x14021be74]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e518c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor edi, edi
mov r13, r8
mov rbx, rdx
lea eax, [rdi + 1]
mov r15, rcx
mov r12d, edi
cmp dword [rcx + 0x10], eax
jne 0x1400e5343
test rdx, rdx
je 0x1400e5343
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400e5343
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14021be74]
xor edx, edx
mov eax, eax
mov r8d, 0x200000
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400e533a
call fcn.140151940
mov rsi, rax
test rax, rax
je 0x1400e5328
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.msvcrt.dll__wstat
mov edx, 0x1a4
mov rcx, rsi
call fcn.140151f40
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401525f0
mov rax, qword [r15 + 0x38]
mov ecx, dword [rax + 0x10]
dec ecx
test ecx, 0xfffffffd
je 0x1400e5286
mov rdx, r13
mov rcx, rsi
call fcn.140151370
jmp 0x1400e52a4
mov rcx, r13
call fcn.1401b9410
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call fcn.140151f30
mov rcx, rbx
call fcn.1401b9400
mov r13, qword [rsp + 0xc8]
mov rcx, rsi
mov rdx, r13
call fcn.140151f90
mov edx, 0x8000
mov rcx, rsi
call fcn.140151d70
mov rcx, qword [r15]
mov rdx, rsi
call fcn.1401527a0
jmp 0x1400e52ea
mov rcx, qword [r15]
movsxd r8, eax
mov rdx, r14
movsxd rbx, eax
call fcn.140152720
cmp rax, rbx
jne 0x1400e5314
add r12, rbx
lea r9, [rsp + 0xb0]
mov r8d, 0x200000
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0xb0]
test eax, eax
jg 0x1400e52d1
cmp r12, r13
mov eax, 1
mov rcx, rsi
cmove rdi, rax
call fcn.140151670
mov rcx, qword [0x14021be74]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400e5d98
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14021d270]
call fcn.14012a83c
test rax, rax
je 0x1400e5dc6
mov r8, qword [rax]
mov rcx, qword [rax + 8]
mov edx, ebx
add rsp, 0x20
pop rbx
jmp qword [r8 + 0x48]
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14012bd50

Function at 0x1400ea5a8
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 5
je 0x1400ea5b4
mov ecx, edx
jmp fcn.14012bd50
mov rcx, qword [rcx + 8]
jmp 0x14010ae00
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, edx
test rcx, rcx
je 0x14010ae3a
mov rcx, qword [rcx + 8]
call sub.msvcrt.dll_wcslen
mov edx, ebx
mov ecx, eax
call fcn.14012bbd0
mov rdx, qword [rdi]
mov rdx, qword [rdx + 8]
mov rcx, rax
call sub.msvcrt.dll_wcscpy
jmp 0x14010ae41
mov ecx, edx
call fcn.14012bd50
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ea618
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 1
jne 0x1400ea62a
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x14012c040
mov ecx, edx
jmp fcn.14012bd50
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x14012c086
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_wcslen
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x20]
call fcn.14012bbd0
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_wcscpy
jmp 0x14012c08f
mov ecx, dword [rsp + 0x48]
call fcn.14012bd50
add rsp, 0x38
ret

Function at 0x1400ea67c
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400ea684
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r15d, r8d
mov rax, rdx
mov r12, rcx
test rdx, rdx
je 0x1400ea765
cmp word [rdx], bx
je 0x1400ea765
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ea760
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14021be74]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400ea757
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x78], ebp
jne 0x1400ea745
mov r9d, r15d
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.1400ebe44
mov rbx, rax
mov rcx, qword [0x14021be74]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x1400ea767
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ea684
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400ea684
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r15d, r8d
mov rax, rdx
mov r12, rcx
test rdx, rdx
je 0x1400ea765
cmp word [rdx], bx
je 0x1400ea765
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ea760
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14021be74]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400ea757
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x78], ebp
jne 0x1400ea745
mov r9d, r15d
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.1400ebe44
mov rbx, rax
mov rcx, qword [0x14021be74]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x1400ea767
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400eaff8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov rcx, qword [rcx]
lea r9, [rax + 8]
xor edi, edi
mov r8d, ebx
mov qword [rax - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], ebx
mov rbx, qword [rsp + 0x48]
mov dword [rsi + 0x10], edi
mov rsi, qword [rsp + 0x50]
sete dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400edf2c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14d, r9d
mov rsi, r8
mov rbp, rdx
test rdx, rdx
je 0x1400ee025
test r8, r8
je 0x1400ee025
mov rdx, rcx
mov rcx, qword [0x140221be0]
call fcn.14012a83c
mov rdi, rax
test rax, rax
je 0x1400ee025
or qword [rax + 0x40], 0xffffffffffffffff
test r14d, r14d
je 0x1400ee015
mov rcx, qword [0x14021be74]
lea r8d, [rbx + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rsi
lea rcx, [rax + 8]
mov r14, rax
mov qword [rax], rdi
call fcn.14012b8a0
lea rcx, [r14 + 0x10]
mov rdx, rbp
call fcn.14012b8a0
lea rax, [rsp + 0x58]
lea r8, [0x1400ee21c]
mov qword [rsp + 0x28], rax
mov r9, r14
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400edfef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x1400ee025
mov rcx, qword [r14 + 8]
call fcn.14012b910
mov rcx, qword [r14 + 0x10]
call fcn.14012b910
mov rcx, qword [0x14021be74]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400ee025
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.1400ee03c
mov ebx, eax
mov rbp, qword [rsp + 0x60]
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ee03c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
mov eax, 0x1090
call fcn.1400be960
sub rsp, rax
mov rbx, rcx
mov rcx, rdx
mov rbp, r8
xor esi, esi
xor edi, edi
call fcn.1401b98a0
lea r8, [0x1401e1274]
lea rdx, str.TYPE
mov rcx, rbx
mov r14, rax
call fcn.1400ee5ec
test rax, rax
je 0x1400ee1e8
lea rdx, [0x1401e1280]
mov rcx, rbx
call fcn.1400ee4dc
test rax, rax
je 0x1400ee1e8
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400ee78c
test rax, rax
je 0x1400ee1e8
lea rdx, str.RETR
mov r8, r14
mov rcx, rbx
call fcn.1400ee5ec
test rax, rax
je 0x1400ee1cf
lea rdx, str.125_150
mov rcx, rbx
call fcn.1400ee4dc
test rax, rax
je 0x1400ee1cf
cmp dword [rbx + 0x30], esi
jne 0x1400ee107
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400ee6fc
test rax, rax
je 0x1400ee1cf
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov edi, 1
call fcn.1400ee974
test rax, rax
je 0x1400ee1cf
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov r8d, edi
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
test rax, rax
je 0x1400ee1cf
and qword [rbx + 0x40], rsi
and dword [rbx + 0x48], esi
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call fcn.1400ee4e8
mov rsi, rax
jmp 0x1400ee1c0
cmp dword [rbx + 0x48], 0
jne 0x1400ee1c4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x10c8]
lea rdx, [rsp + 0x90]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, esi
lea rdx, [rsp + 0x90]
add qword [rbx + 0x40], rax
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call fcn.1400ee4e8
mov esi, eax
test eax, eax
jne 0x1400ee177
mov rcx, rbp
mov esi, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400ee95c
test edi, edi
je 0x1400ee1e8
mov rcx, rbx
call fcn.1400ee5bc
mov rcx, r14
call fcn.1401b9890
lea r11, [rsp + 0x1090]
mov ecx, esi
mov rbp, qword [r11 + 0x28]
neg ecx
mov eax, esi
sbb rdx, rdx
add rdx, 0xfffffffffffffffe
mov qword [rbx + 0x40], rdx
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ee78c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xb60]
sub rsp, 0xc60
xor ebx, ebx
mov r12, rdx
mov rdi, rcx
mov r15d, ebx
cmp dword [rcx + 0x30], ebx
je 0x1400ee8b1
lea r8, [0x1401cc65c]
lea rdx, str.PASV
call fcn.1400ee5ec
lea r8, [rsp + 0x60]
lea rdx, [0x1401e12a8]
mov r9d, 0x400
mov rcx, rdi
call fcn.1400ee4fc
test rax, rax
je 0x1400ee93c
lea rdi, [rsp + 0x63]
cmp byte [rsp + 0x63], bl
je 0x1400ee93c
mov r14d, ebx
lea esi, [rbx + 1]
mov dl, byte [rdi]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400ee83f
mov rcx, rdi
cmp dl, 0x39
jg 0x1400ee827
add rdi, rsi
mov dl, byte [rdi]
cmp dl, 0x30
jge 0x1400ee818
mov byte [rdi], bl
call sub.msvcrt.dll_atoi
add r15d, esi
mov dword [rsp + r14*4 + 0x30], eax
add r14, rsi
cmp r14, 6
je 0x1400ee846
add rdi, rsi
cmp byte [rdi], bl
jne 0x1400ee80c
cmp r15d, 6
jne 0x1400ee93c
mov eax, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x38]
lea rdx, str._d._d._d._d
lea rcx, [rbp + 0x360]
mov dword [rsp + 0x20], eax
call fcn.1401b9ac0
mov edx, dword [rsp + 0x40]
lea rcx, [rbp + 0x360]
shl edx, 8
add edx, dword [rsp + 0x44]
call fcn.1400ef118
mov qword [r12], rax
test rax, rax
je 0x1400ee93c
mov dword [r12 + 0x34], 5
mov ebx, esi
jmp 0x1400ee93c
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.1400efbcc
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400ee93c
mov dword [rbp + 0xb90], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, qword [rax]
lea r8, [rbp + 0xb90]
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, str.127_0_0_1__d__d
lea rcx, [rsp + 0x60]
movzx eax, ax
movzx r9d, al
sar eax, 8
movzx r8d, al
call sub.msvcrt.dll_sprintf
lea r8, [rsp + 0x60]
lea rdx, str.PORT
mov rcx, rdi
call fcn.1400ee5ec
lea rdx, [0x1401e1280]
mov rcx, rdi
call fcn.1400ee4dc
mov esi, 1
test rax, rax
cmovne ebx, esi
lea r11, [rsp + 0xc60]
movsxd rax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400eeae8
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [0x1400ee9fc]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14012a964
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x14021d6e8], rax
call fcn.14012a610
xor ebx, ebx
cmp word [0x14021d6e0], bx
mov qword [0x140221c20], rax
jne 0x1400eec13
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x14021d6e0], di
test eax, eax
je 0x1400eeb59
mov word [0x14021d6e0], bx
lea rcx, str.ws2_32.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x14021d710], rax
test rax, rax
je 0x1400eec13
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14021d710]
lea rdx, str.freeaddrinfo
mov qword [0x14021d6f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14021d710]
lea rdx, str.getnameinfo
mov qword [0x14021d6f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14021d710]
lea rdx, str.WSAStringToAddressA
mov qword [0x14021d700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14021d6f0], rbx
mov qword [0x14021d708], rax
je 0x1400eec13
cmp qword [0x14021d6f8], rbx
je 0x1400eec13
cmp qword [0x14021d700], rbx
je 0x1400eec13
mov ecx, dword [0x14021d6e4]
test rax, rax
cmovne ecx, edi
mov dword [0x14021d6e4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400eefb8
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov edx, ecx
mov edi, 0x400
xor ebp, ebp
mov ecx, edi
mov ebx, ebp
call fcn.14012bbd0
lea rcx, [rsp + 0x30]
mov edx, edi
mov rsi, rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1400ef019
lea r8, [rsp + 0x30]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test eax, eax
je 0x1400ef019
dec ebx
sub edi, ebx
mov ecx, edi
call fcn.14012bd10
lea r11, [rsp + 0x430]
movsxd rax, ebx
mov rbx, qword [r11 + 0x10]
mov word [rsi + rax*2], bp
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret