joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180040cb0
Capabilities:
Enumerate process modules

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1a8
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r8d, dword [rsp + 0x1c8]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180040e1b
lea rax, [rsp + 0x80]
lea rcx, str._unknown_
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x8a]
mov rdi, rax
xor eax, eax
mov ecx, 0xfa
rep stosb byte [rdi], al
lea r9, [rsp + 0x38]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x180040e0f
mov r9d, 0x104
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x180040e0f
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.180017ba0
mov r8, 0xffffffffffffffff
lea rdx, [0x180210a34]
lea rcx, [rsp + 0x40]
call fcn.1800568e0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x180040e04
mov rax, qword [rsp + 0x28]
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180060230
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x1c0]
call fcn.1800384b0
lea rcx, [rsp + 0x60]
call fcn.180018160
lea rcx, [rsp + 0x40]
call fcn.180018160
mov rax, qword [rsp + 0x1c0]
jmp 0x180040e37
lea rcx, [rsp + 0x40]
call fcn.180018160
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, str.Unknown
mov rcx, qword [rsp + 0x1c0]
call fcn.180017ba0
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x1a8
pop rdi
pop rsi
ret
Function at 0x180041ac0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x22c8
call fcn.1800c6970
sub rsp, rax
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x22b0], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x180041b04
xor al, al
jmp 0x180041c89
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x180041b31
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180041c89
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180041c65
lea r9, [rsp + 0x170]
mov r8d, 0x2000
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x180041c59
mov dword [rsp + 0x24], 0
jmp 0x180041b90
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x170]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
jae 0x180041c59
mov eax, dword [rsp + 0x24]
mov r9d, 0x104
lea r8, [rsp + 0x21a0]
mov rdx, qword [rsp + rax*8 + 0x1a0]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x180041c54
lea rdx, [rsp + 0x21a0]
lea rcx, [rsp + 0x178]
call fcn.180017ba0
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x22d0]
lea rcx, [rsp + 0x178]
call fcn.180056660
cmp rax, 0xffffffffffffffff
je 0x180041c46
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x178]
call fcn.180018160
movzx eax, byte [rsp + 0x20]
jmp 0x180041c89
lea rcx, [rsp + 0x178]
call fcn.180018160
nop
jmp 0x180041b86
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x180041b31
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x22b0]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x22c8
ret
Function at 0x1800462f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, Ordinal_26
lea rcx, [rsp + 0x40]
call fcn.1800194f0
lea rax, [rsp + 0x68]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180017dd0
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x180046365
mov rax, qword [rsp + 0x20]
add rax, 0x28
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x20], rax
jae 0x1800463f3
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x70], rax
jb 0x1800463ee
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x70], rax
jae 0x1800463ee
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.180018190
mov rax, qword [rsp + 0x30]
jmp 0x18004640b
jmp 0x180046357
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.180018190
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x68
ret
Function at 0x180046420
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1090
call fcn.1800c6970
sub rsp, rax
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov rcx, qword [rsp + 0x10a0]
call fcn.18004f690
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180046493
xor al, al
jmp 0x1800465da
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1800464b9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1800465da
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x60], rax
jge 0x180046599
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov eax, eax
cmp rax, 0x1000
jbe 0x180046507
mov qword [rsp + 0x58], 0x1000
jmp 0x18004651e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov eax, eax
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18004655a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x68], eax
je 0x180046569
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1800465da
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop
jmp 0x1800464d2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10a0]
call fcn.18004f690
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1800465d0
mov byte [rsp + 0x40], 1
jmp 0x1800465d5
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x1090
pop rdi
ret
Function at 0x180046760
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x18004679e
xor al, al
jmp 0x180046859
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x18004684c
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x270]
call fcn.180038b70
nop
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x2b0]
call fcn.18001ede0
movzx eax, al
test eax, eax
je 0x180046827
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180046827
mov edx, 1
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
lea rcx, [rsp + 0x270]
call fcn.18003c260
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800467bd
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x2a8
ret

Function at 0x180046880
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x1800468cf
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x180046946
call fcn.1800406c0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.180062150
nop
jmp 0x1800468b4
add rsp, 0x58
ret
Function at 0x180048670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1800486ad
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1800486b4
mov al, 1
jmp 0x18004880c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.180055d50
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.180055d50
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.180055d60
movzx eax, al
test eax, eax
je 0x180048709
xor al, al
jmp 0x18004880c
mov qword [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180048779
cmp dword [rsp + 0x30], 1
je 0x180048785
cmp dword [rsp + 0x30], 3
je 0x1800487fa
jmp 0x18004880a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1800487d1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1800487d1
xor al, al
jmp 0x18004880c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1800487eb
mov dword [rsp + 0x34], 1
jmp 0x1800487f3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x18004880c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18004880c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0xa8
ret
Function at 0x18004ab90
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 0x18004abc0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x18004ac42
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 0x18004ac0e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x18004ac16
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 0x18004abb5
mov qword [rsp + 8], 0xe3
jmp 0x18004ac5a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x18004ace1
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 0x18004acab
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x18004acb3
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 0x18004ac4d
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 0x18004ad35
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x18004ad3d
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 0x18004ad90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x18004adb1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x18004ae35
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 0x18004ae00
mov dword [rsp + 4], 0x9908b0df
jmp 0x18004ae08
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 0x18004ada4
add rsp, 0x18
ret
Function at 0x180058a00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 8]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, eax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180058a50
xor al, al
jmp 0x180058abb
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 8]
call fcn.180056c50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180058a93
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 8]
mov r8d, eax
mov rdx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 8]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180058abb
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x48
ret

Function at 0x18005ba80
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xb0]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
jmp 0x18005bb17
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x18005bbe8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x24]
and eax, 0x20
cmp eax, 0x20
jne 0x18005bbc2
mov rax, qword [rsp + 0x68]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180017ba0
nop
xor r8d, r8d
lea rdx, [0x1802120f0]
lea rcx, [rsp + 0x70]
call fcn.1800566e0
cmp rax, 0xffffffffffffffff
je 0x18005bbb5
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x10], 0
je 0x18005bbb5
mov rax, qword [rsp + 0xb0]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.180039f70
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.18005c600
lea rcx, [rsp + 0x48]
call fcn.18003cba0
nop
lea rcx, [rsp + 0x70]
call fcn.180018160
nop
jmp 0x18005bbe3
mov rax, qword [rsp + 0xb0]
add rax, 0x30
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call fcn.18005c5d0
nop
jmp 0x18005baff
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0xa8
ret
Function at 0x180060c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rcx, qword [rsp + 0x280]
call fcn.18004f690
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180060cad
jmp 0x180060d56
mov dword [rsp + 0x50], 0x200
mov dword [rsp + 0x44], 0
jmp 0x180060cc9
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x186a0
jae 0x180060d4a
mov dword [rsp + 0x40], 0
jmp 0x180060ce7
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x200
jae 0x180060d11
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov ecx, dword [rsp + 0x40]
mov byte [rsp + rcx + 0x60], al
jmp 0x180060cdd
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, 0x200
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180060d43
cmp dword [rsp + 0x54], 0x200
je 0x180060d45
jmp 0x180060d4a
jmp 0x180060cbf
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x278
ret
Function at 0x180060e30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1804ccc40]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x180060e64
xor eax, eax
jmp 0x180061061
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x180060e96
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x180061061
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x180060f48
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.180017ae0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.180019600
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x180061051
mov rcx, qword [rsp + 0x80]
call fcn.18004b040
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x180060ffe
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x180060ff9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x180061061
jmp 0x180060f74
cmp qword [rsp + 0x50], 0
jbe 0x180061051
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800c6440
add rsp, 0x78
ret