joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dbb0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400baed0], 0
jne 0x14001dcb3
mov byte [0x1400baed0], 1
call dbg.__cxa_current_exception_type
test rax, rax
je 0x14001dc88
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call dbg.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001dc79
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400bccc1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400b71a7
jmp 0x1400b719f
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001dc47
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1400b719a
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop
call sym.abort
mov rcx, rdi
call sym.free
call dbg.__cxa_rethrow
call dbg.__cxa_begin_catch
call dbg.__cxa_end_catch
jmp 0x1400b719a

Function at 0x14007c8e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007c928
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c8fa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008f250
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008f278
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008f2c0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008f290
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008f2cc
call rbp
cmp dword [rax], 4
je 0x14008f290
lea rcx, str.random_device_could_not_be_read
call dbg.std::__throw_runtime_error(char const*)
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400b6ca0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400b8780]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call dbg.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400b8798], 0
movups xmmword [0x1400b8788], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400b6d55
jmp 0x1400b6dff
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400b6db0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400b6d40
cmp qword [rbx + 7], r12
jne 0x1400b6d40
cmp byte [rbx + 0xf], 0x2e
jne 0x1400b6d40
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400b6d9b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400b6da5
cmp byte [rbx + rsi], 0x3d
je 0x1400b6e35
add rbp, 0x18
cmp rbp, r13
jne 0x1400b6d7f
jmp 0x1400b6d40
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400b8798], rbx
jne 0x1400b6e0f
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400b8798], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400b8790], rax
test rax, rax
je 0x1400b6e6c
xor edx, edx
mov qword [0x1400b8788], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400b6de7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400b6e5c
test dl, dl
jne 0x1400b6d40
test eax, eax
js 0x1400b6d40
mov dword [rbp + 0x10], eax
jmp 0x1400b6d40
xor ecx, ecx
mov qword [0x1400b8798], rcx
jmp 0x1400b6de7
Function at 0x140010be0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
shl rcx, 3
add rcx, qword [0x140046be8]
movabs rdx, 0x688aad649b1fa459
movabs r8, 0x44998055974c93fb
add r8, qword [rdx + rcx]
jmp r8

Function at 0x140011ae0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x248
mov rsi, r8
mov rdi, rcx
mov rax, qword [0x140047080]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
test eax, eax
setne cl
shl rcx, 3
add rcx, qword [0x140046d18]
movabs rax, 0x8a84afcc1919d6c5
movabs rdx, 0x8de33104eecf8f84
add rdx, qword [rax + rcx]
jmp rdx

Function at 0x140019010
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140047080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [0x1400378a0]
mov qword [rsp + 0x50], rsi
movups xmm6, xmmword [0x140037890]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x140037880]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x140037870]
movaps xmmword [rsp + 0x20], xmm8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
xor edi, edi
xor eax, eax
cmp edi, 0x14
setge al
shl rax, 3
add rax, qword [0x140046ff8]
movabs rbx, 0x43ca9553b9b56cd9
movabs r14, 0xcd6ed7382e02e2e1
mov rax, qword [rbx + rax]
add rax, r14
jmp rax

Function at 0x140019150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
lea rcx, [0x14004bba0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
shl rcx, 3
add rcx, qword [0x140047008]
movabs rdx, 0x3b0cfb7160c3e68b
movabs r8, 0x1d0794191e673888
add r8, qword [rdx + rcx]
jmp r8

Function at 0x140019e70
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001daec
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001db5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001db5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001db5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001db5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001db5b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001db5b
cmp dword [rcx + 0xf8], 0
je 0x14001db5b
mov ecx, ebx
call fcn.14001da58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001dc90
nop
cmp dword [rbp + 0x20], 0
jne 0x14001dbbc
call fcn.1400245ac
cmp eax, 1
jne 0x14001dbac
xor dl, dl
jmp 0x14001dbb6
call fcn.140024578
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001dbc7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001dabc
int3

Function at 0x14001daec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001daec
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001db5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001db5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001db5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001db5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001db5b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001db5b
cmp dword [rcx + 0xf8], 0
je 0x14001db5b
mov ecx, ebx
call fcn.14001da58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001dc90
nop
cmp dword [rbp + 0x20], 0
jne 0x14001dbbc
call fcn.1400245ac
cmp eax, 1
jne 0x14001dbac
xor dl, dl
jmp 0x14001dbb6
call fcn.140024578
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001dbc7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001dabc
int3

Function at 0x14001f920
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f948
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f948
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400257a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002582f
mov rsi, rbx
cmp word [rax], bp
je 0x1400257ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400257d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400257d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140022770
mov rdi, rax
test rax, rax
je 0x14002581c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002e5a0
mov rbp, rdi
xor ecx, ecx
call fcn.140021730
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a470
Capabilities:
Get file size

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

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400083a4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140008432
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008400
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140008400
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400548a0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000841d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140008425
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400083c1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140008510
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140008449
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000844b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000847d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400548a0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000850d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400084b8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400084ee
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14003be54
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000850d
cmp rsi, rax
ja 0x1400084c1
test rsi, rsi
je 0x14000850d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003be54
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140029050
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140071100]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x140029184
mov r8, qword [rsp + 0x48]
cmp rbx, r8
ja 0x1400290f1
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov word [rax + rbx*2], si
jmp 0x140029150
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140029138
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x38]
cmp rdi, 7
cmova r9, qword [rsp + 0x38]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14002912d
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x140029150
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14000e490
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call fcn.140054fe0
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14002920f
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdi, qword [rsp + 0x38]
lea rax, [rbp - 0x74]
sub rdi, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1400291f3
add rax, 2
test ecx, ecx
jne 0x1400291e0
test edx, edx
je 0x14002920b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400291c0
jmp 0x14002920f
mov esi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140029257
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029252
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029281
call fcn.14002dfe0
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14002dfc0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14003c678
int3
Function at 0x140029290
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140071100]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x140029314
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140029314
cmp byte [rsp + 0x30], sil
jne 0x140029340
test rbx, rbx
jne 0x1400292c0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002dfc0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14002931b
Function at 0x14002c1bc
Capabilities:
Get geographical location

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

Function at 0x14002d100
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14003cb78
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14002d152
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x14002d152
sub ecx, 1
je 0x14002d14b
cmp ecx, 1
je 0x14002d144
xor eax, eax
jmp 0x14002d157
mov eax, 3
jmp 0x14002d157
mov eax, 1
jmp 0x14002d157
mov eax, 2
add rsp, 0x28
ret

Function at 0x14002ee10
Capabilities:
Parse pe header

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

Function at 0x14003c828
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14003c85f
call fcn.14003984c
mov dword [rax], 0x16
call fcn.14003c658
xor eax, eax
jmp 0x14003c8f1
mov rdx, r9
mov rcx, r8
call fcn.14003c7c4
mov rbx, rax
test rax, rax
je 0x14003c8ee
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x14003c6f8]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003c8db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400397dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003c8c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003c8d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140042ae0
jmp 0x14003c8ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003c8eb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14003e040
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003e0af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e0af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e0af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e0af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e0af
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e0af
cmp dword [rcx + 0xf8], 0
je 0x14003e0af
mov ecx, ebx
call fcn.14003e154
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003df48
nop
cmp dword [rbp + 0x20], 0
jne 0x14003e110
call fcn.140047ec0
cmp eax, 1
jne 0x14003e100
xor dl, dl
jmp 0x14003e10a
call fcn.140049bac
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003e11b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003e124
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14003e040

Function at 0x14003e228
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003e040

Function at 0x140040ffc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140041012
mov al, 1
jmp 0x14004107e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140041023
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004107c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004c404
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004107c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004107c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004107c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004107e
xor al, al
add rsp, 0x20
pop rbx
ret