joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d5fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140227c40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140227c60
xor al, al
jmp 0x140227ce1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140227c73
xor al, al
jmp 0x140227ce1
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 0x140227c9d
xor al, al
jmp 0x140227ce1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140227cb1
xor al, al
jmp 0x140227ce1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140227cc3
xor al, al
jmp 0x140227ce1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140227cdf
xor al, al
jmp 0x140227ce1
mov al, 1
add rsp, 0x38
ret

Function at 0x14010d87f
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1401acad0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x1403d1140]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x1403f7124]
call fcn.14010fce2
nop
mov dword [rbp + 0x10], 0x238
mov dword [rbp + 0x14], 0
mov dword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov dword [rbp + 0x28], 0
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x30], 0
mov dword [rbp + 0x34], 0
mov dword [rbp + 0x38], 0
lea rax, [rbp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rbp + 0x244]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov edx, 0x10
lea rcx, [rbp + 0x268]
call fcn.14010db72
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x418], rax
xor edx, edx
mov ecx, 2
call fcn.14010bb7e
lea r8, [rbp + 0x418]
mov rdx, rax
lea rcx, [rbp + 0x268]
call fcn.140109216
nop
lea rcx, [rbp + 0x268]
call fcn.14010f274
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.14010cbb4
test eax, eax
je 0x1401acc33
lea rcx, [rbp + 0x268]
call fcn.14010f274
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.14010eaea
test eax, eax
je 0x1401acc33
mov rcx, qword [rbp + 0x490]
call fcn.14010d875
mov rdx, rax
lea rcx, [rbp + 0x3c]
call fcn.14010bd5e
test eax, eax
je 0x1401acc15
jmp 0x1401acbdb
mov byte [rbp + 0x434], 1
lea rcx, [rbp + 0x268]
call fcn.14010f6a2
movzx eax, byte [rbp + 0x434]
jmp 0x1401acc4d
mov byte [rbp + 0x454], 0
lea rcx, [rbp + 0x268]
call fcn.14010f6a2
movzx eax, byte [rbp + 0x454]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14033afe0]
call fcn.14010e775
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.14010bc78
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret
Function at 0x14010e257
Capabilities:
Terminate process

Disassembly:
jmp 0x140249840
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 0x14024986e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14010f427
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 0x14010efae
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
jmp 0x14019d1f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x70]
mov dword [rbp + 0x1b4], 0
lea rcx, [0x1403f7122]
call fcn.14010fce2
nop
mov rcx, qword [rbp + 0x230]
call fcn.14010b6b5
mov qword [rbp + 0x1c8], rax
mov rcx, qword [rbp + 0x228]
call fcn.1401087c1
mov qword [rbp + 0x1d0], rax
mov rcx, qword [rbp + 0x220]
call fcn.1401087c1
mov qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
call fcn.14010bbbf
mov qword [rbp + 0x1e0], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x1c8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, qword [rbp + 0x1d0]
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14019d33c
mov rcx, qword [rbp + 0x220]
call fcn.1401087c1
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
call fcn.14010bbbf
mov qword [rbp + 0x1d0], rax
mov r8d, 0xf01ff
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14019d393
lea rax, [rbp + 0x104]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x104]
lea rcx, [rbp + 0xe4]
call fcn.1401098b0
mov rdx, rax
mov rcx, qword [rbp + 0x218]
call fcn.14010e031
mov eax, dword [rbp + 0x1b4]
or eax, 1
mov dword [rbp + 0x1b4], eax
mov rax, qword [rbp + 0x218]
jmp 0x14019d47d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x14019d3af
mov byte [rbp + 0x1c4], 1
jmp 0x14019d3b6
mov byte [rbp + 0x1c4], 0
movzx eax, byte [rbp + 0x1c4]
test eax, eax
jne 0x14019d41b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14019d41b
lea rax, [rbp + 0x144]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x144]
lea rcx, [rbp + 0x124]
call fcn.1401098b0
mov rdx, rax
mov rcx, qword [rbp + 0x218]
call fcn.14010e031
mov eax, dword [rbp + 0x1b4]
or eax, 1
mov dword [rbp + 0x1b4], eax
mov rax, qword [rbp + 0x218]
jmp 0x14019d47d
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp + 0x198], rax
lea r8, [rbp + 0x198]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x168]
call fcn.14010a23d
mov qword [rbp + 0x1c8], rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x218]
call fcn.14010d573
mov eax, dword [rbp + 0x1b4]
or eax, 1
mov dword [rbp + 0x1b4], eax
lea rcx, [rbp + 0x168]
call fcn.14010d3c0
nop
mov rax, qword [rbp + 0x218]
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14010f4db
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x1402488c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140248210
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140248909
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 [0x1403f8020]
jmp 0x140248918
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14010f85f
Capabilities:
Set environment variable

Disassembly:
jmp 0x1403197c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14010aec7
lea rcx, [rsp + 0x48]
call fcn.14010aec7
call fcn.14010c367
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14010aa26
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14031982f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14010b683
lea rcx, [rsp + 0x78]
call fcn.14010b683
mov eax, dword [rsp + 0x24]
jmp 0x1403198c0
call fcn.14010c367
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14010aa26
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140319876
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14010b683
lea rcx, [rsp + 0x78]
call fcn.14010b683
mov eax, dword [rsp + 0x2c]
jmp 0x1403198c0
lea rcx, [rsp + 0x48]
call fcn.14010ad64
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14010ad64
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.14010b683
lea rcx, [rsp + 0x78]
call fcn.14010b683
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1402e21b0
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.1401096b2
sub rsp, rax
mov rax, qword [0x1403d1140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1403d6cd0]
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 0x1402e23a2
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 0x1402e22f6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402e22f6
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 0x1402e22db
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 0x1402e2278
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 0x1402e2362
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 0x1402e23c1
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 0x1402e239d
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 0x1402e23c1
jmp 0x1402e224e
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.14010bc78
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1402e2470
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.1401096b2
sub rsp, rax
mov rax, qword [0x1403d1140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1403d6cd0]
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 0x1402e267d
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 0x1402e25c9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402e25c9
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 0x1402e25a9
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 0x1402e2538
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 0x1402e263d
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 0x1402e269c
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 0x1402e2678
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 0x1402e269c
jmp 0x1402e250e
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.14010bc78
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400214a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400253d0
sub rsp, rax
mov rax, qword [0x140063180]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140021562
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002150d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140021500
cmp rcx, 1
jb 0x1400215ba
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140021530
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003498c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400214f0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140021593
lea rcx, [rsp + 0x80]
call fcn.1400377c4
jmp 0x140021595
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140025100
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140034738
int3
Function at 0x140024c80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140063180]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140024d25
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140024cdd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140024cd0
cmp rcx, 1
jb 0x140024d56
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140024cf3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003498c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140024cc0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140025100
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140034738
int3

Function at 0x140024f90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140063180]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140025035
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140024fed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140024fe0
cmp rcx, 1
jb 0x140025067
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140025003
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003498c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140024fd0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140025100
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140034738
int3

Function at 0x140025b34
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002ade3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ade3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002ade3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002ade3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002ade3
cmp dword [rcx + 0x84], 0xe
jbe 0x14002ade3
cmp dword [rcx + 0xf8], 0
je 0x14002ade3
mov ecx, ebx
call fcn.14002ae94
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002ac70
nop
cmp dword [rbp + 0x20], 0
je 0x14002ae31
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002ae3c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002ad74
Function at 0x14003ca30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003cab7
mov rsi, rbx
cmp word [rax], bp
je 0x14003ca76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003ca60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003ca5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400378b0
mov rdi, rax
test rax, rax
je 0x14003caa4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140042db0
mov rbp, rdi
xor ecx, ecx
call fcn.1400387e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004062c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040642
mov al, 1
jmp 0x1400406a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040653
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400406a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003d1d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400406a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400406a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400406a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400406a2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140042b90
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1802c7c20
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x180ab80a1]
call fcn.1802c256c
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x1802c7c5f
jmp 0x1802c7c89
call fcn.1802c0ccb
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1802c129d]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x1802c149b
Capabilities:
Terminate process

Disassembly:
jmp 0x18083f0f0
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 0x1802c17cf
Capabilities:
Write file on windows

Disassembly:
jmp 0x18077a600
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x180ab8a75]
call fcn.1802c256c
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret