joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400019f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
push rbx
sub rsp, 0x48
mov ecx, pe_nt_image_headers64
call fcn.140108230
mov ecx, 0x10
lea rbx, [rsp + 0x20]
movdqa xmm0, xmmword [str.NtAllocateVirtualMemory]
mov rdx, rax
mov rdi, rax
xor eax, eax
rep stosq qword [rdi], rax
mov rax, qword [0x14010e040]
mov rcx, rbx
mov qword [0x140270040], rdx
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
call fcn.140001820
movdqa xmm0, xmmword [str.NtProtectVirtualNtCreateThreadExNtWriteFNtClose]
mov rcx, rbx
mov dword [rsp + 0x30], 0x6f6d654d
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov byte [rsp + 0x36], 0
mov rax, qword [0x140270040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax], r8
mov qword [rax + 8], r9
mov eax, 0x7972
mov word [rsp + 0x34], ax
call fcn.140001820
movdqa xmm0, xmmword [0x14010e060]
mov rcx, rbx
mov byte [rsp + 0x30], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x140270040]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x10], r8
mov qword [rax + 0x18], r9
call fcn.140001820
mov rcx, rbx
mov byte [rsp + 0x2c], 0
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov dword [rsp + 0x28], 0x656c6946
mov rax, qword [0x140270040]
mov qword [rax + 0x20], r8
mov qword [rax + 0x28], r9
mov rax, qword [0x14010e060]
mov qword [rsp + 0x20], rax
call fcn.140001820
mov rcx, rbx
mov dword [rsp + 0x28], 0x656c69
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x140270040]
mov qword [rax + 0x30], r8
mov qword [rax + 0x38], r9
mov rax, qword [0x14010e070]
mov qword [rsp + 0x20], rax
call fcn.140001820
mov rcx, rbx
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rax, qword [0x140270040]
mov qword [rax + 0x40], r8
mov qword [rax + 0x48], r9
mov rax, qword [0x14010e078]
mov qword [rsp + 0x20], rax
call fcn.140001820
movdqa xmm0, xmmword [str.NtWaitForSingleO:]
mov rcx, rbx
mov edx, 0x74
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov word [rsp + 0x34], dx
mov rax, qword [0x140270040]
mov dword [rsp + 0x30], 0x63656a62
movaps xmmword [rsp + 0x20], xmm0
mov qword [rax + 0x50], r8
mov qword [rax + 0x58], r9
call fcn.140001820
mov rcx, qword [rax]
mov rbx, qword [rax + 8]
mov rax, qword [0x140270040]
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rbx
add rsp, 0x48
pop rbx
pop rdi
ret
Function at 0x140018630
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140024db0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140024db0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400186a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402700c4]
mov rbx, rcx
test esi, esi
jle 0x1400187d0
mov rax, qword [0x1402700c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400186eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140018775
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400186d0
mov rcx, rbx
call fcn.1400191d0
mov rdi, rax
test rax, rax
je 0x1400187f2
mov rax, qword [0x1402700c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140019310
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402700c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400187d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001876e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140018780
add dword [0x1402700c4], 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 [0x1402700c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001876e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140018630
nop dword [rax]
xor esi, esi
jmp 0x1400186f8
mov rax, qword [0x1402700c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140018630
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140018630
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140018ec0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140018ff0
ja 0x140018f08
test edx, edx
je 0x140018f88
mov eax, dword [0x140270108]
test eax, eax
je 0x140019070
mov dword [0x140270108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140018ef5
mov eax, dword [0x140270108]
test eax, eax
je 0x140018ef5
lea r12, [0x140270120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140270100]
test rbx, rbx
je 0x140018f74
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 0x140019098
test eax, eax
jne 0x140019098
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018f48
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018ef5
mov eax, dword [0x140270108]
test eax, eax
jne 0x140019008
mov eax, dword [0x140270108]
cmp eax, 1
jne 0x140018ef5
mov rbx, qword [0x140270100]
test rbx, rbx
je 0x140018fc1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.140025810
test rbx, rbx
jne 0x140018fb0
lea rcx, [0x140270120]
mov qword [0x140270100], 0
mov dword [0x140270108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140018ef5
call fcn.140018620
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140270120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140270100]
test rbx, rbx
je 0x14001905c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140019088
test rsi, rsi
je 0x140019088
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019038
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018f92
lea rcx, [0x140270120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x140018eeb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140019038
jmp 0x14001905c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018f48
jmp 0x140018f74

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

Disassembly:
mov r8, qword [0x140247130]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400191f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400191f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400191f0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140019245
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001923c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400191f0
add rax, 0x28
cmp rax, r9
jne 0x140019228
xor eax, eax
ret
Function at 0x140019250
Capabilities:
Parse pe header

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

Function at 0x140019310
Capabilities:
Parse pe header

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

Function at 0x140019750
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x140270108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140018de0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140018e2a
mov qword [rax + 8], rsi
lea rsi, [0x140270120]
mov dword [rax], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140270100]
mov rcx, rsi
mov qword [0x140270100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018dd6
or eax, 0xffffffff
jmp 0x140018dd8
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140019780
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140025ad0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140025ae0
xor eax, eax
ret
jmp 0x140018dc0

Function at 0x1400197c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400197f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140019808
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400b7ee0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400b7f28
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400b7efa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x180003100
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
lea rdx, [rsp + 0x90]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180003128
jmp 0x1800031f9
movzx eax, byte [0x180068210]
mov byte [rsp + 0x58], al
lea rax, [rsp + 0x59]
mov rdi, rax
xor eax, eax
mov ecx, 0x31
rep stosb byte [rdi], al
mov edx, 0x32
lea rcx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x180003163
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1800031f9
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x2c], 2
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1800031a7
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1800031f9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
add rax, 4
mov r9d, socket
mov r8, qword [rsp + 0x240]
mov rdx, rax
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
jne 0x1800031e8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1800031f9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
add rsp, 0x230
pop rdi
ret
Function at 0x180003210
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov dword [rsp + 0x34], 0
mov rax, qword [0x180068218]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
lea rcx, [rsp + 0x58]
call fcn.180003100
movzx eax, byte [0x180068211]
mov byte [rsp + 0x70], al
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x31
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800032dd
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, socket
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800032d2
cmp dword [rsp + 0x38], 0
je 0x1800032d2
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x70], 0x2a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x180068220]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x2a
rep stosb byte [rdi], al
mov dword [rsp + 0x30], gethostname
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r8, [rsp + 0xa8]
mov edx, 0x32
lea rcx, [rsp + 0x70]
call fcn.18003ae08
mov rax, qword [0x180068228]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x2a
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x32
lea r8, [rsp + 0xe0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
mov rax, qword [str.Unknown]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 2
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
lea r8, [0x180068238]
mov edx, 0xa
lea rcx, [rsp + 0x40]
call fcn.1800011d0
mov eax, dword [0x18006823c]
mov dword [rsp + 0x3c], eax
mov rdx, qword [rsp + 0x238]
lea rcx, [rsp + 0x120]
call fcn.180004300
nop
mov rdx, qword [rsp + 0x240]
lea rcx, [rsp + 0x140]
call fcn.180004300
nop
mov rdx, qword [rsp + 0x248]
lea rcx, [rsp + 0x160]
call fcn.180004300
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x180]
call fcn.1800042b0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x1a0]
call fcn.1800042b0
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x1c0]
call fcn.1800042b0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1e0]
call fcn.1800042b0
nop
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x200]
call fcn.1800042b0
nop
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x230]
call fcn.180003570
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x120]
call fcn.1800034d0
nop
mov rcx, qword [rsp + 0x238]
call fcn.1800041d0
nop
mov rcx, qword [rsp + 0x240]
call fcn.1800041d0
nop
mov rcx, qword [rsp + 0x248]
call fcn.1800041d0
mov rax, qword [rsp + 0x230]
add rsp, 0x220
pop rdi
ret
Function at 0x180013250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
add rax, 5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
movzx eax, word [rsp + 0x20]
dec eax
cdqe
imul rax, rax, 0x28
movzx ecx, word [rsp + 0x20]
dec ecx
movsxd rcx, ecx
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x40]
mov eax, dword [rdx + rax + 0x14]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx + 0x10]
lea eax, [rax + rcx + 5]
mov dword [rsp + 0x28], eax
call fcn.18003adc4
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x28]
lea r9, [rsp + 0x48]
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x24], 0
jmp 0x18001332f
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x400
jge 0x18001335a
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
movzx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x2c]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x78]
mov byte [rdx + rcx], al
jmp 0x180013325
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x18002c700
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x20], 0
mov ecx, 0x1388
call fcn.1800404c4
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8d, 0x1388
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jle 0x18002c79c
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add eax, 0x1388
cdqe
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.180041f70
mov qword [rsp + 0x30], rax
jmp 0x18002c738
cmp dword [rsp + 0x28], 0xffffffff
jne 0x18002c7d9
mov rcx, qword [rsp + 0x30]
call fcn.1800404b0
lea rdx, [0x180068243]
mov rcx, qword [rsp + 0x90]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
jmp 0x18002c912
lea rdx, str.Content_Length
mov rcx, qword [rsp + 0x30]
call fcn.18002cc10
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18002c832
mov edx, recv
mov rcx, qword [rsp + 0x40]
call fcn.18002cbf0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov byte [rax], 0
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov rcx, rax
call fcn.1800431f8
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov byte [rax], 0xd
jmp 0x18002c868
mov rcx, qword [rsp + 0x30]
call fcn.1800404b0
lea rdx, [0x180068247]
mov rcx, qword [rsp + 0x90]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
jmp 0x18002c912
cmp dword [rsp + 0x38], 0
jne 0x18002c8a2
mov rcx, qword [rsp + 0x30]
call fcn.1800404b0
lea rdx, [0x18006824a]
mov rcx, qword [rsp + 0x90]
call fcn.1800042b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
jmp 0x18002c912
lea rdx, str._r_n_r_n
mov rcx, qword [rsp + 0x30]
call fcn.18002cc10
add rax, 4
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.180013020
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1800042b0
mov rcx, qword [rsp + 0x30]
call fcn.1800404b0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.180004200
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x58]
call fcn.1800041d0
mov rax, qword [rsp + 0x90]
add rsp, 0x88
ret
Function at 0x18004a654
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180031e90
sub rsp, rax
mov rax, qword [0x180071040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180046aac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004a6a3
mov rax, rbp
jmp 0x18004a7ab
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x735b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004a2fc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x735b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004a7a7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004a7a7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004a2fc
test rax, rax
js 0x18004a7a7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004a7a7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004a799
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004a799
cmp byte [rcx], 0xd
jne 0x18004a77f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004a78e
cmp byte [rcx + 1], 0xa
jne 0x18004a78e
inc rcx
jmp 0x18004a78e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x71470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004a761
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004a7ab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180031e60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004ab80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800735b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18004abd7
cmp word [rdx], r13w
jne 0x18004abd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004abdc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004ad01
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004ad22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004ac15
mov rdx, r9
mov word [rbx], cx
jmp 0x18004ac3c
cmp r9, r8
jae 0x18004ac4c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18004abf6
jmp 0x18004ad01
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004acf6
cmp dword [rsp + 0x80], esi
je 0x18004acf6
lea r8, [0x1800735b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004acce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004ac9e
mov word [rbx], r13w
jmp 0x18004acfe
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18004acab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004acfe
cmp word [rsp + 0x70], r13w
jne 0x18004acdb
cmp rbx, r14
je 0x18004ac98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004a304
cmp word [rsp + 0x70], r13w
je 0x18004ad01
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800735b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004acfb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004ad01