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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x14001a1fd
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001a117
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001a1e6
lea rdx, [rsp + 0x90]
call fcn.1400035f0
mov r13, rax
mov rdx, rax
lea rcx, [0x14005c248]
call fcn.1400034f0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001a151
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001a197
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001a1a7
add ebx, dword [rsp + 0x30]
jmp 0x14001a1b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001a1b8
cmp ebx, edi
je 0x14001a1bd
jmp 0x14001a170
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001a1d8
mov rcx, r13
call fcn.140021394
test r14, r14
je 0x14001a1e6
mov rcx, r14
call fcn.140021394
nop
jmp 0x14001a1f4
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001a210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x48
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x14001a32b
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001a265
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001a314
lea rdx, [rsp + 0x90]
call fcn.1400036c0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001a290
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001a2d7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001a2e7
add ebx, dword [rsp + 0x30]
jmp 0x14001a2f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001a2f8
cmp ebx, edi
je 0x14001a2fd
jmp 0x14001a2b0
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.140021394
nop
jmp 0x14001a322
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001a340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x14001a46a
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001a396
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400035f0
mov r13, rax
mov rdx, rax
lea rcx, [0x14005c248]
call fcn.1400034f0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001a3c0
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001a407
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001a417
add ebx, dword [rsp + 0x78]
jmp 0x14001a422
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001a428
cmp ebx, edi
je 0x14001a42d
jmp 0x14001a3e0
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001a448
mov rcx, r13
call fcn.140021394
test r14, r14
je 0x14001a456
mov rcx, r14
call fcn.140021394
nop
jmp 0x14001a461
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14001a490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x14001a588
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001a4e0
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400036c0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001a4f5
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001a537
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001a547
add ebx, dword [rsp + 0x78]
jmp 0x14001a552
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001a558
cmp ebx, edi
je 0x14001a55d
jmp 0x14001a510
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.140021394
nop
jmp 0x14001a57f
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14001dfa0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140066038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
cmp qword [rcx + 0x18], 8
jb 0x14001dfd8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001e031
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140067940]
mov r10, qword [rcx]
mov r9d, eax
lea r8d, [rdi + 3]
lea rdx, str.SwapMethod___Overwrite:_CreateFileW_failed__d
call qword [r10 + 0x10]
jmp 0x14001e112
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14001e071
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140067940]
mov rax, qword [rcx]
mov r9d, ebx
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_SetFilePointer_failed__d
call qword [rax + 0x10]
jmp 0x14001e108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001e0a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140067940]
mov rax, qword [rcx]
mov r9d, ebx
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_SetEndOfFile_failed__d
call qword [rax + 0x10]
jmp 0x14001e108
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14001e047
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001e0ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140067940]
mov rax, qword [rcx]
mov r9d, ebx
mov r8d, 2
lea rdx, str.SwapMethod___Overwrite:_WriteFile_failed__d
call qword [rax + 0x10]
jmp 0x14001e108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.140003a80
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140021700
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140021fb0
Capabilities:
Parse pe header

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

Function at 0x140035e80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140035c7c
Function at 0x14003fc08
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 0x14003fc38
xor eax, eax
jmp 0x14003fcfb
mov rbp, rbx
cmp word [rax], si
je 0x14003fc5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003fc44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003fc40
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.14003e4d4
movsxd r14, eax
test eax, eax
jne 0x14003fc9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003fc31
mov rcx, r14
call fcn.14003906c
mov rdi, rax
test rax, rax
jne 0x14003fcb4
xor ecx, ecx
call fcn.140039030
jmp 0x14003fc90
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.14003e4d4
test eax, eax
jne 0x14003fce5
mov rcx, rdi
call fcn.140039030
jmp 0x14003fcef
xor ecx, ecx
call fcn.140039030
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 0x1400430a8
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.140038b04
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 0x140043149
cmp ebx, dword [rsp + 0x30]
je 0x140043142
test esi, esi
je 0x140043142
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004311d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004312a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140043107
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004312e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004314b
mov eax, 1
jmp 0x14004314b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400468fc
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.14002801c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140046986
cmp byte [rbp - 0x21], r15b
je 0x140046981
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400469bc
call fcn.14003c098
test eax, eax
jne 0x1400469a8
cmp byte [rbp - 0x21], r15b
je 0x1400469a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400469bc
cmp byte [rbp - 0x21], r15b
je 0x1400469b9
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.140035388
test eax, eax
jne 0x140046a5c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002801c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400469fb
cmp byte [rbp - 0x21], r15b
je 0x140046a30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140046a30
call fcn.14003c098
test eax, eax
jne 0x140046a1c
cmp byte [rbp - 0x21], r15b
je 0x140046a15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140046a30
cmp byte [rbp - 0x21], r15b
je 0x140046a2d
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.140035388
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140046a5c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140046a5f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140046a6d
mov rcx, rdi
call fcn.140039030
cmp byte [rbp + 0x3f], r15b
je 0x140046a7c
mov rcx, qword [rbp + 0x27]
call fcn.140039030
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 0x140048900
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, [0x1400688d0]
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 0x140048957
cmp word [rdx], r13w
jne 0x140048957
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004895c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140048a81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140048aa2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140048995
mov rdx, r9
mov word [rbx], cx
jmp 0x1400489bc
cmp r9, r8
jae 0x1400489cc
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 0x140048976
jmp 0x140048a81
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 0x140048a76
cmp dword [rsp + 0x80], esi
je 0x140048a76
lea r8, [0x1400688d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140048a4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140048a1e
mov word [rbx], r13w
jmp 0x140048a7e
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 0x140048a2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140048a7e
cmp word [rsp + 0x70], r13w
jne 0x140048a5b
cmp rbx, r14
je 0x140048a18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400483e0
cmp word [rsp + 0x70], r13w
je 0x140048a81
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, [0x1400688d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140048a7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140048a81
Function at 0x140733058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407331df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140733089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073306f
add dl, dl
jne 0x140733096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407330f6
xor eax, eax
add dl, dl
jne 0x1407330a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407331ad
add dl, dl
jne 0x1407330b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407330c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407330d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407330dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407330ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073307e
mov eax, 1
add dl, dl
jne 0x140733106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140733113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407330fb
sub eax, ebx
mov ebx, 1
jne 0x14073314c
mov ecx, 1
add dl, dl
jne 0x14073312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140733123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140733168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140733175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073315d
cmp eax, 0x7d00
jae 0x14073319b
cmp eax, 0x500
jb 0x140733196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073307e
cmp eax, 0x7f
ja 0x14073319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407331d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14073307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001000
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
ret

Function at 0x1800013a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000104a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001046
repz ret
ror rcx, 0x10
jmp 0x180001300
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000af80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000b078]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180001385
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000af80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800013a7
mov rax, qword [rsp + 0x88]
mov qword [0x18000b078], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000b018], rax
mov rax, qword [0x18000b078]
mov qword [0x18000aef0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000b000], rax
mov dword [0x18000aee0], 0xc0000409
mov dword [0x18000aee4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000a008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000af78], eax
mov ecx, 1
call fcn.180002b00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180007238]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000af78], 0
jne 0x18000142e
mov ecx, 1
call fcn.180002b00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800058cc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000164c
xor ebx, ebx
cmp qword [0x18000be98], rbx
mov rdi, rax
jne 0x1800059df
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180005ab6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005ab6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18000be98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18000bea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18000bea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18000beb8], rax
test rax, rax
je 0x1800059d6
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18000beb0], rax
jmp 0x1800059e6
mov rax, qword [0x18000beb0]
jmp 0x1800059ed
mov rax, qword [0x18000beb0]
mov r11, qword [0x18000beb8]
cmp rax, rdi
je 0x180005a54
cmp r11, rdi
je 0x180005a54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18000beb8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180005a54
test rax, rax
je 0x180005a54
call rsi
test rax, rax
je 0x180005a4e
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180005a4e
test byte [rsp + 0x40], 1
jne 0x180005a54
bts ebp, 0x15
jmp 0x180005a94
mov rcx, qword [0x18000bea0]
cmp rcx, rdi
je 0x180005a94
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005a94
call rax
mov rbx, rax
test rax, rax
je 0x180005a94
mov rcx, qword [0x18000bea8]
cmp rcx, rdi
je 0x180005a94
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005a94
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000be98]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005ab6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180005ab8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001030
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret