joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003108c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14003110a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140031101
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140031101
mov rax, qword [rbp - 8]
jmp 0x14003111f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400310d4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140038a54
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140038b9e
mov rcx, qword [rbp + 0x10]
call fcn.14003d02d
cmp eax, 1
jne 0x140038b91
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140038b47
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140038b5d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140038b43
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140038b7c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140038b9f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140039d95
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x140039bbb]
mov rdx, rax
lea rax, [0x1400dae90]
mov rcx, rax
call fcn.1400391c6
mov eax, dword [0x1400ca0b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140039de8
mov rax, qword [rbp - 0x10]
jmp 0x140039f48
call fcn.140038930
mov qword [rbp - 0x10], rax
mov rax, qword [0x1400dc050]
test rax, rax
je 0x140039e04
cmp qword [rbp - 0x10], 0
jne 0x140039e0e
mov eax, 0
jmp 0x140039f48
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.140038a54
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140039ee9
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400ca0b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140039f44
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14003a042
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140039d95
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.140039be9
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14003a0af
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400ca0b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14003a1f3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14003a14c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003a107
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14003880c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400ca0b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14003a1f3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003a186
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14003a1f3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14003880c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400ca0b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001e33
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001e77
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001e72
cmp rbx, r11
jae 0x140001e77
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001e60
cmp rbx, r11
jb 0x140001e7b
xor eax, eax
jmp 0x140001e87
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004ca0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1100
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
call fcn.14000bcac
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x140004cfd
mov ecx, 0x80004005
call fcn.140002350
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov r9, qword [rsp + 0x40]
lea rdx, str.error__d_n_s
lea rcx, [rsp + 0x88]
call fcn.140001dd0
mov rcx, qword [rsp + 0x88]
add rcx, 0xffffffffffffffe8
call fcn.140001c90
add rax, 0x18
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
call fcn.14000d0c0
xor r9d, r9d
mov r8, qword [rax + 0x20]
mov rdx, qword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004d9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14000a290
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rdi
mov r11, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
lea r10, [r11 + 0x40]
mov r8, rdx
repne scasb al, byte [rdi]
mov rdi, r10
not rcx
lea r9, [rcx - 1]
xor ecx, ecx
nop word [rax + rax]
xor edx, edx
mov eax, ecx
inc rdi
div r9d
movzx eax, byte [rdx + r8]
mov byte [rdi - 1], cl
inc ecx
cmp ecx, 0xff
mov byte [rdi + 0xff], al
jle 0x14000a2c0
xor r9b, r9b
mov r8d, pe_nt_image_headers64
nop dword [rax + rax]
movzx edi, byte [r10]
movzx eax, byte [r10 + 0x100]
movzx ecx, r9b
add eax, edi
inc r10
add eax, ecx
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
sub r8, 1
movzx edx, al
mov r9d, eax
movzx ecx, byte [rdx + r11 + 0x40]
mov byte [r10 - 1], cl
mov byte [rdx + r11 + 0x40], dil
jne 0x14000a2f0
mov rdi, qword [rsp + 8]
ret

Function at 0x14000a340
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, r8d
mov r13, rcx
mov rdi, r9
lea eax, [rbp + 1]
mov r12, rdx
mov ecx, eax
mov ebx, eax
call fcn.14000b3f8
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140023340
mov rdx, rdi
mov rcx, r13
call fcn.14000a290
xor bl, bl
xor dil, dil
test ebp, ebp
je 0x14000a412
mov r10, rsi
sub r12, rsi
mov r11, rbp
nop dword [rax]
movzx eax, bl
inc r10
inc eax
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
movzx r9d, al
mov ebx, eax
movzx eax, dil
movzx r8d, byte [r9 + r13 + 0x40]
add eax, r8d
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
movzx edx, al
mov edi, eax
movzx ecx, byte [rdx + r13 + 0x40]
mov byte [r9 + r13 + 0x40], cl
mov byte [rdx + r13 + 0x40], r8b
movzx eax, byte [r9 + r13 + 0x40]
add eax, r8d
cdq
movzx edx, dl
add eax, edx
movzx eax, al
sub eax, edx
movsxd rcx, eax
movzx eax, byte [rcx + r13 + 0x40]
xor al, byte [r12 + r10 - 1]
sub r11, 1
mov byte [r10 - 1], al
jne 0x14000a3a0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14000e088
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14001db34
mov rsi, rax
test rax, rax
je 0x14000e104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000e0ff
cmp dword [rbx], 0x40
jb 0x14000e0ff
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000e0ff
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000e108
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400171c8
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x14004b200]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov eax, r8d
mov rsi, rdx
mov rbx, rcx
cmp r8d, 0x800
jne 0x14001723a
lea r8, [0x14003a048]
lea rcx, [rsp + 0xa0]
mov edx, 4
call fcn.140022470
test eax, eax
je 0x14001725c
cmp eax, 0xc
je 0x140017234
cmp eax, 0x16
je 0x14001722e
cmp eax, 0x22
je 0x14001722e
cmp eax, 0x50
je 0x14001725c
call fcn.14000bfd8
int3
call fcn.14000bfd8
int3
call fcn.14000bf90
int3
mov r9d, 4
lea r8, [rsp + 0xa0]
mov ecx, eax
lea edx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14001737f
call fcn.140023270
mov edi, dword [rax]
call fcn.140023270
lea rcx, [rsp + 0xb0]
and dword [rax], 0
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov esi, 0x112
lea r8d, [rsi - 1]
mov rdx, rsi
call fcn.140023204
mov ebx, eax
call fcn.140023270
cmp dword [rax], 0
je 0x1400172e4
call fcn.140023270
cmp dword [rax], 0
je 0x1400172eb
cmp dword [rax], 0xc
je 0x1400172d9
cmp dword [rax], 0x16
je 0x1400172ce
cmp dword [rax], 0x22
je 0x1400172ce
cmp dword [rax], 0x50
je 0x1400172eb
mov ecx, 0x80004005
call fcn.140002350
int3
mov ecx, 0x80070057
call fcn.140002350
int3
mov ecx, 0x8007000e
call fcn.140002350
int3
call fcn.140023270
mov dword [rax], edi
cmp ebx, 0xffffffff
je 0x14001737f
cmp ebx, esi
jae 0x14001737f
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
mov rbx, rax
mov dword [rsp + 0x30], 0x70
call fcn.140023340
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001736a
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001736a
lea rcx, [rsp + 0x30]
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x20], rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call rax
mov rcx, rbx
test eax, eax
jne 0x140017372
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140017381
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400216a0
add rsp, 0x2f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400214a8
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140021531
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x1400214f3
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140021541
mov ecx, 0x20b
cmp word [rax + 0x18], cx
je 0x140021509
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140021541
cmp dword [rax + 0x84], 0xe
ja 0x14002151d
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140021541
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x140021541
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x140000000]
mov ecx, 1
call fcn.1400254ac
test eax, eax
jne 0x140021571
cmp dword [0x140050870], 1
jne 0x14002155d
call fcn.14002472c
mov ecx, 0x1c
call fcn.140024504
mov ecx, 0xff
call fcn.1400220b0
call fcn.140025428
test eax, eax
jne 0x14002159c
cmp dword [0x140050870], 1
jne 0x140021588
call fcn.14002472c
mov ecx, 0x10
call fcn.140024504
mov ecx, 0xff
call fcn.1400220b0
call fcn.1400250e0
nop
call fcn.140024df0
test eax, eax
jns 0x1400215b5
mov ecx, 0x1b
call fcn.140022044
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x140052c48], rax
call fcn.140024d5c
mov qword [0x140050868], rax
call fcn.140024c6c
test eax, eax
jns 0x1400215e0
mov ecx, 8
call fcn.140022044
call fcn.14002499c
test eax, eax
jns 0x1400215f3
mov ecx, 9
call fcn.140022044
mov ecx, 1
call fcn.140022150
test eax, eax
je 0x140021608
mov ecx, eax
call fcn.140022044
call fcn.140024940
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.140003270
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x14002163f
mov ecx, eax
call fcn.14002238c
call fcn.1400223a4
jmp 0x140021660
mov eax, edi
jmp 0x140021669
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.1400254f8
add rsp, 0x28
jmp 0x1400214a8
Function at 0x14002238c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140028760
nop
cmp dword [0x1400508c8], 1
je 0x140022338
mov dword [0x1400508c4], 1
mov byte [0x1400508c0], r12b
test ebx, ebx
jne 0x140022324
mov rcx, qword [0x140052c30]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140022311
mov rcx, qword [0x140052c28]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400222b0
call fcn.140025158
cmp qword [rdi], rax
jne 0x1400222b0
jmp 0x140022296
cmp rdi, rsi
jb 0x140022311
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140025158
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140052c30]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140052c28]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400222ef
cmp r13, rax
je 0x14002230f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140022296
lea rdx, [0x140037a28]
lea rcx, [0x140037a10]
call fcn.1400220e0
lea rdx, [0x140037a38]
lea rcx, [0x140037a30]
call fcn.1400220e0
nop
test r12d, r12d
je 0x140022347
mov ecx, 8
call fcn.140028660
test r12d, r12d
jne 0x140022372
mov dword [0x1400508c8], 1
lea ecx, [r12 + 8]
call fcn.140028660
mov ecx, r15d
call fcn.140022074
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140022200

Function at 0x140022398
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140022200
Function at 0x140025653
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14004b200]
jne 0x1400216ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400216b6
repz ret
ror rcx, 0x10
jmp 0x1400255ac
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140050eb0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140050fa8]
mov qword [rsp + 0x58], r11
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 0x140025631
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, [0x140050eb0]
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 0x140025653
mov rax, qword [rsp + 0x88]
mov qword [0x140050fa8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140050f48], rax
mov rax, qword [0x140050fa8]
mov qword [0x140050e20], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140050f30], rax
mov dword [0x140050e10], 0xc0000409
mov dword [0x140050e14], 1
mov rax, qword [0x14004b200]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14004b208]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140050ea8], eax
mov ecx, 1
call fcn.14002c58c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003c3a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140050ea8], 0
jne 0x1400256da
mov ecx, 1
call fcn.14002c58c
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 0x14002c0b8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140025158
xor ebx, ebx
mov rdi, rax
cmp qword [0x140051750], rbx
jne 0x14002c1be
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002c293
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002c293
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14003c510]
mov rcx, rsi
mov qword [0x140051750], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14003c4f8]
mov rcx, rsi
mov qword [0x140051758], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140051760], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140051770], rax
test rax, rax
je 0x14002c1b5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140051768], rax
jmp 0x14002c1c5
mov rax, qword [0x140051768]
jmp 0x14002c1cc
mov rax, qword [0x140051768]
mov r11, qword [0x140051770]
cmp rax, rdi
je 0x14002c234
cmp r11, rdi
je 0x14002c234
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140051770]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002c234
test rax, rax
je 0x14002c234
call rsi
test rax, rax
je 0x14002c22e
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002c22e
test byte [rsp + 0x38], 1
jne 0x14002c234
bts ebp, 0x15
jmp 0x14002c272
mov rcx, qword [0x140051758]
cmp rcx, rdi
je 0x14002c272
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002c272
call rax
mov rbx, rax
test rax, rax
je 0x14002c272
mov rcx, qword [0x140051760]
cmp rcx, rdi
je 0x14002c272
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002c272
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140051750]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002c293
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002c295
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret