joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044c0]
mov dword [rax], 1
mov rax, qword [0x1400044d0]
mov dword [rax], 1
mov rax, qword [0x140004450]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400044a0]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004570]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004550]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004400]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001920
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400070a4]
mov r12, rcx
test ebx, ebx
jle 0x140001a50
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000196b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x1400019f5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001950
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001a72
mov rax, qword [0x1400070a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a00
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ee
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 ebx, ebx
jmp 0x140001978
mov rax, qword [0x1400070a8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ff0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140007100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000204c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002043
test r12, r12
je 0x140002043
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002028
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002280
Capabilities:
Parse pe header

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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400022f5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400022ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400022f7
add rax, 0x28
cmp rax, r9
jne 0x1400022d8
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002390
mov rdx, qword [0x140004450]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000237e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000237e
cmp word [rax + 0x18], 0x20b
jne 0x14000237e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002390
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002369
add r12, 0x28
cmp r12, rsi
je 0x140002390
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002360
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140004450]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002415
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000240c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023c0
add rax, 0x28
cmp rax, r9
jne 0x1400023f8
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004450]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002440
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002448
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002440
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004450]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002480
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002488
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002480
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400024c8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024bf
test rcx, rcx
je 0x140002480
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024b0
xor eax, eax
ret
Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004450]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024f0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024f8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140004450]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002530
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002530
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000257c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002590
add rdx, 0x28
cmp rdx, r9
jne 0x140002568
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004450]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025c2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400025c2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000261d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002630
add rdx, 0x28
cmp r10, rdx
jne 0x140002608
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000263f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000264f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002626
test ecx, ecx
jg 0x140002638
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003ec8
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400106a0
mov rcx, qword [rsp + 0x90]
call fcn.1400083d8
sub rsp, 0x18
mov rdx, 1
lea rax, [rsp + 0x40]
push rax
xor r9, r9
mov r8, reloc.WS2_32.dll_inet_addr
mov rcx, 2
sub rsp, 0x20
call fcn.14000ff40
add rsp, 0x40
mov qword [rsp + 0x28], rax
push 0
push 0
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
movsxd r15, dword [rsp + 0x48]
and r15, r15
jne 0x140003f79
movabs rcx, 0x140072028
push rcx
sub rsp, 0x28
call fcn.1400107e0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140010b10
add rsp, 0x28
pop rax
push rax
call fcn.140010940
pop rdx
add rax, rdx
jmp 0x14000404b
movsxd rax, dword [rsp + 0x48]
inc rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140010174
movsxd r15, dword [rsp + 0x48]
add r15, r15
mov rax, r15
push rax
mov rbp, qword [rsp + 0x30]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.140010590
movsxd rax, dword [rsp + 0x48]
mov rax, rax
push rax
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
push rcx
sub rsp, 0x28
call fcn.1400107e0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400107e0
add rsp, 0x28
pop rcx
push rax
push 0x19
push 0xffffffffffffffff
mov rbp, qword [rsp + 0x50]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140010440
add rsp, 0x28
movabs rcx, 0x14007207a
sub rsp, 0x28
call fcn.140010b10
add rsp, 0x28
pop rax
push rax
call fcn.140010940
pop rdx
add rax, rdx
jmp 0x14000404b
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140010104
add rsp, 0x28
pop rax
add rsp, 0x58
pop r15
pop rbp
ret

Function at 0x1400083d8
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140298734]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x1400097c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x140009924
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x14005ef40]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x1400098f0
cmp word [r14 + 2], di
je 0x1400098f0
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140009830
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14000985d
cmp word [rbx], bp
je 0x14000985d
add rbx, 2
jmp 0x140009840
inc edi
cmp edi, r12d
je 0x140009872
cmp word [rbx], bp
je 0x14000987b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140009840
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.140010bb0
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400098aa
mov ecx, r13d
call fcn.140010e10
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.140010c20
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400098ce
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x1400098fd
test ax, ax
jne 0x140009910
inc edi
cmp edi, edx
je 0x140009916
test ax, ax
je 0x14000987e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x1400098f0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14000987e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140010e40

Function at 0x140009940
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140010c20
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14004f0bc
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140009970
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140010e80
Function at 0x140009ccc
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 [0x14029b3a0]
call fcn.14000f960
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 0x140009dc9
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x140009d23
add rax, 2
cmp word [rax], 0x20
je 0x140009d19
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140009d61
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140009da1
cmp cx, r9w
je 0x140009d53
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140009d41
cmp word [rax], bp
je 0x140009da1
mov rcx, rax
add rax, 2
jmp 0x140009da9
test dx, dx
je 0x140009da6
mov rbx, rax
cmp dx, 0x20
je 0x140009d53
add rax, 2
cmp word [rax], r9w
jne 0x140009d97
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x140009da1
cmp cx, r9w
je 0x140009d97
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140009d85
movzx edx, word [rax]
test dx, dx
jne 0x140009d69
jmp 0x140009d53
mov rcx, rax
jmp 0x140009da9
mov r8d, ebp
cmp dword [r14], esi
jne 0x140009db3
test rdi, rdi
jne 0x140009dd3
test r8d, r8d
je 0x140009dba
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x140009d13
test rdi, rdi
jne 0x140009de8
movsxd rax, esi
jmp 0x140009dea
test rbx, rbx
je 0x140009de8
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140009dea
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 0x140009e94
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 [0x14029b3a0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14000f960
test ebx, ebx
js 0x140009ec3
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140009ccc
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140010c20
mov ecx, ebp
jmp 0x140009eff
test edi, edi
je 0x140009f04
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140009ef2
inc ecx
jmp 0x140009ef9
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140009ee1
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.140010e80
Function at 0x14000a8f8
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 0x14000aaaf
test rdx, rdx
je 0x14000aaaf
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 0x14000aaaf
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14029acb8]
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 0x14000aaa6
call fcn.140025790
mov rsi, rax
test rax, rax
je 0x14000aa94
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.msvcrt.dll__wstat
mov edx, 0x1a4
mov rcx, rsi
call fcn.140025cf0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400262e0
mov rax, qword [r15 + 0x38]
mov ecx, dword [rax + 0x10]
dec ecx
test ecx, 0xfffffffd
je 0x14000a9f2
mov rdx, r13
mov rcx, rsi
call fcn.140025260
jmp 0x14000aa10
mov rcx, r13
call fcn.14004fc30
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call fcn.140025ce0
mov rcx, rbx
call fcn.14004fc20
mov r13, qword [rsp + 0xc8]
mov rcx, rsi
mov rdx, r13
call fcn.140025d40
mov edx, 0x8000
mov rcx, rsi
call fcn.140025b30
mov rcx, qword [r15]
mov rdx, rsi
call fcn.140026490
jmp 0x14000aa56
mov rcx, qword [r15]
movsxd r8, eax
mov rdx, r14
movsxd rbx, eax
call fcn.140026410
cmp rax, rbx
jne 0x14000aa80
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 0x14000aa3d
cmp r12, r13
mov eax, 1
mov rcx, rsi
cmove rdi, rax
call fcn.140025500
mov rcx, qword [0x14029acb8]
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 0x14000b490
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14000b39c]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14000fc8c
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x14029b118], rax
call fcn.14000f9f8
xor ebx, ebx
cmp word [0x14029b110], bx
mov qword [0x14029b4a0], rax
jne 0x14000b5b3
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x14029b110], di
test eax, eax
je 0x14000b501
mov word [0x14029b110], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14029b140], rax
test rax, rax
je 0x14000b5b3
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029b140]
lea rdx, str.freeaddrinfo
mov qword [0x14029b120], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029b140]
lea rdx, str.getnameinfo
mov qword [0x14029b128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029b140]
lea rdx, str.WSAStringToAddressA
mov qword [0x14029b130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14029b120], rbx
mov qword [0x14029b138], rax
je 0x14000b5b3
cmp qword [0x14029b128], rbx
je 0x14000b5b3
cmp qword [0x14029b130], rbx
je 0x14000b5b3
mov ecx, dword [0x14029b114]
test rax, rax
cmovne ecx, edi
mov dword [0x14029b114], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14000bc2c
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x14000bc4a
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000bc88
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, 0x1c
jne 0x14000bc5e
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000bc6c
mov rcx, qword [rax]
jmp 0x14000bc70
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret

Function at 0x14000bc90
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
xor ebx, ebx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x14000bd3a
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x980]
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r9d, r9d
xor r8d, r8d
inc ecx
mov dword [rsp + 0x40], 1
mov qword [rbp + 0x980], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14000bd33
je 0x14000bdb9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000bdb9
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x14000bd33
cmp dword [rbp + 0x970], ebx
je 0x14000bd33
lea ebx, [rax + 2]
jmp 0x14000bdb9
mov ebx, 4
jmp 0x14000bdb9
mov rcx, qword [rcx + 0x30]
lea rax, [rbp + 0x978]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x800
mov dword [rbp + 0x978], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x14000bdb9
mov rcx, qword [0x14029acb8]
movsxd r8, eax
xor edx, edx
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x970]
mov dword [rdi + 0x40], ecx
mov r8, rcx
lea rdx, [rbp + 0x150]
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
add rsp, 0xa50
pop rdi
pop rbx
pop rbp
ret

Function at 0x14000bdc8
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x14000bdf5
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x14000be3d
cmp qword [rcx + 0x38], rsi
je 0x14000be3d
cmp r8d, dword [rcx + 0x40]
mov rdx, qword [rcx + 0x48]
mov esi, r8d
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x14000be3d
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x14029acb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret