joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb4fe
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140168f60
mov rax, rcx
neg rcx
test rax, 7
je 0x140168f7d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140168fd8
test al, 7
jne 0x140168f70
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140168f91
mov rdx, qword [rax - 8]
test dl, dl
je 0x140169002
test dh, dh
je 0x140168ffc
shr rdx, 0x10
test dl, dl
je 0x140168ff6
test dh, dh
je 0x140168ff0
shr rdx, 0x10
test dl, dl
je 0x140168fea
test dh, dh
je 0x140168fe4
shr edx, 0x10
test dl, dl
je 0x140168fde
test dh, dh
jne 0x140168f91
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400bb535
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402116c0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140211240
lea rcx, [rsp + 0x20]
call fcn.140211290
movzx eax, al
test eax, eax
jne 0x140211705
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140211270
mov rax, qword [rsp + 0x40]
jmp 0x1402117ff
lea rcx, [rsp + 0x20]
call fcn.140211390
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140211330
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400bb8b9
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400baeaa
lea rcx, [rsp + 0x28]
call fcn.1400bbd87
movzx eax, al
test eax, eax
jne 0x14021179f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400bd22c
lea rcx, [rsp + 0x20]
call fcn.140211270
mov rax, qword [rsp + 0x50]
jmp 0x1402117ff
lea rcx, [rsp + 0x20]
call fcn.140211390
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400be1ea
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400bb7fb
lea rcx, [rsp + 0x28]
call fcn.1400beb4a
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400bd22c
lea rcx, [rsp + 0x20]
call fcn.140211270
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400bb59e
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
jmp 0x1400cfc70
push rbp
push rsi
push rdi
sub rsp, 0x6e0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x120
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14028b080]
xor rax, rbp
mov qword [rbp + 0x6b8], rax
lea rcx, [0x1402a70f8]
call fcn.1400be2d0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x1400cfcf8
lea rdx, [0x140242578]
lea rcx, [0x14028db10]
call fcn.1400b98fc
lea rdx, [0x1400b9334]
mov rcx, rax
call fcn.1400bba2b
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400cfe8d
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1e8], rax
cmp qword [rbp + 0x1e8], 0xffffffffffffffff
jne 0x1400cfd3a
lea rdx, [0x140242590]
lea rcx, [0x14028db10]
call fcn.1400b98fc
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400cfe8d
lea rax, [rbp + 0x210]
lea rcx, str.192.168.0.4
mov rdi, rax
mov rsi, rcx
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x21c]
mov rdi, rax
xor eax, eax
mov ecx, 0xf3
rep stosb byte [rdi], al
mov eax, 2
mov word [rbp + 0x328], ax
mov cx, 0x1b58
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x32a], ax
lea r8, [rbp + 0x32c]
lea rdx, [rbp + 0x210]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x328]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0xffffffff
jne 0x1400cfdf4
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x1402425b8]
lea rcx, [0x14028db10]
call fcn.1400b98fc
lea rdx, [0x1400b9334]
mov rcx, rax
call fcn.1400bba2b
jmp 0x1400cfe8d
lea rcx, [rbp + 0x360]
call fcn.1400cb840
xor r9d, r9d
mov r8d, 0xff
lea rdx, [rbp + 0x364]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
jg 0x1400cfe56
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x1402425d0]
lea rcx, [0x14028db10]
call fcn.1400b98fc
lea rdx, [0x1400b9334]
mov rcx, rax
call fcn.1400bba2b
jmp 0x1400cfe8d
lea rdx, [0x1402425e8]
lea rcx, [0x14028db10]
call fcn.1400b98fc
lea rdx, [rbp + 0x364]
mov rcx, rax
call fcn.1400b98fc
lea rdx, [0x1400b9334]
mov rcx, rax
call fcn.1400bba2b
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.1400bd46b
mov rcx, qword [rbp + 0x6b8]
xor rcx, rbp
call fcn.1400bb7d8
lea rsp, [rbp + 0x6c0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bba5d
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14015f6e0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015f060
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015f71f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402a8020]
jmp 0x14015f729
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bbcb0
Capabilities:
Query environment variable

Disassembly:
jmp 0x140211410
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140211240
lea rcx, [rsp + 0x40]
call fcn.1402113c0
movzx eax, al
test eax, eax
jne 0x140211458
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140211270
mov rax, qword [rsp + 0x70]
jmp 0x140211629
lea rcx, [rsp + 0x40]
call fcn.140211390
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140211330
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140211390
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400bce58
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402114fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140211270
mov rax, qword [rsp + 0x80]
jmp 0x140211629
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bb8b9
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bb69d
lea rcx, [rsp + 0x48]
call fcn.1400bb0c6
movzx eax, al
test eax, eax
jne 0x140211565
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9cdf
lea rcx, [rsp + 0x40]
call fcn.140211270
mov rax, qword [rsp + 0x88]
jmp 0x140211629
lea rcx, [rsp + 0x48]
call fcn.1400bc1a1
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140211390
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400bce58
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1402115fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9cdf
lea rcx, [rsp + 0x40]
call fcn.140211270
mov rax, qword [rsp + 0xa0]
jmp 0x140211629
lea rcx, [rsp + 0x48]
call fcn.1400bb657
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400b9cdf
lea rcx, [rsp + 0x40]
call fcn.140211270
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bbcc9
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14015f610
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14015efe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015f651
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402a8020]
jmp 0x14015f657
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bbd91
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401f1420
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401f0350
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401f1487
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402a8030]
jmp 0x1401f14a9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bb03a
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400bbda5
Capabilities:
Terminate process

Disassembly:
jmp 0x14013c1b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bc13d
Capabilities:
Print debug messages

Disassembly:
jmp 0x14021ed70
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14028b080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14021ed96
jmp 0x14021ee13
mov rcx, qword [rbp + 0x30]
call fcn.1400bb4fe
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14021edaf
jmp 0x14021ee13
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14021edcc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400b9f0a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ba509
test eax, eax
jne 0x14021ee13
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bb7d8
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bc570
Capabilities:
Set environment variable

Disassembly:
jmp 0x140213570
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400bc8b3
Capabilities:
Parse pe header

Disassembly:
jmp 0x14013dbc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14013dbe0
xor al, al
jmp 0x14013dc61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14013dbf3
xor al, al
jmp 0x14013dc61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14013dc1d
xor al, al
jmp 0x14013dc61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14013dc31
xor al, al
jmp 0x14013dc61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14013dc43
xor al, al
jmp 0x14013dc61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14013dc5f
xor al, al
jmp 0x14013dc61
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bd119
Capabilities:
Terminate process

Disassembly:
jmp 0x1401609d0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401609fe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400bdcdb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bdd5d
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401eea70
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400bdec0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14015f750
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015f0a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015f799
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402a8020]
jmp 0x14015f7a8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400bdfc4
Capabilities:
Set environment variable

Disassembly:
jmp 0x140229b00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bae55
lea rcx, [rsp + 0x48]
call fcn.1400bae55
call fcn.1400bbc38
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bab35
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140229b6f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400bb3a5
lea rcx, [rsp + 0x78]
call fcn.1400bb3a5
mov eax, dword [rsp + 0x24]
jmp 0x140229c00
call fcn.1400bbc38
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bab35
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140229bb6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400bb3a5
lea rcx, [rsp + 0x78]
call fcn.1400bb3a5
mov eax, dword [rsp + 0x2c]
jmp 0x140229c00
lea rcx, [rsp + 0x48]
call fcn.1400bad79
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bad79
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400bb3a5
lea rcx, [rsp + 0x78]
call fcn.1400bb3a5
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1401f8bf0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b9f0a
sub rsp, rax
mov rax, qword [0x14028b080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14028fd50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401f8de2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401f8d36
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401f8d36
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401f8d1b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1401f8cb8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401f8da2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401f8e01
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1401f8ddd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401f8e01
jmp 0x1401f8c8e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bb7d8
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401f8eb0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b9f0a
sub rsp, rax
mov rax, qword [0x14028b080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14028fd50]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401f90bd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1401f9009
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401f9009
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1401f8fe9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, recv
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401f8f78
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401f907d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401f90dc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1401f90b8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401f90dc
jmp 0x1401f8f4e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bb7d8
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140028100]
mov dword [rax], 1
mov rax, qword [0x140028110]
mov dword [rax], 1
mov rax, qword [0x140028120]
mov dword [rax], 1
mov rax, qword [0x1400280f0]
mov dword [rax], 1
mov rax, qword [0x140027f00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret