joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ebc0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1800ebc3e
call fcn.1800e975c
mov dword [rax], 0x16
call fcn.1800e3574
jmp 0x1800ebd5d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800ebd5d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800ebd5d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800ebc6d
lock or dword [rcx + 0x14], 0x10
jmp 0x1800ebd5d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800ebc81
call fcn.1800f22f4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800e7ef4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1800e8eac
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800ebd4b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800ebd16
mov rcx, rsi
call fcn.1800e7ef4
cmp eax, edi
je 0x1800ebd01
mov rcx, rsi
call fcn.1800e7ef4
cmp eax, 0xfffffffe
je 0x1800ebd01
mov rcx, rsi
call fcn.1800e7ef4
movsxd rbx, eax
lea r14, [0x180176aa0]
mov rcx, rsi
sar rbx, 6
call fcn.1800e7ef4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800ebd08
lea rdx, [0x1801753e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800ebd16
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800ebd3a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800ebd3a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800ebd3a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1800ebd60
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1800f0580
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800f05b0
xor eax, eax
jmp 0x1800f0673
mov rbp, rbx
cmp word [rax], si
je 0x1800f05d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800f05bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800f05b8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800f04d0
movsxd r14, eax
test eax, eax
jne 0x1800f0613
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800f05a9
mov rcx, r14
call fcn.1800ec7a8
mov rdi, rax
test rax, rax
jne 0x1800f062c
xor ecx, ecx
call fcn.1800e97f4
jmp 0x1800f0608
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800f04d0
test eax, eax
jne 0x1800f065d
mov rcx, rdi
call fcn.1800e97f4
jmp 0x1800f0667
xor ecx, ecx
call fcn.1800e97f4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800f0690
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 0x1800f0717
mov rsi, rbx
cmp word [rax], bp
je 0x1800f06d6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800f06c0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800f06bc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800ec7a8
mov rdi, rax
test rax, rax
je 0x1800f0704
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800d8150
mov rbp, rdi
xor ecx, ecx
call fcn.1800e97f4
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 0x1800f5f14
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800e8194
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800e8194
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800f6064
cmp rax, 0xffffffffffffffff
je 0x1800f6064
xor edi, edi
test rbp, rbp
jle 0x1800f600f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800e977c
mov rbx, rax
test rax, rax
jne 0x1800f5f9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800f6005
mov edx, 0x8000
mov ecx, r14d
call fcn.1800f5d9c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800eaa74
cmp eax, 0xffffffff
je 0x1800f5fe5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800f5fac
mov edx, r15d
mov ecx, r14d
call fcn.1800f5d9c
jmp 0x1800f6005
cmp byte [rsi + 0x38], dil
je 0x1800f5ffc
cmp dword [rsi + 0x34], 5
jne 0x1800f5ffc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800f6005
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800e97f4
jmp 0x1800f6078
jns 0x1800f6078
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800e8194
cmp rax, 0xffffffffffffffff
jne 0x1800f6030
cmp byte [rsi + 0x30], dil
je 0x1800f6078
mov edi, dword [rsi + 0x2c]
jmp 0x1800f6078
mov ecx, r14d
call fcn.1800f15c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800f6078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800f6078
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800f6071
mov eax, dword [rsi + 0x2c]
jmp 0x1800f6076
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800e8194
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14013313d
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
or al, 0x18
pause
xor edi, 0x55100b81
cmp r9, rdi
jo 0x140133621
call rcx
jmp 0x140132114
int3

Function at 0x140133531
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
out dx, eax
div dh
invalid
div r10
rcl r9d, 0x93
lea ecx, [rbp - 0xe36d]
je 0x140132e63
mov r11d, 0xe173f269
div r8
jmp 0x140133669
rol edi, 7
jl 0x140133645
rol ecx, 0xb1
call rcx
mul r10
pushfq
jmp 0x14013397d
popfq
jns 0x14013251f
rol r10d, 0x5c
popfq
jne 0x1401333f4
je 0x1401333f4
rol edi, 0x94
rcl ebx, 0xc4
movabs rbp, 0x581ae7000002ebe9
jnp 0x140133dac
jmp 0x1401336e4
rcr r14d, 0x3c
rcr r8d, 0xbe
jns 0x140133719
ret 0x18
test r11, rbp
jbe 0x1401338ec
lea edi, [rcx + 0xceec]
call 0x140132aaa
or edi, 0x90502697
xor r14d, 0x64196492
jmp 0x1401333dc
lea r15d, [rdx - 0x1924]
cmp r8, rcx
div r8
pause
ror edi, 0x6e
ja 0x1401336ec
je 0x140133498
jne 0x140133498
jmp rax
jmp 0x14013341d
lea eax, [rbx - 0xb325]
pushf
neg r9
jmp 0x1401333c5
test r8, rbp
nop
or ebx, 0xdaf43349
jmp 0x14013338a
jne 0x140131d74
mov r13d, 0x7b95c2c9
mov esi, 0xd83e0116
rcr r10d, 0x4d
jmp 0x140133443
mul rcx
add r10d, 0x106ec953
nop
jmp 0x140133a7f
outsb dx, byte [rsi]
adc byte [rax + 0x38be9], dl
add byte [rax - 0x73], cl
add al, 0x80
jmp rax
jmp rax
test ebx, 0x4e87d10c
rcl r8d, 0xcc
jge 0x140132379
mul r8
jmp rcx
ror byte [rax - 0x73], 0x49
add dword [rbx], esi
ret 0xd069
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d3970]
mov dword [rax], 1
mov rax, qword [0x1400d3980]
mov dword [rax], 1
mov rax, qword [0x1400d3990]
mov dword [rax], 1
mov rax, qword [0x1400d3920]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140043d40
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400ae8a0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140043e05
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400bf772
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140043de6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140043dd8
test rsi, rsi
je 0x1400bf772
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140043d98
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140043e34
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140043e50
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x140043f0d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400bf778
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140043eee
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140043ee0
test rsi, rsi
je 0x1400bf778
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140043ea0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400a4c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400e5cc1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400a4d08
lea rdx, [0x1400cf742]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a4d70
mov rbx, qword [0x1400e5b60]
jmp 0x1400a4ca5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400a4ca0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400a4cf7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140094040
mov r8, rax
cmp rdi, rbx
jne 0x1400a4ce0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400e5b60], rax
mov ebx, dword [rax]
mov qword [0x1400e5b60], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400e5b60], rdx
call fcn.1400a3d90
cmp eax, ebx
jne 0x1400a4dd8
mov byte [0x1400e5cc1], 1
jmp 0x1400a4c80
cmp byte [0x1400e5cc0], 0
jne 0x1400a4c97
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400e6868], rax
call rbx
mov qword [0x1400e6860], rax
call rbx
mov qword [0x1400e6858], rax
call rbx
mov qword [0x1400e6850], rax
call rbx
mov qword [0x1400e6848], rax
call rbx
mov qword [0x1400e6840], rax
call rbx
mov qword [0x1400e6838], rax
call rbx
mov byte [0x1400e5cc0], 1
mov qword [0x1400e6830], rax
jmp 0x1400a4c97
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400ad580
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400bed00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400bed00
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400ae252
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400e6d28]
test eax, eax
je 0x1400ae2ea
lea rax, [0x1400e6d00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400e6d30]
mov qword [rbp - 8], rax
jmp 0x1400ae2ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400ae2c2
cmp qword [rbp - 0x10], 0
je 0x1400ae2c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400ae288
lea rax, [0x1400e6d00]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400ae2eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400ae3f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400ae418
mov eax, 0
jmp 0x1400ae466
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400ae441
mov eax, 0
jmp 0x1400ae466
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400ae461
mov eax, 0
jmp 0x1400ae466
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400ae46c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400ae4ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400ae4e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400ae4e1
mov rax, qword [rbp - 8]
jmp 0x1400ae4ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400ae4b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002cc0
Capabilities:
Create directory
Get system information on windows

Disassembly:
sub rsp, 0x188
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x50], 0
jle 0x140002d67
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x140002d2d
lea edx, [rax + 0x40]
lea r8, [rdx - 0x41]
lea r9, str.Windows
lea rcx, [0x14002aec0]
call fcn.140001070
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r9, [0x14002aec0]
mov edx, 0x104
lea r8, str.C:_s
lea rcx, [rsp + 0x60]
call fcn.140001010
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x60]
call fcn.1400023e0
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140004110
add rsp, 0x188
ret

Function at 0x1400039c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140003a02
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003a07
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140003a50
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001c3d0]
cmp byte [rcx + rax], 0
je 0x140003a50
dec r8
sub rdx, 1
jne 0x140003a36
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004c04
Capabilities:
Parse pe header

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

Function at 0x14000e1b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000dfb0
Function at 0x140013024
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013054
xor eax, eax
jmp 0x140013117
mov rbp, rbx
cmp word [rax], si
je 0x140013079
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013060
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001305c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012f44
movsxd r14, eax
test eax, eax
jne 0x1400130b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001304d
mov rcx, r14
call fcn.14000eb9c
mov rdi, rax
test rax, rax
jne 0x1400130d0
xor ecx, ecx
call fcn.14000eb60
jmp 0x1400130ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012f44
test eax, eax
jne 0x140013101
mov rcx, rdi
call fcn.14000eb60
jmp 0x14001310b
xor ecx, ecx
call fcn.14000eb60
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140017334
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140010cb8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400173be
cmp byte [rbp - 0x21], r15b
je 0x1400173b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400173f4
call fcn.1400141f4
test eax, eax
jne 0x1400173e0
cmp byte [rbp - 0x21], r15b
je 0x1400173d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400173f4
cmp byte [rbp - 0x21], r15b
je 0x1400173f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011690
test eax, eax
jne 0x140017494
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010cb8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017433
cmp byte [rbp - 0x21], r15b
je 0x140017468
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017468
call fcn.1400141f4
test eax, eax
jne 0x140017454
cmp byte [rbp - 0x21], r15b
je 0x14001744d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017468
cmp byte [rbp - 0x21], r15b
je 0x140017465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011690
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017494
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017497
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400174a5
mov rcx, rdi
call fcn.14000eb60
cmp byte [rbp + 0x3f], r15b
je 0x1400174b4
mov rcx, qword [rbp + 0x27]
call fcn.14000eb60
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001a790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a7b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001a7b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret