joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e690
Capabilities:
Get common file path

Disassembly:
jmp 0x14003d300
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1e48
call fcn.14001e217
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x606
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e68]
mov rax, qword [0x140078040]
xor rax, rbp
mov qword [rbp + 0x1e08], rax
mov dword [rbp + 0x1dd4], 0
lea rdx, str.abcdefghijklmnopqrstuvwxyz
lea rcx, [rbp + 8]
call fcn.14001e4fb
nop
lea rdx, [rbp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rbp + 0x174], eax
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x198]
call fcn.14001e4fb
nop
lea rdx, str.lockfile.txt
lea rcx, [rbp + 0x198]
call fcn.14001e0dc
mov rcx, qword [rbp + 0x1e38]
call fcn.14001eb1d
mov qword [rbp + 0x1de8], rax
mov eax, dword [rbp + 0x1dd4]
or eax, 1
mov dword [rbp + 0x1dd4], eax
lea rcx, [rbp + 0x214]
call fcn.14001e618
mov edx, eax
lea rcx, [rbp + 0x240]
call fcn.14001e4d3
lea rax, [rbp + 0x1d38]
mov qword [rbp + 0x1d68], rax
mov rdx, qword [rbp + 0x1d68]
lea rcx, [rbp + 8]
call fcn.14001e15e
mov qword [rbp + 0x1de8], rax
mov rax, qword [rbp + 0x1de8]
mov qword [rbp + 0x1df0], rax
lea rax, [rbp + 0x1d88]
mov qword [rbp + 0x1db8], rax
mov rdx, qword [rbp + 0x1db8]
lea rcx, [rbp + 8]
call fcn.14001eb81
mov qword [rbp + 0x1df8], rax
mov rax, qword [rbp + 0x1df8]
mov qword [rbp + 0x1e00], rax
lea r8, [rbp + 0x240]
mov rdx, qword [rbp + 0x1df0]
mov rcx, qword [rbp + 0x1e00]
call fcn.14001e2ad
mov dword [rbp + 0x15e4], 0
jmp 0x14003d472
mov eax, dword [rbp + 0x15e4]
inc eax
mov dword [rbp + 0x15e4], eax
cmp dword [rbp + 0x15e4], 9
jge 0x14003d4d0
call qword [sym.imp.ucrtbased.dll_rand]
cdqe
mov qword [rbp + 0x1de8], rax
lea rcx, [rbp + 8]
call fcn.14001e834
mov qword [rbp + 0x1df0], rax
xor edx, edx
mov rcx, qword [rbp + 0x1de8]
mov rax, rcx
mov rcx, qword [rbp + 0x1df0]
div rcx
mov rax, rdx
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14001e177
movzx edx, byte [rax]
mov rcx, qword [rbp + 0x1e38]
call fcn.14001e5e6
jmp 0x14003d464
cmp dword [rbp + 0x174], 0
jbe 0x14003d53a
cmp dword [rbp + 0x174], 0x104
jae 0x14003d53a
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, [rbp + 0x198]
lea rcx, [rbp + 0x1610]
call fcn.14001eb77
nop
mov rdx, qword [rbp + 0x1e38]
lea rcx, [rbp + 0x1610]
call fcn.14001ea0f
lea rcx, [rbp + 0x1610]
call fcn.14001e5be
nop
lea rcx, [rbp + 0x1610]
call fcn.14001e2cb
nop
lea rcx, [rbp + 0x198]
call fcn.14001e226
nop
lea rcx, [rbp + 8]
call fcn.14001e226
mov rax, qword [rbp + 0x1e38]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400613f0]
call fcn.14001e947
mov rax, rdi
mov rcx, qword [rbp + 0x1e08]
xor rcx, rbp
call fcn.14001e564
lea rsp, [rbp + 0x1e18]
pop rdi
pop rbp
ret
Function at 0x14001e7d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140042df0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140042e10
xor al, al
jmp 0x140042e91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140042e23
xor al, al
jmp 0x140042e91
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140042e4d
xor al, al
jmp 0x140042e91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140042e61
xor al, al
jmp 0x140042e91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140042e73
xor al, al
jmp 0x140042e91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140042e8f
xor al, al
jmp 0x140042e91
mov al, 1
add rsp, 0x38
ret
Function at 0x14001e7f3
Capabilities:
Terminate process

Disassembly:
jmp 0x14003be90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
mov rax, qword [rbp + 0x160]
add rax, 0x30
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0xb4f0
mov qword [rbp + 0x48], rax
jmp 0x14003bedb
mov rax, qword [rbp + 0x28]
add rax, 0x28
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x14003bf0e
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x68]
call fcn.14001e2e9
movzx eax, al
test eax, eax
je 0x14003bf0c
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x14003becf
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14001eb0e
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400387f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140078040]
xor rax, rbp
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14003884a
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140038851
mov al, 1
jmp 0x1400389c1
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14001e32a
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14001e32a
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14001e8e8
movzx eax, al
test eax, eax
je 0x1400388b4
xor al, al
jmp 0x1400389c1
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x140038927
cmp dword [rbp + 0x160], 1
je 0x140038932
cmp dword [rbp + 0x160], 3
je 0x1400389b0
jmp 0x1400389bf
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140038982
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140038982
xor al, al
jmp 0x1400389c1
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003899d
mov dword [rbp + 0x154], 1
jmp 0x1400389a7
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400389c1
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400389c1
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140061ba0]
call fcn.14001e947
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14001e564
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1800314d0
Capabilities:
Encode data using xor

Disassembly:
fisub dword [r8]
xchg edx, eax
push rsp
add byte [rdx - 0x26a45de5], dh
sar dword [rsi + 0x34], 1
jle 0x180031449
wait
int3
sahf
invalid
cmp eax, 0x351b1624
jbe 0x180031413
imul esp, esp, 0xdc08cb9b
stosd dword [rdi], eax
adc al, 0x69
mov al, 0xd9
call 0x18d0748c4
sbb eax, 0x2e077e1e
jno 0x180031406
imul rcx, qword [rsi - 0x29], 0x5a
cwde
pop rsp
adc byte ss:[0x17d9c9597], ch
fsub st(3)
invalid
push rdi
add eax, 0x2a90aa45
push 0xffffffffcf203381
jnp 0x1800314d1
mov edi, 0x8515783c
clc
jo 0x180031468
fst dword [rbx - 0x7fd29aa1]
test ch, dh
shl byte [rbx - 0x4a6678d5], cl
jmp 0x180031565
or ecx, edx
or byte [rcx - 0x74], dl
invalid

Function at 0x18006d470
Capabilities:
Encode data using xor

Disassembly:
pop rbx
fst st(1)
jle 0x18006d4a9
sti
int3
fsubr dword [rbx - 0x1649967c]
mov ebx, 0x6bb4db39
movabs byte [0x3bc30b39bead9314], al
adc esp, ebp
cmp dword [rbx], ecx
ret
in al, dx
pop rsi
cwde
test byte [rcx - 0x7ea4b56d], bh
cdq
std
fsub st(3)
or dword [rdi + rcx*4], esi
mov esi, cs
xor edi, dword [rbx + 0x3c]
pop rsp
jl 0x18006d494
jp 0x18006d4ca
mov esi, 0xcf0f4339
xor al, ah
cwde
fsub st(0), st(0)
push rsi
xlatb
xchg byte [rdi], dl
mov ah, 0x63
add dl, byte [rax + 0x3c39c76c]
and bh, cl
xor edi, dword [rbx + 0x76]
jl 0x18006d4a4
xor al, al
std
sub dword [rbx], ecx
invalid

Function at 0x18006d6b0
Capabilities:
Encode data using xor

Disassembly:
xchg esp, eax
push rbx
add eax, 0xabd80518
test byte [rcx - 0x4a], ch
loopne 0x18006d656
xor eax, 0x1808f4c1
stosd dword [rdi], eax
mov ecx, 0xc8f9e908
fisub dword [r8]
xchg edx, eax
push rsp
add byte [rdx - 0x22a45de5], dh
pop rbx
fst st(1)
jle 0x18006d6e9
mov ecx, esp
stosb byte [rdi], al
mov edx, 0x3333cfd8
mov bl, 0x93
invalid
Function at 0x14001a5d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a660
cmp r11, r10
ja 0x14001a6d6
cmp r10, rdx
ja 0x14001a6ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a662
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a640
jmp 0x14001a6c4
ja 0x14001a66a
mov r11, r10
cmp rax, r8
jne 0x14001a604
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a6a0
mov rdi, r8
sub ecx, edx
jns 0x14001a6bb
jmp 0x14001a6c6
cmp r8, rsi
je 0x14001a6fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a6c6
xor al, 1
cmp rdi, rsi
jne 0x14001a680
jmp 0x14001a6c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413b5b38]
mov rcx, r11
mov rdx, r10
call fcn.140050c40
ud2
lea r8, [0x1413b5b38]
mov rcx, r10
call fcn.1400509c0
ud2
lea rcx, [0x1413ba1c8]
lea r8, [0x1413b5b20]
mov edx, 0x2b
call fcn.140050a40
ud2

Function at 0x14001fe90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017eb0
cmp rax, rcx
je 0x14001feb5
cmp rdx, 4
jae 0x14001feb8
xor eax, eax
xor r8d, r8d
jmp 0x14001ff50
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053730]
movdqa xmm3, xmmword [0x140053540]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001fee0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001ff67
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001ff50
ret
Function at 0x140020ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140020f3b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140020f3b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140020f56
cmp eax, 0x42
jne 0x140020f3b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140021006
cmp byte [r9 + r11], 0x5f
jne 0x140021006
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002106e
mov rcx, rsi
xor edx, edx
call fcn.14001c620
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001c620
test al, al
jne 0x140021101
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140020f92
lea rdx, [0x1413b9ac3]
mov r8d, 1
call fcn.140018320
test al, al
jne 0x140021101
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140020f4a
xor r14d, r14d
lea rbx, [0x1413b9e78]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140020fc4
cmp byte [rax + rcx], 0x45
je 0x14002112a
sub r14, 1
jb 0x140020fe9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140020fe9
mov r8d, 2
mov rdx, rbx
call fcn.140018320
test al, al
jne 0x140021101
mov rcx, rsi
call fcn.14001de80
test al, al
jne 0x140021101
mov rax, qword [rsi]
test rax, rax
jne 0x140020fb0
jmp 0x140020f4a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400210c8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140021062
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002104c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002103b
add dl, 0xa9
jmp 0x14002104a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400210c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400210c8
movzx edx, bl
add rax, rdx
jae 0x140021010
jmp 0x1400210c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400210c8
cmp rax, rcx
jae 0x1400210c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140021109
cmp qword [rsi + 0x20], 0
je 0x140021123
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140020ee0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140020f4c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021118
lea rax, [0x1413b9e28]
lea rdx, [0x1413b9e38]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140018320
test al, al
je 0x140021118
mov dil, 2
jmp 0x140020f4a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400210d3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140020f4a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140020f4a
Function at 0x140024f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413bc860]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140024ff3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002502a
test eax, eax
js 0x140025004
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002501d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413bc8c0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023790
mov rcx, rax
call fcn.1400238d0
mov ecx, 7
int 0x29
ud2
Function at 0x14002ca40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413bc860]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002caac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002cabb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002caf3
cmp eax, 0x103
je 0x14002cafd
test eax, eax
js 0x14002cad8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002caf3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413bc8c0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023790
mov rcx, rax
call fcn.1400238d0
mov ecx, 7
int 0x29
ud2

Function at 0x14002de70
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
Function at 0x14003b120
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140042510
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140042d90
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x140030dd0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003b30e
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003b1e7
cmp dword [rbp + 0xff0], 0
jne 0x14003b323
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14003b323
cmp ebx, 0x1000
ja 0x14003b367
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003b353
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14003b316
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003b290
cmp dword [rbp + 0xff0], 0
jne 0x14003b31c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14003b230
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003b1e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003b323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1413bcba8]
mov rcx, r14
mov rdx, rbx
call fcn.140050c40
jmp 0x14003b37b
lea r8, [0x1413bcba8]
mov edx, 0x1000
mov rcx, rbx
call fcn.1400509c0
ud2
Function at 0x14003b3d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003b40f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002a660]
mov qword [rbp - 0x28], rax
lea rax, [0x1413bcd70]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1413bcda8]
lea rcx, [rbp - 0x60]
call fcn.140050880
ud2

Function at 0x14003d270
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003d37f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003d2a8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003d342
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003d361
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d2fe
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003d31b
jmp 0x14003d310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003d316
cmp eax, 0x6d
jne 0x14003d332
mov byte [rsi + 1], 0
jmp 0x14003d326
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003d328
mov r8d, 0x10
mov rcx, rbx
call fcn.1400506f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003d2b5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400506f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003d2b5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140051b70
ud2

Function at 0x140046b0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046908
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
js 0x1400c3ea2
cld
invalid
invalid
mov bh, 0xed
or eax, 0x296419c3
out dx, eax
mov ebx, 0xc0cffac4
xchg ah, ch
xchg byte [rdx + 0x5e], cl
push qword [rax - 0x54]
invalid
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret