joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff761134840
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x7ff761134875
lea rdx, [0x7ff761179bf0]
call fcn.7ff761116b80
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x7ff76113488c
mov r8d, edx
lea rdx, [0x7ff761179c10]
call fcn.7ff761116d00
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x7ff7611348a8
mov rcx, rdi
call fcn.7ff761134780
jmp 0x7ff7611349df
cmp esi, 0x14
jne 0x7ff7611349c1
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + reloc.ucrtbase.dll_free], 2
jne 0x7ff761134929
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x7ff761134929
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.7ff7611012b0
test eax, eax
jne 0x7ff7611349df
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.7ff761150768
test rax, rax
je 0x7ff76113491e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x7ff761134929
mov rcx, qword [rsp + 0x50]
call qword [fcn.7ff7611a3028]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x7ff76113494d
cmp byte [rsi + 0xf0d], bl
lea rax, [0x7ff761179890]
lea rdx, [0x7ff7611789dc]
cmovne rdx, rax
lea r8, [0x7ff76117eaea]
test rbp, rbp
mov r9, r8
lea rax, [0x7ff761170024]
cmovne r9, rbp
lea rcx, [0x7ff7611742b0]
cmovne r8, rax
call fcn.7ff761105500
mov rcx, rbp
mov r14, rax
call qword [fcn.7ff7611a3028]
test r14, r14
jne 0x7ff76113498c
lea ebx, [r14 + 0x1b]
jmp 0x7ff7611349e1
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x7ff7611836a8]
call fcn.7ff76114a9a0
mov rcx, r14
mov esi, eax
call qword [fcn.7ff7611a3028]
test esi, esi
je 0x7ff7611349b5
mov ebx, esi
jmp 0x7ff7611349e1
mov dword [rdi + reloc.ucrtbase.dll_free], 0x1f
jmp 0x7ff7611349e1
cmp esi, 0x15
jne 0x7ff7611349cc
lea r8d, [rsi - 8]
jmp 0x7ff7611349d5
cmp esi, 0x16
jne 0x7ff7611349e1
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.7ff7611342b0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x7ff76113a2d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x7ff76113a3f4
cmp r8d, 0xff
jne 0x7ff76113a331
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x7ff76113a31b
lea r8, [0x7ff761040000]
mov r9, qword [r8 + r10*8 + 0x13a600]
mov r8, rdx
lea rdx, [0x7ff76117b080]
add rsp, 0x38
jmp fcn.7ff761116d00
mov r8, rdx
mov r9d, r10d
lea rdx, [0x7ff76117b090]
add rsp, 0x38
jmp fcn.7ff761116d00
cmp r8d, 0xfb
jne 0x7ff76113a343
lea r9, [0x7ff76117b00c]
jmp 0x7ff76113a381
cmp r8d, 0xfc
jne 0x7ff76113a355
lea r9, [0x7ff76117b014]
jmp 0x7ff76113a381
cmp r8d, 0xfd
jne 0x7ff76113a367
lea r9, [0x7ff76117b01c]
jmp 0x7ff76113a381
xor r9d, r9d
lea rax, [0x7ff76117b020]
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x7ff76113a3dd
cmp r10d, 0x27
jg 0x7ff76113a3b4
lea r8, [0x7ff761040000]
mov r8, qword [r8 + r10*8 + 0x13ac20]
test r8, r8
jne 0x7ff76113a3c4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, [0x7ff76117b0b8]
call fcn.7ff761116d00
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x7ff76113a39b
lea r8, [0x7ff76117b09c]
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, [0x7ff76117b0a8]
call fcn.7ff761116d00
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, [0x7ff76117b0c8]
call fcn.7ff761116d00
add rsp, 0x38
ret

Function at 0x7ff76113a740
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff76113a79f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff76117b0d8]
mov rcx, rbp
mov r8d, eax
call fcn.7ff761116b80
mov rcx, qword [rbx]
lea rdx, [0x7ff76117b0f4]
mov r9d, edi
mov r8d, esi
call fcn.7ff76113a2d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff76113a950
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x7ff76113aaf8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x7ff76113a9b5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x7ff76113a9b5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x7ff76113a9b5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.ws2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.ws2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x7ff76113a9ec
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x7ff76113aa42
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff76113aa42
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff76113aa42
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff76113aa42
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff76113aa42
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.7ff76113a400
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x7ff76113aaa4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff76117b0d8]
mov rcx, rbp
mov r8d, eax
call fcn.7ff761116b80
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.7ff76113a7d0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff76113aaf0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff76117b0d8]
mov rcx, rbp
mov r8d, eax
call fcn.7ff761116b80
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x7ff76113c260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x7ff7611a3088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + reloc.ucrtbase.dll_free]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp dword [rbx + reloc.ucrtbase.dll_free], 0
mov dword [rbx + reloc.ucrtbase.dll_free], eax
jne 0x7ff76113c2f5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.7ff761150774
mov eax, dword [rsp + 0x30]
mov dword [rbx + reloc.ucrtbase.dll_free], eax
mov r8d, dword [rbx + reloc.ucrtbase.dll_free]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x7ff76113c356
lea rdx, [0x7ff76117b970]
mov rcx, rdi
call fcn.7ff761116b80
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.7ff76114ff90
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x7ff76113c411
sub ecx, 1
je 0x7ff76113c484
sub ecx, 1
je 0x7ff76113c3c0
cmp ecx, 1
je 0x7ff76113c3a3
lea r8, [0x7ff76117b9a0]
mov rcx, rdi
lea rdx, [0x7ff7611836a8]
call fcn.7ff761116b80
jmp 0x7ff76113c484
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.7ff76113bf90
test eax, eax
je 0x7ff76113c484
jmp 0x7ff76113c32a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.7ff761150786
test rax, rax
je 0x7ff76113c484
sub rax, rsi
cmp rax, rbp
jae 0x7ff76113c484
mov r8, rsi
lea rdx, [0x7ff76117b990]
mov rcx, rdi
call fcn.7ff761116d00
jmp 0x7ff76113c484
cmp r8d, 4
jle 0x7ff76113c484
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x7ff76113c484
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.7ff761116aa0
mov esi, eax
test eax, eax
je 0x7ff76113c463
mov edx, 5
mov rcx, rbx
call fcn.7ff76113cf50
mov eax, esi
jmp 0x7ff76113c32a
mov eax, dword [rbx + reloc.ucrtbase.dll_free]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.7ff761125380
mov rcx, r14
call fcn.7ff761125660
test eax, eax
je 0x7ff76113c328
mov edx, 5
mov rcx, rbx
call fcn.7ff76113cf50
mov eax, 0x2a
jmp 0x7ff76113c32a
Function at 0x7ff76114f220
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.7ff7611a3020]
mov rdi, rax
test rax, rax
jne 0x7ff76114f262
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x7ff76114f2a9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x7ff76114f302
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x7ff76114f2c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x7ff76114f343
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x7ff76117e1e2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x7ff76117e1e3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff76114f310
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x7ff76114f360
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, [0x7ff76117e2f0]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff76114f3e4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff76117e1f0]
cmp byte [rcx + rax], 0
je 0x7ff76114f3e4
dec r8
sub rdx, 1
jne 0x7ff76114f3ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x7ff76114fc64
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
call qword [sym.imp.kernel32.dll_TerminateProcess]
Function at 0x7ff761150420
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff76115046a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff76115046a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.ucrtbase.dll_free
jne 0x7ff76115046a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff76115046a
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff76115046a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff76115046c
xor al, al
add rsp, 0x28
ret
Function at 0x140005aa4
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov ebx, 0x114
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call fcn.140005536
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140005bda
cmp dword [rsp + 0x30], 2
jne 0x140005bda
cmp dword [rsp + 0x24], 6
jb 0x140005bda
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x20a
call fcn.140005536
lea edx, [rbx - 0x10]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140005bda
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x140005bda
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov ebx, 0x105
cmp word [rbp + rcx*2 + 0x3e], 0x5c
je 0x140005b79
lea r8, [0x140007af0]
mov edx, ebx
lea rcx, [rbp + 0x40]
call fcn.140004d70
test eax, eax
jne 0x140005bda
lea r8, str.kernel32.dll
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140004d70
test eax, eax
jne 0x140005bda
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140005bda
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140005bd1
mov rcx, rax
call qword [fcn.140005cf0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400053e0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140006078
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x14000400c
mov rcx, qword [rcx + 0x30]
jmp 0x140006078
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400060a4
xor eax, eax
jmp 0x140006106
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rcx
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400060de
lea eax, [rdi + 1]
jmp 0x140006106
cmp eax, 0xffffffff
je 0x1400060a0
mov r9d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
seta dil
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400053e0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140028150]
mov dword [rax], 1
mov rax, qword [0x140028160]
mov dword [rax], 1
mov rax, qword [0x140028170]
mov dword [rax], 1
mov rax, qword [0x140028140]
mov dword [rax], 1
mov rax, qword [0x140027fd0]
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
Function at 0x14000349c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str.C:_nim_nim_1.6.20lib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_3
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x1400244c8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x1400244c8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x1400035eb
mov qword [rbp - 0x40], 0x333
lea rax, str.C:_nim_nim_1.6.20lib_systemio.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x14000354d
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x140003561
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_u205
mov qword [rbp - 0x40], 0xb
lea rax, [0x1400244c8]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x1400035c5
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x1400035de
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x14000351b
nop
mov qword [rbp - 0x40], 0x339
lea rax, str.C:_nim_nim_1.6.20lib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400244f3]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str.C:_nim_nim_1.6.20lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
call sym.popFrame_3
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x1400054ba
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400054ea
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x1400054ef
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000db2a
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001b840
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14001c472
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140043248]
test eax, eax
je 0x14001c50a
lea rax, [0x140043220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140043250]
mov qword [rbp - 8], rax
jmp 0x14001c4ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001c4e2
cmp qword [rbp - 0x10], 0
je 0x14001c4e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001c4a8
lea rax, [0x140043220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001c50b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001c610
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001c638
mov eax, 0
jmp 0x14001c686
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 0x14001c661
mov eax, 0
jmp 0x14001c686
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001c681
mov eax, 0
jmp 0x14001c686
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001c68c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001c70a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001c701
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001c701
mov rax, qword [rbp - 8]
jmp 0x14001c71f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001c6d4
mov eax, 0
add rsp, 0x20
pop rbp
ret