joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479b40
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x479d7b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x479bda
mov qword [rsp + 0x88], rax
lea rbx, [0x00512340]
mov rcx, rax
lea rax, [0x005f8fe0]
call fcn.00474000
test cl, cl
jne 0x479bc3
mov rax, qword [rsp + 0x88]
call fcn.00478e60
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x005443b8]
call fcn.0044a980
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x50], rax
call fcn.0047af00
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x479bf7
lea rdx, [0x0050f800]
cmp rax, rdx
jne 0x479be5
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.0045b540
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004f7c80]
call fcn.0040a020
inc rdx
cmp rbx, rdx
jle 0x479c41
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x479bf4
lea rax, [0x005f8fe0]
lea rbx, [0x00512340]
lea rdi, [0x0050f800]
nop dword [rax + rax]
call fcn.004741c0
lea rdx, [0x0050f800]
cmp rax, rdx
jne 0x479d6b
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x004f03e0]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x004fe3a0]
call fcn.0040cc40
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x0064c890], 0
nop
je 0x479c9b
mov rbx, rax
lea rax, [0x004fe3a0]
call fcn.00412380
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.004014a0
call fcn.0045b600
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x479d02
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x479cf4
mov dword [rsi + 0x10], edx
cmp dword [0x0064c890], 0
je 0x479d23
call fcn.0045f7e0
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x005f8fe0]
lea rbx, [0x00512340]
lea rdi, [0x0050f800]
nop dword [rax]
call fcn.004741c0
lea rdx, [0x0050f800]
cmp rax, rdx
jne 0x479d5c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004f7c80]
call fcn.0040a020
mov rbx, rdx
lea rcx, [0x004f7c80]
call fcn.0040a020
nop
mov qword [rsp + 8], rax
call fcn.0045d8c0
mov rax, qword [rsp + 8]
jmp fcn.00479b40
Function at 0x487020
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4870ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403800
xorps xmm15, xmm15
mov r14, qword [0x0064c830]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4870cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004f45a0]
xor ebx, ebx
mov rcx, rdx
call fcn.00446bc0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00487ce0
inc rbx
cmp rcx, rbx
jae 0x4870be
mov edi, 1
lea rsi, [0x004f45a0]
call fcn.00446ca0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00545db8]
lea rsi, [0x00545298]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045d8c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00487020
Function at 0x140001dec
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1400115c0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x1400020c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400095a0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400098a4
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400020f0
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400096e0

Function at 0x1400027cc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140002843
movsxd rdx, ecx
lea rcx, [0x140002728]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140012648]
test rbx, rbx
je 0x1400028b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140002839
cmp byte [rbx + 0x20], 0
je 0x140002839
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400027ff
jmp 0x1400028b6
mov rbx, qword [0x140012648]
test rbx, rbx
je 0x1400028b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400028ae
cmp byte [rbx + 0x21], 0
je 0x140002872
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000289e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140012648]
call fcn.140009224
mov rbx, rdi
test rdi, rdi
jne 0x14000284f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140002bc8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rsi, rcx
mov rcx, r9
mov r14, r8
mov r13, rdx
xor ebx, ebx
call fcn.140009bd0
mov rcx, qword [0x140012388]
lea edi, [r14 + 0x18]
xor edx, edx
movsxd r8, edi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140002cea
mov eax, dword [rsi + 0x20]
mov r9d, edi
mov r8, r15
mov edx, r14d
mov rcx, r13
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.1400031f4
movsxd rdi, eax
test eax, eax
je 0x140002c4d
cmp rdi, r14
jge 0x140002c4d
mov r13, r15
jmp 0x140002c50
mov edi, r14d
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, qword [rsi]
lea r9, [rbp + 0x30]
mov word [rbp - 0x10], ax
movsxd rax, edi
lea rdx, [rbp - 0x20]
mov r8d, reloc.WS2_32.dll_select
mov qword [rbp - 0x20], r14
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp + 0x30], 0x12
jne 0x140002cd0
movsx r8d, word [rbp - 0x10]
mov rcx, qword [rsi]
lea r9, [rbp + 0x30]
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsx eax, word [rbp - 0x10]
cmp eax, dword [rbp + 0x30]
jne 0x140002cd0
mov rcx, qword [rsi]
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [rbp + 0x30]
mov eax, 1
cmove rbx, rax
mov rcx, rsi
call fcn.140003458
mov rcx, qword [0x140012388]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call fcn.140009bc0
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140003024
Capabilities:
Read file on windows

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, 0x30
mov r12, qword [rsp + 0x80]
xor r15d, r15d
or rsi, 0xffffffffffffffff
mov rbp, r9
mov r13, r8
mov r14, rdx
mov edi, r15d
mov rbx, rcx
test r9, r9
je 0x140003084
cmp word [r9], r15w
je 0x140003084
mov rcx, r9
call fcn.140009bd0
mov rcx, rbx
mov rdx, rax
mov rbp, rax
call fcn.1400034c4
mov rdi, rax
jmp 0x14000309a
cmp dword [rcx + 0x10], r15d
je 0x14000318f
movsxd rcx, dword [rcx + 0x18]
mov rax, qword [rbx + 8]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x14000318f
test r12, r12
je 0x1400030c0
mov r8, qword [rdi]
mov rcx, qword [0x140012388]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, qword [rdi]
mov r14, rax
test r14, r14
je 0x14000318f
cmp r13, qword [rdi]
jl 0x14000318f
mov edx, dword [rdi + 0x10]
mov rcx, qword [rbx]
lea r8, [rdi + 0x14]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8, qword [rdi + 8]
cmp r8, qword [rdi]
jne 0x14000311c
mov r8d, dword [rdi]
mov rcx, qword [rbx]
lea r9, [rsp + 0x80]
mov rdx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x80]
cmp qword [rdi], rax
jne 0x14000318f
mov rsi, rax
jmp 0x14000318f
mov rcx, qword [0x140012388]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x14000318c
mov r8d, dword [rdi + 8]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x80]
cmp qword [rdi + 8], rax
jne 0x14000317a
mov rbx, qword [rdi]
mov r8, r13
mov rdx, r14
mov rcx, r15
call fcn.14000378c
movsxd rcx, eax
cmp rcx, rbx
cmove rsi, rbx
mov rcx, qword [0x140012388]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor r15d, r15d
test r12, r12
je 0x1400031c0
cmp rsi, 0xffffffffffffffff
jne 0x1400031b6
test r14, r14
je 0x1400031b1
mov rcx, qword [0x140012388]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, r15
jmp 0x1400031c0
mov rcx, qword [rdi]
mov rsi, r14
mov qword [r12], rcx
test rbp, rbp
je 0x1400031d4
cmp word [rbp], r15w
je 0x1400031d4
mov rcx, rbp
call fcn.140009bc0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140003534
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
cmp qword [rcx + 8], 0
mov rbx, rcx
mov esi, 0x40
jne 0x1400036b6
mov rcx, qword [0x140012388]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbx + 0x14], 0
lea edi, [rsi - 0x3c]
xor r9d, r9d
mov qword [rbx + 8], rax
mov edx, edi
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
cmp dword [rbx + 0x1c], 0x706c7a31
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
jne 0x1400035d7
lea rdx, [rbp - 0x18]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x18
jne 0x1400036b6
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movzx eax, word [rbp - 8]
mov word [rbp - 0x20], ax
jmp 0x1400035f1
lea rdx, [rbp - 0x30]
mov r8d, reloc.WS2_32.dll_select
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x12
jne 0x1400036b6
cmp dword [rbx + 0x14], esi
jl 0x14000361a
mov r8, qword [rbx + 8]
mov rcx, qword [0x140012388]
add esi, 0x40
movsxd r9, esi
mov edx, 8
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx + 8], rax
movsx r8, word [rbp - 0x20]
mov rcx, qword [0x140012388]
xor edx, edx
add r8, 0x19
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp - 0x30]
and qword [rsp + 0x20], 0
mov qword [rax], rcx
mov rcx, qword [rbp - 0x28]
lea rdx, [rax + 0x18]
mov qword [rax + 8], rcx
movsx r8d, word [rbp - 0x20]
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx rcx, word [rbp - 0x20]
mov byte [rcx + r14 + 0x18], 0
cmp dword [rbx + 0x1c], 0x706c7a31
movsx rax, word [rbp - 0x20]
jne 0x14000367f
add rax, 0x18
jmp 0x140003683
add rax, 0x12
add rdi, rax
mov r9d, 1
lea r8, [rbp + 0x2c]
mov qword [r14 + 0x10], rdi
movsxd rcx, dword [rbx + 0x14]
mov rax, qword [rbx + 8]
add rdi, qword [rbp - 0x28]
mov qword [rax + rcx*8], r14
mov rax, qword [rbp - 0x28]
inc dword [rbx + 0x14]
mov qword [rbp + 0x28], rax
mov edx, eax
jmp 0x140003584
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003ffc
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, select
lea r8, [0x140003f10]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.140009048
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x140012a78], rax
call fcn.140008d7c
xor ebx, ebx
cmp word [0x140012a70], bx
mov qword [0x1400136a0], rax
jne 0x140004127
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x140012a70], di
test eax, eax
je 0x14000406d
mov word [0x140012a70], bx
lea rcx, str.ws2_32.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x140012aa0], rax
test rax, rax
je 0x140004127
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140012aa0]
lea rdx, str.freeaddrinfo
mov qword [0x140012a80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140012aa0]
lea rdx, str.getnameinfo
mov qword [0x140012a88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140012aa0]
lea rdx, str.WSAStringToAddressA
mov qword [0x140012a90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140012a80], rbx
mov qword [0x140012a98], rax
je 0x140004127
cmp qword [0x140012a88], rbx
je 0x140004127
cmp qword [0x140012a90], rbx
je 0x140004127
mov ecx, dword [0x140012a74]
test rax, rax
cmovne ecx, edi
mov dword [0x140012a74], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x1400048fc
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 0x400
call fcn.1400095a0
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x400
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000493a
mov ecx, 0x401
sub ecx, dword [rsp + 0x38]
call fcn.1400096e0
jmp 0x140004941
mov ecx, ebx
call fcn.140009720
add rsp, 0x20
pop rbx
ret

Function at 0x140004948
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov edx, ecx
mov ebx, select
mov ecx, ebx
call fcn.1400095a0
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140004985
sub ebx, dword [rsp + 0x38]
mov ecx, ebx
call fcn.1400096e0
jmp 0x14000498c
mov ecx, edi
call fcn.140009720
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004a08
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov ebx, ecx
lea rcx, [rbp - 0x69]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
cmp ebx, 6
jne 0x140004a3f
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x25]
jmp 0x140004ab9
lea rcx, [rbp - 0x69]
mov dword [rbp - 0x69], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140004a92
mov ecx, ebx
test ebx, ebx
je 0x140004a8c
dec ecx
je 0x140004a86
dec ecx
je 0x140004a80
dec ecx
je 0x140004a7a
dec ecx
je 0x140004a74
dec ecx
jne 0x140004a92
mov rax, qword [rbp - 0x49]
jmp 0x140004ab9
mov rax, qword [rbp - 0x51]
jmp 0x140004ab9
mov rax, qword [rbp - 0x39]
jmp 0x140004ab9
mov rax, qword [rbp - 0x41]
jmp 0x140004ab9
mov rax, qword [rbp - 0x59]
jmp 0x140004ab9
mov rax, qword [rbp - 0x61]
jmp 0x140004ab9
cmp ebx, 7
jne 0x140004ab7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8d, [rbx + 0x49]
lea rdx, [rbp + 7]
mov rcx, rax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x140004ab7
mov rax, qword [rbp + 0x4f]
jmp 0x140004ab9
xor eax, eax
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret

Function at 0x140004c90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140004cd4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x1400052a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400136e0]
call fcn.140008f20
mov rbx, rax
test rax, rax
je 0x1400052f3
cmp qword [rax + 8], 0
je 0x1400052d2
cmp dword [rax + 0x1c], 0
jne 0x1400052d2
mov rcx, rax
call fcn.140004c90
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x140005300
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x1400136e0]
mov rbx, r8
mov dword [rsp + 0x58], 0
call fcn.140008f20
test rax, rax
je 0x140005368
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14000534e
mov r8, rbx
mov rcx, rax
call fcn.140005380
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140005380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r14d
jne 0x1400053b4
call fcn.140004c90
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r14d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x140005419
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14000540f
dec rax
je 0x140005401
cmp rax, 2
je 0x1400053f5
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140005491
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140005491
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140005491
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140005491
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x140005461
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r14d
add eax, ebp
cdqe
jmp 0x140005494
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, rax
mov rcx, rsi
mov dword [rbx + 0x14], eax
cmovg rdi, rax
mov dword [rbx + 0x18], eax
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rdi + rbp]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400054c0
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x1400054cc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140010022], 0
mov edi, edx
mov rbx, rcx
jne 0x1400054ea
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [reloc.WS2_32.dll_bind], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140013720], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140013740], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140013740]
lea rdx, [0x140013760]
mov qword [0x140013780], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x1400054a8]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14000555c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x1400137a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400137e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400054cc
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x1400054cc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140010022], 0
mov edi, edx
mov rbx, rcx
jne 0x1400054ea
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [reloc.WS2_32.dll_bind], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140013720], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140013740], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140013740]
lea rdx, [0x140013760]
mov qword [0x140013780], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x1400054a8]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14000555c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x1400137a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400137e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret