joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026760
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx eax, byte [rcx]
mov edi, edx
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 1
test al, al
je 0x1400267a2
cmp byte [rcx + 1], 0x3a
jne 0x1400267a2
movzx eax, byte [rcx + 2]
add rcx, 2
movzx edx, al
cmp al, 0x5c
jne 0x1400267ad
movzx edx, byte [rcx + 1]
lea rbx, [rcx + 1]
cmovne rbx, rcx
test dl, dl
je 0x140026806
movzx eax, byte [rbx]
test al, al
je 0x1400267cf
cmp al, 0x5c
je 0x14002681b
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x1400267c0
xor ebx, ebx
test edi, edi
je 0x140026806
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400267f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140026820
test rbx, rbx
je 0x140026806
mov byte [rbx], 0x5c
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x1400267c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov byte [rbx], 0
jmp 0x1400267d5
test rbx, rbx
je 0x140026828
mov byte [rbx], 0x5c
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140026840
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
movzx eax, word [rcx]
xor ebp, ebp
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov edi, edx
mov qword [rsp + 0x28], rbp
mov rsi, rcx
mov dword [rsp + 0x30], 1
test ax, ax
je 0x140026887
cmp word [rcx + 2], 0x3a
jne 0x140026887
movzx eax, word [rcx + 4]
add rcx, 4
movzx edx, ax
cmp ax, 0x5c
jne 0x140026894
movzx edx, word [rcx + 2]
lea rbx, [rcx + 2]
mov qword [rsp + 0x50], r14
cmovne rbx, rcx
test dx, dx
je 0x140026902
movzx eax, word [rbx]
mov r14d, 0x5c
test ax, ax
je 0x1400268c7
cmp ax, r14w
je 0x140026921
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400268b4
mov rbx, rbp
test edi, edi
je 0x140026902
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400268ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140026926
test rbx, rbx
je 0x140026902
mov word [rbx], r14w
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x1400268b4
mov eax, 1
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov word [rbx], bp
jmp 0x1400268ce
test rbx, rbx
je 0x14002692f
mov word [rbx], r14w
xor eax, eax
jmp 0x140026907
Function at 0x140026940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, rdx
mov edi, 1
mov edx, edi
mov r14d, r9d
mov rbp, r8
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140026b79
cmp qword [rbx + 0x38], 0xffffffffffffffff
je 0x140026b79
mov qword [rsp + 0x70], r15
xor r15d, r15d
mov dword [rbx + 0x10], r15d
test dil, r14b
je 0x140026a0c
cmp word [rbx + 0x80], r15w
jne 0x1400269b5
mov rdx, rbp
mov rcx, rbx
call fcn.140025c10
cmp dword [rbx + 0x10], r15d
jne 0x140026b69
mov word [rbx + 0x80], di
mov r8, qword [rbp + 0x28]
mov rdx, rsi
mov rcx, rbx
call fcn.140025f20
mov qword [rbp + 0x28], rax
cmp dword [rbx + 0x10], r15d
jne 0x1400269f7
cmp qword [rbx + 0xf8], r15
je 0x1400269f7
mov eax, 5
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rcx, rbx
mov word [rbx + 0x80], r15w
call fcn.140025ab0
mov eax, dword [rbx + 0x10]
jmp 0x1400269dc
test byte [rbp + 8], 0x10
je 0x140026a3a
test r14b, 2
je 0x140026a36
mov edx, edi
mov rcx, rsi
test r14d, r14d
jns 0x140026a29
call fcn.140026840
jmp 0x140026a2e
call fcn.140026760
test eax, eax
je 0x140026b66
xor eax, eax
jmp 0x1400269dc
cmp r14d, 4
je 0x140026a96
xor edx, edx
mov rcx, rsi
test r14d, r14d
jns 0x140026a51
call fcn.140026840
jmp 0x140026a56
call fcn.140026760
test eax, eax
je 0x140026b66
mov eax, dword [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
test r14d, r14d
jns 0x140026a8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x140026a93
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140026b66
mov rdx, rbp
mov rcx, rbx
call fcn.140025c10
cmp dword [rbx + 0x10], r15d
jne 0x140026b47
cmp qword [rbx + 0x58], r15
jne 0x140026ad8
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x140026ad8
mov dword [rbx + 0x10], 2
cmp dword [rbx + 0x10], r15d
jne 0x140026b47
nop
mov rdx, qword [rbx + 0x58]
mov r8d, 0x4000
mov rcx, rbx
call fcn.140025f20
mov rdi, rax
test eax, eax
je 0x140026b2c
mov rdx, qword [rbx + 0x58]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140026b25
cmp dword [rsp + 0x40], edi
jne 0x140026b25
cmp dword [rbx + 0x10], r15d
je 0x140026ae0
jmp 0x140026b2c
mov dword [rbx + 0x10], 3
cmp dword [rbx + 0x10], r15d
jne 0x140026b47
lea r9, [rbp + 0x1c]
mov rcx, rsi
lea r8, [rbp + 0xc]
lea rdx, [rbp + 0x14]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r14d, 4
je 0x140026b69
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140025ab0
mov eax, dword [rbx + 0x10]
jmp 0x1400269dc
mov dword [rbx + 0x10], edi
mov rcx, rbx
call fcn.140025ab0
mov eax, dword [rbx + 0x10]
jmp 0x1400269dc
mov eax, 9
jmp 0x1400269e1
Function at 0x140027330
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x78
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x88]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14002735f
mov eax, 1
add rsp, 0x78
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x38]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x70], rdi
mov eax, r8d
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov edi, eax
or edi, 0x20
and r8b, 0x20
cmove edi, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or edi, eax
test r9d, r9d
jne 0x1400273c0
bts edi, 0x17
mov rcx, qword [rbx + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbx + 0x70], rax
cmp rax, 0x28
jbe 0x140027501
cmp qword [rbx + 0x20], 0
jne 0x140027501
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x90], ax
jne 0x1400274ec
mov edx, dword [rsp + 0xa8]
lea ecx, [rdx + 0x34]
cmp qword [rbx + 0x70], rcx
jbe 0x1400274ec
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
cmp eax, 0x5a4d
je 0x1400274e8
add eax, 0xffffbab4
cmp eax, 4
ja 0x1400274ec
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnlock
bt ecx, eax
jae 0x1400274ec
bts edi, 0x16
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x44]
movabs r9, 0xd6bf94d5e57a42bd
movabs r8, 0xfe624e212ac18000
mov dword [rsi + 0x10], edi
add rcx, r8
mov rax, r9
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x4c]
sar rdx, 0x17
add rcx, r8
add r8, qword [rsp + 0x3c]
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [rsi], edx
imul rcx
mov rax, r9
add rdx, rcx
sar rdx, 0x17
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
lea rcx, [rsp + 0x4c]
mov dword [rsi + 4], edx
imul r8
add rdx, r8
lea r8, [rsp + 0xa0]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [rsp + 0xa0]
movzx ecx, word [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
shl ecx, 0x10
or ecx, eax
mov dword [rsi + 0xc], ecx
xor eax, eax
add rsp, 0x78
pop rsi
pop rbx
ret
Function at 0x14002a070
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 0
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jge 0x14002a0d8
mov edx, 0x8b1f
call fcn.14002aa90
mov edx, 0x808
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002aa90
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002aa90
mov edx, 0xb02
mov rcx, rbx
call fcn.14002aa90
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
inc r8d
jmp 0x14002a234
mov edx, 0x4034b50
call fcn.14002aa90
mov edx, 0x403
mov rcx, rbx
call fcn.14002aa90
mov edx, 0x2d
mov rcx, rbx
call fcn.14002aa90
movzx edx, word [rdi + 0x30]
mov rcx, rbx
call fcn.14002aa90
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002aa90
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.14002aa90
movzx edx, word [rdi + 0xa]
mov rcx, rbx
call fcn.14002aa90
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002aa90
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002aa90
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002aa90
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 0x20]
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 0x24]
mov rcx, rbx
add edx, 0x14
call fcn.14002aa90
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call fcn.14002ac30
mov edx, 1
mov rcx, rbx
call fcn.14002aa90
mov edx, reloc.WSOCK32.dll_recv
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.14002aa90
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002aa90
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002aa90
movzx edx, word [rdi + 0x1e]
mov rcx, rbx
call fcn.14002aa90
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.14002aa90
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002aa90
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002aa90
movzx edx, word [rdi + 0x16]
mov rcx, rbx
call fcn.14002aa90
mov r8d, dword [rdi + 0x24]
test r8d, r8d
je 0x14002a23c
mov rdx, qword [rdi + 0x40]
mov rcx, rbx
call fcn.14002ac30
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x14002a966
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x140106a60]
not ecx
cmp r10d, 8
jb 0x14002aa58
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14002a990
test r10d, r10d
je 0x14002aa80
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x14002aa60
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14002aa90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x38
cmp dword [rcx + 0x28], 0
mov rbx, rcx
movsxd rsi, edx
jne 0x14002ac22
mov eax, dword [rcx]
mov qword [rsp + 0x58], rdi
mov edi, esi
shr edi, 8
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x51], dil
test al, 0x10
je 0x14002aba5
mov edx, dword [rcx + 0x48]
mov r8d, dword [rcx + 0x50]
mov qword [rsp + 0x30], r14
mov r10d, r8d
lea r14, [0x140106a60]
movsx rax, sil
xor rax, rdx
and r10d, 0xfffd
movzx ecx, al
or r10d, 2
shr edx, 8
mov r9d, dword [r14 + rcx*4]
xor r9d, edx
movzx ecx, r8b
mov edx, r9d
movzx eax, r9b
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
shr r8d, 8
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
mov r11d, dword [r14 + rcx*4]
xor r11d, r8d
mov dword [rbx + 0x50], r11d
and r11d, 0xfffd
shr eax, 8
or r11d, 2
xor al, sil
mov byte [rsp + 0x50], al
movsx rax, dil
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r14 + rcx*4]
xor eax, edx
mov edx, dword [rbx + 0x50]
mov dword [rbx + 0x48], eax
movzx eax, al
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 0x4c], eax
movzx eax, dl
shr rcx, 0x18
xor rcx, rax
shr edx, 8
mov eax, dword [r14 + rcx*4]
mov r14, qword [rsp + 0x30]
xor eax, edx
mov dword [rbx + 0x50], eax
mov eax, r11d
xor eax, 1
imul eax, r11d
shr eax, 8
xor al, dil
mov byte [rsp + 0x51], al
mov eax, dword [rbx]
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x14002abde
mov rdx, qword [rbx + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 0x40]
jb 0x14002abca
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
add rsp, 0x38
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
movzx eax, word [rsp + 0x50]
mov word [rdx + rcx], ax
add qword [rbx + 0x38], 2
jmp 0x14002ac13
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002ac0c
cmp dword [rsp + 0x60], 2
je 0x14002ac13
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002ac22
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x14002ac30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
test r8d, r8d
je 0x14002ade5
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x28], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
jne 0x14002add6
test byte [rcx], 0x10
je 0x14002ad67
mov rcx, qword [rcx + 0x58]
mov rax, rcx
test rcx, rcx
je 0x14002ac85
cmp dword [rbx + 0x60], edi
jae 0x14002ac85
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov qword [rbx + 0x58], 0
test rax, rax
jne 0x14002acaf
lea eax, [rdi + rdi]
xor ecx, ecx
mov edx, eax
mov dword [rbx + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x14002acaf
mov dword [rbx + 0x28], 2
jmp 0x14002adc7
mov qword [rsp + 0x40], rbp
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.1400d8380
test edi, edi
je 0x14002ad5e
xor r11d, r11d
lea rsi, [0x140106a60]
nop word [rax + rax]
mov rax, qword [rbx + 0x58]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x50]
mov edx, dword [rbx + 0x48]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
mov ecx, dword [rsi + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x4c]
mov dword [rbx + 0x48], ecx
imul eax, eax, 0x8088405
movzx ecx, r8b
shr r8d, 8
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x50], eax
mov rax, qword [rbx + 0x58]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x14002ace0
mov rsi, qword [rbx + 0x58]
mov rbp, qword [rsp + 0x40]
test byte [rbx], 1
je 0x14002ad98
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + rdi]
cmp rax, qword [rbx + 0x40]
jb 0x14002ad83
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
jmp 0x14002adc7
add rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1400d8380
add qword [rbx + 0x38], rdi
jmp 0x14002adc7
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002adc0
cmp dword [rsp + 0x50], edi
je 0x14002adc7
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002add6
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002af20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rbp, rdx
mov rdi, rcx
bt eax, 0x1e
jae 0x14002af56
mov dword [rcx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test al, al
jns 0x14002afaf
mov rcx, qword [rcx + 0x98]
mov rsi, qword [rdi + 0x90]
cmp rcx, rsi
jae 0x14002afd5
sub esi, ecx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], esi
mov eax, esi
cmp esi, r8d
jbe 0x14002af8a
mov esi, r8d
mov dword [rsp + 0x40], r8d
mov eax, r8d
mov rdx, qword [rdi + 0x88]
add rdx, rcx
mov r8d, eax
mov rcx, rbp
mov ebx, eax
call fcn.1400d8380
add qword [rdi + 0x98], rbx
mov rbx, qword [rsp + 0x48]
jmp 0x14002afeb
mov rcx, qword [rcx + 0x88]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002afe7
mov dword [rdi + 0x28], 7
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov esi, dword [rsp + 0x40]
mov ecx, esi
mov r8d, esi
add qword [rdi + 0x78], rcx
mov rdx, rbp
mov ecx, dword [rdi + 0x80]
call fcn.14002a950
mov rbp, qword [rsp + 0x50]
mov dword [rdi + 0x80], eax
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002cb20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x48
mov r8, qword [rcx + 8]
mov rbp, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [rbp + 0x70]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x14002cb89
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x14002cb81
mov ecx, dword [r8 + 0x20]
jmp 0x14002cb89
test dl, dl
jns 0x14002cb89
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov r10d, ecx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x14002cc8a
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov esi, dword [rdi - 0x1c]
mov ebx, dword [rbp + 0x70]
or rsi, r12
mov eax, dword [rdi - 0x14]
neg rbx
and rbx, rsi
test eax, eax
jne 0x14002cc0b
mov ecx, dword [rdi]
test cl, 0x40
je 0x14002cc03
mov eax, dword [r8 + 0x20]
jmp 0x14002cc0b
test cl, cl
jns 0x14002cc0b
mov eax, dword [r8 + 0x24]
mov r14d, eax
cmp r9, rbx
je 0x14002cc51
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x14002cc51
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14002ca50
test eax, eax
je 0x14002cd2b
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [rbp + 8]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, r14d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r14
jmp 0x14002cc71
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x14002cc63
btr edx, 0x19
mov r10, r14
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x14002cbe0
test r10, r10
je 0x14002ccad
bt edx, 0x19
jae 0x14002ccd6
cmp r11, r9
jne 0x14002ccad
mov r9, qword [rbp + 0x60]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + reloc.WSOCK32.dll_getservbyport]
mov eax, r13d
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x140106e60]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002ccad
xor eax, eax
jmp 0x14002ccb0
Function at 0x14002daf0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rdi
mov rdi, rdx
mov qword [rbp + 0x28], r14
mov r14, rcx
test rcx, rcx
je 0x14002dcdc
cmp dword [rcx + 0x28], 0
jne 0x14002dcdc
cmp qword [rcx + 0x68], 0
je 0x14002dcdc
cmp dword [rcx + 0x2c], 0
je 0x14002dcdc
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, 0xffffffffffffffff
mov rbx, rax
mov rax, r8
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002db50
xor edx, edx
lea rax, [rax*2 + 2]
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x14002dc2e
mov rax, r8
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002db80
lea rdx, [rax*2 + 2]
lea rcx, [rdx + 0x10]
nop dword [rax + rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14002dba0
xor eax, eax
cmp rcx, rdx
cmova rax, rcx
cmp rax, 0x400
lea rax, [r8*2 + 2]
ja 0x14002dc08
lea rcx, [rax + 0x10]
xor edx, edx
cmp rcx, rax
cmova rdx, rcx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14002dbe6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400f3640
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x14002dc30
mov dword [rsi], 0xcccc
add rsi, 0x10
jmp 0x14002dc30
lea rdx, [rax + 0x10]
xor ecx, ecx
cmp rdx, rax
cmova rcx, rdx
call fcn.1400dc214
mov rsi, rax
test rax, rax
je 0x14002dc30
mov dword [rax], 0xdddd
add rsi, 0x10
jmp 0x14002dc30
xor esi, esi
mov rdx, rsi
mov rcx, rbx
sub rdx, rbx
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002dc40
mov rcx, rbx
sub rcx, rdi
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rcx + rdi], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x14002dc60
mov r8, qword [r14 + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.1400e4fa0
mov edx, WSAAsyncSelect
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, rsi
sub rbx, rsi
nop dword [rax + rax]
movzx ecx, word [rdx]
mov word [rbx + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14002dcb0
test rsi, rsi
je 0x14002dcd7
cmp dword [rsi - 0x10], 0xdddd
lea rcx, [rsi - 0x10]
jne 0x14002dcd7
call fcn.1400dc21c
mov rax, rdi
jmp 0x14002dcde
xor eax, eax
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
mov r14, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret