joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2c90
Capabilities:
Read file on windows

Disassembly:
mov r8, rdx
mov rdx, rcx
mov rcx, qword [rcx]
cmp dword [rcx + 0x470], 0
je 0x1400b2ce4
mov rax, qword [rdx + 8]
mov r10d, dword [rax + 0xd8]
cmp r10d, 0xffffffff
je 0x1400b2cc9
mov rcx, qword [rcx + 0x4d0]
mov r9, r8
mov r8, qword [rdx + 0x18]
mov edx, r10d
jmp 0x1400e9370
mov rcx, qword [rax + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400b2cdc
mov rdx, qword [rdx + 0x18]
jmp fcn.1400ceac0
mov rcx, r8
jmp fcn.1400befe0
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400b2cd7
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x4d0]
jmp 0x1400e8890
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x30
mov rbx, r8
mov r9d, 8
lea r8, [rsp + 0x48]
lea edx, [r9 + 0xe]
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rbx
call fcn.1400e86c0
test eax, eax
jne 0x1400e88ca
mov rcx, rbx
call fcn.1400befe0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, r9
mov rbx, rcx
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], r8
call fcn.1400b3770
cmp dword [0x14020b008], 0
mov r12d, eax
je 0x1400e93bb
mov edx, 0x23
lea rcx, str._service_client_ioctrl__u__s__u_r__u_n
lea r9d, [rdx + 5]
lea r8d, [rdx - 0x13]
call fcn.1400b35e0
mov edi, 6
lea r8, [rsp + 0x20]
mov rcx, rbx
lea r9d, [rdi + 0xa]
lea edx, [rdi + 0x1d]
xor esi, esi
call fcn.1400e7830
test rax, rax
mov rbx, rax
je 0x1400e9456
cmp dword [0x14020b008], esi
je 0x1400e9400
call fcn.1400b3770
mov edx, dword [rbx + 4]
lea rcx, str._service_client_ioctrl_reply__d_in__f_seconds_n
sub eax, r12d
mov r8d, eax
call fcn.1400b35e0
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1400e9434
mov eax, dword [rbx]
lea r8, [rax - 8]
cmp r8, 0x28
ja 0x1400e942d
add eax, 0xfffffff8
lea rdx, [rbx + 8]
mov rcx, rbp
mov dword [rsp + 0x58], eax
call fcn.1401a6b10
mov esi, 1
jmp 0x1400e9441
mov edi, 0x7a
jmp 0x1400e9441
cmp eax, 5
jne 0x1400e9441
cmp dword [rbx], 0xc
jb 0x1400e9441
mov edi, dword [rbx + 8]
mov rcx, rbx
call fcn.1400ce0b0
test esi, esi
je 0x1400e9456
cmp dword [rsp + 0x58], 0x28
je 0x1400e947d
jmp 0x1400e9475
cmp dword [0x14020b008], 0
je 0x1400e946d
lea rcx, str.set_last_error__d_n
mov edx, edi
call fcn.1400b35e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call fcn.1400befe0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b3640
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
call fcn.1400012c0
lea rcx, [rsp + 0x20]
call fcn.140178220
lea rcx, str.Everything_n
call fcn.1400b35e0
mov rdx, qword [rsp + 0x28]
lea rcx, str.Version__s_n
call fcn.1400b35e0
cmp byte [0x14020b0f0], 0
mov r9d, dword [0x14020b0f8]
mov r8d, dword [0x14020b0f4]
lea rax, [0x1401b6bc4]
lea rdx, [0x1401aef92]
lea rcx, str.Windows_s__d._d_n
cmovne rdx, rax
call fcn.1400b35e0
mov edx, dword [0x14020b0fc]
lea rcx, str.Processors__d_n
call fcn.1400b35e0
call fcn.1400da0e0
lea rcx, str.IsAdmin__d_n
mov edx, eax
call fcn.1400b35e0
movsx edx, byte [0x14020ae23]
lea rcx, str.AppData__d_n
call fcn.1400b35e0
call fcn.140143510
lea rcx, str.Service__d_n
mov edx, eax
call fcn.1400b35e0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, str.cmdline__S_n
mov rdx, rax
call fcn.1400b35e0
lea rcx, [rsp + 0x20]
call fcn.140175010
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x158
ret

Function at 0x1400b37b0
Capabilities:
Access the windows event log
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x3a0
mov rbx, rcx
lea rcx, [rsp + 0x60]
mov rsi, r8
mov edi, edx
call fcn.1400012c0
lea rcx, [rsp + 0x180]
call fcn.1400012c0
mov rdx, qword [rsp + 0x3d8]
lea r8, [rsp + 0x3e0]
lea rcx, [rsp + 0x180]
call fcn.140176660
mov r11, qword [rsp + 0x188]
lea rdx, str._s__d_:__s__:_Fatal_error:__s
mov qword [rsp + 0x28], r11
lea rcx, [rsp + 0x60]
mov r9d, edi
mov r8, rbx
mov qword [rsp + 0x20], rsi
call fcn.140176700
lea rcx, [rsp + 0x180]
call fcn.140175010
mov rdx, qword [rsp + 0x68]
lea rcx, [0x1401b55c4]
call fcn.1400b35e0
cmp dword [0x14020b2e0], 0
je 0x1400b38d4
lea rcx, [rsp + 0x180]
call fcn.1400012c0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x180]
call fcn.14017b470
lea rdx, str.Everything
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
mov rbx, rax
je 0x1400b38c5
xor ecx, ecx
lea rax, [rsp + 0x188]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov dx, 1
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x180]
call fcn.140175010
jmp 0x1400b3930
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rcx, [0x1400b3100]
call fcn.1400db440
test rax, rax
mov rbx, rax
je 0x1400b3909
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b3930
mov r8, qword [0x1401fd5f8]
mov rax, qword [rsp + 0x68]
lea r9, [0x1401b2670]
mov r8, qword [r8]
mov edx, reloc.WS2_32.dll_recv
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400d47d0
lea rcx, [rsp + 0x60]
call fcn.140175010
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400b3b00
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
lea rcx, [0x14020afd8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401fca80], 0xffffffffffffffff
jne 0x1400b3bcc
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, str.Everything_Service_Debug_Log.txt
lea r8, str.Everything_Debug_Log.txt
test ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
cmovne r8, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ebx, ebx
lea rcx, [rsp + 0x250]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x1401fca80], rax
je 0x1400b3bcc
cmp dword [0x14020b000], ebx
jne 0x1400b3bc2
test rax, rax
jne 0x1400b3bc2
mov dword [0x14020b004], ebx
jmp 0x1400b3bcc
mov dword [0x14020b004], 1
lea rcx, [0x14020afd8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x470
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x30], rbx
cmp dword [rdi + 0x128], esi
jne 0x1400b5dd5
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x1400b5e6f
mov eax, dword [rax + 8]
mov dword [rdi + 0x128], eax
mov rdx, qword [rdi + 0x118]
movsxd r8, dword [rdi + 0x128]
xor r9d, r9d
movsxd rcx, dword [rdx + 8]
sub rcx, r8
lea rdx, [rcx + rdx + 0x10]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b5e62
test eax, eax
je 0x1400b5e33
sub dword [rdi + 0x128], eax
jne 0x1400b5db4
mov rax, qword [rdi + 0x118]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400ce0b0
test rbx, rbx
mov qword [rdi + 0x118], rbx
jne 0x1400b5db4
mov qword [rdi + 0x120], rsi
jmp 0x1400b5db4
mov rdx, qword [0x1401fd5f8]
mov rcx, rdi
mov r8, qword [rdx + 0x22f0]
mov rdx, qword [rdx + 0x2278]
call fcn.1400b4de0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b5e84
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x1401fd5f8]
mov rcx, rdi
mov r8, qword [rdx + 0x2318]
mov rdx, qword [rdx + 0x2278]
mov r9d, eax
call fcn.1400b4de0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400b7460
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x30], rbx
cmp dword [rdi + 0x1c8], esi
jne 0x1400b7491
mov rax, qword [rdi + 0x1b8]
test rax, rax
je 0x1400b74f0
mov eax, dword [rax + 8]
mov dword [rdi + 0x1c8], eax
mov rdx, qword [rdi + 0x1b8]
movsxd r8, dword [rdi + 0x1c8]
xor r9d, r9d
movsxd rcx, dword [rdx + 8]
sub rcx, r8
lea rdx, [rcx + rdx + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b7519
test eax, eax
je 0x1400b7507
sub dword [rdi + 0x1c8], eax
jne 0x1400b7474
mov rax, qword [rdi + 0x1b8]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400ce0b0
test rbx, rbx
mov qword [rdi + 0x1b8], rbx
jne 0x1400b7474
mov qword [rdi + 0x1c0], rsi
jmp 0x1400b7474
cmp dword [rdi + 0xe4], esi
je 0x1400b7526
mov rcx, qword [rdi + 8]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b7507
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400b8e60
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rcx
call fcn.1400b83d0
cmp dword [rbx + 0xd0], 0
mov eax, reloc.WS2_32.dll_socket
mov edi, 2
cmovne edi, eax
lea edx, [rax - 0x16]
lea r8d, [rax - 0x11]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x1d8], rax
je 0x1400b9041
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 1
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rdx, qword [0x14020b010]
mov rcx, qword [rbx + 0x1d8]
mov rdx, qword [rdx + 0x20]
mov r9d, 0x28
mov r8d, 0x402
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [rbx + 0x1d8]
xor eax, eax
cmp edi, 0x17
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
jne 0x1400b8f39
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x38], di
lea r8d, [rax + 0x1c]
lea rdx, [rsp + 0x38]
jmp 0x1400b8f4b
mov word [rsp + 0x38], 2
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400b902a
mov rcx, qword [rbx + 0x1d8]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400b9013
mov rcx, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400b8ffc
movzx eax, word [rsp + 0x60]
cmp ax, 0x17
je 0x1400b8faa
cmp ax, 2
jne 0x1400b8fe5
movzx eax, word [rsp + 0x62]
test eax, eax
je 0x1400b8fe5
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, str.229_Entering_Extended_Passive_Mode___d__r_n
mov rcx, rbx
movzx r8d, ax
call fcn.1400b79f0
mov dword [rbx + 0x1cc], 2
mov dword [rbx + 0x1d0], 1
jmp 0x1400b9061
mov rcx, rbx
call fcn.1400b83d0
movsx r8d, word [rsp + 0x60]
lea rdx, str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x1400b9059
mov rcx, rbx
call fcn.1400b83d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x1400b9056
mov rcx, rbx
call fcn.1400b83d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x1400b9056
mov rcx, rbx
call fcn.1400b83d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x1400b9056
mov rcx, rbx
call fcn.1400b83d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__socket_failed__d_r_n
mov r8d, eax
mov rcx, rbx
call fcn.1400b79f0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1401a6ae0
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret
Function at 0x1400baca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov ecx, 0x2d0
call fcn.1400ce030
xor edx, edx
mov r8d, 0x2d0
mov rcx, rax
mov rdi, rax
call fcn.1401a6e60
mov qword [rdi + 8], rbx
xor ebx, ebx
mov dword [rdi + 0xb8], ebx
call fcn.1400f2550
lea r8, [0x1400b8e20]
mov r9, rdi
xor edx, edx
mov rcx, rax
call fcn.140016ee0
lea rcx, [0x1401aef92]
mov qword [rdi + 0x90], rax
call fcn.14016bb20
lea rcx, [0x1401aef92]
mov qword [rdi + 0x260], 0xffffffffffffffff
mov dword [rdi + 0xd0], ebx
mov dword [rdi + 0x258], ebx
mov qword [rdi + 0xd8], rax
call fcn.14016bb20
lea rcx, [0x1401aef92]
mov qword [rdi + 0x100], rax
call fcn.14016bb20
lea rcx, [0x1401aef92]
mov qword [rdi + 0x108], rax
mov dword [rdi + 0x114], ebx
call fcn.14016bb20
lea rcx, [0x1401aef92]
mov qword [rdi + 0x158], rax
call fcn.14016bb20
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x10]
lea r8, [rsp + 0x20]
mov qword [rdi + 0x160], rax
mov dword [rdi + 0x16c], ebx
mov dword [rdi + 0xe0], 1
mov dword [rdi + 0x11c], 0xffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x30], 0x17
jne 0x1400badea
mov dword [rdi + 0xd0], 1
mov rax, qword [0x14020b010]
cmp qword [rax + 0x10], rbx
je 0x1400bae16
mov rax, qword [rax + 0x18]
mov qword [rax + 0xc0], rdi
mov rax, qword [0x14020b010]
mov rcx, qword [rax + 0x18]
mov qword [rdi + 0xc8], rcx
jmp 0x1400bae21
mov qword [rax + 0x10], rdi
mov qword [rdi + 0xc8], rbx
mov qword [rdi + 0xc0], rbx
mov rax, qword [0x14020b010]
lea rdx, str.Connected._r_n
mov rcx, rdi
mov qword [rax + 0x18], rdi
call fcn.1400b77c0
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401a6ae0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400bc050
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor r15d, r15d
nop
nop
nop
nop
mov rax, qword [rdi + 0x1a8]
cmp qword [rdi + 0x1a0], rax
jne 0x1400bc0e3
mov ecx, 0x10000
call fcn.1400ce030
cmp qword [rdi + 0x190], r15
mov r11, rax
je 0x1400bc0b2
mov rax, qword [rdi + 0x198]
mov qword [rax], r11
jmp 0x1400bc0b9
mov qword [rdi + 0x190], rax
mov qword [r11], r15
add dword [rdi + 0x1b0], 1
lea rax, [r11 + 0x10000]
mov qword [rdi + 0x1a8], rax
lea rax, [r11 + 8]
mov qword [rdi + 0x198], r11
mov qword [rdi + 0x1a0], rax
mov r8d, dword [rdi + 0x1a8]
mov rdx, qword [rdi + 0x1a0]
mov rcx, qword [rdi + 8]
sub r8d, dword [rdi + 0x1a0]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r13, eax
cmp r13d, 0xffffffff
je 0x1400bc2b0
test eax, eax
je 0x1400bc2ac
mov rsi, qword [rdi + 0x1a0]
mov rbx, r15
lea rax, [rsi + r13]
mov qword [rdi + 0x1a0], rax
nop
cmp byte [rsi], 0xa
jne 0x1400bc252
test rbx, rbx
mov byte [rsi], r15b
je 0x1400bc158
mov rdx, rbx
mov rcx, rdi
call fcn.1400bb770
add rsi, 1
mov rbx, rsi
jmp 0x1400bc256
mov ecx, dword [rdi + 0x1b0]
cmp ecx, 1
jne 0x1400bc182
mov rdx, qword [rdi + 0x198]
mov rcx, rdi
add rdx, 8
call fcn.1400bb770
add rsi, 1
mov rbx, rsi
jmp 0x1400bc256
mov eax, esi
sub eax, dword [rdi + 0x198]
sub eax, 8
movsxd rdx, eax
lea eax, [rcx - 1]
movsxd rcx, eax
imul rcx, rcx, 0xfff8
lea rcx, [rdx + rcx + 1]
call fcn.1400ce030
mov rbp, qword [rdi + 0x190]
cmp rbp, qword [rdi + 0x198]
mov r14, rax
mov r12, rax
je 0x1400bc1f1
nop
mov rbx, qword [rbp]
lea rdx, [rbp + 8]
mov r8d, 0xfff8
mov rcx, r12
call fcn.1401a6b10
mov rcx, rbp
add r12, 0xfff8
call fcn.1400ce0b0
cmp rbx, qword [rdi + 0x198]
mov rbp, rbx
jne 0x1400bc1c0
mov rdx, qword [rdi + 0x198]
mov eax, esi
mov rcx, r12
sub eax, dword [rdi + 0x198]
add rdx, 8
sub eax, 8
movsxd r8, eax
call fcn.1401a6b10
sub r12, qword [rdi + 0x198]
mov rdx, r14
mov byte [r12 + rsi - 8], r15b
mov rax, qword [rdi + 0x198]
mov rcx, rdi
mov qword [rdi + 0x190], rax
mov dword [rdi + 0x1b0], 1
call fcn.1400bb770
mov rcx, r14
call fcn.1400ce0b0
add rsi, 1
mov rbx, rsi
jmp 0x1400bc256
add rsi, 1
sub r13d, 1
jne 0x1400bc130
test rbx, rbx
je 0x1400bc080
mov eax, dword [rdi + 0x1a0]
mov rcx, qword [rdi + 0x198]
mov rdx, rbx
sub eax, ebx
add rcx, 8
movsxd r8, eax
call fcn.1401a6b10
mov r11d, dword [rdi + 0x1a0]
mov rax, qword [rdi + 0x198]
sub r11d, ebx
movsxd rcx, r11d
lea rcx, [rcx + rax + 8]
mov qword [rdi + 0x1a0], rcx
jmp 0x1400bc080
xor eax, eax
jmp 0x1400bc2c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400bd640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, rdx
xor edi, edi
mov r12d, r9d
lea edx, [rdi + 1]
mov r13, r8
call fcn.1400d41f0
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x1400bd707
lea rdx, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x68], rsi
call fcn.1400d6430
test eax, eax
je 0x1400bd6f9
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x38]
test ebx, ebx
jle 0x1400bd6e5
movsxd rcx, ebx
call fcn.1400ce080
test rax, rax
mov rsi, rax
je 0x1400bd6f4
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bd6db
cmp dword [rsp + 0x30], ebx
jne 0x1400bd6db
mov r9d, r12d
mov r8, r13
mov edx, ebx
mov rcx, rsi
call r14
mov edi, eax
mov rcx, rsi
call fcn.1400ce0b0
jmp 0x1400bd6f4
mov r9d, r12d
mov r8, r13
xor edx, edx
xor ecx, ecx
call r14
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x1400bd720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
lea edx, [rdi + 1]
call fcn.1400d41f0
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400bd7e3
lea r9, [rsp + 0x30]
lea r8d, [rdi + 0x1a]
lea rdx, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bd7da
cmp dword [rsp + 0x30], 0x1a
jne 0x1400bd7da
mov eax, dword [rsp + 0x38]
and eax, 0xffffff00
cmp eax, 0x474e5000
jne 0x1400bd7da
cmp dword [rsp + 0x44], 0x52444849
jne 0x1400bd7da
mov eax, dword [rsp + 0x48]
movzx ecx, byte [rsp + 0x51]
cmp cl, 2
bswap eax
mov dword [rbx], eax
mov eax, dword [rsp + 0x4c]
bswap eax
mov dword [rbx + 4], eax
movzx eax, byte [rsp + 0x50]
mov dword [rbx + 8], eax
je 0x1400bd7cf
cmp cl, 4
je 0x1400bd7cb
cmp cl, 6
jne 0x1400bd7d5
shl eax, 2
jmp 0x1400bd7d2
add eax, eax
jmp 0x1400bd7d2
lea eax, [rax + rax*2]
mov dword [rbx + 8], eax
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a6ae0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400bd810
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
xor ebx, ebx
lea edx, [rbx + 1]
call fcn.1400d41f0
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400bd888
lea r9, [rsp + 0x70]
lea r8d, [rbx + 0x1e]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bd87f
cmp dword [rsp + 0x70], 0x1e
jne 0x1400bd87f
cmp word [rsp + 0x30], 0x4d42
jne 0x1400bd87f
mov eax, dword [rsp + 0x42]
mov ebx, 1
mov dword [rdi], eax
mov eax, dword [rsp + 0x46]
mov dword [rdi + 4], eax
movzx eax, word [rsp + 0x4c]
mov dword [rdi + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400bdb00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebx, ebx
lea edx, [rbx + 1]
call fcn.1400d41f0
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400bdb8b
lea r9, [rsp + 0x60]
lea r8d, [rbx + 0xa]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bdb82
cmp dword [rsp + 0x60], 0xa
jne 0x1400bdb82
cmp dword [rsp + 0x30], 0x38464947
jne 0x1400bdb82
movzx eax, word [rsp + 0x34]
cmp ax, 0x6139
je 0x1400bdb67
cmp ax, 0x6137
jne 0x1400bdb82
movzx eax, word [rsp + 0x36]
mov dword [rdi + 8], 8
mov ebx, 1
mov dword [rdi], eax
movzx eax, word [rsp + 0x38]
mov dword [rdi + 4], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400bdba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0xf0], rax
movsxd rbp, edx
xor ebx, ebx
mov rdi, r8
lea edx, [rbx + 1]
call fcn.1400d41f0
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400bdd52
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x1400bdc7e
mov edx, dword [rsp + 0x5c]
xor r8d, r8d
mov rcx, rsi
add rdx, 0xffffffffffffff80
call fcn.1400da3f0
test eax, eax
je case.default.0x1400bdc7e
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov r8d, 0x80
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x1400bdc7e
cmp dword [rsp + 0x30], 0x80
jne case.default.0x1400bdc7e
cmp byte [rsp + 0x70], 0x54
jne case.default.0x1400bdc7e
cmp byte [rsp + 0x71], 0x41
jne case.default.0x1400bdc7e
cmp byte [rsp + 0x72], 0x47
jne case.default.0x1400bdc7e
cmp ebp, 6
ja case.default.0x1400bdc7e
lea rcx, [0x140000000]
mov eax, dword [rcx + rbp*4 + 0xbdd78]
add rax, rcx
jmp rax
lea rdx, [rsp + 0x73]
mov r8d, 0x1e
mov rcx, rdi
call fcn.1401794d0
jmp 0x1400bdd44
lea rdx, [rsp + 0x91]
mov r8d, 0x1e
mov rcx, rdi
call fcn.1401794d0
jmp 0x1400bdd44
lea rdx, [rsp + 0xaf]
mov r8d, 0x1e
mov rcx, rdi
call fcn.1401794d0
jmp 0x1400bdd44
lea rdx, [rsp + 0xcd]
mov r8d, 4
mov rcx, rdi
call fcn.1401794d0
jmp 0x1400bdd44
lea rdx, [rsp + 0xd1]
mov r8d, 0x1e
mov rcx, rdi
call fcn.1401794d0
jmp 0x1400bdd44
cmp byte [rsp + 0xed], bl
jne case.default.0x1400bdc7e
movzx eax, byte [rsp + 0xee]
test al, al
je case.default.0x1400bdc7e
lea rdx, [0x1401aef94]
movzx r8d, al
mov rcx, rdi
call fcn.140176700
jmp 0x1400bdd44
movzx eax, byte [rsp + 0xef]
cmp al, 0x7e
jae case.default.0x1400bdc7e
movzx edx, al
mov rdx, qword [rcx + rdx*8 + 0x1fcc30]
mov rcx, rdi
call fcn.140175d10
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401a6ae0
mov rbx, qword [rsp + 0x128]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret