joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f2b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14006f404
cmp r9, 4
jb 0x14006f2fa
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14006f2e0
xor r11d, r11d
test r9, r9
je 0x14006f404
cmp r9, 0x40
jb 0x14006f3e3
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14006f32c
cmp rdx, r8
jae 0x14006f3e3
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14006f341
cmp rdx, r10
jae 0x14006f3e3
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov rsi, r9
and rsi, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x14006f370
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r11, r9
jae 0x14006f404
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14006f3f0
add rsp, 8
ret

Function at 0x14006f410
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r9, rdx
test r8, r8
je 0x14006f521
cmp r8, 4
jb 0x14006f453
mov rdx, r8
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r9]
add r9, 4
xor dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14006f440
xor r10d, r10d
test r8, r8
je 0x14006f521
cmp r8, 0x40
jb 0x14006f505
lea rdx, [rcx - 1]
lea rax, [r9 - 1]
add rdx, r8
add rax, r8
cmp rcx, rax
ja 0x14006f485
cmp rdx, r9
jae 0x14006f505
mov r11, r8
mov qword [rsp], rbx
and r11, 0xffffffffffffffc0
mov rdx, r9
lea rax, [rcx + 0x10]
sub rdx, rcx
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rdx + rax - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rdx + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x14006f4a0
mov rbx, qword [rsp]
cmp r10, r8
jae 0x14006f521
sub r9, rcx
lea rdx, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14006f510
add rsp, 8
ret
Function at 0x14007740c
Capabilities:
Parse pe header

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

Function at 0x1400787d0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400787fe
xor eax, eax
jmp 0x1400788e4
cmp qword [rcx + 0x68], 0
je 0x14007880f
call fcn.14004ed00
jmp 0x1400788e4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140078826
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140078828
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14007885a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14007c340
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400788de
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140078891
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400788ba
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14008e2b8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400788de
cmp rsi, rbx
ja 0x140078898
test rsi, rsi
je 0x1400788de
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14008e2b8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14008e978
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140076450
sub rsp, rax
mov rax, qword [0x1400e5558]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400a2688
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008e9c7
mov rax, rbp
jmp 0x14008eacf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, sym.MZ_:__z__y___Go___WU_n_XP_Xu____Xo_Y_tRf
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xedcf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a4b90
mov r13, rax
lea rax, sym.MZ_:__z__y___Go___WU_n_XP_Xu____Xo_Y_tRf
mov rcx, qword [rax + rbx*8 + 0xedcf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008eacb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008eacb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a4b90
test rax, rax
js 0x14008eacb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008eacb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008eabd
lea r8, sym.MZ_:__z__y___Go___WU_n_XP_Xu____Xo_Y_tRf
cmp rcx, rdx
jae 0x14008eabd
cmp byte [rcx], 0xd
jne 0x14008eaa3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008eab2
cmp byte [rcx + 1], 0xa
jne 0x14008eab2
inc rcx
jmp 0x14008eab2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe5990]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008ea85
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008eacf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140076350
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140099bf4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400999e4
Function at 0x1400a3bf0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400edcf0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400a3c4e
cmp word [rdx], r12w
jne 0x1400a3c4e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400a3c54
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400a3daf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400a3d8a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400a3c8d
mov rcx, r9
jmp 0x1400a3cb0
cmp r9, rdx
jae 0x1400a3cc7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400a3c71
jmp 0x1400a3daf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a3d84
cmp dword [rsp + 0x80], edi
je 0x1400a3d84
mov rdx, r14
lea r11, [0x1400edcf0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400a3d5d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400a3d30
mov word [rbx], r12w
jmp 0x1400a3dab
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400a3d39
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400a3dab
cmp word [rsp + 0x70], r12w
jne 0x1400a3d6a
cmp rbx, rsi
je 0x1400a3d2a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400a4b98
cmp word [rsp + 0x70], r12w
je 0x1400a3daf
mov word [rbx], r13w
jmp 0x1400a3dab
lea r11, [0x1400edcf0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400a3da7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400a3daf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a47ac
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 0x1400a47de
call fcn.14008a73c
mov dword [rax], socket
call fcn.14008a3c4
jmp 0x1400a48fd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400a48fd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400a48fd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400a480d
lock or dword [rcx + 0x14], 0x10
jmp 0x1400a48fd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400a4821
call fcn.1400aaff0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400a2688
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400a409c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400a48eb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400a48b6
mov rcx, rsi
call fcn.1400a2688
cmp eax, edi
je 0x1400a48a1
mov rcx, rsi
call fcn.1400a2688
cmp eax, 0xfffffffe
je 0x1400a48a1
mov rcx, rsi
call fcn.1400a2688
movsxd rbx, eax
lea r14, [0x1400edcf0]
mov rcx, rsi
sar rbx, 6
call fcn.1400a2688
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400a48a8
lea rdx, [0x1400e5940]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400a48b6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400a48da
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400a48da
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400a48da
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 0x1400a4900
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 0x1400a4918
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400a463a
call fcn.14008a73c
mov dword [rax], socket
call fcn.14008a3c4
jmp 0x1400a478a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400a478a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400a478a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400a4669
lock or dword [rcx + 0x14], 0x10
jmp 0x1400a478a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400a467d
call fcn.1400aaff0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400a468d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400a4690
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400a2688
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400a409c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400a4778
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400a4723
mov rcx, rbx
call fcn.1400a2688
cmp eax, 0xffffffff
je 0x1400a470e
mov rcx, rbx
call fcn.1400a2688
cmp eax, 0xfffffffe
je 0x1400a470e
mov rcx, rbx
call fcn.1400a2688
movsxd rdi, eax
lea rsi, [0x1400edcf0]
mov rcx, rbx
sar rdi, 6
call fcn.1400a2688
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400a4715
lea rdx, [0x1400e5940]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400a4723
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400a4747
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400a4747
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400a4747
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1400a4765
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400a4770
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400a478f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400a4604
Function at 0x1400a7b3c
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 0x1400a7b6c
xor eax, eax
jmp 0x1400a7c2f
mov rbp, rbx
cmp word [rax], si
je 0x1400a7b91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a7b78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a7b74
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.1400a6330
movsxd r14, eax
test eax, eax
jne 0x1400a7bcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a7b65
mov rcx, r14
call fcn.14009f9d4
mov rdi, rax
test rax, rax
jne 0x1400a7be8
xor ecx, ecx
call fcn.14009f998
jmp 0x1400a7bc4
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.1400a6330
test eax, eax
jne 0x1400a7c19
mov rcx, rdi
call fcn.14009f998
jmp 0x1400a7c23
xor ecx, ecx
call fcn.14009f998
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 0x1400ae9e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aea08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aea08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40b530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.0040bad0
mov esi, eax
test sil, sil
jne 0x40b6f2
test ebx, ebx
je SysAllocStringLen
xor rdi, rdi
test r13d, r13d
jle VirtualAlloc
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40b5ee
cmp ebx, 0xffffffff
je RegQueryValueExW
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40b59b
xor rsi, rsi
jmp RegOpenKeyExW
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40b5ee
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40b5e0
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40b5e0
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp LoadStringW
call fcn.0040bc60
sub r13d, 1
test r13d, r13d
jg 0x40b582
nop
cmp ebx, 0xffffffff
je VirtualAlloc
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40b60a
xor rsi, rsi
jmp 0x40b6f2
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je SysReAllocStringLen
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne VirtualAlloc
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040b7a0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007fe9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je VirtualQuery
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40b679
sub eax, r14d
sub ebx, eax
jmp 0x40b67c
xor rbx, rbx
test sil, sil
je 0x40b6b0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40b6ad
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b681
mov dil, 1
nop
jmp 0x40b6cf
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b6b0
mov dil, 1
test dil, dil
je GetProcessHeap
nop
test sil, sil
je SetThreadLocale
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x40d3d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007fe0a8], 0
je 0x40d46e
cmp word [0x007fe3b8], 0xd7b2
jne 0x40d403
cmp dword [0x007fe3c0], 0
jbe 0x40d403
lea rcx, [0x007fe3b0]
call qword [0x007fe3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x007ab840]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + RegCreateKeyExWx20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040d4a4]
call fcn.0040e7b0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + GetUserNameWx20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40d490
cmp byte [0x007aa052], 0
jne 0x40d490
xor rcx, rcx
lea rdx, [0x007ab840]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d760
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x007aa058], 0
je 0x40d791
mov rcx, rsi
mov rdx, rdi
call qword [0x007aa058]
mov r13, rax
jmp 0x40d7a7
mov ecx, 0x10
call fcn.00408400
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007fe0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040d6f0]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40d7ec
mov rcx, r13
call fcn.00408430
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x411250
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00802c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00802cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00802c88], al
cmp byte [0x00802c88], 0
je 0x4112ef
lea rcx, [0x004112f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041130e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00802c70], rax
lea rcx, [0x004112f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041132c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00802c78], rax
lea rcx, [0x004112f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041134a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00802c80], rax
add rsp, 0x28
ret
Function at 0x411580
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040d970
movzx rax, word [rbp + 0x4e]
cmp word [0x007abfa0], ax
ja 0x411668
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x007ac3a0]
mov word [rbp + 0x4e], ax
ja 0x411668
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x411667
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x007abfa0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x411621
mov ecx, eax
sub ecx, 1
jmp 0x411662
lea rdx, [0x007abfa0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x411643
mov r8d, eax
add r8d, 1
jmp 0x411662
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x007abfa8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00411420
jmp 0x411667
cmp ecx, r8d
jae 0x4115f0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41174a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41174a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040eed0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040eed0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040eed0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004117a4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004117b4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040f350
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040da50
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret