joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400801b0
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x1400801b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x688
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x10a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6a8]
mov rax, qword [0x140289140]
xor rax, rbp
mov qword [rbp + 0x658], rax
lea rcx, [0x1402ac2b2]
call fcn.140007f72
nop
lea r8, [0x14022c074]
mov rdx, qword [rbp + 0x680]
lea rcx, [rbp + 0x5d8]
call fcn.140007063
mov qword [rbp + 0x648], rax
mov rcx, qword [rbp + 0x648]
call fcn.14000355d
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x278], rax
lea rcx, [rbp + 0x5d8]
call fcn.140006e79
nop
cmp qword [rbp + 0x278], 0xffffffffffffffff
jne 0x140080261
jmp 0x140080456
lea rdx, [rbp + 0x3c]
lea rcx, [rbp + 0x298]
call fcn.1400034d6
nop
lea rdx, [0x14022c020]
lea rcx, [rbp + 0x298]
call fcn.14000358f
movzx eax, al
test eax, eax
jne 0x1400802a6
lea rdx, [0x14022c024]
lea rcx, [rbp + 0x298]
call fcn.14000358f
movzx eax, al
test eax, eax
je 0x1400802b8
lea rcx, [rbp + 0x298]
call fcn.140006e79
nop
jmp 0x14008042f
lea r8, [rbp + 0x298]
mov rdx, qword [rbp + 0x680]
lea rcx, [rbp + 0x2d8]
call fcn.140005781
nop
mov eax, dword [rbp + 0x10]
and eax, 0x10
test eax, eax
je 0x140080339
lea r8, [0x14022c6d4]
lea rdx, [rbp + 0x2d8]
lea rcx, [rbp + 0x618]
call fcn.140007063
mov qword [rbp + 0x648], rax
mov rax, qword [rbp + 0x648]
mov qword [rbp + 0x650], rax
mov r8, qword [rbp + 0x690]
mov rdx, qword [rbp + 0x688]
mov rcx, qword [rbp + 0x650]
call fcn.140004ddb
nop
lea rcx, [rbp + 0x618]
call fcn.140006e79
nop
jmp 0x140080415
mov rax, qword [rbp + 0x688]
mov qword [rbp + 0x318], rax
mov rcx, qword [rbp + 0x318]
call fcn.140005f33
mov qword [rbp + 0x338], rax
mov rcx, qword [rbp + 0x318]
call fcn.140005e89
mov qword [rbp + 0x358], rax
jmp 0x140080381
mov rax, qword [rbp + 0x338]
add rax, 0x28
mov qword [rbp + 0x338], rax
mov rax, qword [rbp + 0x358]
cmp qword [rbp + 0x338], rax
je 0x140080415
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x378], rax
mov rdx, qword [rbp + 0x378]
lea rcx, [rbp + 0x298]
call fcn.140002bad
movzx eax, al
test eax, eax
je 0x140080410
lea rdx, [rbp + 0x2d8]
mov rcx, qword [rbp + 0x690]
call fcn.140006933
nop
lea rdx, [0x14022c740]
lea rcx, [0x14028c730]
call fcn.14000485e
lea rdx, [rbp + 0x2d8]
mov rcx, rax
call fcn.140004e71
mov qword [rbp + 0x648], rax
lea rdx, [0x14000452a]
mov rcx, qword [rbp + 0x648]
call fcn.1400066fe
nop
jmp 0x140080415
jmp 0x14008036f
lea rcx, [rbp + 0x2d8]
call fcn.140006e79
nop
lea rcx, [rbp + 0x298]
call fcn.140006e79
nop
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140080261
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140226050]
call fcn.140006b90
mov rcx, qword [rbp + 0x658]
xor rcx, rbp
call fcn.1400044d0
lea rsp, [rbp + 0x668]
pop rdi
pop rbp
ret
Function at 0x140081090
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140081090
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x458
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x478]
mov rax, qword [0x140289140]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x1402ac2b2]
call fcn.140007f72
nop
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x140081143
mov ecx, 4
call fcn.140003297
nop
lea rdx, str.________.
lea rcx, [0x14028c920]
call fcn.14000485e
mov qword [rbp + 0x418], rax
lea rdx, [0x14000452a]
mov rcx, qword [rbp + 0x418]
call fcn.1400066fe
nop
mov ecx, 7
call fcn.140003297
nop
xor eax, eax
jmp 0x140081272
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140081220
lea rdx, [rbp + 0x7c]
mov rcx, qword [rbp + 0x450]
call fcn.14000358f
movzx eax, al
test eax, eax
je 0x140081209
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
mov ecx, 2
call fcn.140003297
nop
lea rdx, str.____:
lea rcx, [0x14028c730]
call fcn.14000485e
mov rdx, qword [rbp + 0x450]
mov rcx, rax
call fcn.140004e71
lea rdx, [0x14022c9c8]
mov rcx, rax
call fcn.14000485e
mov qword [rbp + 0x418], rax
mov edx, dword [rbp + 4]
mov rcx, qword [rbp + 0x418]
call fcn.140007d2e
lea rdx, [0x14022c9c4]
mov rcx, rax
call fcn.14000485e
mov qword [rbp + 0x420], rax
lea rdx, [0x14000452a]
mov rcx, qword [rbp + 0x420]
call fcn.1400066fe
nop
mov ecx, 7
call fcn.140003297
nop
jmp 0x14008121e
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14008115f
jmp 0x140081264
mov ecx, 4
call fcn.140003297
nop
lea rdx, str.__________.
lea rcx, [0x14028c920]
call fcn.14000485e
mov qword [rbp + 0x418], rax
lea rdx, [0x14000452a]
mov rcx, qword [rbp + 0x418]
call fcn.1400066fe
nop
mov ecx, 7
call fcn.140003297
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140226440]
call fcn.140006b90
mov rax, rdi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.1400044d0
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret
Function at 0x140081c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x140081c80
mov byte [rsp + 8], cl
push rbp
push rsi
push rdi
sub rsp, 0x230
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x1a4], 0
lea rcx, [0x1402ac2b2]
call fcn.140007f72
nop
mov eax, 0x104
mov eax, eax
mov ecx, dword [0x14028cf2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x14028c058], eax
jle 0x140081dd3
lea rcx, [0x14028c058]
call fcn.1400072fc
cmp dword [0x14028c058], 0xffffffff
jne 0x140081dd3
mov edx, 0x18
lea rcx, [0x14028c040]
call fcn.140001433
mov byte [rbp + 0x1c8], 0x3f
mov byte [rbp + 0x1c9], 0x2f
mov byte [rbp + 0x1ca], 0x5c
mov byte [rbp + 0x1cb], 0x3a
mov byte [rbp + 0x1cc], 0x2a
mov byte [rbp + 0x1cd], 0x22
mov byte [rbp + 0x1ce], 0x3c
mov byte [rbp + 0x1cf], 0x3e
mov byte [rbp + 0x1d0], 0x7c
mov byte [rbp + 0x1d1], 0x5b
mov byte [rbp + 0x1d2], 0x5d
mov byte [rbp + 0x1d3], 0x40
mov byte [rbp + 0x1d4], 0x2b
mov byte [rbp + 0x1d5], 0x7b
mov byte [rbp + 0x1d6], 0x7d
mov byte [rbp + 0x1d7], 0x5e
mov byte [rbp + 0x1d8], 0x7e
lea rax, [rbp + 0x1d9]
mov r8, rax
lea rdx, [rbp + 0x1c8]
lea rcx, [rbp + 0xc8]
call fcn.140003aa3
lea rcx, [rbp + 0x180]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x180]
lea rcx, [0x14028c040]
call fcn.140003995
nop
lea rcx, [0x140218ef0]
call fcn.140003adf
nop
lea rcx, [0x14028c058]
call fcn.14000763f
nop
movsx eax, byte [rbp + 0x230]
mov ecx, eax
call fcn.1400043e0
test eax, eax
je 0x140081e84
lea r8, [rbp + 0x230]
lea rdx, [rbp + 0x118]
lea rcx, [0x14028c040]
call fcn.140006703
mov qword [rbp + 0x1e8], rax
mov eax, dword [rbp + 0x1a4]
or eax, 1
mov dword [rbp + 0x1a4], eax
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x1f0], rax
lea rdx, [rbp + 0x148]
lea rcx, [0x14028c040]
call fcn.1400083e1
mov qword [rbp + 0x1f8], rax
mov eax, dword [rbp + 0x1a4]
or eax, 2
mov dword [rbp + 0x1a4], eax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x200], rax
mov rdx, qword [rbp + 0x200]
mov rcx, qword [rbp + 0x1f0]
call fcn.140008530
movzx eax, al
test eax, eax
je 0x140081e84
mov dword [rbp + 0x208], 1
jmp 0x140081e8e
mov dword [rbp + 0x208], 0
movzx eax, byte [rbp + 0x208]
mov byte [rbp + 0xf4], al
mov eax, dword [rbp + 0x1a4]
and eax, 2
test eax, eax
je 0x140081ebc
and dword [rbp + 0x1a4], 0xfffffffd
lea rcx, [rbp + 0x148]
call fcn.140007a3b
nop
mov eax, dword [rbp + 0x1a4]
and eax, 1
test eax, eax
je 0x140081edd
and dword [rbp + 0x1a4], 0xfffffffe
lea rcx, [rbp + 0x118]
call fcn.140007a3b
nop
movzx eax, byte [rbp + 0xf4]
lea rsp, [rbp + 0x210]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b9ab0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400b9ab0
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 0x1400b9aed
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.140007f13
add rsp, 0x58
ret
Function at 0x1400fa9c0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400fa9c0
push rdi
sub rsp, 0x30
call fcn.140005051
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400fa9ec
mov eax, 2
jmp 0x1400faa59
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x1400faa42
cmp dword [rsp + 0x20], 0x31
je 0x1400faa49
cmp dword [rsp + 0x20], 0x32
je 0x1400faa50
jmp 0x1400faa57
mov eax, 2
jmp 0x1400faa59
mov eax, 1
jmp 0x1400faa59
mov eax, 3
jmp 0x1400faa59
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14011fa80
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14011fa80
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14011f400
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011fabf
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 [0x1402ae020]
jmp 0x14011fac9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1401b2a70
Capabilities:
Create process on windows

Disassembly:
jmp 0x1401b2a70
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x78]
mov r9, qword [rax]
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
add rsp, 0x58
ret
Function at 0x1401ba3b0
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401ba3b0
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 0x1401bf140
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401bf140
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.1401be070
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401bf1a7
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 [0x1402ae030]
jmp 0x1401bf1c9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140003a7b
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 0x1401c6400
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.1400023b5
sub rsp, rax
mov rax, qword [0x140289140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14028ea10]
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 0x1401c65f2
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 0x1401c6546
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401c6546
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 0x1401c652b
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 0x1401c64c8
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 0x1401c65b2
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 0x1401c6611
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 0x1401c65ed
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 0x1401c6611
jmp 0x1401c649e
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.1400044d0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401c66c0
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.1400023b5
sub rsp, rax
mov rax, qword [0x140289140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14028ea10]
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 0x1401c68cd
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 0x1401c6819
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401c6819
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 0x1401c67f9
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 0x1401c6788
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 0x1401c688d
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 0x1401c68ec
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 0x1401c68c8
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 0x1401c68ec
jmp 0x1401c675e
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.1400044d0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401ddf80
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401ddf80
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401dddb0
lea rcx, [rsp + 0x40]
call fcn.1401ddf30
movzx eax, al
test eax, eax
jne 0x1401ddfc8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0x70]
jmp 0x1401de199
lea rcx, [rsp + 0x40]
call fcn.1401ddf00
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401ddea0
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.1401ddf00
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.140006389
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401de06e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0x80]
jmp 0x1401de199
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140004615
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004322
lea rcx, [rsp + 0x48]
call fcn.140003b48
movzx eax, al
test eax, eax
jne 0x1401de0d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400020ea
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0x88]
jmp 0x1401de199
lea rcx, [rsp + 0x48]
call fcn.140005290
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401ddf00
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.140006389
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401de16b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400020ea
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0xa0]
jmp 0x1401de199
lea rcx, [rsp + 0x48]
call fcn.1400042c3
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400020ea
lea rcx, [rsp + 0x40]
call fcn.1401ddde0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1401de230
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401de230
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401dddb0
lea rcx, [rsp + 0x20]
call fcn.1401dde00
movzx eax, al
test eax, eax
jne 0x1401de275
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401ddde0
mov rax, qword [rsp + 0x40]
jmp 0x1401de36f
lea rcx, [rsp + 0x20]
call fcn.1401ddf00
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401ddea0
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.140004615
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000389b
lea rcx, [rsp + 0x28]
call fcn.140004cfa
movzx eax, al
test eax, eax
jne 0x1401de30f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140006893
lea rcx, [rsp + 0x20]
call fcn.1401ddde0
mov rax, qword [rsp + 0x50]
jmp 0x1401de36f
lea rcx, [rsp + 0x20]
call fcn.1401ddf00
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140007e14
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.140004502
lea rcx, [rsp + 0x28]
call fcn.140008b16
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140006893
lea rcx, [rsp + 0x20]
call fcn.1401ddde0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1401e00a0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401e00a0
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