joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028ac8
Capabilities:
Parse pe header

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

Function at 0x14002c4c8
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 0x14002c333
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c333
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c333
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c333
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c333
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c333
cmp dword [rcx + 0xf8], 0
je 0x14002c333
mov ecx, ebx
call fcn.14002c3e4
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.14002c1c0
nop
cmp dword [rbp + 0x20], 0
je 0x14002c381
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002c38c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002c2c4
Function at 0x14003d048
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 0x14003d0cf
mov rsi, rbx
cmp word [rax], bp
je 0x14003d08e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003d078
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003d074
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003a668
mov rdi, rax
test rax, rax
je 0x14003d0bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a250
mov rbp, rdi
xor ecx, ecx
call fcn.140038a38
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 0x140040c44
Capabilities:
Get file size

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

Function at 0x140043220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140043248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140043248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004214
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
test r9, r9
je 0x140004257
mov r15, r9
mov r14, r8
mov rbx, qword [rsp + 0x100]
mov ecx, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140004274

Function at 0x140005a6c
Capabilities:
Parse pe header

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

Function at 0x140009d34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009b30
Function at 0x14000cdfc
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 0x14000ce2c
xor eax, eax
jmp 0x14000ceef
mov rbp, rbx
cmp word [rax], si
je 0x14000ce51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ce38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ce34
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.14000cd1c
movsxd r14, eax
test eax, eax
jne 0x14000ce8f
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14000ce25
mov rcx, r14
call fcn.14000dcd8
mov rdi, rax
test rax, rax
jne 0x14000cea8
xor ecx, ecx
call fcn.14000b37c
jmp 0x14000ce84
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.14000cd1c
test eax, eax
jne 0x14000ced9
mov rcx, rdi
call fcn.14000b37c
jmp 0x14000cee3
xor ecx, ecx
call fcn.14000b37c
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 0x1400103e0
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.14000bdec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001046a
cmp byte [rbp - 0x21], r15b
je 0x140010465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400104a0
call fcn.14000e4e8
test eax, eax
jne 0x14001048c
cmp byte [rbp - 0x21], r15b
je 0x140010484
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400104a0
cmp byte [rbp - 0x21], r15b
je 0x14001049d
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.14000b3cc
test eax, eax
jne 0x140010540
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bdec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400104df
cmp byte [rbp - 0x21], r15b
je 0x140010514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140010514
call fcn.14000e4e8
test eax, eax
jne 0x140010500
cmp byte [rbp - 0x21], r15b
je 0x1400104f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140010514
cmp byte [rbp - 0x21], r15b
je 0x140010511
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.14000b3cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140010540
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140010543
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140010551
mov rcx, rdi
call fcn.14000b37c
cmp byte [rbp + 0x3f], r15b
je 0x140010560
mov rcx, qword [rbp + 0x27]
call fcn.14000b37c
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 0x1402d4ea8
Capabilities:
Parse pe header

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

Function at 0x1402dda30
Capabilities:
Parse pe header

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

Function at 0x1402e26b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1402d76a8
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1402e26fb
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1402e272f
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402e272f
call fcn.1402e79b8
xor ebx, ebx
test eax, eax
jne 0x1402e271d
cmp byte [rbp - 0x48], bl
je 0x1402e2716
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1402e272f
cmp byte [rbp - 0x48], bl
je 0x1402e272d
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.1402d7744
mov esi, eax
test eax, eax
je 0x1402e276b
call fcn.1402dfe48
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1402e27c4
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.1402d7744
mov edi, eax
test eax, eax
je 0x1402e27a7
call fcn.1402dfe48
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1402e27b6
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1402f19f8
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1402e27c4
mov rcx, qword [rbp - 0x50]
call fcn.1402e6d70
cmp byte [rbp - 8], bl
je 0x1402e27d2
mov rcx, qword [rbp - 0x20]
call fcn.1402e6d70
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1402e38b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402e38d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402e38d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1402edb28
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.1402e6fdc
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 0x1402edbc9
cmp ebx, dword [rsp + 0x30]
je 0x1402edbc2
test esi, esi
je 0x1402edbc2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402edb9d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402edbaa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402edb87
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402edbae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1402edbcb
mov eax, 1
jmp 0x1402edbcb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402ee668
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.1402d39a0
sub rsp, rax
mov rax, qword [0x14030a6f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402eb174
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1402ee6b7
mov rax, rbp
jmp 0x1402ee7bf
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 + 0x30d430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1402ee398
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x30d430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402ee7bb
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 0x1402ee7bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1402ee398
test rax, rax
js 0x1402ee7bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402ee7bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1402ee7ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402ee7ad
cmp byte [rcx], 0xd
jne 0x1402ee793
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402ee7a2
cmp byte [rcx + 1], 0xa
jne 0x1402ee7a2
inc rcx
jmp 0x1402ee7a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30b230]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1402ee775
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402ee7bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1402d3a00
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 0x1402ef010
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 0x1402ef097
mov rsi, rbx
cmp word [rax], bp
je 0x1402ef056
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402ef040
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402ef03c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402e6dac
mov rdi, rax
test rax, rax
je 0x1402ef084
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402d6c80
mov rbp, rdi
xor ecx, ecx
call fcn.1402e6d70
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 0x1402f08d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402f08ee
mov al, 1
jmp 0x1402f094e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402f08ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402f094c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402ef0ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402f094c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402f094c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402f094c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402f094e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402f1284
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, [0x14030d430]
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 0x1402f12db
cmp word [rdx], r13w
jne 0x1402f12db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1402f12e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1402f1405
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1402f1426
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1402f1319
mov rdx, r9
mov word [rbx], cx
jmp 0x1402f1340
cmp r9, r8
jae 0x1402f1350
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 0x1402f12fa
jmp 0x1402f1405
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 0x1402f13fa
cmp dword [rsp + 0x80], esi
je 0x1402f13fa
lea r8, [0x14030d430]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1402f13d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1402f13a2
mov word [rbx], r13w
jmp 0x1402f1402
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 0x1402f13af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1402f1402
cmp word [rsp + 0x70], r13w
jne 0x1402f13df
cmp rbx, r14
je 0x1402f139c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402ee2f4
cmp word [rsp + 0x70], r13w
je 0x1402f1405
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, [0x14030d430]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1402f13ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1402f1405
Function at 0x1402f731c
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.1402ee2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402ee2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402f746c
cmp rax, 0xffffffffffffffff
je 0x1402f746c
xor edi, edi
test rbp, rbp
jle 0x1402f7417
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402e8300
mov rbx, rax
test rax, rax
jne 0x1402f73a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402f740d
mov edx, 0x8000
mov ecx, r14d
call fcn.1402e0e2c
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.1402efa48
cmp eax, 0xffffffff
je 0x1402f73ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402f73b4
mov edx, r15d
mov ecx, r14d
call fcn.1402e0e2c
jmp 0x1402f740d
cmp byte [rsi + 0x38], dil
je 0x1402f7404
cmp dword [rsi + 0x34], 5
jne 0x1402f7404
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1402f740d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402e6d70
jmp 0x1402f7480
jns 0x1402f7480
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402ee2f4
cmp rax, 0xffffffffffffffff
jne 0x1402f7438
cmp byte [rsi + 0x30], dil
je 0x1402f7480
mov edi, dword [rsi + 0x2c]
jmp 0x1402f7480
mov ecx, r14d
call fcn.1402ef0ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402f7480
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1402f7480
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402f7479
mov eax, dword [rsi + 0x2c]
jmp 0x1402f747e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402ee2f4
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 0x140bbb8ea
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap esi
cmp r9w, dx
not esi
push r8
xor dword [rsp], esi
cmp rax, r9
bt r8w, 0x92
rol r8b, 0x7b
pop r8
stc
cmp spl, r11b
movsxd rsi, esi
add r10, rsi
jmp r10
pushfq
clc
stc
push r14
stc
clc
push r13
clc
jmp 0x140c13c10
dec esi
cmc
xor esi, 0x1059194a
cmp r13b, 0x73
cmp bpl, r9b
cmc
add esi, 0x69577d28
cmp r9, r9
jmp 0x140b9a335
push rbp
push rdx
push rdi
not bpl
clc
push rcx
rcl dx, 0x9b
movsx bp, sil
push rbx
ror dx, cl
btc edx, ebp
rcl dx, cl
push rsi
push r12
clc
rol sil, 0x6a
push r8
cdq
btr rdx, rdx
push r9
ror r9w, 0x44
cwd
btc edx, 0xb3
push r11
clc
movsx r8w, r12b
movzx edx, r15w
push r10
cwd
rcl bp, 0x28
push r15
push rax
movsx r11w, bl
btc dx, 0xef
movabs r11, 0
lahf
push r11
bt ax, 0xf5
rdtsc
mov r9, qword [rsp + 0x90]
cbw
rcr r8d, cl
ror r9d, 3
cwde
stc
add r9d, 0x19bb70f1
cmp cl, 0x5f
bt ax, 0x7a
neg r9d
clc
mov r8w, 0x1617
ror r9d, 1
rdtsc
xchg r8d, edx
xor r9d, 0x156274d3
clc
rol r9d, 1
mov sil, 0x17
dec r9d
cdq
dec bpl
add r9, r11
cqo
movabs rax, 0x100000000
and r8w, 0x6e19
lea r9, [r9 + rax]
mov rbp, rsp
sub rsp, 0x180
rol rsi, 5
setp r10b
rcr dx, 0xf8
and rsp, 0xfffffffffffffff0
btr r8, rax
mov r8, r9
cmp r10b, dl
clc
cqo
movabs rdx, 0
sub r8, rdx
lea r10, [0x140c13d14]
mov sil, 0x4d
sub r9, 4
sar sil, 0x5f
mov esi, dword [r9]
cmp r12b, 0x6b
xor esi, r8d
jmp 0x140bf3c71
Function at 0x140007370
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0x2b0
mov qword [rsp + 0x2a8], rcx
mov rax, qword [rsp + 0x2a8]
mov qword [0x14003c050], rax
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x200
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x2a8]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x2a8]
mov rcx, qword [rax + 0x70]
call sub.msvcrt.dll_strlen
mov r8, qword [rsp + 0x60]
mov r9d, eax
lea rax, [rsp + 0xa0]
mov ecx, 0xfde9
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [rsp + 0xa0]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov r11, qword [rax + 0xa0]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov r10, qword [rax]
mov rax, qword [rsp + 0x2a8]
xor ecx, ecx
lea rdx, str.ew::editAccount
mov r9d, 0x80000
xor esi, esi
mov dword [rsp + 0x20], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x30], 0x14b
mov dword [rsp + 0x38], 0xf8
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x98], rax
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rsp + 0x98]
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov edx, dword [rax + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x68]
xor eax, eax
mov edx, eax
xor r9d, r9d
mov r8d, r9d
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0
je 0x1400074df
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400074a6
mov rax, qword [0x1400367c0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x58]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
nop
add rsp, 0x2b0
pop rsi
ret