joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e2daf
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14010dae0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1409f312b]
call fcn.1400e5ded
nop
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14010db25
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14010dbb6
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14010db7b
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14010db85
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14010db1a
mov qword [rbp + 0x88], 0xe3
jmp 0x14010dbd4
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14010dc7d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14010dc39
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14010dc43
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14010dbc3
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14010dcdd
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14010dce7
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1400e3016
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401c4310
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401c3c90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401c434f
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 [0x1409f4020]
jmp 0x1401c4359
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400e32d2
Capabilities:
Query environment variable

Disassembly:
jmp 0x140281ae0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140281910
lea rcx, [rsp + 0x40]
call fcn.140281a90
movzx eax, al
test eax, eax
jne 0x140281b28
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140281940
mov rax, qword [rsp + 0x70]
jmp 0x140281cf9
lea rcx, [rsp + 0x40]
call fcn.140281a60
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140281a00
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.140281a60
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.1400e46c3
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140281bce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140281940
mov rax, qword [rsp + 0x80]
jmp 0x140281cf9
mov r9d, 0x66
lea r8, [0x1402e88a0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400e2e36
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400e2bc0
lea rcx, [rsp + 0x48]
call fcn.1400e2521
movzx eax, al
test eax, eax
jne 0x140281c35
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400e0ebf
lea rcx, [rsp + 0x40]
call fcn.140281940
mov rax, qword [rsp + 0x88]
jmp 0x140281cf9
lea rcx, [rsp + 0x48]
call fcn.1400e3868
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140281a60
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.1400e46c3
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140281ccb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400e0ebf
lea rcx, [rsp + 0x40]
call fcn.140281940
mov rax, qword [rsp + 0xa0]
jmp 0x140281cf9
lea rcx, [rsp + 0x48]
call fcn.1400e2b75
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400e0ebf
lea rcx, [rsp + 0x40]
call fcn.140281940
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400e32eb
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401c4240
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401c3c10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401c4281
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 [0x1409f4020]
jmp 0x1401c4287
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400e33bd
Capabilities:
Get geographical location

Disassembly:
jmp 0x14025f4d0
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.14025e400
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14025f537
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 [0x1409f4030]
jmp 0x14025f559
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400e2481
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 0x1400e33db
Capabilities:
Terminate process

Disassembly:
jmp 0x1401a1fd0
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 0x1400e37e6
Capabilities:
Print debug messages

Disassembly:
jmp 0x14028f250
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1409d3c80]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14028f276
jmp 0x14028f2f3
mov rcx, qword [rbp + 0x30]
call fcn.1400e29f9
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14028f28f
jmp 0x14028f2f3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14028f2ac
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400e1112
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.1400e17d4
test eax, eax
jne 0x14028f2f3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400e2d2d
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400e3b8d
Capabilities:
Get geographical location

Disassembly:
jmp 0x14014df70
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, [0x1402c1558]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14014dfad
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.1400e5da7
add rsp, 0x58
ret
Function at 0x1400e3bd8
Capabilities:
Create process on windows

Disassembly:
jmp 0x1402931f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400e2274
lea rcx, [rsp + 0xb8]
call fcn.1400e2274
lea rcx, [rsp + 0x88]
call fcn.1400e2274
call fcn.1400e322d
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400e1ecd
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140293292
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400e286e
lea rcx, [rsp + 0xb8]
call fcn.1400e286e
lea rcx, [rsp + 0xe8]
call fcn.1400e286e
mov eax, dword [rsp + 0x54]
jmp 0x140293438
call fcn.1400e322d
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400e1ecd
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1402932f2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400e286e
lea rcx, [rsp + 0xb8]
call fcn.1400e286e
lea rcx, [rsp + 0xe8]
call fcn.1400e286e
mov eax, dword [rsp + 0x5c]
jmp 0x140293438
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x140293378
call fcn.1400e322d
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400e1ecd
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140293366
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400e286e
lea rcx, [rsp + 0xb8]
call fcn.1400e286e
lea rcx, [rsp + 0xe8]
call fcn.1400e286e
mov eax, dword [rsp + 0x64]
jmp 0x140293438
lea rcx, [rsp + 0x88]
call fcn.1400e2157
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400e2157
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400e2157
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400e286e
lea rcx, [rsp + 0xb8]
call fcn.1400e286e
lea rcx, [rsp + 0xe8]
call fcn.1400e286e
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400e3caa
Capabilities:
Set environment variable

Disassembly:
jmp 0x140283c00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400e405b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401a3650
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401a3670
xor al, al
jmp 0x1401a36f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401a3683
xor al, al
jmp 0x1401a36f1
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 0x1401a36ad
xor al, al
jmp 0x1401a36f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401a36c1
xor al, al
jmp 0x1401a36f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401a36d3
xor al, al
jmp 0x1401a36f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401a36ef
xor al, al
jmp 0x1401a36f1
mov al, 1
add rsp, 0x38
ret

Function at 0x1400e4272
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x140106ad0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rcx, [0x1409f310a]
call fcn.1400e5ded
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140106b3e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x140106c06
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x140106b65
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x140106c06
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x140106baf
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x140106c06
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x140106bf7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x48], 0
je 0x140106bf3
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x140106c06
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400e492f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140106a40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1409f310a]
call fcn.1400e5ded
nop
mov rcx, qword [rbp + 0x100]
call fcn.1400e0898
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x140106a94
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x140106a94
mov dword [rbp + 0xd4], 1
jmp 0x140106a9e
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400e49a7
Capabilities:
Terminate process

Disassembly:
jmp 0x1401c5300
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 0x1401c532e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400e5717
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 0x1400e57a3
Capabilities:
Print debug messages

Disassembly:
jmp 0x140254a90
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 0x1400e592e
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401c4380
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401c3cd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401c43c9
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 [0x1409f4020]
jmp 0x1401c43d8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400e5a73
Capabilities:
Set environment variable

Disassembly:
jmp 0x14029fdd0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400e2274
lea rcx, [rsp + 0x48]
call fcn.1400e2274
call fcn.1400e322d
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400e1ecd
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14029fe3f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400e286e
lea rcx, [rsp + 0x78]
call fcn.1400e286e
mov eax, dword [rsp + 0x24]
jmp 0x14029fed0
call fcn.1400e322d
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400e1ecd
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14029fe86
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400e286e
lea rcx, [rsp + 0x78]
call fcn.1400e286e
mov eax, dword [rsp + 0x2c]
jmp 0x14029fed0
lea rcx, [rsp + 0x48]
call fcn.1400e2157
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400e2157
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.1400e286e
lea rcx, [rsp + 0x78]
call fcn.1400e286e
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400e5ab4
Capabilities:
Create directory

Disassembly:
jmp 0x140106880
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1409d3c80]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x1409f3109]
call fcn.1400e5ded
nop
lea rax, str.C:WINDOWSSysWOW64Licenses_neutralVolumeProfessional
mov qword [rbp + 8], rax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1401068ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401069a9
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x30]
call fcn.1400e251c
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, str.C:WINDOWSSysWOW64Licenses_neutralVolumeProfessionallicense.log
lea rcx, [rbp + 0x30]
call fcn.1400e2490
nop
mov rax, qword [rbp + 0x30]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0x30]
mov rcx, rax
call fcn.1400e295e
movzx eax, al
test eax, eax
je 0x14010699f
mov r8d, 0x5a2400
lea rdx, section..data
lea rcx, [rbp + 0x30]
call fcn.1400e3133
nop
mov rax, qword [rbp + 0x30]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0x30]
mov rcx, rax
call fcn.1400e295e
movzx eax, al
test eax, eax
je 0x140106978
mov dword [rbp + 0x224], 0
jmp 0x140106982
mov dword [rbp + 0x224], 1
mov eax, dword [rbp + 0x224]
mov dword [rbp + 0x214], eax
lea rcx, [rbp + 0x30]
call fcn.1400e1716
mov eax, dword [rbp + 0x214]
jmp 0x1401069ae
lea rcx, [rbp + 0x30]
call fcn.1400e1716
nop
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402b9cd0]
call fcn.1400e4d5d
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.1400e2d2d
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret
Function at 0x140263520
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.1400e1112
sub rsp, rax
mov rax, qword [0x1409d3c80]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1409d8cd0]
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, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
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 0x140263712
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 0x140263666
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140263666
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 0x14026364b
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 0x1402635e8
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 0x1402636d2
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, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140263731
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 0x14026370d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140263731
jmp 0x1402635be
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400e2d2d
add rsp, 0x1498
pop rdi
pop rsi
ret