joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4112d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0xc8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
test eax, eax
mov qword [rsp + 0x48], rdi
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
js 0x41144e
cdq
and edx, 7
add eax, edx
and eax, 7
cmp eax, edx
jne 0x41144e
cmp r8, 8
mov qword [rsp + 0x38], rbp
jb 0x411371
xor ebp, ebp
nop
nop
mov eax, dword [rbx + 0xc8]
test eax, eax
je 0x411371
cdq
add rsi, 1
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
movzx eax, byte [rsi - 1]
xor byte [rcx + rbx], al
add dword [rbx + 0xc8], 8
cmp dword [rbx + 0xc8], 0x440
jne 0x411367
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.00410f30
mov dword [rbx + 0xc8], ebp
sub rdi, 8
cmp rdi, 8
jae 0x411320
cmp rdi, 0x440
jb 0x4113be
movabs rax, 0xf0f0f0f0f0f0f0f1
mul rdi
mov rbp, rdx
shr rbp, 0xa
mov rax, rbp
imul rax, rax, 0xfffffffffffffbc0
add rdi, rax
nop
nop
mov r8d, 0x11
mov rdx, rsi
mov rcx, rbx
call fcn.00410f30
add rsi, 0x88
sub rbp, 1
jne 0x4113a0
cmp rdi, 8
mov rbp, qword [rsp + 0x38]
jb 0x41140a
mov r8, rdi
shr r8, 3
mov rax, r8
imul rax, rax, 0xfffffffffffffff8
add rdi, rax
nop
nop
mov eax, dword [rbx + 0xc8]
add rsi, 1
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
movzx eax, byte [rsi - 1]
xor byte [rcx + rbx], al
add dword [rbx + 0xc8], 8
sub r8, 1
jne 0x4113e0
test rdi, rdi
je 0x411438
mov eax, dword [rbx + 0xc8]
mov ecx, 8
cdq
sub cl, dil
and edx, 7
add eax, edx
movzx edx, byte [rsi]
sar eax, 3
shr dl, cl
movsxd r8, eax
xor byte [r8 + rbx], dl
add dword [rbx + 0xc8], edi
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x28
ret

Function at 0x4173f0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x417419
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417419
mov ecx, eax
call fcn.00416a60
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x417e50
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x417e79
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417e79
mov ecx, eax
call fcn.00416a60
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x41c730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x41c776
call fcn.00416a30
mov dword [rax], 0
call fcn.00416a00
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.0041e9f0
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x41c73d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c7a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00416a60
call fcn.00416a00
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x41c7db
test al, 1
je 0x41c7db
test bl, 2
je 0x41c7db
call fcn.00416a30
mov dword [rax], 5
call fcn.00416a00
mov dword [rax], 0xd
call fcn.00416a00
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x41c7f0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41c81b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41c81b
mov ecx, eax
call fcn.00416a60
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x41c830
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41c859
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41c859
mov ecx, eax
call fcn.00416a60
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x428d47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004576e8]
jne 0x41cfca
rol rcx, 0x10
test cx, 0xffff
jne 0x41cfc6
repz ret
ror rcx, 0x10
jmp 0x428ca0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0045b740]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0045b838]
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 0x428d25
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, [0x0045b740]
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 0x428d47
mov rax, qword [rsp + 0x88]
mov qword [0x0045b838], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0045b7d8], rax
mov rax, qword [0x0045b838]
mov qword [0x0045b6b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0045b7c0], rax
mov dword [0x0045b6a0], 0xc0000409
mov dword [0x0045b6a4], 1
mov rax, qword [0x004576e8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004576f0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0045b738], eax
mov ecx, 1
call fcn.00429520
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00449b20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0045b738], 0
jne 0x428dce
mov ecx, 1
call fcn.00429520
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 0x428df0
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.0041eb80
xor ebx, ebx
cmp qword [0x0045bc10], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x428f21
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x428e53
xor eax, eax
jmp 0x429001
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x428e4c
mov rcx, rax
call fcn.0041eb10
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0045bc10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041eb10
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0045bc18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041eb10
lea rcx, [rsp + 0x30]
mov qword [0x0045bc20], rax
call fcn.004176c0
test eax, eax
je 0x428ed7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041e950
cmp dword [rsp + 0x30], 2
jne 0x428f21
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041eb10
test rax, rax
mov qword [0x0045bc30], rax
je 0x428f21
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041eb10
mov qword [0x0045bc28], rax
mov rcx, qword [0x0045bc28]
cmp rcx, rsi
je 0x428fb3
cmp qword [0x0045bc30], rsi
je 0x428fb3
call fcn.0041ebe0
call rax
test rax, rax
mov rbp, rax
je 0x428f7e
mov rcx, qword [0x0045bc30]
call fcn.0041ebe0
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 0x428f7e
test byte [rsp + 0x48], 1
jne 0x428fb3
lea rcx, [rsp + 0x34]
call fcn.00417710
test eax, eax
je 0x428fa0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041e950
cmp dword [rsp + 0x34], 4
jb 0x428fad
bts edi, 0x15
jmp 0x428fe7
bts edi, 0x12
jmp 0x428fe7
mov rcx, qword [0x0045bc18]
cmp rcx, rsi
je 0x428fe7
call fcn.0041ebe0
call rax
test rax, rax
mov rbx, rax
je 0x428fe7
mov rcx, qword [0x0045bc20]
cmp rcx, rsi
je 0x428fe7
call fcn.0041ebe0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0045bc10]
call fcn.0041ebe0
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 0x43f430
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x00445130]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x43f536
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x43f484
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
test r11b, 7
jne 0x43f460
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x43f531
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x43f4a0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x43f562
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
sub rbx, 1
jne 0x43f540
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret

Function at 0x43f570
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
lea r14, [0x00447130]
mov rbx, rdx
mov r11, rcx
not r8
cmp rdx, 4
jbe 0x43f657
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
test cl, 3
je 0x43f5c5
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [r14 + rcx*8]
xor r8, rax
test r11b, 3
jne 0x43f5a0
xor esi, esi
mov rcx, rbx
and rcx, 0xfffffffffffffffc
and ebx, 3
lea rdi, [rcx + 3]
shr rdi, 2
lea rax, [rcx + r11]
cmp r11, rax
cmova rdi, rsi
test rdi, rdi
je 0x43f64d
nop dword [rax]
mov r10d, dword [r11]
inc rsi
mov eax, r8d
add r11, 4
xor r10, rax
mov rax, r10
shr rax, 0x10
movzx edx, al
mov rax, r10
shr rax, 8
movzx ecx, al
mov rax, r10
shr rax, 0x18
mov r9, qword [r14 + rdx*8 + 0x800]
xor r9, qword [r14 + rcx*8 + 0x1000]
xor r9, qword [r14 + rax*8]
movzx eax, r10b
xor r9, qword [r14 + rax*8 + 0x1800]
mov rax, r8
shr rax, 0x20
mov r8, r9
xor r8, rax
cmp rsi, rdi
jb 0x43f5f0
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
test rbx, rbx
je 0x43f683
nop dword [rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [r14 + rcx*8]
xor r8, rax
sub rbx, 1
jne 0x43f660
mov rbx, qword [rsp + 0x20]
not r8
mov rax, r8
pop r14
ret
Function at 0x140001935
Capabilities:
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0x14], 0x1000193
mov dword [rbp - 0x18], 0x811c9dc5
mov dword [rbp - 4], 0x811c9dc5
mov qword [rbp - 0x10], 0
jmp 0x140001989
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
imul eax, eax, 0x1000193
mov dword [rbp - 4], eax
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x18]
jb 0x140001964
mov eax, dword [rbp - 4]
add rsp, 0x20
pop rbp
ret
Function at 0x14003dd73
Capabilities:
Execute command
Read file via mapping

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x20]
mov r8, rdx
lea rdx, str.start_cmd__C__color_4__title_Lostlands___Hiba__echo
mov rcx, rax
call fcn.14007d950
lea rax, [rbp - 0x50]
lea rdx, [rbp - 0x30]
lea r8, str.__timeout__t_5_
mov rcx, rax
call fcn.14007d770
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400664a0
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140074da0
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140074da0
mov dword [rbp - 4], 0
mov eax, dword [rbp - 4]
mov ecx, eax
int 0x29
mov rbx, rax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140074da0
jmp 0x14003de01
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140074da0
mov rax, rbx
mov rcx, rax
call sub.libgcc_s_seh_1.dll__Unwind_Resume
nop
nop

Function at 0x14003de1a
Capabilities:
Read file via mapping

Disassembly:
push rbp
sub rsp, 0x290
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x220], rcx
mov qword [rbp + 0x228], rdx
mov qword [rbp + 0x230], r8
mov dword [rbp + 0x1dc], 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rcx, [rbp + 0x1dc]
lea rdx, [rbp - 0x40]
mov r9, rcx
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
call rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x1d0], rax
mov rax, qword [rbp + 0x1d0]
test rax, rax
je 0x14003dece
mov rax, qword [rbp + 0x1d0]
cmp rax, 0xffffffffffffffff
jne 0x14003df09
mov qword [rbp + 0x1e0], 0
mov qword [rbp + 0x1e8], 0
lea rcx, [rbp + 0x1e8]
lea rdx, [rbp + 0x1e0]
mov rax, qword [rbp + 0x220]
mov r8, rcx
mov rcx, rax
call fcn.14006e4d0
jmp 0x14003dfee
mov rax, qword [rbp + 0x1d0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 2
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
call rax
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0
jne 0x14003df9a
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [rbp + 0x1f0], 0
mov qword [rbp + 0x1f8], 0
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp + 0x1f0]
mov rax, qword [rbp + 0x220]
mov r8, rcx
mov rcx, rax
call fcn.14006e4d0
jmp 0x14003dfee
mov rax, qword [rbp + 0x208]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp + 0x200], rax
lea rcx, [rbp + 0x1d0]
lea rdx, [rbp + 0x200]
mov rax, qword [rbp + 0x220]
mov r8, rcx
mov rcx, rax
call fcn.14006e520
mov rax, qword [rbp + 0x220]
add rsp, 0x290
pop rbp
ret
Function at 0x1400401a0
Capabilities:
Authenticate hmac

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov qword [rbp + 0xd8], rdx
mov qword [rbp + 0xe0], r8
mov qword [rbp + 0xe8], r9
lea rax, [rbp + 0x70]
mov r8d, 0x40
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp + 0x30]
mov r8d, 0x40
mov edx, 0x36
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x10]
mov r8d, 0x40
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_memset
cmp qword [rbp + 0xd8], 0x40
jbe 0x140040240
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0xd8]
mov rax, qword [rbp + 0xd0]
mov r9d, 0x40
mov r8, rcx
mov rcx, rax
call fcn.14004041c
jmp 0x14004025d
mov rcx, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xd0]
lea rax, [rbp + 0x70]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [rbp + 0xbc], 0
jmp 0x1400402c0
mov eax, dword [rbp + 0xbc]
cdqe
movzx edx, byte [rbp + rax + 0x30]
mov eax, dword [rbp + 0xbc]
cdqe
movzx eax, byte [rbp + rax + 0x70]
xor edx, eax
mov eax, dword [rbp + 0xbc]
cdqe
mov byte [rbp + rax + 0x30], dl
mov eax, dword [rbp + 0xbc]
cdqe
movzx edx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0xbc]
cdqe
movzx eax, byte [rbp + rax + 0x70]
xor edx, eax
mov eax, dword [rbp + 0xbc]
cdqe
mov byte [rbp + rax - 0x10], dl
add dword [rbp + 0xbc], 1
cmp dword [rbp + 0xbc], 0x3f
jle 0x140040269
mov r8, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], 0x20
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov edx, 0x40
mov rcx, rax
call fcn.140040377
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], 0x20
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20
mov r8, rcx
mov edx, 0x40
mov rcx, rax
call fcn.140040377
mov rax, qword [rbp + 0xf8]
mov edx, 0x20
cmp rax, rdx
cmova rax, rdx
mov qword [rbp + 0xb0], rax
mov rcx, qword [rbp + 0xb0]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xf0]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0xb0]
add rsp, 0x140
pop rbp
ret
Function at 0x14004087e
Capabilities:
Hash data using sha256

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x28], 0
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x6a09e667
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0xbb67ae85
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0x3c6ef372
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0xa54ff53a
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], 0x510e527f
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x1c], 0x9b05688c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1f83d9ab
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x24], 0x5be0cd19
nop
pop rbp
ret

Function at 0x140042940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14004d040
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14004d040
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400429b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140098464]
mov rbx, rcx
test esi, esi
jle 0x140042ae0
mov rax, qword [0x140098468]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400429fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140042a85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400429e0
mov rcx, rbx
call fcn.140043460
mov rdi, rax
test rax, rax
je 0x140042b02
mov rax, qword [0x140098468]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400435a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140098468]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140042ae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140042a7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140042a90
add dword [0x140098464], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140098468]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140042a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140042940
nop dword [rax]
xor esi, esi
jmp 0x140042a08
mov rax, qword [0x140098468]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140042940
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140042940
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400430a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400984c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400984a0]
test rbx, rbx
je 0x140043104
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400430fb
test eax, eax
jne 0x1400430fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400430e0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140043460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140085300]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140043480
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140043488
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140043480
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400434dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400434d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140043480
add rax, 0x28
cmp rax, r9
jne 0x1400434c0
xor eax, eax
ret

Function at 0x1400434e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140085300]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400434ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140043508
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400434ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400435a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140085300]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400435bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400435c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x412520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4126ab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004313c0
xorps xmm15, xmm15
mov r14, qword [0x005896f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412585
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412594
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4125b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4125c3
cmp rbx, 0x1000
jae 0x41258b
jmp 0x41262d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4125d5
xor edx, edx
jmp 0x412624
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004313c0
xorps xmm15, xmm15
mov r14, qword [0x005896f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4125b9
jmp 0x4125a8
call fcn.0046c6e0
xorps xmm15, xmm15
mov r14, qword [0x005896f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435b00
lea rax, [0x004aa427]
mov ebx, 0x18
nop dword [rax]
call fcn.00436380
mov rax, qword [rsp + 0x38]
call fcn.004360c0
lea rax, [0x004aa8ba]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436380
mov rax, qword [rsp + 0x30]
call fcn.004360c0
call fcn.00435d40
call fcn.00435b60
lea rax, [0x004ac86d]
mov ebx, 0x21
call fcn.00463f60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00468fe0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00412520