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

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180098f38], eax
je 0x18006201b
mov eax, 0x10dd
jmp 0x180062140
mov rax, qword [0x180098f50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800620c5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180062090
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180062090
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180060c50
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180064290
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180062027
mov qword [0x180098f50], 0
call fcn.1800616b0
mov rax, qword [0x180098f48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180062129
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180064290
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800620e1
mov qword [0x180098f48], 0
mov dword [0x180098f38], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180062670
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180098f3c], 0
je 0x18006268d
mov eax, dword [0x180098f3c]
jmp 0x180062753
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800626a0
xor eax, eax
jmp 0x180062753
mov ecx, 0x10
call fcn.180064298
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18006270e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800626f3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180064290
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180098f3c], eax
mov qword [0x180098f40], 0
mov eax, dword [rsp + 0x20]
jmp 0x180062753
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180062728
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800626c9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180098f48]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180098f48], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180063b98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180063c1c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180068970]
cmp byte [rcx + rax], 0
je 0x180063c1c
dec r8
sub rdx, 1
jne 0x180063c02
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002611
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.140005ee0
add rsp, 0x20
mov qword [rsp + 0x28], rax
push qword [0x14000fbc0]
add rsp, 0xfffffffffffffff8
push qword [0x14000fbc0]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008b28
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000aa70
push qword [rsp + 0x28]
push 0
movabs rax, 0x14000e00d
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 [0x14000fbc0]
add rsp, 0xfffffffffffffff8
push qword [0x14000fbc0]
push qword [rsp + 0x40]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call fcn.140005f00
add rsp, 0x28
lea rcx, [0x14000f678]
pop rdx
call fcn.14000aa70
push qword [rsp + 0x28]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005f80
add rsp, 0x20
push qword [0x14000f678]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008a64
add rsp, 0x20
push qword [0x14000f678]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008bc0
add rsp, 0x20
push qword [0x14000fbc0]
add rsp, 0xfffffffffffffff8
push qword [0x14000fbc0]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008950
add rsp, 0x28
lea rcx, [0x14000f670]
pop rdx
call fcn.14000aa70
push qword [rsp + 0x50]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005fa0
add rsp, 0x20
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x14000277c
mov rcx, qword [0x14000f678]
push qword [0x14000fbc0]
add rsp, 0xffffffffffffffe0
call fcn.14000ab90
add rsp, 0x20
lea rcx, [0x14000f670]
pop rdx
add rsp, 0xffffffffffffffd8
call fcn.14000aa70
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140002792
mov r15, 1
cmp r15, qword [rsp]
jne 0x140002792
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.140005fa0
add rsp, 0x20
mov qword [0x14000f660], 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.140005fa0
add rsp, 0x20
mov qword [0x14000f668], rax
mov rax, 1
jmp 0x1400027e8
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000ac00
add rsp, 0x20
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140002dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000ac30
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x60]
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 0x140002e53
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_LoadResource
add rsp, 0x20
mov qword [0x14000f700], rax
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_SizeofResource
add rsp, 0x20
mov qword [0x14000f6f8], rax
push qword [0x14000f6f8]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005ee0
add rsp, 0x20
mov qword [rsp + 0x38], rax
push qword [0x14000f6f8]
push qword [0x14000f700]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.msvcrt.dll_memcpy
add rsp, 0x20
push qword [rsp + 0x38]
pop rax
mov qword [0x14000f700], rax
mov rax, qword [rsp + 0x30]
jmp 0x140002ea3
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000ac00
add rsp, 0x20
pop rax
add rsp, 0x48
ret
Function at 0x140004afc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test ecx, ecx
je 0x140004b21
movsxd rdx, ecx
lea rcx, [0x140004a78]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140004b62
mov rbx, qword [0x14000f7d8]
test rbx, rbx
je 0x140004b62
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004b5a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rbx + 0x10]
lea rcx, [0x14000f7d8]
call fcn.140009a10
mov rbx, rdi
test rdi, rdi
jne 0x140004b2d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140004be4
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 [0x14000fc20]
call fcn.1400093d4
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140004caa
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140004c38
add rax, r9
cmp byte [rax], r10b
je 0x140004c30
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140004c6e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140004c69
cmp cl, 0x22
je 0x140004c5c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140004c4e
cmp byte [rax], 0
je 0x140004c69
mov rcx, rax
add rax, r9
jmp 0x140004c90
mov rcx, rax
jmp 0x140004c90
test dl, dl
je 0x140004c8d
mov rbx, rax
cmp dl, r10b
je 0x140004c83
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140004c75
cmp byte [rax], 0
mov rcx, rax
je 0x140004c90
jmp 0x140004c64
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140004c9a
test rdi, rdi
jne 0x140004cb4
test r8d, r8d
je 0x140004ca2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140004c2b
test rdi, rdi
jne 0x140004cc6
movsxd rax, esi
jmp 0x140004cc9
test rbx, rbx
je 0x140004cc6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140004cc9
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 0x140004da4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000fc20]
call fcn.1400093d4
xor ecx, ecx
add rsp, 0x28
jmp fcn.140004be4

Function at 0x140004e98
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140004eb8
test rax, rax
lea rdx, [0x14000d8b0]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x140005d58
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 0x140005e3a
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x140005e17
cmp eax, 1
jne 0x140005e3a
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x140005e10
sub eax, 1
je 0x140005e09
sub eax, 1
je 0x140005de4
cmp eax, 1
jne 0x140005e3a
lea rcx, [rsp + 0xc0]
lea ebx, [rax + 0x45]
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140005e3a
cmp byte [rsp + 0x15a], 1
je 0x140005e3a
mov ebx, 0x4b
jmp 0x140005e3a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005e02
sub eax, 1
je 0x140005dfb
cmp eax, 1
jne 0x140005e3a
lea ebx, [rax + 0x40]
jmp 0x140005e3a
mov ebx, 0x3c
jmp 0x140005e3a
mov ebx, 0x32
jmp 0x140005e3a
mov ebx, 0x14
jmp 0x140005e3a
mov ebx, 5
jmp 0x140005e3a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005e35
cmp eax, 0xa
je 0x140005e2e
cmp eax, 0x5a
jne 0x140005e3a
lea ebx, [rax - 0x32]
jmp 0x140005e3a
mov ebx, 0x1e
jmp 0x140005e3a
mov ebx, 0xa
movsxd rax, ebx
add rsp, 0x160
pop rbx
ret

Function at 0x140006a54
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 [0x14000fd40]
call fcn.1400097f4
mov rsi, rax
test rax, rax
je 0x140006acd
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140006a92
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140006acd
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000aca0
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.14000ae30
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000887c
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 0x14000891b
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000891b
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000891b
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000891b
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 0x14000891b
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 0x140008946
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropA]
test rax, rax
je 0x140008946
mov rcx, qword [0x14000fd60]
lea rdx, [rax - 1]
call fcn.1400097f4
mov rax, qword [rax + 0x10]
jmp 0x140008948
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140008950
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.14000aca0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000898f
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000898f
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000ae30
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 0x140008a64
Capabilities:
Delete file

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

Function at 0x140008b28
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.14000aca0
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 0x140008b9a
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008b91
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.14000ae30
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 0x140008bc0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x140008c33
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 0x140008c1f
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x140008c12
cmp al, 0x5c
je 0x140008c12
cmp al, 0x2f
jne 0x140008c1f
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140008c00
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x140008c35
xor eax, eax
add rsp, 0x138
ret

Function at 0x140008c40
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 0x140008c86
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 0x140009090
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x14000fda0]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.1400097f4
mov rbx, rax
test rax, rax
je 0x140009187
test rsi, rsi
je 0x140009125
cmp byte [rsi], bpl
je 0x140009125
mov qword [rsp + 0x50], rdi
cmp qword [rax + 8], rbp
je 0x1400090f8
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
mov rdx, rsi
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1400092e0
mov dword [rsp + 0x60], eax
jmp 0x140009120
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea r9, [rsp + 0x60]
mov rdx, rsi
not rcx
mov qword [rsp + 0x20], rbp
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
cmp qword [rbx + 8], rbp
je 0x140009153
lea rdx, [0x14000d9b0]
mov r8d, 2
mov rcx, rbx
call fcn.1400092e0
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
lea rdx, [0x14000d9b0]
mov r8d, 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400091a0
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 0x140009231
cmp byte [rdx], bl
je 0x140009231
mov rdx, rcx
mov rcx, qword [0x14000fda0]
call fcn.1400097f4
mov r11, rax
test rax, rax
je 0x14000922d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000920f
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.1400092e0
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 0x140009250
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 0x1400092c8
test r8d, r8d
je 0x1400092c8
mov rdx, rcx
mov rcx, qword [0x14000fda0]
call fcn.1400097f4
test rax, rax
je 0x1400092c4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400092b1
mov rcx, rax
call fcn.1400092e0
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 0x1400092e0
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 0x14000932a
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 0x140009368
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
sub edx, 1
je 0x140009361
sub edx, 1
je 0x140009359
cmp edx, 2
je 0x140009353
mov rdx, rsi
jmp 0x1400093b6
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x1400093be
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x1400093be
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x1400093be
mov rcx, rbx
call fcn.140008c40
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x1400093ab
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 0x140009b80
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 0x140009d8f
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 0x140009d85
mov rcx, qword [0x14000f610]
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 0x140009d77
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
lea r12, [0x14000d9d0]
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 0x140009d1d
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 0x140009c50
test r9d, r9d
je 0x140009d4e
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 0x140009d30
cmp r10d, 0x1000
je 0x140009c10
mov rcx, qword [0x14000f610]
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