joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400046ec
Capabilities:
Set registry value

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, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x14000471a
lea eax, [rbx + 0xd]
jmp 0x14000474f
mov rsi, rdi
mov rcx, rsi
call fcn.140018788
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x14000471d
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000481c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400472b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14000488d
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140002e00]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000488a
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010de0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140004cec
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140048ad4], 0
mov esi, edx
mov rdi, rcx
je 0x140004d0e
or eax, 0xffffffff
jmp 0x140004d79
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140004d3b
cmp eax, 0x80010106
jne 0x140004d77
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140004d3f
jmp 0x140004d77
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.14000309c
cmp al, 1
jne 0x140004d67
mov edx, esi
mov rcx, rdi
call fcn.140004654
mov ebx, eax
jmp 0x140004d6b
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140004d77
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, r9d
lea rcx, [0x140048b70]
jmp 0x140004cec
Function at 0x14000d940
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400472b8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000d974
xor eax, eax
jmp 0x14000da84
cmp qword [rcx + 0x68], 0
je 0x14000d988
lfence
call fcn.14000dab0
jmp 0x14000da84
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d9a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d9a6
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x14000d9e0
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140013d30
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x20], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000da79
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000da1b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x14000da55
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1400198dc
sub rbp, rax
add r14, rax
mov qword [rsp + 0x20], rbp
mov rbx, rbp
cmp rax, r15
jne 0x14000da79
cmp rbp, r15
ja 0x14000da26
test rbx, rbx
je 0x14000da79
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1400198dc
sub rbx, rax
mov qword [rsp + 0x20], rbx
lfence
sub rdi, qword [rsp + 0x20]
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140010de0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023c3c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140023c6e
call fcn.1400184f4
mov dword [rax], SafeArrayGetElement
call fcn.140018388
jmp 0x140023d8d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140023d8d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140023d8d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140023c9d
lock or dword [rcx + 0x14], 0x10
jmp 0x140023d8d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140023cb1
call fcn.14002550c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400229c0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140024b30
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140023d7b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140023d46
mov rcx, rsi
call fcn.1400229c0
cmp eax, edi
je 0x140023d31
mov rcx, rsi
call fcn.1400229c0
cmp eax, 0xfffffffe
je 0x140023d31
mov rcx, rsi
call fcn.1400229c0
movsxd rbx, eax
lea r14, [0x140049fe0]
mov rcx, rsi
sar rbx, 6
call fcn.1400229c0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140023d38
lea rdx, [0x140047680]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140023d46
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140023d6a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140023d6a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140023d6a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140023d90
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400240b8
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.140010d70
sub rsp, rax
mov rax, qword [0x1400472b8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400229c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140024107
mov rax, rbp
jmp 0x14002420f
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 + 0x49fe0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140025314
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x49fe0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002420b
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 0x14002420b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140025314
test rax, rax
js 0x14002420b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002420b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400241fd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400241fd
cmp byte [rcx], 0xd
jne 0x1400241e3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400241f2
cmp byte [rcx + 1], 0xa
jne 0x1400241f2
inc rcx
jmp 0x1400241f2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x476d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400241c5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002420f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010de0
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 0x140026964
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 0x1400269eb
mov rsi, rbx
cmp word [rax], bp
je 0x1400269aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026994
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026990
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140021a84
mov rdi, rax
test rax, rax
je 0x1400269d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140013d30
mov rbp, rdi
xor ecx, ecx
call fcn.14002135c
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 0x14002dfc8
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.14002531c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002531c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e118
cmp rax, 0xffffffffffffffff
je 0x14002e118
xor edi, edi
test rbp, rbp
jle 0x14002e0c3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140021b9c
mov rbx, rax
test rax, rax
jne 0x14002e050
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e0b9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b408
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.14002392c
cmp eax, 0xffffffff
je 0x14002e099
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e060
mov edx, r15d
mov ecx, r14d
call fcn.14001b408
jmp 0x14002e0b9
cmp byte [rsi + 0x38], dil
je 0x14002e0b0
cmp dword [rsi + 0x34], 5
jne 0x14002e0b0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x14002e0b9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002135c
jmp 0x14002e12c
jns 0x14002e12c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002531c
cmp rax, 0xffffffffffffffff
jne 0x14002e0e4
cmp byte [rsi + 0x30], dil
je 0x14002e12c
mov edi, dword [rsi + 0x2c]
jmp 0x14002e12c
mov ecx, r14d
call fcn.140026ee8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e12c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x14002e12c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e125
mov eax, dword [rsi + 0x2c]
jmp 0x14002e12a
mov eax, SafeArrayGetElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002531c
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 0x142170cd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x142170cdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x142170ced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x142170cd5
lea eax, [rcx + 1]
jmp 0x142170cfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x142170d0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x142170cf4
sub eax, 3
jb 0x142170d2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x142170d7d
sar eax, 1
movsxd rbp, eax
jb 0x142170d64
jmp 0x142170d3c
add ebx, ebx
jne 0x142170d3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x142170d64
inc ecx
add ebx, ebx
jne 0x142170d4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x142170d64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x142170d5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x142170d4c
add ecx, 2
jmp 0x142170d69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.142170c92
jmp 0x142170cdd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2166000]
mov eax, dword [rdi]
or eax, eax
je 0x142170de5
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x21711dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x142170d89
jns 0x142170dbe
movzx rdx, word [rdi]
add rdi, 2
jmp 0x142170dc8
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x142170ddf
mov qword [rbx], rax
add rbx, 8
jmp 0x142170da9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x142170e29
cmp al, 0xef
ja 0x142170e11
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x142170df1
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x142170e00
mov eax, dword [rdi]
add rdi, 4
jmp 0x142170e00
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.142170ea8], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.142170ea8
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x142170e98
sub rsp, 0xffffffffffffff80
jmp 0x140157214
Function at 0x140014900
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov edx, 0x58
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov rcx, rax
mov rbp, rax
lea r8d, [rdx + 0x58]
call fcn.140002f80
or byte [rsi + 0xc2], 2
lea r9, [0x1400010b0]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov byte [rsp + 0x30], 1
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov rcx, rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeApc]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_KeInsertQueueApc]
test al, al
jne 0x140001091
lea rcx, [0x140003360]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140a06268
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a063ef
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 0x140a06299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0627f
add dl, dl
jne 0x140a062a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a06306
xor eax, eax
add dl, dl
jne 0x140a062b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a063bd
add dl, dl
jne 0x140a062c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a062d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a062e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a062ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a062fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a0628e
mov eax, 1
add dl, dl
jne 0x140a06316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a06323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0630b
sub eax, ebx
mov ebx, 1
jne 0x140a0635c
mov ecx, 1
add dl, dl
jne 0x140a0633e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a0634b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a06333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0628e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a06378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a06385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0636d
cmp eax, 0x7d00
jae 0x140a063ab
cmp eax, 0x500
jb 0x140a063a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0628e
cmp eax, 0x7f
ja 0x140a063ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0628e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a063e2
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 0x140a0628e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400019d0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
mov r8b, 1
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.CrlUtils.dll_public:_void___cdecl_CrlUtils::CommandLine::SetCommandLine_wchar_t_const____ptr64__bool____ptr64]
mov rcx, rbx
call fcn.140001b00
mov rcx, rbx
call fcn.140001c30
mov al, 1
jmp 0x140001a0e
add rsp, 0x30
pop rbx
ret

Function at 0x140002670
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rbx
cmp dword [0x14000ea60], ebx
jne 0x140002715
mov eax, dword [0x14000ea64]
test eax, eax
jne 0x140002715
mov edx, dword [0x14000ea58]
test edx, edx
je 0x1400026c3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14000ea64]
mov edx, dword [0x14000ea58]
test eax, eax
jne 0x140002715
test edx, edx
jne 0x1400026d4
call fcn.1400024a0
test eax, eax
je 0x1400026ea
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14000e038]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x140002715
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14000270b
cmp eax, 0x78
je 0x14000270b
cmp eax, 1
je 0x14000270b
cmp eax, 0x32
je 0x14000270b
xor eax, eax
jmp 0x140002769
mov dword [0x14000ea64], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14000ea60], 0
je 0x140002738
cmp dword [0x14000ea64], 0
jne 0x140002766
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x14000274d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x140002766
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400029f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov rbx, rcx
jne 0x140002ab6
add rcx, 0x38
call fcn.140002ac0
cmp qword [rbx + 0x68], 0
jne 0x140002a50
mov rax, qword [rbx + 0x48]
cmp dword [rax - 0x10], 0
jne 0x140002a22
xor eax, eax
jmp 0x140002a47
mov rcx, qword [rbx + 8]
lea rdx, str.GetUILang
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002a47
call rax
mov rdx, qword [rbx + 0x48]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x78]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x140002ab6
lea rcx, [rbx + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
movzx eax, byte [rbx + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov byte [rbx + 0x10], al
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
mov r9, rbx
lea r8, [0x140002ba0]
xor edx, edx
lea rax, [rbx + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x28]
or edx, 0xffffffff
mov qword [rbx + 0x20], rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], 0
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add dword [rax], eax
add al, al
add byte [rax], al
add byte [rax], al
add eax, dword [rax]
add al, al
add byte [rax], al
add byte [rax], al
add eax, dword [rax]
add al, al
add byte [rax], al
add byte [rax], al
add eax, dword [rax]
add al, ah
add byte [rax], al
add byte [rax], al
invalid