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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x90]
call fcn.180004780
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x18002306a
mov rcx, qword [rsp + 0x88]
call fcn.1800275c0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x88]
jmp 0x1800231a7
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1800230b2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call fcn.1800275c0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x88]
jmp 0x1800231a7
lea rcx, [rsp + 0x58]
call fcn.1800275c0
nop
mov eax, dword [rsp + 0x44]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.1800244f0
nop
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180002490
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180023136
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call fcn.1800275c0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.180003930
mov rax, qword [rsp + 0x88]
jmp 0x1800231a7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
je 0x180023178
mov rcx, qword [rsp + 0x88]
call fcn.1800275c0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.180003930
mov rax, qword [rsp + 0x88]
jmp 0x1800231a7
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.180002510
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.180003930
mov rax, qword [rsp + 0x88]
add rsp, 0x78
ret
Function at 0x1800231b0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x68]
call fcn.180004780
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x18002320d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180023247
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x180023238
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180023247
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x180023690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x1800236b2
xor eax, eax
jmp 0x180023856
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1800236d7
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18000f230
jmp 0x180023856
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.180010270
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x18002376e
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180003c50
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.180010440
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.1800034b0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.1800103a0
nop
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x180023846
mov rcx, qword [rsp + 0x60]
call fcn.180024c00
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x18002380e
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.18004b874
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x18002380c
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x180023856
jmp 0x180023794
cmp qword [rsp + 0x20], 0
jbe 0x180023846
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.18004b874
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x180027a50
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1800842c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x20], 0
movzx eax, word [0x180077b6c]
mov word [rsp + 0x90], ax
lea rax, [rsp + 0x92]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov dword [rsp + 0x28], 0xff
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x180027b5c
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1800245b0
nop
lea rcx, [rsp + 0x24]
call fcn.180002740
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800298e0
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.180029940
mov rcx, qword [rsp + 0x30]
mov r9, rcx
mov rcx, qword [rsp + 0x38]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.18002bab0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x2b0]
call fcn.1800037b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x70]
call fcn.180004630
nop
lea rcx, [rsp + 0x50]
call fcn.180006cb0
mov rax, qword [rsp + 0x2b0]
jmp 0x180027b83
lea rdx, [0x18007679c]
mov rcx, qword [rsp + 0x2b0]
call fcn.1800160c0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800412e0
add rsp, 0x2a0
pop rdi
ret
Function at 0x180028240
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x8c0
mov rax, qword [0x1800842c0]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180028346
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov r8d, 0x800
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.180062fb0
mov r8d, 0x400
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jle 0x180028346
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.1800245b0
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x24]
call fcn.180021cf0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1800024f0
mov rdx, rax
mov rcx, qword [rsp + 0x8d0]
call fcn.1800160c0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x58]
call fcn.180003930
nop
lea rcx, [rsp + 0x70]
call fcn.180006cb0
nop
mov rax, qword [rsp + 0x8d0]
jmp 0x1800283a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.180004660
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x50]
lea rdx, str.W_e:
mov rcx, qword [rsp + 0x8d0]
call fcn.180002610
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.180004630
nop
mov rax, qword [rsp + 0x8d0]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1800412e0
add rsp, 0x8c0
pop rdi
ret
Function at 0x180035710
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x38
ret
Function at 0x180036b90
Capabilities:
Capture screenshot

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x1800842c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x70]
call fcn.180037c20
nop
lea r9, [rsp + 0x70]
lea r8, [0x180036ae0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
test eax, eax
jne 0x180036bfb
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x70]
call fcn.18001ffe0
mov rax, qword [rsp + 0x88]
jmp 0x180036ddf
cmp dword [rsp + 0x158], 0
jl 0x180036c2b
mov eax, dword [rsp + 0x158]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x70]
call fcn.180037bc0
mov rcx, qword [rsp + 0x90]
cmp rcx, rax
jb 0x180036c4e
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x70]
call fcn.18001ffe0
mov rax, qword [rsp + 0x98]
jmp 0x180036ddf
movsxd rax, dword [rsp + 0x158]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180037b90
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xc0], 0x68
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x180036dd4
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0xc4]
mov ecx, dword [rsp + 0xcc]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0xd0]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.DISPLAY
call qword [sym.imp.GDI32.dll_CreateDCW]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x40], 0xcc0020
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x70]
call fcn.18001ffe0
mov rax, qword [rsp + 0xb0]
jmp 0x180036ddf
lea rcx, [rsp + 0x70]
call fcn.18001ffe0
nop
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800412e0
add rsp, 0x140
pop rdi
ret
Function at 0x18003d550
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.18003d6f0
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x18003e780
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x18003e7a3
mov rcx, qword [rsp + 0x40]
call fcn.18003e850
nop
jmp 0x18003e7bb
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x18003e7bb
mov rcx, qword [rsp + 0x40]
call fcn.18003e900
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18003e850
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x18003e871
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x18003e8f5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x18003e8c0
mov dword [rsp + 4], 0x9908b0df
jmp 0x18003e8c8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x18003e864
add rsp, 0x18
ret
Function at 0x18003e900
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x18003e930
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x18003e9b2
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x18003e97e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x18003e986
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x18003e925
mov qword [rsp + 8], 0xe3
jmp 0x18003e9ca
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x18003ea51
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x18003ea1b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x18003ea23
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x18003e9bd
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x18003eaa5
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x18003eaad
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x18004c9f0
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 0x18004ca27
call fcn.18004d97c
mov dword [rax], 0x16
call fcn.180047454
xor eax, eax
jmp 0x18004cab5
mov rdx, r9
mov rcx, r8
call fcn.18004c98c
mov rbx, rax
test rax, rax
je 0x18004cab2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18004c8b8]
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 0x18004ca9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18004d8f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18004ca86
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18004ca95
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800514d4
jmp 0x18004cab2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18004caaf
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 0x18004e598
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 0x18004e607
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004e607
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004e607
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004e607
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004e607
cmp dword [rcx + 0x84], 0xe
jbe 0x18004e607
cmp dword [rcx + 0xf8], 0
je 0x18004e607
mov ecx, ebx
call fcn.18004e6b8
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.18004e494
nop
cmp dword [rbp + 0x20], 0
je 0x18004e655
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18004e660
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18004e598
Function at 0x180055aac
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.180041f20
sub rsp, rax
mov rax, qword [0x1800842c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180053578
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180055afb
mov rax, rbp
jmp 0x180055c03
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 + 0x881f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800556e8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x881f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180055bff
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 0x180055bff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800556e8
test rax, rax
js 0x180055bff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180055bff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180055bf1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180055bf1
cmp byte [rcx], 0xd
jne 0x180055bd7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180055be6
cmp byte [rcx + 1], 0xa
jne 0x180055be6
inc rcx
jmp 0x180055be6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x84700]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180055bb9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180055c03
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800412e0
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 0x180055e24
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180055e3a
mov al, 1
jmp 0x180055e9a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180055e4b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180055e98
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005d888
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180055e98
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180055e98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180055e98
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180055e9a
xor al, al
add rsp, 0x20
pop rbx
ret