joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401761e0
Capabilities:
Query service status

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0
movups xmmword [rdx], xmm0
xor eax, eax
mov r8, rdx
movups xmmword [rdx + 0x10], xmm0
mov dword [rdx + 0x20], eax
mov r9d, 0x24
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140176221
xor eax, eax
add rsp, 0x38
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x140176245
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x38
jmp sym.SystemInformer.exe_Ordinal_1343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x38
jmp sym.SystemInformer.exe_Ordinal_1343

Function at 0x1401763c0
Capabilities:
Continue service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x20]
mov edx, 3
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1401763fe
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x58
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x140176415
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x14017641b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1343
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x58
ret

Function at 0x140176440
Capabilities:
Pause service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x20]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14017647e
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x58
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x140176495
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x14017649b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1343
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x58
ret

Function at 0x1401764c0
Capabilities:
Delete service

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1401764d5
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x1401764f5
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_Ordinal_1343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_Ordinal_1343

Function at 0x140176510
Capabilities:
Start service

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140176525
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x140176545
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_Ordinal_1343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_Ordinal_1343
Function at 0x140176560
Capabilities:
Stop service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14017659e
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x58
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x1401765b5
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x1401765bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.SystemInformer.exe_Ordinal_1343
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x58
ret
Function at 0x14017ea20
Capabilities:
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0x90
xor ebp, ebp
mov rdi, r8
mov r8d, 0x100081
test dl, dl
je 0x14017ea67
mov dword [rax - 0x68], 0x60
mov rdx, rcx
mov dword [rax - 0x70], 1
lea rcx, [rax + 0x20]
mov r9d, 0x80
mov dword [rax - 0x78], 5
call sym.SystemInformer.exe_Ordinal_1467
jmp 0x14017eaa5
mov rdx, qword ds:[rcx + 8]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0xb8]
mov dword [rsp + 0x38], 0x60
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_Ordinal_1469
test eax, eax
jns 0x14017eabd
lfence
mov rbp, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
cmp dword [0x1402bbf68], 0x3e
lea r8, [rsp + 0x60]
mov eax, 0x11000000
mov qword [rsp + 0xa0], rbx
mov ecx, 0x1000000
mov qword [rsp + 0xa8], rsi
mov rsi, qword [rsp + 0xb8]
cmovb eax, ecx
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0xb8]
xorps xmm0, xmm0
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 5
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x70], rbp
movdqu xmmword [rsp + 0x80], xmm0
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x14017ebd5
cmp dword [0x1402bbf68], 0x67
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
mov eax, 0x40000
mov dword [rsp + 0x48], 2
cmovb eax, ebp
mov dword [rsp + 0x40], eax
xor r9d, r9d
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword [rsp + 0xb8]
mov ebx, ebp
cmp eax, 0x40000003
cmovne ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
js 0x14017ebd5
test rdi, rdi
je 0x14017ebd5
mov rdx, qword [rsp + 0x50]
or rdx, 2
mov qword [rdi], rdx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xa8]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14017ece0
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x10000
jae 0x14017ecf4
movzx r8d, dx
xor edx, edx
jmp 0x14017fd40
xor r8d, r8d
jmp 0x14017fd40
mov qword ss:[rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, rcx
mov r9, rcx
and rax, 0xfffffffffffffff1
movzx ebx, r8w
mov rdi, rdx
xorps xmm1, xmm1
and ecx, 0xf
je 0x14017fd82
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
je 0x14017fd7e
mov eax, ecx
shr rax, 1
jmp 0x14017fdc3
add rax, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
jne 0x14017fdb5
nop dword [rax]
nop word [rax + rax]
add rax, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
je 0x14017fda0
sub rax, r9
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
add rax, rax
mov qword [rsp + 0x28], r9
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14017f8a0
test rax, rax
jne 0x14017fdea
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14017fae0

Function at 0x14017f120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0xa0]
mov rdi, r9
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x28]
mov qword [rsp + 0x40], rdx
mov r8d, 3
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x48], 0
mov rsi, rcx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x14017f1b1
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x14017f1b1
test rdi, rdi
je 0x14017f19c
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
nop dword [rax]
test rbx, rbx
je 0x14017f1ad
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov al, 1
jmp 0x14017f1b3
xor al, al
mov rcx, qword ds:[rsp + 0x50]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x14017f1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
sub rsp, 0x68
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0xa0]
lea r9, [rsp + 0x28]
mov qword [rsp + 0x38], r8
mov rbx, rcx
mov qword [rsp + 0x40], rdx
mov r8d, 3
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x48], 0
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x14017f2a2
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x14017f2a2
mov qword [rsp + 0x98], rbp
mov rbp, qword [rsp + 0x30]
test rsi, rsi
je 0x14017f296
mov rcx, qword [0x1402c6140]
mov edx, 4
mov qword [rsp + 0x60], rdi
mov edi, dword [rsp + 0x20]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.14020c7e0
mov rdi, qword [rsp + 0x60]
mov qword [rsi], rbx
mov rbp, qword [rsp + 0x98]
mov al, 1
jmp 0x14017f2a4
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x68
pop rsi
pop rbx
ret
Function at 0x14017f720
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x10
mov rax, qword [r9]
cmp rax, r9
je 0x14017f77e
test rbx, rbx
je 0x14017f7a8
nop
cmp qword [rax + 0x30], rbx
je 0x14017f7a8
mov rax, qword [rax]
cmp rax, r9
jne 0x14017f770
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
test rax, rax
je 0x14017f77e
movzx ecx, word [rax + 0x48]
xor ebp, ebp
test cx, cx
jne 0x14017f7c2
call sym.SystemInformer.exe_Ordinal_1430
mov rbx, rax
jmp 0x14017f80a
mov rdx, qword [0x1402c5ff0]
mov rdi, rcx
add rcx, 0x12
mov qword [rsp + 0x40], rsi
mov rsi, qword [rax + 0x50]
call sym.SystemInformer.exe_Ordinal_1240
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], bp
test rsi, rsi
je 0x14017f805
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020c7e0
mov rsi, qword [rsp + 0x40]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
je 0x14017f798
mov rcx, rbx
call sym.SystemInformer.exe_Ordinal_1509
mov rdi, rax
lea rcx, [rbx - 0x10]
mov edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14017f852
call fcn.140143da0
test r14, r14
je 0x14017f874
mov edx, 0x5c
xor r8d, r8d
mov rcx, rdi
call sym.SystemInformer.exe_Ordinal_1369
cmp rax, 0xffffffffffffffff
lea ecx, [rax + 1]
cmove ecx, ebp
mov dword [r14], ecx
mov rbx, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14017f8a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push r15
sub rsp, 0x38
mov rax, qword gs:[0x30]
mov qword [rsp + 0x28], r13
mov r13, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x1402bbf68], 0x3e
jb 0x14017f96e
nop dword [rax + rax]
test r13, r13
je 0x14017f96e
mov rax, qword [r13]
xor ebx, ebx
mov r8d, ebx
test rax, rax
je 0x14017f934
mov r9, qword [r13 + 8]
shr rax, 1
lea r10, [r9 + rax*2]
cmp r9, r10
je 0x14017f934
nop word [rax + rax]
movzx edx, word [r9]
lea eax, [rdx - 0x61]
cmp ax, 0x19
lea ecx, [rdx - 0x20]
cmova ecx, edx
imul r8d, r8d, 0x1003f
add r9, 2
add r8d, ecx
cmp r9, r10
jne 0x14017f910
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
mov r15, qword [rax]
cmp r15, rax
je 0x14017f966
cmp dword [r15 + 0x108], r8d
je 0x14017fa84
mov r15, qword [r15]
cmp r15, rax
jne 0x14017f951
mov r15, rbx
jmp 0x14017fa84
mov rax, qword gs:[0x30]
xor ebx, ebx
mov qword [rsp + 0x30], r12
mov r15d, ebx
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
mov qword [rsp + 0x50], rax
mov r12, qword [rax]
cmp r12, rax
je 0x14017fa7f
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], r14
movzx eax, word ds:[r12 + 0x58]
mov rbx, qword [r12 + 0x60]
test r13, r13
je 0x14017fa66
mov rsi, qword [r13]
cmp rax, rsi
jb 0x14017fac9
mov r14, qword [r13 + 8]
mov rcx, rsi
shr rcx, 4
test rcx, rcx
je 0x14017fa1a
nop word [rax + rax]
movdqu xmm1, xmmword [r14]
movdqu xmm0, xmmword [rbx]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x14017fab7
add rbx, 0x10
add r14, 0x10
sub rcx, 1
jne 0x14017f9f0
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x14017fa66
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx ebp, word [r14 + rbx]
cmp cx, bp
je 0x14017fa57
nop dword [rax]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, bp
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x14017fac9
add rbx, 2
sub rsi, 1
jne 0x14017fa30
mov r15, r12
mov rbp, qword [rsp + 0x58]
xor ebx, ebx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x30]
mov r13, qword [rsp + 0x28]
test r15, r15
je 0x14017fa92
mov rbx, qword [r15 + 0x30]
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rax, rbx
add rsp, 0x38
pop r15
pop rbx
ret
and esi, 0xf
shl rcx, 4
add rsi, rcx
shr rsi, 1
jmp 0x14017fa20
mov r12, qword [r12]
cmp r12, qword [rsp + 0x50]
jne 0x14017f9b2
jmp 0x14017fa69
Function at 0x14017fae0
Capabilities:
Parse pe header

Disassembly:
mov qword ss:[rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov eax, 0x5a4d
movzx r9d, r8w
mov r10, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x14017fd21
mov ecx, dword [rcx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14017fd21
cmp dword [rdi + rcx], 0x4550
lea rbx, [rdi + rcx]
jne 0x14017fd21
lea rdx, [rbx + 0x88]
mov eax, dword [rdx]
test eax, eax
je 0x14017fd21
cmp dword [rdx + 4], 0
je 0x14017fd21
mov word ss:[rsp + 0x20], r9w
lea r8, [rdi + rax]
mov r9, r10
mov qword [rsp + 0x58], rsi
mov rcx, rdi
call fcn.14017fe20
cmp dword [0x1402bbf68], 0x64
mov rsi, rax
jb 0x14017fd0d
call fcn.140173020
nop word [rax + rax]
test rax, rax
je 0x14017fd0d
call fcn.140173020
call qword [case.0x14013f76a.0]
test al, al
je 0x14017fd0d
mov eax, dword [rbx + 0xd8]
test eax, eax
je 0x14017fd0d
cmp dword [rbx + 0xdc], 0
je 0x14017fd0d
mov ecx, dword [rdi + rax]
lea rdx, [rdi + rax]
add rcx, rdx
lea rax, [rdx + 0x94]
cmp rax, rcx
ja 0x14017fd0d
mov eax, dword ds:[rdx + 0x90]
shr eax, 0xe
test al, 1
je 0x14017fd0d
mov qword [rsp + 0x50], rbp
xor ebp, ebp
cmp byte [0x1402c6459], bpl
jne 0x14017fca3
mov rdx, qword [0x1402c5fd8]
mov ecx, 0x48
mov byte [0x1402c6459], 1
call sym.SystemInformer.exe_Ordinal_1240
mov rcx, qword [0x1402c6140]
mov rdi, rax
mov edx, 4
mov r8d, 0x40
mov dword [rax], 0x10
lea rax, [0x140149d50]
mov qword [rdi + 8], rax
lea rax, [0x140149d60]
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x18], 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rdi + 0x18]
mov edx, 0xff
shl r8, 2
mov rcx, rax
mov qword [rdi + 0x20], rax
call fcn.14020c410
mov r8d, dword [rdi + 0x18]
mov edx, 4
mov rcx, qword [0x1402c6140]
mov dword [rdi + 0x28], r8d
shl r8, 5
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rdi + 0x30], rax
mov dword [rdi + 0x38], ebp
mov dword [rdi + 0x3c], 0xffffffff
mov dword [rdi + 0x40], ebp
mov qword [0x1402c98c8], rdi
jmp 0x14017fcaa
mov rdi, qword [0x1402c98c8]
test rdi, rdi
je 0x14017fd08
lea rdx, ds:[rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov rcx, rdi
call sym.SystemInformer.exe_Ordinal_1365
test rax, rax
lea rcx, [rax + 8]
cmove rcx, rbp
test rcx, rcx
jne 0x14017fd08
lfence
mov rdx, rsi
call fcn.140170780
test eax, eax
js 0x14017fd08
mov rcx, qword [0x1402c98c8]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 1
call sym.SystemInformer.exe_Ordinal_1269
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x14017fd40
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x10000
jae 0x14017ecf4
movzx r8d, dx
xor edx, edx
jmp 0x14017fd40
xor r8d, r8d
jmp 0x14017fd40
mov qword ss:[rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, rcx
mov r9, rcx
and rax, 0xfffffffffffffff1
movzx ebx, r8w
mov rdi, rdx
xorps xmm1, xmm1
and ecx, 0xf
je 0x14017fd82
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
je 0x14017fd7e
mov eax, ecx
shr rax, 1
jmp 0x14017fdc3
add rax, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
jne 0x14017fdb5
nop dword [rax]
nop word [rax + rax]
add rax, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rax]
pmovmskb ecx, xmm0
bsf edx, ecx
je 0x14017fda0
sub rax, r9
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
add rax, rax
mov qword [rsp + 0x28], r9
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14017f8a0
test rax, rax
jne 0x14017fdea
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14017fae0
Function at 0x1401807a0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r12
push r13
push r14
sub rsp, 0x48
mov eax, 0x5a4d
mov r12, r9
mov r14, r8
mov r13, rdx
mov rbp, rcx
cmp word [rcx], ax
je 0x1401807d9
mov eax, 0xc000012f
lfence
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, dword ds:[rcx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140180991
cmp dword [rcx + rbp], 0x4550
mov eax, ecx
jne 0x140180991
mov ecx, dword [rcx + rbp + 0x90]
test ecx, ecx
je 0x14018097d
cmp dword [rax + rbp + 0x94], 0
je 0x14018097d
mov qword [rsp + 0x80], rsi
lea rsi, [rbp + 0xc]
add rsi, rcx
mov qword [rsp + 0x40], r15
mov r15d, 0xc0000001
cmp dword [rsi], 0
je 0x140180961
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov eax, dword [rsi - 0xc]
test eax, eax
je 0x140180954
mov ecx, dword [rsi]
lea rdi, [rax + rbp]
mov ebx, dword [rsi + 4]
add rcx, rbp
mov rdx, r13
add rbx, rbp
call fcn.1401f3b18
test eax, eax
jne 0x140180947
mov rax, qword ds:[rdi]
test rax, rax
je 0x140180947
mov qword [rsp + 0x90], 8
sub rdi, rbx
mov dword [rsp + 0x70], 0
mov rcx, rax
mov qword [rsp + 0x30], rbx
test rax, rax
js 0x1401808d7
lea rax, [rbp + 2]
mov r8, r14
add rax, rcx
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1401808d3
inc rax
test ecx, ecx
jne 0x1401808c0
test edx, edx
je 0x1401808ea
mov rax, qword [rdi + rbx + 8]
add rbx, 8
mov rcx, rax
test rax, rax
jne 0x1401808a3
jmp 0x140180947
lea rax, [rsp + 0x70]
mov r9d, 4
lea r8, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov r15d, eax
test eax, eax
js 0x140180947
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov qword [rbx], r12
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
add rsi, 0x14
cmp dword [rsi], 0
jne 0x140180850
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov eax, r15d
mov r15, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0xc0000020
lfence
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0xc000007b
lfence
add rsp, 0x48
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401828c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov qword [rsp + 0x40], r8
mov edi, r9d
mov qword [rsp + 0x38], 4
mov rbp, rcx
lea r9, [rsp + 0x28]
xor ebx, ebx
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbx
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140182940
lfence
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140182940
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov rbx, rax
cmp edi, 0xffffffff
je 0x140182952
mov edx, edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
jmp 0x140182955
mov rax, rbx
mov rdx, rax
mov rcx, rbp
call fcn.140182600
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140185860
Capabilities:
Map section object

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov dword [rsp + 0x48], 2
lea rax, [r11 + 0x20]
mov rbx, rdx
mov qword [r11 + 0x20], 1
xor edx, edx
lea r8, [r11 + 0x18]
mov dword [rsp + 0x40], edx
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x38], rdx
mov qword [r11 + 0x18], rdx
mov rdx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jns 0x1401858be
lfence
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rsp + 0x70]
mov r8, rbx
mov rcx, 0xffffffffffffffff
call sym.SystemInformer.exe_Ordinal_1535
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140189120
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov ebx, edx
mov r13, rcx
mov r15d, edx
mov rdx, qword [0x1402c5f90]
mov edi, r8d
lea rcx, [rbx*8]
call sym.SystemInformer.exe_Ordinal_1240
mov rcx, rax
call sym.SystemInformer.exe_Ordinal_1238
mov r12, rax
test ebx, ebx
je 0x1401892ad
mov qword [rsp + 0x50], rbp
mov ebp, edi
mov qword [rsp + 0x60], r14
mov r14, rax
shl rbp, 3
mov qword [rsp + 0x58], rsi
nop word [rax + rax]
mov rdx, qword [0x1402c5f90]
mov rcx, rbp
call sym.SystemInformer.exe_Ordinal_1240
cmp dword [0x1402bbf68], 0xffffffff
mov rdi, rax
mov ecx, dword [0x1402c8d98]
jae 0x1401891bd
cmp ecx, 0x40
jae 0x1401891bd
lfence
mov rax, qword gs:[0x30]
mov rbx, qword [rax + rcx*8 + 0x1480]
jmp 0x1401891c9
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
je 0x140189280
mov eax, dword [rbx]
cmp eax, 0x40
jae 0x1401891e5
mov qword [rbx + rax*8 + 8], rdi
inc dword [rbx]
jmp 0x140189280
mov rcx, qword [rbx + 0x210]
mov rsi, qword [0x1402c6140]
test rcx, rcx
jne 0x140189220
mov edx, 4
mov dword [rbx + 0x20c], 0x40
mov r8d, 0x200
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x20c]
cmp dword [rbx + 0x208], eax
jne 0x140189270
add eax, eax
mov edx, 4
mov r8d, eax
shl r8, 3
mov dword [rbx + 0x20c], eax
test rcx, rcx
je 0x140189258
mov r9, r8
mov r8, rcx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x140189266
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov qword [rcx + rax*8], rdi
inc dword [rbx + 0x208]
mov r8, rbp
mov qword [r14], rdi
xor edx, edx
mov rcx, rdi
call fcn.14020c410
add r14, 8
sub r15, 1
jne 0x140189180
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov qword [r13], r12
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret