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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14011ac70
sub rsp, rax
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.1401295f8
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x14012a5f8
mov rax, r14
jmp 0x14012a712
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x181440]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.140136bb8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x181440]
cmp r13, qword [rbx + rcx + 0x30]
je 0x14012a65f
or rax, 0xffffffffffffffff
jmp 0x14012a712
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x181440]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012a656
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.140136bb8
test rax, rax
js 0x14012a656
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x14012a656
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x14012a706
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14012a706
cmp byte [rcx], 0xd
jne 0x14012a6ec
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14012a6fb
cmp byte [rcx + 1], 0xa
jne 0x14012a6fb
inc rcx
jmp 0x14012a6fb
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x17bac0]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x14012a6ce
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14011a370
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140131464
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x140181440]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x1401314c9
cmp byte [r14], 0xa
jne 0x1401314c9
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1401314ea
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x140131644
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x140131604
cmp al, 0xd
je 0x14013151e
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x1401315f9
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x140131544
cmp byte [rax], 0xa
jne 0x140131536
mov byte [rbx], 0xa
mov eax, 2
jmp 0x14013153c
mov byte [rbx], ntohl
mov rax, r13
add rsi, rax
jmp 0x1401315f6
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401315ec
cmp dword [rsp + 0x78], 0
je 0x1401315ec
mov rcx, rdi
lea r10, [0x140181440]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1401315bc
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x1401315c8
mov rcx, rdi
mov byte [rbx], ntohl
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x1401315f6
cmp byte [rsp + 0x70], 0xa
jne 0x1401315cd
cmp rbx, r14
jne 0x1401315cd
mov byte [rbx], 0xa
jmp 0x1401315f6
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.140136bc0
cmp byte [rsp + 0x70], 0xa
lea r10, [0x140181440]
je 0x1401315f9
jmp 0x1401315f3
lea r10, [0x140181440]
mov byte [rbx], ntohl
add rbx, r13
cmp rsi, rbp
jb 0x140131503
jmp 0x140131644
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14013163d
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x140131644
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140131664
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 r11, [0x140181440]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x1401316d0
cmp word [r14], r10w
jne 0x1401316d0
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x1401316f1
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1401318ca
mov ecx, ntohl
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140131888
cmp ax, cx
je 0x14013172d
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x140131821
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x140131755
cmp word [rax], r10w
jne 0x140131747
mov word [rbx], r10w
mov eax, 4
jmp 0x14013174d
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x14013186b
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140131870
cmp dword [rsp + 0x80], 0
je 0x140131870
mov rcx, rdi
lea r11, [0x140181440]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14013182f
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x1401317c7
mov word [rbx], r10w
jmp 0x140131819
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, ntohl
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x1401317e8
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, ntohl
cmp rsi, rbp
jb 0x14013170d
jmp 0x1401318ca
cmp word [rsp + 0x70], r10w
jne 0x14013183c
cmp rbx, r14
je 0x1401317c1
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140136bc0
mov r10d, 0xa
lea r11, [0x140181440]
cmp word [rsp + 0x70], r10w
je 0x14013181c
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x140131821
mov ecx, ntohl
lea r11, [0x140181440]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x140131821
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1401318c1
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1401318ca
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [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
Function at 0x140141478
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1401414a6
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x1401414fb
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add eax, ecx
je 0x1401414fb
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x1401414ed
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14014150c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14014157f
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x14014157f
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x14014157f
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x140141574
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x14014158c
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x140141560
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x140141581
Function at 0x180001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
movzx edi, word [r8 + 0xe]
movzx eax, word [r8 + 0xc]
mov rsi, r9
add edi, eax
mov r10, rcx
lea rbx, [r8 + 0x10]
je 0x1800010d9
mov qword [rsp + 0x60], rbp
mov ebp, dword [rsp + 0x70]
mov ecx, dword [rbx + 4]
bt ecx, 0x1f
jae 0x180001075
test ebp, ebp
jne 0x18000104d
cmp word [rbx], 0x18
je 0x1800010c7
and ecx, 0x7fffffff
lea eax, [rbp + 1]
mov r9, rsi
lea r8, [rdx + rcx]
mov rcx, r10
mov dword [rsp + 0x20], eax
call section..text
mov rdx, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
jmp 0x1800010c7
and ecx, 0x7fffffff
mov r8d, dword [rcx + rdx]
mov r9d, dword [rcx + rdx + 4]
add r8, r10
shr r9d, 2
je 0x1800010c7
nop
mov eax, dword [rsi]
add r8, 4
xor dword [r8 - 4], eax
mov ecx, dword [rsi]
mov eax, 0x8fd66c05
mul ecx
shr edx, 0x11
imul edx, edx, 0x38f40
sub ecx, edx
imul ecx, ecx, 0x2455
add ecx, 0xc091
sub r9d, 1
mov dword [rsi], ecx
jne 0x180001090
mov rdx, qword [rsp + 0x58]
add rbx, 8
sub edi, 1
jne 0x180001036
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x180003dc7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000d010]
jne 0x18000196a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001966
repz ret
ror rcx, 0x10
jmp 0x180003d20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000e440]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000e538]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180003da5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000e440]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180003dc7
mov rax, qword [rsp + 0x88]
mov qword [0x18000e538], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000e4d8], rax
mov rax, qword [0x18000e538]
mov qword [0x18000e3b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000e4c0], rax
mov dword [0x18000e3a0], 0xc0000409
mov dword [0x18000e3a4], 1
mov rax, qword [0x18000d010]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000d018]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000e438], eax
mov ecx, 1
call fcn.180006ac0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800093c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000e438], 0
jne 0x180003e4e
mov ecx, 1
call fcn.180006ac0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180007c40
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.180002cc0
xor ebx, ebx
cmp qword [0x18000f1a0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x180007d71
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x180007ca3
xor eax, eax
jmp 0x180007e51
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007c9c
mov rcx, rax
call fcn.180002c50
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x18000f1a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180002c50
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x18000f1a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180002c50
lea rcx, [rsp + 0x30]
mov qword [0x18000f1b0], rax
call fcn.180003f50
test eax, eax
je 0x180007d27
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180003580
cmp dword [rsp + 0x30], 2
jne 0x180007d71
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180002c50
test rax, rax
mov qword [0x18000f1c0], rax
je 0x180007d71
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180002c50
mov qword [0x18000f1b8], rax
mov rcx, qword [0x18000f1b8]
cmp rcx, rsi
je 0x180007e03
cmp qword [0x18000f1c0], rsi
je 0x180007e03
call fcn.180002d20
call rax
test rax, rax
mov rbp, rax
je 0x180007dce
mov rcx, qword [0x18000f1c0]
call fcn.180002d20
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x180007dce
test byte [rsp + 0x48], 1
jne 0x180007e03
lea rcx, [rsp + 0x34]
call fcn.180003fa0
test eax, eax
je 0x180007df0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180003580
cmp dword [rsp + 0x34], 4
jb 0x180007dfd
bts edi, 0x15
jmp 0x180007e37
bts edi, 0x12
jmp 0x180007e37
mov rcx, qword [0x18000f1a8]
cmp rcx, rsi
je 0x180007e37
call fcn.180002d20
call rax
test rax, rax
mov rbx, rax
je 0x180007e37
mov rcx, qword [0x18000f1b0]
cmp rcx, rsi
je 0x180007e37
call fcn.180002d20
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000f1a0]
call fcn.180002d20
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x180007ac0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180007ae4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x180007b72
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180007b40
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180007b40
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180068200
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180007b5d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180007b65
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180007b01
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x180007c50
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180007b89
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007b8b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180007bbd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180068200
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180007c4d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180007bf8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x180007c2e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.180051cd4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180007c4d
cmp rsi, rax
ja 0x180007c01
test rsi, rsi
je 0x180007c4d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180051cd4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x18004d9c0
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 0x18004d9f7
call fcn.180052638
mov dword [rax], 0x16
call fcn.1800524c4
xor eax, eax
jmp 0x18004da85
mov rdx, r9
mov rcx, r8
call fcn.18004d95c
mov rbx, rax
test rax, rax
je 0x18004da82
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18004d888]
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 0x18004da6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800525ac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18004da56
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18004da65
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180058544
jmp 0x18004da82
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18004da7f
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 0x180054350
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 0x1800543bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800543bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800543bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800543bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800543bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1800543bf
cmp dword [rcx + 0xf8], 0
je 0x1800543bf
mov ecx, ebx
call fcn.180054470
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.18005424c
nop
cmp dword [rbp + 0x20], 0
je 0x18005440d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180054418
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180054350
Function at 0x18005538c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800553a2
mov al, 1
jmp 0x180055402
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800553b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180055400
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800603c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180055400
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180055400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180055400
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180055402
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005aeec
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.180047ca0
sub rsp, rax
mov rax, qword [0x180085100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005526c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18005af3b
mov rax, rbp
jmp 0x18005b043
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 + 0xd5df0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005c90c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd5df0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18005b03f
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 0x18005b03f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005c90c
test rax, rax
js 0x18005b03f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18005b03f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18005b031
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18005b031
cmp byte [rcx], 0xd
jne 0x18005b017
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18005b026
cmp byte [rcx + 1], 0xa
jne 0x18005b026
inc rcx
jmp 0x18005b026
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x85530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18005aff9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18005b043
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180047bf0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret