joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017258
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140017292
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140017297
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400172e0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140030b10]
cmp byte [rcx + rax], 0
je 0x1400172e0
dec r8
sub rdx, 1
jne 0x1400172c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400185e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018632
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018632
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018632
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018632
cmp dword [rcx + 0x84], 0xe
jbe 0x140018632
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018634
xor al, al
add rsp, 0x28
ret

Function at 0x140021914
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021710
Function at 0x140027914
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140027944
xor eax, eax
jmp 0x140027a07
mov rbp, rbx
cmp word [rax], si
je 0x140027969
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140027950
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002794c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400250c0
movsxd r14, eax
test eax, eax
jne 0x1400279a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002793d
mov rcx, r14
call fcn.140024cd4
mov rdi, rax
test rax, rax
jne 0x1400279c0
xor ecx, ecx
call fcn.140024050
jmp 0x14002799c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400250c0
test eax, eax
jne 0x1400279f1
mov rcx, rdi
call fcn.140024050
jmp 0x1400279fb
xor ecx, ecx
call fcn.140024050
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140029fbc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140020d24
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002a046
cmp byte [rbp - 0x21], r15b
je 0x14002a041
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002a07c
call fcn.140024584
test eax, eax
jne 0x14002a068
cmp byte [rbp - 0x21], r15b
je 0x14002a060
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002a07c
cmp byte [rbp - 0x21], r15b
je 0x14002a079
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140021074
test eax, eax
jne 0x14002a11c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140020d24
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002a0bb
cmp byte [rbp - 0x21], r15b
je 0x14002a0f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002a0f0
call fcn.140024584
test eax, eax
jne 0x14002a0dc
cmp byte [rbp - 0x21], r15b
je 0x14002a0d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002a0f0
cmp byte [rbp - 0x21], r15b
je 0x14002a0ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140021074
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002a11c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002a11f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002a12d
mov rcx, rdi
call fcn.140024050
cmp byte [rbp + 0x3f], r15b
je 0x14002a13c
mov rcx, qword [rbp + 0x27]
call fcn.140024050
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14002a900
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a928
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a928
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400010c0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x380
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
xor ebp, ebp
mov edx, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x80], rbp
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x60]
lea r9d, [rbp + 1]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x2000000
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov rcx, qword [rsp + 0x60]
lea r9d, [rbp + 4]
lea r8, [rsp + 0x70]
lea edx, [rbp + 0xc]
mov dword [rsp + 0x70], eax
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea ecx, [rbp + 2]
xor edx, edx
mov dword [rsp + 0xa8], 0x18
mov dword [rsp + 0xb8], ebp
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x68], rbp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x130]
mov rcx, rax
mov rbx, rax
mov dword [rsp + 0x130], 0x238
call sub.KERNEL32.dll_Process32FirstW
nop
nop
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x15c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400011e4
lea rdx, [rsp + 0x130]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400011b0
mov rdi, qword [rsp + 0x68]
jmp 0x1400011fc
mov r8d, dword [rsp + 0x138]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x88]
mov edx, 0xf01ff
mov rcx, rdi
mov qword [rsp + 0x88], rbp
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov qword [rsp + 0x78], rbp
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rsp + 0xc0]
lea r8d, [rdx + 0x68]
call fcn.14000bf20
mov rcx, qword [rsp + 0x60]
xor r11d, r11d
lea rax, str.WinSta0Default
lea r9, [rsp + 0xa8]
mov r8, rsi
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x98], r11
mov qword [rsp + 0xa0], r11
mov dword [rsp + 0xc0], 0x68
mov dword [rsp + 0xfc], 1
mov word [rsp + 0x100], 1
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002dc0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rcx + 0x3c]
xor edi, edi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [0x140002d00]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
lea rdx, str.CApplicationService::ApplicationServiceMainFunction
lea rcx, [0x1400357cc]
call fcn.14000a320
mov rbx, qword [0x140048120]
test rbx, rbx
jne 0x140002e4b
mov ecx, 0x248
call fcn.14000c120
test rax, rax
mov rbx, rax
je 0x140002e41
lea rcx, [rax + 0x3c]
xor edx, edx
mov r8d, 0x208
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], edi
call fcn.14000bf20
jmp 0x140002e44
mov rbx, rdi
mov qword [0x140048120], rbx
lea rdx, str.CApplicationService::ServiceMainFunction111
lea rcx, [0x1400357cc]
call fcn.14000a320
mov rcx, rbx
call fcn.140002b50
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov dword [rbx + 0x14], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140002e90
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x30], rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400046f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
lea rcx, [0x1400358a8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx], rax
je 0x1400047da
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.IsWow64Process
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64DisableWow64FsRedirection
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSystemWow64DirectoryW
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x1400047da
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400083b0
Capabilities:
Get common file path
Get disk information

Disassembly:
push rbx
sub rsp, 0x6b0
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
xor eax, eax
mov rbx, rdx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], 0
mov qword [rsp + 0x52], rax
mov qword [rsp + 0x5a], rax
mov word [rsp + 0x62], ax
mov word [rsp + 0x70], ax
call fcn.14000bf20
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.14000da40
lea rcx, [rsp + 0x492]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x490], 0
call fcn.14000bf20
lea rcx, [rsp + 0x282]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x280], 0
call fcn.14000bf20
xor r11d, r11d
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x280]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x490]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov r8d, 0x104
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400084d3
mov r8d, dword [rsp + 0x40]
lea rdx, str._08X
mov rcx, rbx
call fcn.14000cde0
jmp 0x1400084f1
lea rcx, [0x1400356f4]
sub rbx, rcx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rbx + rcx - 2], ax
jne 0x1400084e0
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x6b0
pop rbx
ret

Function at 0x140008fd0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rax, 0x3030303030303030
xor r9d, r9d
mov r10, rdx
mov qword [rsp], rax
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rax
mov word [rsp + 0x28], ax
mov byte [rsp + 0x2a], al
mov rdi, r9
mov ecx, 5
nop
cmp ecx, 9
jg 0x14000902b
lea r8d, [rcx + 0x30]
jmp 0x14000904b
mov eax, 0x66666667
mov r8d, ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
add r8d, 0x30
mov word [rsp + rdi*2], r8w
add rdi, 1
add ecx, 1
cmp rdi, 0xa
jl 0x140009020
mov edi, 0x11
mov ecx, 0x4e
cmp ecx, 0x5a
mov r8d, ecx
jle 0x14000908c
mov eax, 0xb40b40b5
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x5b
sub r8d, edx
add r8d, 0x41
mov word [rsp + rdi*2], r8w
add rdi, 1
add ecx, 1
cmp rdi, 0x2b
jl 0x140009067
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp]
repne scasw ax, word [rdi]
mov rdi, r10
not rcx
lea r8, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140009108
mov rdx, r10
nop
nop
movzx eax, word [rdx]
sub eax, 0x30
movsxd rcx, eax
cmp rcx, r8
jae 0x1400090e5
movzx eax, word [rsp + rcx*2]
mov word [rdx], ax
or rcx, 0xffffffffffffffff
xor eax, eax
add r9d, 1
mov rdi, r10
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r9d
not rcx
sub rcx, 1
cmp rax, rcx
jb 0x1400090d0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x70
pop rdi
ret
Function at 0x140009930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12d, ecx
movzx r13d, dx
lea rcx, [0x140049440]
xor r14d, r14d
xor edx, edx
mov rbx, r14
call fcn.14002c35c
lea ebp, [r14 + 1]
test rax, rax
mov rsi, rax
je 0x140009a46
nop
nop
test rbx, rbx
jne 0x140009a46
mov eax, r12d
lea edx, [rbx + 6]
movzx r9d, r13w
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x1400099b4
mov rbx, r14
jmp 0x140009a29
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400099ca
mov rbx, r14
jmp 0x140009a24
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400099e0
mov rbx, r14
jmp 0x140009a24
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140009a12
nop
nop
cmp rbx, r11
jae 0x140009a17
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140009a00
cmp rbx, r11
jb 0x140009a1c
mov rbx, r14
jmp 0x140009a24
cmp word [rbx], r14w
cmove rbx, r14
test rbx, rbx
jne 0x140009a67
lea rcx, [0x140049440]
mov edx, ebp
call fcn.14002c35c
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140009980
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
mov rax, rsi
jmp 0x140009a48
Function at 0x140009d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140009ee1
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140009ee1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140009ee1
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140009e16
nop
cmp rdi, r11
jae 0x140009ee1
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140009e00
cmp rdi, r11
jae 0x140009ee1
movzx eax, word [rdi]
test ax, ax
je 0x140009ee1
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140009e4c
mov edx, ebx
mov rcx, rsi
call fcn.140009bb0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140009e69
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.14000bb10
test eax, eax
je 0x140009eb7
cmp eax, 0xc
je 0x140009eac
cmp eax, 0x16
je 0x140009ea1
cmp eax, 0x22
je 0x140009ea1
cmp eax, 0x50
je 0x140009eb7
mov ecx, 0x80004005
call fcn.140009910
int3
mov ecx, 0x80070057
call fcn.140009910
int3
mov ecx, 0x8007000e
call fcn.140009910
int3
test ebx, ebx
js 0x140009ed6
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140009ed6
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140009ee3
mov ecx, 0x80070057
call fcn.140009910
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14000a040
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14000bf20
xor eax, eax
lea rdx, [0x1400357cc]
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.14000cde0
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000a0fa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x8c0
pop rbx
ret
Function at 0x14000a120
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x660
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rsi, rcx
mov rdi, rdx
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], 0
call fcn.14000bf20
lea rcx, [rsp + 0x442]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x440], 0
call fcn.14000bf20
lea rcx, [rsp + 0x230]
mov r11, rsi
sub rcx, rsi
movzx eax, word [r11]
add r11, 2
test ax, ax
mov word [rcx + r11 - 2], ax
jne 0x14000a191
lea rdx, [rsp + 0x440]
mov rcx, rdi
sub rdx, rdi
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x14000a1c0
lea rcx, [rsp + 0x230]
call fcn.14000e250
lea rcx, [rsp + 0x440]
call fcn.14000e250
lea r11, [rsp + 0x230]
lea rdx, [rsp + 0x440]
sub rdx, r11
nop
movzx ecx, word [r11]
movzx eax, word [r11 + rdx]
sub ecx, eax
jne 0x14000a215
add r11, 2
test eax, eax
jne 0x14000a200
test ecx, ecx
je 0x14000a2f6
mov qword [rsp + 0x680], rbx
xor ebx, ebx
nop
nop
nop
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], 0
call fcn.14000bf20
test ebx, ebx
jne 0x14000a263
lea rdx, str._s.bak
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.14000cde0
jmp 0x14000a27a
lea rdx, str._s.bak_d
lea rcx, [rsp + 0x20]
mov r9d, ebx
mov r8, rdi
call fcn.14000cde0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000a294
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000e390
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000a2dd
lea r8d, [rax + 5]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp ebx, 0xa
jge 0x14000a2ee
add ebx, 1
jmp 0x14000a230
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.14000c100
mov rsi, qword [rsp + 0x688]
add rsp, 0x660
pop rdi
ret