joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400253a0
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 0x1400253d0
xor eax, eax
jmp 0x140025493
mov rbp, rbx
cmp word [rax], si
je 0x1400253f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400253dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400253d8
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.140023b5c
movsxd r14, eax
test eax, eax
jne 0x140025433
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400253c9
mov rcx, r14
call fcn.14001e518
mov rdi, rax
test rax, rax
jne 0x14002544c
xor ecx, ecx
call fcn.14001e35c
jmp 0x140025428
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.140023b5c
test eax, eax
jne 0x14002547d
mov rcx, rdi
call fcn.14001e35c
jmp 0x140025487
xor ecx, ecx
call fcn.14001e35c
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 0x14002832c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001de30
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400283cd
cmp ebx, dword [rsp + 0x30]
je 0x1400283c6
test esi, esi
je 0x1400283c6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400283a1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400283ae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002838b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400283b2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400283cf
mov eax, 1
jmp 0x1400283cf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ac2c
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.140016328
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002acb6
cmp byte [rbp - 0x21], r15b
je 0x14002acb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002acec
call fcn.14002001c
test eax, eax
jne 0x14002acd8
cmp byte [rbp - 0x21], r15b
je 0x14002acd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002acec
cmp byte [rbp - 0x21], r15b
je 0x14002ace9
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.1400199e0
test eax, eax
jne 0x14002ad8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140016328
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002ad2b
cmp byte [rbp - 0x21], r15b
je 0x14002ad60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002ad60
call fcn.14002001c
test eax, eax
jne 0x14002ad4c
cmp byte [rbp - 0x21], r15b
je 0x14002ad45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002ad60
cmp byte [rbp - 0x21], r15b
je 0x14002ad5d
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.1400199e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002ad8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002ad8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002ad9d
mov rcx, rdi
call fcn.14001e35c
cmp byte [rbp + 0x3f], r15b
je 0x14002adac
mov rcx, qword [rbp + 0x27]
call fcn.14001e35c
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 0x14002b3f8
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.140021e78
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140021e78
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002b548
cmp rax, 0xffffffffffffffff
je 0x14002b548
xor edi, edi
test rbp, rbp
jle 0x14002b4f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fc84
mov rbx, rax
test rax, rax
jne 0x14002b480
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002b4e9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ad38
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.14001f534
cmp eax, 0xffffffff
je 0x14002b4c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002b490
mov edx, r15d
mov ecx, r14d
call fcn.14001ad38
jmp 0x14002b4e9
cmp byte [rsi + 0x38], dil
je 0x14002b4e0
cmp dword [rsi + 0x34], 5
jne 0x14002b4e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14002b4e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e35c
jmp 0x14002b55c
jns 0x14002b55c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140021e78
cmp rax, 0xffffffffffffffff
jne 0x14002b514
cmp byte [rsi + 0x30], dil
je 0x14002b55c
mov edi, dword [rsi + 0x2c]
jmp 0x14002b55c
mov ecx, r14d
call fcn.140025dd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002b55c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14002b55c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002b555
mov eax, dword [rsi + 0x2c]
jmp 0x14002b55a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140021e78
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 0x14002c000
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002c028
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002c028
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001c61c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x14001c64c
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x14001c62e
mov rax, r8
ret

Function at 0x14001e07c
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
jmp 0x14001e0ee
cmp ecx, 0x7c
je 0x14001e0f3
cmp ecx, 0x29
jne 0x14001e0fe
cmp dword [rbx + 0x1c], 0
jne 0x14001e0f3
test dword [rbx + 0x80], 0x10000000
je 0x14001e239
cmp ecx, 0x5d
jne 0x14001e0c5
test dword [rbx + 0x80], 0x10000000
je 0x14001e202
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14001f474
mov dil, 1
mov rcx, rbx
call fcn.14001e030
test dil, dil
je 0x14001e0e9
mov rcx, rbx
call fcn.14001f32c
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x14001e090
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x2e
jne 0x14001e11b
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14001e338
mov rcx, rbx
call fcn.14001e030
jmp 0x14001e0e1
cmp ecx, 0x5c
jne 0x14001e179
mov rcx, rbx
call fcn.14001e030
test byte [rbx + 0x80], 0x80
je 0x14001e16c
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x14001e150
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14001e338
mov rcx, rbx
call fcn.14001e030
jmp 0x14001e0e9
cmp al, 0x42
jne 0x14001e16c
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14001e338
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14001e146
mov rcx, rbx
call fcn.14001f0e8
jmp 0x14001e0e1
cmp ecx, 0x5b
jne 0x14001e199
mov rcx, rbx
call fcn.14001e030
mov rcx, rbx
call fcn.14001ef88
cmp dword [rbx + 0x7c], 0x5d
jne 0x14001e20d
jmp 0x14001e111
cmp ecx, 0x28
jne 0x14001e1bc
mov rcx, rbx
call fcn.14001e030
mov rcx, rbx
call fcn.14001f230
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14001e218
jmp 0x14001e0d4
cmp ecx, 0x5e
jne 0x14001e1c9
lea edx, [rcx - 0x5c]
jmp 0x14001e13d
cmp ecx, 0x24
jne 0x14001e1d6
lea edx, [rcx - 0x21]
jmp 0x14001e13d
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001e22e
cmp ecx, 0x3f
je 0x14001e22e
cmp ecx, 0x7b
je 0x14001e22e
cmp ecx, 0x7d
jne 0x14001e0b0
test dword [rbx + 0x80], 0x10000000
je 0x14001e223
jmp 0x14001e0c5
mov edx, 4
call fcn.14001cb9c
int3
mov edx, 4
call fcn.14001cb9c
int3
mov edx, 5
call fcn.14001cb9c
int3
mov edx, 6
call fcn.14001cb9c
int3
mov edx, 0xa
call fcn.14001cb9c
int3
mov edx, 5
call fcn.14001cb9c
int3
Function at 0x14003183c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14003186c
cvtsi2ss xmm0, rdx
jmp 0x140031881
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1400acf58
movss xmm1, dword [0x140100dec]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x1400318af
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400318af
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x1400318dd
cmp rbx, 0x200
jae 0x1400318da
shl rbx, 3
cmp rbx, rcx
jae 0x1400318dd
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
ja 0x140031a4b
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140025884
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140031a0f
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [rax + r9 + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 8
jb 0x140031955
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x140031994
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x140031a03
mov r10, qword [rdi + r11*8 + 8]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [r10 + 0x10]
jne 0x1400319d8
mov r10, qword [r10]
cmp r10, rax
je 0x14003198d
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14003198d
mov r10, qword [r10 + 8]
cmp rdx, qword [r10 + 0x10]
je 0x140031a25
cmp qword [rdi + r11*8], r10
jne 0x1400319ce
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140031945
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140031a03
lea rcx, str.invalid_hash_bucket_count
call fcn.140082250
int3

Function at 0x140035f78
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
test r8, r8
je 0x140035fa4
movsx rax, byte [rdx]
movabs r9, 0x100000001b3
imul rcx, r9
dec r8
xor rcx, rax
inc rdx
call fcn.140035f78
mov rcx, rax
mov rax, rcx
add rsp, 0x28
ret
Function at 0x14003d818
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 0x14003d846
xor eax, eax
jmp 0x14003d92c
cmp qword [rcx + 0x68], 0
je 0x14003d857
call fcn.140016f00
jmp 0x14003d92c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003d86e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003d870
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003d8a2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400ad130
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 0x14003d926
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14003d8d9
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 0x14003d902
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140097950
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14003d926
cmp rsi, rbx
ja 0x14003d8e0
test rsi, rsi
je 0x14003d926
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140097950
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 0x140040f10
Capabilities:
Load windows common language runtime

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp qword [0x1401254e0], rbx
jne 0x140040fbc
and qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
lea rdx, [0x1400f6298]
lea rcx, [0x1400f6288]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
mov ebx, eax
test eax, eax
js 0x140040fbc
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
and qword [rsp + 0x30], 0
lea r8, [0x1400f6278]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140040fb1
mov rcx, qword [rsp + 0x30]
lea r9, [0x1401254e0]
lea r8, [0x1400f6268]
lea rdx, [0x1400f6258]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140040fa6
mov rcx, qword [0x1401254e0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140040fc4
Capabilities:
Load windows common language runtime

Disassembly:
sub rsp, 0x38
cmp qword [0x1401254e0], 0
jne 0x14004101f
call fcn.140040f10
test eax, eax
jns 0x14004101f
cmp qword [0x1401254e0], 0
jne 0x14004101f
lea rax, [0x1401254e0]
xor edx, edx
lea r9, [0x1400f6268]
mov qword [rsp + 0x20], rax
lea r8, [0x1400f6258]
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x140041026
mov rcx, qword [0x1401254e0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
add rsp, 0x38
ret
xor r9d, r9d
lea r8, [0x1400f5ba8]
lea rdx, [0x1400f5bc0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140041021
Function at 0x140041d60
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1401110c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x48], rdx
xor r15d, r15d
mov edi, 0x2710
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140041dab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x70]
call fcn.1400ad7d0
mov r8d, esi
lea rdx, [0x1400f27b8]
lea rcx, [rbp - 0x70]
call fcn.14003e39c
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 9
jb 0x140041f78
mov rax, rbx
mov esi, 7
cmp qword [rbx + 0x18], rsi
jbe 0x140041dfb
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str..pipe_
lea rcx, [rsp + 0x70]
call fcn.14003e8fc
nop
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140041e28
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14003ea14
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rsi
mov word [rax], r15w
lea rcx, [rsp + 0x70]
call fcn.140018728
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0xa
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], rsi
cmova rcx, qword [rsp + 0x50]
mov edx, 0xa
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140041eb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140041eb5
test edi, edi
jg 0x140041e79
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], rsi
cmova rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
setne dil
mov rdx, qword [rsp + 0x68]
cmp rdx, rsi
jbe 0x140041f34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041f2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041f72
call fcn.140084350
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x50], r15w
mov rcx, rbx
call fcn.140018728
mov al, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140084330
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14008b440
nop
call fcn.140001844
int3
Function at 0x140041f80
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [r11 - 0x18]
and dword [rsp + 0x30], 0
mov rbx, rdx
and qword [r11 - 0x28], 0
lea rdx, [r11 - 0x14]
mov rdi, rcx
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 8]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x140041fc8
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140042017
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140042012
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140042032
mov rcx, r8
call fcn.140084350
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14008b440
int3

Function at 0x140042038
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [r11 - 0x18]
and dword [rsp + 0x30], 0
add eax, eax
and qword [r11 - 0x28], 0
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx + 8]
lea rdx, [r11 - 0x14]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x140042089
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140018728
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140042124
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov rax, qword [0x1401110c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor esi, esi
mov edi, esi
mov dword [rsp + 0x30], esi
call fcn.140051f7c
test al, al
je 0x14004232e
lea rcx, [rbp + 0x70]
call fcn.140051ec4
nop
lea r8d, [rsi + 0xe]
lea rdx, str.debug_log.txt
mov rcx, rax
call fcn.14003ea14
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or edi, 2
lea rcx, [rbp + 0x70]
call fcn.140018728
lea rdx, [rbp + 0x90]
lea rcx, [0x140125ec0]
call fcn.14004b414
mov rbx, rax
or edi, 1
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14004b5b4
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
cmp qword [rbp - 0x38], rsi
jne 0x140042242
lea rcx, [rbp - 0x18]
call fcn.14003df6c
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140083038
nop
jmp 0x1400422ab
lea rcx, [rsp + 0x40]
call fcn.14003e454
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140042271
lea r8, [rax + rax]
cmp qword [rbx + 0x18], 7
jbe 0x140042263
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14004b2c8
nop
lea rcx, [rbp - 0x18]
call fcn.14003df6c
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140083038
nop
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov bl, 1
jne 0x1400422ae
mov bl, sil
test dil, 1
je 0x1400422c0
lea rcx, [rbp + 0x90]
call fcn.140018728
test bl, bl
je 0x1400422f2
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r8, qword [rbp + 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x14004232e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042329
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042356
call fcn.140084350
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140084330
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14008b440
int3