joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025cf0
Capabilities:
Get file size

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

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
lea r9, str._J_ms8m
mov r8d, 3
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140007ef8
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:WindowsPrefetch
lea rdx, [0x14004c9e4]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret

Function at 0x140007f2c
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
lea rcx, str.LOCALAPPDATA
call fcn.140022980
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004ad0
nop
lea r8, str.CrashDumps
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140008278
lea rcx, [rsp + 0x30]
call fcn.140004994
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, [0x14004ca0c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0x30]
call fcn.140004a30
nop
lea rcx, [rsp + 0x50]
call fcn.140004a30
add rsp, 0x78
ret

Function at 0x140007fac
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.::645FF040_5081_101B_9F08_00AA002F954E
lea rdx, [0x14004ca44]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret

Function at 0x140007fe0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
lea rcx, str.APPDATA
call fcn.140022980
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004ad0
nop
lea r8, str.MicrosoftWindowsRecent
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140008278
lea rcx, [rsp + 0x30]
call fcn.140004994
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rsp + 0x30]
call fcn.140004a30
nop
lea rcx, [rsp + 0x50]
call fcn.140004a30
add rsp, 0x78
ret

Function at 0x14000adf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ae3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ae3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ae3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ae3a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ae3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ae3c
xor al, al
add rsp, 0x28
ret
Function at 0x140021ff0
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 0x140022027
call fcn.140022760
mov dword [rax], 0x16
call fcn.140021af0
xor eax, eax
jmp 0x1400220b5
mov rdx, r9
mov rcx, r8
call fcn.140021f8c
mov rbx, rax
test rax, rax
je 0x1400220b2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140021eb8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002209f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400226d4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140022086
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140022095
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14002b10c
jmp 0x1400220b2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400220af
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 0x1400247bc
Capabilities:
Parse pe header

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

Function at 0x140029890
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400298a6
mov al, 1
jmp 0x140029906
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400298b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029904
mov ecx, dword [rcx + 0x18]
nop
call fcn.140032478
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029904
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140029904
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140029904
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140029906
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002c7c0
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.14000aa50
sub rsp, rax
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140029770
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002c80f
mov rax, rbp
jmp 0x14002c917
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 + 0x1213ac0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002d70c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1213ac0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002c913
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 0x14002c913
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002d70c
test rax, rax
js 0x14002c913
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002c913
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002c905
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002c905
cmp byte [rcx], 0xd
jne 0x14002c8eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002c8fa
cmp byte [rcx + 1], 0xa
jne 0x14002c8fa
inc rcx
jmp 0x14002c8fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x545f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002c8cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002c917
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a7f0
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 0x14002caac
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, [0x141213ac0]
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 0x14002cb03
cmp word [rdx], r13w
jne 0x14002cb03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002cb08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002cc2d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002cc4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002cb41
mov rdx, r9
mov word [rbx], cx
jmp 0x14002cb68
cmp r9, r8
jae 0x14002cb78
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 0x14002cb22
jmp 0x14002cc2d
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 0x14002cc22
cmp dword [rsp + 0x80], esi
je 0x14002cc22
lea r8, [0x141213ac0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002cbfa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002cbca
mov word [rbx], r13w
jmp 0x14002cc2a
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 0x14002cbd7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002cc2a
cmp word [rsp + 0x70], r13w
jne 0x14002cc07
cmp rbx, r14
je 0x14002cbc4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002d714
cmp word [rsp + 0x70], r13w
je 0x14002cc2d
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, [0x141213ac0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002cc27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002cc2d
Function at 0x140031a40
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 0x140031a70
xor eax, eax
jmp 0x140031b33
mov rbp, rbx
cmp word [rax], si
je 0x140031a95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031a7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031a78
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.14002d904
movsxd r14, eax
test eax, eax
jne 0x140031ad3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031a69
mov rcx, r14
call fcn.14002d7b8
mov rdi, rax
test rax, rax
jne 0x140031aec
xor ecx, ecx
call fcn.14002b10c
jmp 0x140031ac8
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.14002d904
test eax, eax
jne 0x140031b1d
mov rcx, rdi
call fcn.14002b10c
jmp 0x140031b27
xor ecx, ecx
call fcn.14002b10c
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 0x1400349cc
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.140029d50
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 0x140034a6d
cmp ebx, dword [rsp + 0x30]
je 0x140034a66
test esi, esi
je 0x140034a66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034a41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140034a4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140034a2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034a52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140034a6f
mov eax, 1
jmp 0x140034a6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140037e4c
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.14002346c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140037ed6
cmp byte [rbp - 0x21], r15b
je 0x140037ed1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140037f0c
call fcn.14002ba90
test eax, eax
jne 0x140037ef8
cmp byte [rbp - 0x21], r15b
je 0x140037ef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140037f0c
cmp byte [rbp - 0x21], r15b
je 0x140037f09
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.140023520
test eax, eax
jne 0x140037fac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002346c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140037f4b
cmp byte [rbp - 0x21], r15b
je 0x140037f80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140037f80
call fcn.14002ba90
test eax, eax
jne 0x140037f6c
cmp byte [rbp - 0x21], r15b
je 0x140037f65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140037f80
cmp byte [rbp - 0x21], r15b
je 0x140037f7d
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.140023520
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140037fac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140037faf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140037fbd
mov rcx, rdi
call fcn.14002b10c
cmp byte [rbp + 0x3f], r15b
je 0x140037fcc
mov rcx, qword [rbp + 0x27]
call fcn.14002b10c
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 0x140038e10
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.14002d714
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002d714
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140038f60
cmp rax, 0xffffffffffffffff
je 0x140038f60
xor edi, edi
test rbp, rbp
jle 0x140038f0b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b6f8
mov rbx, rax
test rax, rax
jne 0x140038e98
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140038f01
mov edx, 0x8000
mov ecx, r14d
call fcn.140024838
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.14002ae04
cmp eax, 0xffffffff
je 0x140038ee1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140038ea8
mov edx, r15d
mov ecx, r14d
call fcn.140024838
jmp 0x140038f01
cmp byte [rsi + 0x38], dil
je 0x140038ef8
cmp dword [rsi + 0x34], 5
jne 0x140038ef8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140038f01
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002b10c
jmp 0x140038f74
jns 0x140038f74
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002d714
cmp rax, 0xffffffffffffffff
jne 0x140038f2c
cmp byte [rsi + 0x30], dil
je 0x140038f74
mov edi, dword [rsi + 0x2c]
jmp 0x140038f74
mov ecx, r14d
call fcn.140032478
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140038f74
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 0x140038f74
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140038f6d
mov eax, dword [rsi + 0x2c]
jmp 0x140038f72
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002d714
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 0x140039230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140039258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140039258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140014448
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140014bb4
add rsp, 0x28
jmp 0x140014448
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140026068], rbx
je 0x140014492
cmp rax, rbx
jne 0x1400144a7
mov edi, 1
mov eax, dword [0x140026070]
cmp eax, 1
jne 0x1400144b4
lea ecx, [rax + 0x1e]
call fcn.1400bd000
jmp 0x140014521
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001447b
mov eax, dword [0x140026070]
test eax, eax
jne 0x140014517
mov dword [0x140026070], 1
lea r14, [0x140015550]
lea rbx, [0x140015538]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140014509
test eax, eax
jne 0x14001450d
cmp qword [rbx], 0
je 0x1400144fe
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400144df
test eax, eax
je 0x140014521
mov eax, 0xff
jmp 0x140014674
mov dword [0x140025414], 1
mov eax, dword [0x140026070]
cmp eax, 1
jne 0x140014549
lea rdx, [0x140015530]
lea rcx, [0x140015520]
call sub.msvcrt.dll__initterm
mov dword [0x140026070], 2
test edi, edi
jne 0x140014556
xor eax, eax
xchg qword [0x140026068], rax
cmp qword [0x140026078], 0
je 0x14001458a
lea rcx, [0x140026078]
call fcn.140014b20
test eax, eax
je 0x14001458a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140026078]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x140014616
test cl, cl
je 0x1400145ad
test edi, edi
jne 0x140014616
dec cl
cmp cl, 0x1f
ja 0x1400145c0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400145ad
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001668
mov dword [0x140025410], eax
cmp dword [0x140025430], 0
jne 0x1400145ff
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140025414], 0
jne 0x140014614
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140025410]
jmp 0x140014674
cmp cl, 0x22
jne 0x140014628
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001463a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14001459d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1429677ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rbp, qword [rsp + 0x10]
mov qword [rsp + 0x10], 0xffffffffd0a6116f
call fcn.1429e3de9
call rax
mov r11, rax
test r14d, esp
test dx, 0x440f
test rax, rax
jmp 0x142ac8d0a
movsx rbp, bp
setbe bpl
ja 0x142938b3b
call rax
jmp 0x142ac8e69
sub eax, eax
jmp 0x142ac8c5c
jmp 0x142ac8e69
je 0x142ac8c55
cmp r11, rsi
jmp 0x142ac8d18
jne 0x142ac8dbb
cmp byte [rsp + 0x180], dil
jmp 0x142ac8d2b
je 0x142ac8d99
lea rax, [rsp + 0x40]
shrd ecx, edx, 0xde
bts cx, si
sub rbp, rax
cdqe
cmc
xchg cx, dx
nop
movzx rax, r9w
lea rdx, [rsp + rdi + 0x40]
cdqe
mov ecx, edi
mov eax, 0x6f765ceb
clc
cmc
rol eax, cl
jmp 0x142ac8d63
add al, dil
cmc
clc
xor al, byte [rdx + rbp]
jmp 0x142ac8d70
mov byte [rdx], al
jmp 0x142ac8d77
je 0x142ac8d92
inc rdi
cmp rdi, 0x104
jmp 0x142ac8d8c
jb 0x142ac8d4c
lea rbp, [rsp + 0x40]
cdqe
mov rdx, rbp
movzx eax, r15w
mov ecx, r15d
not ecx
mov rcx, rsi
movzx ax, ah
not rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x142aa7ba0
cmp byte [rbx + 1], 0x23
xchg dx, dx
lea rdx, [rbx + 1]
jmp 0x142ac8dcb
jne 0x142ac8e49
movzx edx, byte [rbx + 2]
cmp r11w, 0x3caa
stc
add rbx, 2
cmc
test dl, dl
jmp 0x142ac8de8
je 0x142ac8e39
nop
cdqe
movsxd rax, ebx
lea eax, [rdx - 0x30]
inc rbx
test dil, al
cmp al, 9
jmp 0x142ac8e04
ja 0x142ac8e39
movsx eax, dl
shr rdx, cl
movzx cx, r11b
movzx edx, byte [rbx]
cmc
or cx, 0x4f95
lea ecx, [rdi + rdi*4]
mov edi, 0x184f69a1
xchg dil, dil
movsx edi, r13w
lea edi, [rax + rcx*2 - 0x30]
test dl, dl
jne 0x142ac8df4
movsxd rdx, edi
btr cx, r14w
shrd cx, bx, 0x11
rcl ecx, 0x79
xor r8d, r8d
xchg cx, cx
mov rcx, r11
jmp 0x142ac8e57
call fcn.142ac888b
jmp 0x142ac8e69
mov rbx, qword [rsp + 0x178]
shl dil, cl
shld si, bx, 0x34
xadd dil, bpl
mov rdi, qword [rsp + 0x150]
movsxd rsi, r12d
cmc
jmp 0x142ac8e8e
add rsp, 0x158
movsx rsi, r12w
pop rsi
pop rbp
ret
Function at 0x140001450
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
mov eax, 0
add rsp, 0x20
pop rbp
ret