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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401ca0bc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401d3621
cmp ebx, dword [rsp + 0x30]
je 0x1401d361a
test esi, esi
je 0x1401d361a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401d35f5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401d3602
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401d35df
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401d3606
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401d3623
mov eax, 1
jmp 0x1401d3623
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401d8350
Capabilities:
Parse pe header

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rdi, rcx
mov rax, qword [0x1400050c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x28], 0x238
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001880
mov rbx, rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
lea r14, [rsp + 0x54]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rdi + 0x10]
cmp rax, rcx
mov rdx, rcx
cmovb rdx, rax
test rdx, rdx
je 0x1400017d5
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x1400017af
mov r8, qword [rdi]
xor r9d, r9d
nop word cs:[rax + rax]
movzx r10d, word [r8 + r9*2]
cmp r10w, word [rsp + r9*2 + 0x54]
jne 0x140001804
inc r9
cmp rdx, r9
jne 0x1400017c0
cmp rax, rcx
jne 0x140001804
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x30]
jmp 0x140001880
xor edx, edx
cmp rax, rcx
setb dl
mov eax, 0xffffffff
cmovbe eax, edx
test eax, eax
je 0x1400017da
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140001877
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rdi + 0x10]
cmp rax, rcx
mov rdx, rcx
cmovb rdx, rax
test rdx, rdx
je 0x1400017f0
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14000183e
mov r8, qword [rdi]
xor r9d, r9d
nop word cs:[rax + rax]
movzx r10d, word [r8 + r9*2]
cmp r10w, word [rsp + r9*2 + 0x54]
jne 0x140001870
inc r9
cmp rdx, r9
jne 0x140001850
jmp 0x1400017f0
mov eax, 1
jmp 0x140001800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001f40
mov eax, esi
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000274c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002796
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002796
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002796
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002796
cmp dword [rcx + 0x84], 0xe
jbe 0x140002796
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002798
xor al, al
add rsp, 0x28
ret
Function at 0x1400bef0f
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140110bc0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140110be8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140110c32
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x140110bdd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c06a7
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140174bb0
mov rax, rcx
neg rcx
test rax, 7
je 0x140174bcd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140174c28
test al, 7
jne 0x140174bc0
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 0x140174be1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140174c52
test dh, dh
je 0x140174c4c
shr rdx, 0x10
test dl, dl
je 0x140174c46
test dh, dh
je 0x140174c40
shr rdx, 0x10
test dl, dl
je 0x140174c3a
test dh, dh
je 0x140174c34
shr edx, 0x10
test dl, dl
je 0x140174c2e
test dh, dh
jne 0x140174be1
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 0x1400c06e3
Capabilities:
Query environment variable

Disassembly:
jmp 0x140220a70
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402205f0
lea rcx, [rsp + 0x20]
call fcn.140220640
movzx eax, al
test eax, eax
jne 0x140220ab5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140220620
mov rax, qword [rsp + 0x40]
jmp 0x140220baf
lea rcx, [rsp + 0x20]
call fcn.140220740
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402206e0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c0a8f
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c0003
lea rcx, [rsp + 0x28]
call fcn.1400c0f76
movzx eax, al
test eax, eax
jne 0x140220b4f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c250b
lea rcx, [rsp + 0x20]
call fcn.140220620
mov rax, qword [rsp + 0x50]
jmp 0x140220baf
lea rcx, [rsp + 0x20]
call fcn.140220740
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c3578
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c09d6
lea rcx, [rsp + 0x28]
call fcn.1400c3f4b
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c250b
lea rcx, [rsp + 0x20]
call fcn.140220620
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c0c33
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14016b610
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016af90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016b64f
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 [0x1402bd020]
jmp 0x14016b659
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c0e9f
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402207c0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402205f0
lea rcx, [rsp + 0x40]
call fcn.140220770
movzx eax, al
test eax, eax
jne 0x140220808
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140220620
mov rax, qword [rsp + 0x70]
jmp 0x1402209d9
lea rcx, [rsp + 0x40]
call fcn.140220740
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402206e0
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.140220740
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.1400c2114
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402208ae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140220620
mov rax, qword [rsp + 0x80]
jmp 0x1402209d9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c0a8f
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c085f
lea rcx, [rsp + 0x48]
call fcn.1400c0247
movzx eax, al
test eax, eax
jne 0x140220915
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bed89
lea rcx, [rsp + 0x40]
call fcn.140220620
mov rax, qword [rsp + 0x88]
jmp 0x1402209d9
lea rcx, [rsp + 0x48]
call fcn.1400c13c7
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140220740
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.1400c2114
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1402209ab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bed89
lea rcx, [rsp + 0x40]
call fcn.140220620
mov rax, qword [rsp + 0xa0]
jmp 0x1402209d9
lea rcx, [rsp + 0x48]
call fcn.1400c080f
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bed89
lea rcx, [rsp + 0x40]
call fcn.140220620
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c0eb8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14016b540
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14016af10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016b581
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 [0x1402bd020]
jmp 0x14016b587
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c0f80
Capabilities:
Get geographical location

Disassembly:
jmp 0x140200bd0
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.1401ffb00
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140200c37
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 [0x1402bd030]
jmp 0x140200c59
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c01b1
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 0x1400c0f94
Capabilities:
Terminate process

Disassembly:
jmp 0x1401483f0
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]
add rsp, 0x28
ret
Function at 0x1400c134f
Capabilities:
Print debug messages

Disassembly:
jmp 0x14022dc40
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402a0058]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14022dc66
jmp 0x14022dce3
mov rcx, qword [rbp + 0x30]
call fcn.1400c06a7
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14022dc7f
jmp 0x14022dce3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14022dc9c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400befb9
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.1400bf608
test eax, eax
jne 0x14022dce3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c09ae
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400c17c8
Capabilities:
Set environment variable

Disassembly:
jmp 0x140222920
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 0x1400c1b33
Capabilities:
Parse pe header

Disassembly:
jmp 0x140149e10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140149e30
xor al, al
jmp 0x140149eb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140149e43
xor al, al
jmp 0x140149eb1
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 0x140149e6d
xor al, al
jmp 0x140149eb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140149e81
xor al, al
jmp 0x140149eb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140149e93
xor al, al
jmp 0x140149eb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140149eaf
xor al, al
jmp 0x140149eb1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c23f8
Capabilities:
Terminate process

Disassembly:
jmp 0x14016c620
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 0x14016c64e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c3041
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 0x1400c30c3
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x14016b680
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016afd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016b6c9
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 [0x1402bd020]
jmp 0x14016b6d8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c3343
Capabilities:
Set environment variable

Disassembly:
jmp 0x14023abf0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bffae
lea rcx, [rsp + 0x48]
call fcn.1400bffae
call fcn.1400c0e1d
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bfc70
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14023ac5f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c054e
lea rcx, [rsp + 0x78]
call fcn.1400c054e
mov eax, dword [rsp + 0x24]
jmp 0x14023acf0
call fcn.1400c0e1d
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bfc70
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14023aca6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c054e
lea rcx, [rsp + 0x78]
call fcn.1400c054e
mov eax, dword [rsp + 0x2c]
jmp 0x14023acf0
lea rcx, [rsp + 0x48]
call fcn.1400bfed2
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bfed2
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.1400c054e
lea rcx, [rsp + 0x78]
call fcn.1400c054e
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140208880
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.1400befb9
sub rsp, rax
mov rax, qword [0x1402a0058]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402a54b0]
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 0x140208a72
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 0x1402089c6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402089c6
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 0x1402089ab
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 0x140208948
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 0x140208a32
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 0x140208a91
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 0x140208a6d
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 0x140208a91
jmp 0x14020891e
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.1400c09ae
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140208b40
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.1400befb9
sub rsp, rax
mov rax, qword [0x1402a0058]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402a54b0]
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 0x140208d4d
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 0x140208c99
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140208c99
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 0x140208c79
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 0x140208c08
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 0x140208d0d
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 0x140208d6c
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 0x140208d48
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 0x140208d6c
jmp 0x140208bde
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.1400c09ae
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400015f0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140070a38
xor r8d, r8d
xor edx, edx
jmp 0x140070728