joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e881
Capabilities:
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
jmp 0x44e967
mov eax, 0
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cmp eax, 0x100
jge 0x44ea6f
jmp 0x44e990
mov eax, dword [rbp - 0x1c]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x1c], eax
jmp 0x44e96f
mov eax, dword [rbp - 0x1c]
movsxd rax, eax
shl rax, 3
lea rcx, [0x00486858]
add rcx, rax
mov rax, qword [rcx]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x44ea6a
jmp 0x44e9cb
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
mov qword [rbp - 0x18], rcx
jmp 0x44e9ab
mov rax, qword [rbp - 0x18]
add rax, 0x3b
movzx ecx, byte [rax]
cmp ecx, 0
je 0x44ea65
mov rax, qword [rbp - 0x18]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
jne 0x44ea1a
lea rax, str.ResumeThread_failed
mov r10, rax
mov rcx, r10
mov r11, qword [0x00457248]
call r11
call sub.kernel32.dll_DebugBreak
mov rax, qword [rbp - 0x18]
add rax, 0x3b
mov ecx, 0
mov byte [rax], cl
mov rax, qword [0x00457250]
cmp rax, 0
je 0x44ea60
mov rax, qword [rbp - 0x18]
add rax, 0x10
mov rcx, qword [rax]
mov r11, rcx
mov eax, 0xb
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [0x00457250]
call r11
jmp 0x44ea65
jmp 0x44e9be
jmp 0x44e983
leave
ret
Function at 0x1400021cb
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400056d0
add rsp, 0x20
mov qword [rsp + 0x28], rax
push qword [0x14000ea10]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea10]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008270
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000a0b0
push qword [rsp + 0x28]
push 0
movabs rax, 0x14000d00d
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetTempFileNameA
add rsp, 0x20
push qword [0x14000ea10]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea10]
push qword [rsp + 0x40]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call fcn.1400056f0
add rsp, 0x28
lea rcx, [0x14000e4f8]
pop rdx
call fcn.14000a0b0
push qword [rsp + 0x28]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005770
add rsp, 0x20
push qword [0x14000e4f8]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008254
add rsp, 0x20
push qword [0x14000e4f8]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008308
add rsp, 0x20
push qword [0x14000ea10]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea10]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008140
add rsp, 0x28
lea rcx, [0x14000e4f0]
pop rdx
call fcn.14000a0b0
push qword [rsp + 0x50]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005790
add rsp, 0x20
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x140002336
mov rcx, qword [0x14000e4f8]
push qword [0x14000ea10]
add rsp, 0xffffffffffffffe0
call fcn.14000a1d0
add rsp, 0x20
lea rcx, [0x14000e4f0]
pop rdx
add rsp, 0xffffffffffffffd8
call fcn.14000a0b0
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x14000234c
mov r15, 1
cmp r15, qword [rsp]
jne 0x14000234c
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005790
add rsp, 0x20
mov qword [0x14000e4e0], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005790
add rsp, 0x20
mov qword [0x14000e4e8], rax
mov rax, 1
jmp 0x1400023a2
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a240
add rsp, 0x20
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x14000297a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a270
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_FindResourceA
add rsp, 0x20
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140002a0b
push qword [rsp + 0x30]
push qword [rsp + 0x48]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_LoadResource
add rsp, 0x20
mov qword [0x14000e580], rax
push qword [rsp + 0x30]
push qword [rsp + 0x48]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_SizeofResource
add rsp, 0x20
mov qword [0x14000e578], rax
mov rax, qword [rsp + 0x30]
jmp 0x140002a15
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a240
add rsp, 0x20
pop rax
add rsp, 0x38
ret
Function at 0x1400034c7
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rdx, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rdx
jne 0x1400034e0
sub rsp, 0x28
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a270
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14000a270
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14000a270
add rsp, 0x10
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, str.open
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call sub.SHELL32.dll_ShellExecuteExA
add rsp, 0x20
mov qword [rsp + 0xb0], rax
push 0x19
pop rcx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_Sleep
add rsp, 0x20
lea rax, [rsp + 0xb8]
mov rax, rax
push rax
lea rbp, [rsp + 0x48]
push qword [rbp + 0x68]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetExitCodeProcess
add rsp, 0x20
and rax, rax
je 0x14000360c
mov r15, qword [rsp + 0xb8]
cmp r15, 0x103
je 0x14000360c
jmp 0x14000360e
jmp 0x1400035be
mov rax, 1
jmp 0x14000361a
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a240
add rsp, 0x20
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a240
add rsp, 0x20
mov rcx, qword [rsp + 0x40]
sub rsp, 0x20
call fcn.14000a240
add rsp, 0x20
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x140004ab0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test ecx, ecx
je 0x140004ad5
movsxd rdx, ecx
lea rcx, [0x140004a2c]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140004b16
mov rbx, qword [0x14000e638]
test rbx, rbx
je 0x140004b16
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004b0e
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rbx + 0x10]
lea rcx, [0x14000e638]
call fcn.140009050
mov rbx, rdi
test rdi, rdi
jne 0x140004ae1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b98
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14000ea70]
call fcn.140008a14
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140004c5e
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140004bec
add rax, r9
cmp byte [rax], r10b
je 0x140004be4
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140004c22
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140004c1d
cmp cl, 0x22
je 0x140004c10
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140004c02
cmp byte [rax], 0
je 0x140004c1d
mov rcx, rax
add rax, r9
jmp 0x140004c44
mov rcx, rax
jmp 0x140004c44
test dl, dl
je 0x140004c41
mov rbx, rax
cmp dl, r10b
je 0x140004c37
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140004c29
cmp byte [rax], 0
mov rcx, rax
je 0x140004c44
jmp 0x140004c18
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140004c4e
test rdi, rdi
jne 0x140004c68
test r8d, r8d
je 0x140004c56
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140004bdf
test rdi, rdi
jne 0x140004c7a
movsxd rax, esi
jmp 0x140004c7d
test rbx, rbx
je 0x140004c7a
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140004c7d
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140004d58
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000ea70]
call fcn.140008a14
xor ecx, ecx
add rsp, 0x28
jmp fcn.140004b98

Function at 0x140004e4c
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140004e6c
test rax, rax
lea rdx, [0x14000c808]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret

Function at 0x140005548
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0x64
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000562a
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x140005607
cmp eax, 1
jne 0x14000562a
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x140005600
sub eax, 1
je 0x1400055f9
sub eax, 1
je 0x1400055d4
cmp eax, 1
jne 0x14000562a
lea rcx, [rsp + 0xc0]
lea ebx, [rax + 0x45]
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000562a
cmp byte [rsp + 0x15a], 1
je 0x14000562a
mov ebx, 0x4b
jmp 0x14000562a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400055f2
sub eax, 1
je 0x1400055eb
cmp eax, 1
jne 0x14000562a
lea ebx, [rax + 0x40]
jmp 0x14000562a
mov ebx, 0x3c
jmp 0x14000562a
mov ebx, 0x32
jmp 0x14000562a
mov ebx, 0x14
jmp 0x14000562a
mov ebx, 5
jmp 0x14000562a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005625
cmp eax, 0xa
je 0x14000561e
cmp eax, 0x5a
jne 0x14000562a
lea ebx, [rax - 0x32]
jmp 0x14000562a
mov ebx, 0x1e
jmp 0x14000562a
mov ebx, 0xa
movsxd rax, ebx
add rsp, 0x160
pop rbx
ret
Function at 0x140006244
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14000eb90]
call fcn.140008e34
mov rsi, rax
test rax, rax
je 0x1400062bd
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140006282
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400062bd
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000a2e0
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.14000a390
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000806c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x14000810b
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000810b
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000810b
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000810b
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, [rsp + 0x38]
mov r8d, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x38]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000810b
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x44e
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xb
jae 0x140008136
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropA]
test rax, rax
je 0x140008136
mov rcx, qword [0x14000ebb0]
lea rdx, [rax - 1]
call fcn.140008e34
mov rax, qword [rax + 0x10]
jmp 0x140008138
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140008140
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.14000a2e0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000817f
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000817f
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000a390
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140008254
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140008267
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140008269
xor eax, eax
add rsp, 0x28
ret

Function at 0x140008270
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14000a2e0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x1400082e2
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400082d9
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.14000a390
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008308
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000837b
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140008367
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000835a
cmp al, 0x5c
je 0x14000835a
cmp al, 0x2f
jne 0x140008367
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140008348
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000837d
xor eax, eax
add rsp, 0x138
ret

Function at 0x140008390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400083d6
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x1400087e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140008871
cmp byte [rdx], bl
je 0x140008871
mov rdx, rcx
mov rcx, qword [0x14000ebf0]
call fcn.140008e34
mov r11, rax
test rax, rax
je 0x14000886d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000884f
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.140008920
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140008908
test r8d, r8d
je 0x140008908
mov rdx, rcx
mov rcx, qword [0x14000ebf0]
call fcn.140008e34
test rax, rax
je 0x140008904
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400088f1
mov rcx, rax
call fcn.140008920
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14000896a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x1400089a8
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
sub edx, 1
je 0x1400089a1
sub edx, 1
je 0x140008999
cmp edx, 2
je 0x140008993
mov rdx, rsi
jmp 0x1400089f6
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x1400089fe
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x1400089fe
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x1400089fe
mov rcx, rbx
call fcn.140008390
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x1400089eb
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1400091c0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
or ebx, 0xffffffff
test rcx, rcx
je 0x1400093cf
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x40], r13
xor r13d, r13d
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400093c5
mov rcx, qword [0x14000e490]
xor edx, edx
mov r8d, 0x1000
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400093b7
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
lea r12, [0x14000c910]
nop word [rax + rax]
lea r9, [rsp + 0x60]
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x60]
mov r11, rsi
mov r9d, r10d
cmp r10d, 8
jb 0x14000935d
mov rdi, r10
shr rdi, 3
nop dword [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r12 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r12 + rax*4]
xor ebx, edx
sub rdi, 1
jne 0x140009290
test r9d, r9d
je 0x14000938e
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [r12 + rdx*4]
xor ebx, eax
add r9d, 0xffffffff
jne 0x140009370
cmp r10d, 0x1000
je 0x140009250
mov rcx, qword [0x14000e490]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
not ebx
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x2fc4ced40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cf742
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cf7da
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cf7be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cf7b2
cmp qword [rbp - 0x10], 0
je 0x2fc4cf7b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cf778
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf7db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf8e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cf908
mov eax, 0
jmp 0x2fc4cf956
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cf931
mov eax, 0
jmp 0x2fc4cf956
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cf951
mov eax, 0
jmp 0x2fc4cf956
mov eax, 1
add rsp, 0x20
pop rbp
ret