joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a444]
mov rbx, rcx
test esi, esi
jle 0x140002a50
mov rax, qword [0x14000a448]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000296b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400029f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002950
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002a72
mov rax, qword [0x14000a448]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a448]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400029ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002a00
add dword [0x14000a444], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a448]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400029ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002978
mov rax, qword [0x14000a448]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a4a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a480]
test rbx, rbx
je 0x14000305c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003053
test eax, eax
jne 0x140003053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003038
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003288
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003290
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400032a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400032ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400032e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400032ef
add rax, 0x28
cmp rax, r9
jne 0x1400032d0
xor eax, eax
ret

Function at 0x1400032f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003380
mov rdx, qword [0x140007600]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000336e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000336e
cmp word [rax + 0x18], 0x20b
jne 0x14000336e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003380
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003359
add rbx, 0x28
cmp rbx, rdi
je 0x140003380
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003350
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140007600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400033b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400033b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400033b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000340d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400033b0
add rax, 0x28
cmp rax, r9
jne 0x1400033f0
xor eax, eax
ret

Function at 0x140003410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000342f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003438
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000342f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003450
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140007600]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003470
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003478
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003470
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400034c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400034b7
test rcx, rcx
je 0x140003470
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400034a8
xor eax, eax
ret
Function at 0x1400034d0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140007600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003530
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003530
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 0x140003584
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003590
add rdx, 0x28
cmp rdx, r9
jne 0x140003570
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140007600]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400035c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400035d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400035c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400035c2
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 0x140003625
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003638
add rdx, 0x28
cmp r10, rdx
jne 0x140003610
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003647
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003657
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000362e
test ecx, ecx
jg 0x140003640
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001543
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x14000157f
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x14000155e
inc r8
jmp 0x14000154b
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140001559
ret
Function at 0x140004612
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x140004625
xor esi, esi
jmp 0x1400047ee
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
test byte [rcx], 1
je 0x140004660
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
cmp qword [rdi + 0x38], 0xffffffffffffffff
mov rax, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
je 0x140004755
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x140004764
cmp byte [rdi + 0x1a], 0
jne 0x14000477c
mov rax, qword [rdi + 0x50]
mov rcx, qword [rdi + 8]
mov dl, byte [rdi + 0x18]
mov r8d, edx
xor r8b, 1
mov byte [rdi + 0x18], r8b
test rcx, rcx
je 0x14000469b
cmp rax, rcx
jbe 0x140004695
cmp byte [rsi + rcx], 0xbf
jg 0x14000469b
jmp 0x1400047f8
jne 0x1400047f8
cmp rcx, rax
je 0x140004773
movzx r9d, byte [rsi + rcx]
test r9b, r9b
js 0x1400046b3
mov r8d, r9d
jmp 0x14000470f
mov r8d, r9d
and r8d, 0x1f
movzx r11d, byte [rsi + rcx + 1]
and r11d, 0x3f
cmp r9b, 0xdf
jbe 0x1400046ff
movzx r10d, byte [rsi + rcx + 2]
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
cmp r9b, 0xf0
jb 0x140004708
movzx r9d, byte [rsi + rcx + 3]
and r8d, 7
shl r8d, 0x12
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
or r8d, r9d
jmp 0x14000470f
shl r8d, 6
or r8d, r11d
jmp 0x14000470f
shl r8d, 0xc
or r8d, r10d
test dl, 1
jne 0x140004780
cmp r8d, 0x110000
je 0x140004778
mov edx, 1
cmp r8d, 0x80
jb 0x140004749
mov edx, 2
cmp r8d, 0x800
jb 0x140004749
cmp r8d, 0x10000
mov edx, 4
sbb rdx, 0
add rcx, rdx
mov qword [rdi + 8], rcx
jmp 0x140004672
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140004852
jmp 0x140004797
test dl, 1
jne 0x140004783
mov byte [rdi + 0x1a], 1
xor eax, eax
jmp 0x140004792
mov rax, rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, 1
mov qword [rsp + 0x40], rax
test byte [rsp + 0x40], 1
je 0x1400047b8
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x1400047ee
cmp byte [rdi + 0x79], 0
jne 0x14000461e
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 1
jne 0x1400047d6
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x1400047e7
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x14000461e
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x140007b65
Capabilities:
Write file on windows

Disassembly:
mov r9, rcx
mov ecx, 0xfffffff4
jmp fcn.140007bba
Function at 0x14000dad8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14000db22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000db22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000db22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000db22
cmp dword [rcx + 0x84], 0xe
jbe 0x14000db22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000db24
xor al, al
add rsp, 0x28
ret
Function at 0x1400013e8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400014ac
lea rcx, [0x14015b520]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14015b518]
jmp 0x140001472
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000146f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x14015b518]
mov rdx, rsi
call fcn.140018484
jmp 0x140001472
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000143f
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x14015b518]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.140018440
lea rcx, [0x14015b520]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400023dc
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 0x14000240a
dec edi
mov edx, ebx
mov ecx, edi
call fcn.140018940
lea r8d, [rdi + 1]
mov rdx, rax
mov rcx, rsi
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 0x140002444
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140002464
test rax, rax
lea rdx, [0x1400fc48c]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400024f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14015b7d0]
call fcn.140017910
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x140002627
mov rcx, qword [rsp + 0x30]
jmp 0x140002541
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x140002539
mov r11d, 1
cmp r8w, 0x22
jne 0x140002590
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400025ef
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x14000258a
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x14000256e
test r8w, r8w
jmp 0x1400025ef
test r8w, r8w
je 0x1400025ff
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x1400025eb
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x1400025e1
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400025e1
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400025e1
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x1400025c5
movzx r10d, r8w
test r8w, r8w
jne 0x140002599
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x140002605
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x14000260e
test rbx, rbx
jne 0x140002631
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x140002541
test rbx, rbx
jne 0x140002645
movsxd rax, edi
jmp 0x14000264a
test r9, r9
je 0x140002645
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x14000264a
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140002660
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
xor ebp, ebp
mov rcx, qword [0x14015b7d0]
mov esi, edx
mov dword [rax + 8], ebp
call fcn.140017910
test ebx, ebx
js 0x14000268f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.1400024f0
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140018940
mov ecx, ebp
jmp 0x1400026cb
test edi, edi
je 0x1400026d0
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x1400026be
inc ecx
jmp 0x1400026c5
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x1400026ad
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.140018cd0
Function at 0x140002748
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x14000275d
mov edx, 0x18
jmp 0x140002775
test dword [rcx + 0x28], 0x100
jne 0x140002775
test dword [rcx + 0x28], 0x200
mov eax, 0x19
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp 0x1400196d0
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 r12, rcx
mov ecx, 0x1000
mov r15d, r9d
mov edi, ecx
mov r13d, r8d
mov ebp, eax
mov r14d, eax
cmp edx, 0x18
je 0x14001980c
cmp edx, 2
je 0x14001980c
mov rcx, qword [0x14015b0c8]
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
lea rdx, [rsp + 0x34]
mov rbx, rax
lea r8d, [rcx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x1400197f5
mov r15, qword [rsp + 0x90]
mov esi, ecx
mov r12d, edi
cmp dword [rsp + 0x38], 2
jne 0x1400197ed
cmp r13d, 0xffffffff
je 0x14001977a
cmp r14d, r13d
jae 0x1400197ed
add r14d, 2
test edi, edi
jne 0x1400197a5
mov rcx, qword [0x14015b0c8]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
add r9, r9
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 0x1400197ed
cmp ax, 0xd
je 0x1400197c5
mov word [rsi + rbx], ax
inc ebp
add rsi, 2
inc r12d
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x34]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x140019768
mov r15d, dword [rsp + 0xa8]
movsxd rax, ebp
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.14001a200
jmp 0x1400198de
mov r8, rcx
xor edx, edx
mov rcx, qword [0x14015b0c8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov r13d, edi
mov rsi, qword [rsp + 0x90]
mov rbx, rax
xor eax, eax
mov r12d, eax
jmp 0x14001983d
xor eax, eax
cmp r15d, 0xffffffff
je 0x140019848
cmp r14d, r15d
jae 0x1400198b2
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400198b2
cmp dword [rsp + 0x38], 1
jne 0x1400198b2
inc r14d
test edi, edi
jne 0x140019896
mov rcx, qword [0x14015b0c8]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
mov edi, 0x1000
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x1400198b2
cmp al, 0xd
je 0x14001983b
mov byte [r12 + rbx], al
inc ebp
inc r12
inc r13d
dec edi
jmp 0x14001983b
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
mov edx, r15d
movsxd rax, ebp
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x1400198d9
call fcn.140019f00
jmp 0x1400198de
call fcn.14001a160
mov rcx, qword [0x14015b0c8]
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 0x14000569c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x1400055b8]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140018f60
xor r8d, r8d
mov qword [0x14015ba40], rax
xor edx, edx
mov ecx, ebx
call fcn.1400179a8
xor ebx, ebx
mov qword [0x14015ba50], rax
cmp word [0x14015ba38], bx
jne 0x1400057bf
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140005704
movzx eax, di
jmp 0x140005706
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14015ba38], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14015ba48], rax
test rax, rax
je 0x1400057bf
lea rdx, [0x140100280]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015ba48]
lea rdx, [0x140100290]
mov qword [0x14015ba18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015ba48]
lea rdx, str.getnameinfo
mov qword [0x14015ba20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015ba48]
lea rdx, str.WSAStringToAddressA
mov qword [0x14015ba28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14015ba18], rbx
mov qword [0x14015ba30], rax
je 0x1400057bf
cmp qword [0x14015ba20], rbx
je 0x1400057bf
cmp qword [0x14015ba28], rbx
je 0x1400057bf
mov ecx, dword [0x14015ba3c]
test rax, rax
cmovne ecx, edi
mov dword [0x14015ba3c], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400057d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140005814
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140005820
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x14015ba58]
jne 0x140005840
add rsp, 0x30
pop rdi
jmp fcn.14002b528
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140018e10
mov rbx, rax
test rax, rax
je 0x1400058b5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000589d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000588a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x14015b0c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14015ba58]
mov rdx, rdi
call fcn.140018ef4
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140005c20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x14015ba58]
mov dword [rsp + 0x50], edi
call fcn.140018e10
mov rbx, rax
test rax, rax
je 0x140005cc5
cmp qword [rax + 8], rdi
je 0x140005c87
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14003ace0
test rax, rax
je 0x140005c74
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005cd5
cmp dword [rsp + 0x58], edi
je 0x140005cd5
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret

Function at 0x140005de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x140005e58
test r8d, r8d
je 0x140005e58
mov rdx, rcx
mov rcx, qword [0x14015ba58]
call fcn.140018e10
test rax, rax
je 0x140005e54
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140005e41
mov rcx, rax
call fcn.14003b410
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret