joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002130
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
xor edx, edx
mov rsi, rcx
xor r14d, r14d
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
mov r12, rax
call fcn.14000a2c0
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000231f
nop dword [rax]
mov qword [rsp + 0x40], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], r14w
jne 0x1400021c0
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003f60
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400021f5
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x20]
call fcn.140003f60
mov r15, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
lea r9, [rsp + 0x20]
mov r11, qword [rsp + 0x38]
cmp r15, 8
mov r10, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
cmovae rax, rdi
cmp r11, 8
cmovae r9, r10
cmp r8, qword [rsp + 0x50]
jne 0x140002283
test r8, r8
je 0x140002313
movzx ecx, word [r9]
movzx edx, word [rax]
cmp cx, dx
jb 0x140002283
sub r9, rax
cmp cx, dx
ja 0x140002283
cmp r8, 1
je 0x140002313
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec r8
movzx edx, word [rax]
cmp cx, dx
jae 0x140002262
xor bl, bl
cmp r11, 8
jb 0x1400022c0
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x1400022b8
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000234c
mov rcx, r10
call fcn.140007b1c
cmp r15, 8
jb 0x1400022f7
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400022ef
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000234c
mov rcx, rdi
call fcn.140007b1c
test bl, bl
jne 0x14000231a
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400021a0
jmp 0x14000231f
mov bl, 1
jmp 0x140002285
mov r14d, dword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2a0]
mov eax, r14d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140010fa4
int3
Function at 0x140002360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x50], ebp
jb 0x140002382
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140002416
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400023f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400023f0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400024c2
mov rcx, r8
call fcn.140007b1c
mov al, 1
mov rsi, qword [rsp + 0x68]
mov word [rdi], bp
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140002430
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400024a4
lea rdx, [rdx*2 + 2]
jmp 0x14000247b
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r8d, 0x53da00
mov qword [rsp + 0x20], rbp
lea rdx, [0x140043b50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x58]
jne 0x1400024ab
cmp rax, 8
jb 0x1400024a4
lea rdx, [rax*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000249f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400024c2
mov rcx, r8
call fcn.140007b1c
xor al, al
jmp 0x1400023f7
cmp rax, 8
jb 0x1400023f5
lea rdx, [rax*2 + 2]
jmp 0x1400023c8
call fcn.140010fa4
int3
Function at 0x1400024d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x50], ebp
jb 0x1400024f2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140002586
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002565
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002560
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002632
mov rcx, r8
call fcn.140007b1c
mov al, 1
mov rsi, qword [rsp + 0x68]
mov word [rdi], bp
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400025a0
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002614
lea rdx, [rdx*2 + 2]
jmp 0x1400025eb
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r8d, 0x4f18
mov qword [rsp + 0x20], rbp
lea rdx, [0x14003ec30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x58]
jne 0x14000261b
cmp rax, 8
jb 0x140002614
lea rdx, [rax*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000260f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002632
mov rcx, r8
call fcn.140007b1c
xor al, al
jmp 0x140002567
cmp rax, 8
jb 0x140002565
lea rdx, [rax*2 + 2]
jmp 0x140002538
call fcn.140010fa4
int3
Function at 0x140002640
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x298
mov r14, rcx
mov qword [rax + 0x10], rsi
lea rcx, [rbp - 0x70]
mov qword [rax - 0x18], r15
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor r15d, r15d
mov dword [rsp + 0x30], 0xf79ef790
mov eax, r15d
mov dword [rsp + 0x34], 0xf7a9f7a1
mov dword [rsp + 0x38], 0xf7a6f7a4
mov r8d, 0x834
mov dword [rsp + 0x3c], 0xf7a1f7b3
mov dword [rsp + 0x40], 0xf791f7b1
mov dword [rsp + 0x44], 0xf7a4f7bf
mov dword [rsp + 0x48], 0xf7abf7ac
mov dword [rsp + 0x4c], 0xf7b9f7b3
mov dword [rsp + 0x50], 0xf7a9f7a9
mov dword [rsp + 0x54], 0xf7b0f7b7
mov dword [rsp + 0x58], 0xf7bdf78e
mov dword [rsp + 0x5c], 0xf78cf7a6
mov dword [rsp + 0x60], 0xf78bf793
mov dword [rsp + 0x64], 0xf788f78a
mov dword [rsp + 0x68], 0xf78df789
mov dword [rsp + 0x6c], 0xf7b6
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rcx*2]
movzx ecx, ax
sub cx, r8w
inc eax
xor word [rdx], cx
cmp eax, 0x1f
jb 0x140002700
mov rsi, 0xffffffffffffffff
mov word [rsp + 0x6e], r15w
mov r8, rsi
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], 7
inc r8
cmp word [rax + r8*2], r15w
jne 0x140002742
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140003f60
lea rax, [rsp + 0x30]
nop
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x140002760
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400027d2
mov qword [rsp + 0x2b0], rbx
lea r8, [rsi + rsi]
cmp rdx, 8
mov qword [rsp + 0x2c0], rdi
lea rdi, [rcx + rsi]
lea rbx, [rsp + 0x70]
mov qword [rbp - 0x80], rdi
cmovae rbx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rbx + rcx*2]
call fcn.140009c10
mov word [rbx + rdi*2], r15w
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2b0]
jmp 0x1400027e9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140004df0
mov rsi, qword [rsp + 0x2b8]
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], r15
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rax + 0x10], r15
mov word [rax], r15w
mov r15, qword [rsp + 0x290]
mov qword [rax + 0x18], 7
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140002861
mov rcx, qword [rsp + 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000285c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000286f
call fcn.140007b1c
mov rax, r14
add rsp, 0x298
pop r14
pop rbp
ret
call fcn.140010fa4
int3
Function at 0x140003430
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x60
xor eax, eax
mov dword [rsp + 0x40], 0xf791f790
mov word [rsp + 0x54], ax
xor r9d, r9d
mov rbx, rcx
mov dword [rsp + 0x44], 0xf793f7e0
mov dword [rsp + 0x48], 0xf79ef797
mov r8d, 0x834
mov dword [rsp + 0x4c], 0xf79af786
mov dword [rsp + 0x50], 0xf79bf785
movsxd rcx, eax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rcx*2]
movzx ecx, ax
sub cx, r8w
inc eax
xor word [rdx], cx
cmp eax, 0xa
jb 0x140003471
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x20], 3
mov word [rsp + 0x54], r9w
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x20], rax
add rsp, 0x60
pop rbx
ret
Function at 0x14000e220
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e01c
Function at 0x14001e1fc
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.140008400
sub rsp, rax
mov rax, qword [0x14003e028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c3b4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e24b
mov rax, rbp
jmp 0x14001e353
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x594a10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f31c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x594a10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e34f
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 0x14001e34f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f31c
test rax, rax
js 0x14001e34f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e34f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e341
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e341
cmp byte [rcx], 0xd
jne 0x14001e327
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e336
cmp byte [rcx + 1], 0xa
jne 0x14001e336
inc rcx
jmp 0x14001e336
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e309
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e353
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400083d0
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 0x14001e574
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e58a
mov al, 1
jmp 0x14001e5ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e59b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e5e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022784
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e5e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e5e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e5e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e5ea
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e6bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140594a10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001e713
cmp word [rdx], r13w
jne 0x14001e713
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e718
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e83d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e85e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e751
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e778
cmp r9, r8
jae 0x14001e788
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001e732
jmp 0x14001e83d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e832
cmp dword [rsp + 0x80], esi
je 0x14001e832
lea r8, [0x140594a10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e80a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e7da
mov word [rbx], r13w
jmp 0x14001e83a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001e7e7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e83a
cmp word [rsp + 0x70], r13w
jne 0x14001e817
cmp rbx, r14
je 0x14001e7d4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f324
cmp word [rsp + 0x70], r13w
je 0x14001e83d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140594a10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e837
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e83d
Function at 0x140021c70
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 0x140021ca0
xor eax, eax
jmp 0x140021d63
mov rbp, rbx
cmp word [rax], si
je 0x140021cc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021cac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021ca8
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.1400205a0
movsxd r14, eax
test eax, eax
jne 0x140021d03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021c99
mov rcx, r14
call fcn.140019764
mov rdi, rax
test rax, rax
jne 0x140021d1c
xor ecx, ecx
call fcn.140019728
jmp 0x140021cf8
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.1400205a0
test eax, eax
jne 0x140021d4d
mov rcx, rdi
call fcn.140019728
jmp 0x140021d57
xor ecx, ecx
call fcn.140019728
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 0x140024cd8
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.14001a40c
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 0x140024d79
cmp ebx, dword [rsp + 0x30]
je 0x140024d72
test esi, esi
je 0x140024d72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140024d4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140024d5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140024d37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140024d5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024d7b
mov eax, 1
jmp 0x140024d7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027ddc
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.140010858
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027e66
cmp byte [rbp - 0x21], r15b
je 0x140027e61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027e9c
call fcn.14001aa34
test eax, eax
jne 0x140027e88
cmp byte [rbp - 0x21], r15b
je 0x140027e80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027e9c
cmp byte [rbp - 0x21], r15b
je 0x140027e99
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.140015da0
test eax, eax
jne 0x140027f3c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010858
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027edb
cmp byte [rbp - 0x21], r15b
je 0x140027f10
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027f10
call fcn.14001aa34
test eax, eax
jne 0x140027efc
cmp byte [rbp - 0x21], r15b
je 0x140027ef5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027f10
cmp byte [rbp - 0x21], r15b
je 0x140027f0d
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.140015da0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027f3c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027f3f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027f4d
mov rcx, rdi
call fcn.140019728
cmp byte [rbp + 0x3f], r15b
je 0x140027f5c
mov rcx, qword [rbp + 0x27]
call fcn.140019728
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 0x140003400
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000345d
lea rbx, [0x14004f0d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003444
cmp r10, 2
jb 0x140003444
cmp byte [r9], r8b
jne 0x140003444
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003420
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000349f
lea rbx, [0x14004f0d0]
cmp r8b, 0x23
jne 0x140003483
cmp byte [r9], r8b
jne 0x140003483
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003470
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003660
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14000368f
mov r8d, 0x78f
lea rdx, str.C:UserseverthingsDesktopFree_SourceFree_Sourceimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rsi, rsi
je 0x14000369b
mov qword [rsi], 0
lea rdx, [0x14004e918]
mov rcx, rbx
call fcn.1400034b0
mov rbx, rax
test rax, rax
jne 0x1400036bd
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400037a8
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400037a8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400037a8
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400037a8
cmp rdi, 0xffffffffffffffff
je 0x1400037a8
mov rax, qword [0x1400ad8c0]
test rax, rax
je 0x140003739
inc dword [rax + 0xf4]
mov rdx, qword [0x1400ad8b0]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbp, rax
test rax, rax
je 0x1400037a8
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003795
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400ad8c0]
test rax, rax
je 0x140003784
dec dword [rax + 0xf4]
mov rdx, qword [0x1400ad8b0]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400037b1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400037a3
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1400037b3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x1400066c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xe8]
mov rbx, rcx
movsxd rdi, edx
test eax, eax
jg 0x1400066fe
mov r8d, 0x705
lea rdx, str.C:UserseverthingsDesktopFree_SourceFree_Sourceimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rbx + 0xe8]
movsxd rcx, eax
lea rdx, [0x14004f0d0]
mov rax, qword [rbx + 0xf0]
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [0x1400ad8c0]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140006778
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001bea0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret