joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015ec0
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 esi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x48], rbx
mov eax, dword [0x1801359fc]
test eax, eax
je 0x180015efc
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1801359fc]
test eax, eax
jne 0x180015f09
call fcn.18000e570
test eax, eax
je 0x180015f1f
lea rdx, [rsp + 0x48]
mov rcx, qword [0x180131720]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180015f23
xor eax, eax
jmp 0x180015f81
mov rax, qword [0x180135af8]
test rax, rax
jne 0x180015f47
lea rcx, str._TrackMouseEvent
call fcn.180015e00
mov qword [0x180135af8], rax
test rax, rax
je 0x180015f52
mov rcx, rdi
call rax
mov esi, eax
mov dword [rsp + 0x20], eax
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x180015f66
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 0x180015f7f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180016100
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x20
mov r12, r8
mov r14, rdx
mov rbx, rcx
test rdx, rdx
jne 0x180016127
mov eax, 0x80070057
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
test r8, r8
je 0x180016118
mov rax, qword [rcx]
mov qword [rsp + 0x48], rsi
test rax, rax
je 0x1800161d4
movsxd rsi, dword [rcx + 8]
test esi, esi
jle 0x1800161d4
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r13
movzx r13d, byte [rax + 0x1f]
mov rcx, rsi
or r13b, byte [rax]
and r13b, byte [rax + 0x10]
call fcn.180036df8
mov rdi, rax
test rax, rax
jne 0x180016197
mov eax, 0x8007000e
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180037390
xor r8d, r8d
test esi, esi
jle 0x1800161c9
nop dword [rax + rax]
mov rcx, qword [rbx]
inc r8
movzx edx, byte [r8 + rcx - 1]
xor dl, r13b
cmp r8, rsi
mov byte [r8 + rdi - 1], dl
jl 0x1800161b0
mov qword [r14], rdi
mov dword [r12], esi
xor eax, eax
jmp 0x180016179
or eax, 0xffffffff
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
Function at 0x1800185f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
movzx esi, dl
movzx ebp, cl
mov ecx, 0x14
shr esi, 1
and esi, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x11
mov r12w, ax
and r12d, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
test al, al
js 0x180018659
mov ecx, reloc.OLEAUT32.dll_RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x180018659
mov ecx, reloc.OLEAUT32.dll_QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
test al, al
jns 0x18001865e
mov edi, 1
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
and r11d, 1
cmp edi, 1
jne 0x18001867d
xor al, al
jmp 0x180018744
lea r8, str.S....O1111P2222Q3333K4444L5555M6666G7777H8888I9999R0000
mov ecx, ebx
movzx r9d, bpl
mov rdx, r8
nop dword [rax]
movsx eax, byte [rdx]
cmp r9d, eax
je 0x180018721
inc ecx
add rdx, 5
cmp ecx, 0xb
jb 0x180018690
lea r10, [0x1800f42d0]
movsxd r8, esi
movsxd rcx, r12d
mov rdx, r10
movsx eax, byte [rdx]
cmp r9d, eax
jne 0x1800186eb
test esi, esi
jne 0x1800186db
test r12d, r12d
je 0x1800186fa
cmp rcx, 1
jne 0x1800186eb
lea rcx, [rbx + rbx*4]
mov eax, ebx
mov al, byte [rcx + r10 + 3]
jmp 0x180018744
cmp r8, 1
jne 0x1800186eb
test r12d, r12d
je 0x180018714
cmp rcx, r8
je 0x180018707
inc ebx
add rdx, 5
cmp ebx, 0x36
jb 0x1800186b7
xor al, al
jmp 0x180018744
lea rcx, [rbx + rbx*4]
mov eax, ebx
mov al, byte [rcx + r10 + 1]
jmp 0x180018744
lea rcx, [rbx + rbx*4]
mov eax, ebx
mov al, byte [rcx + r10 + 4]
jmp 0x180018744
lea rcx, [rbx + rbx*4]
mov eax, ebx
mov al, byte [rcx + r10 + 2]
jmp 0x180018744
test r11d, r11d
je 0x180018676
cmp r11d, 1
jne 0x180018739
cmp esi, r11d
je 0x180018676
mov eax, ecx
lea rcx, [rax + rax*4]
mov al, byte [rcx + r8 + 1]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18001a1f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edx, dx
mov rbp, r9
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x18001a252
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x18001a23f
test eax, eax
jle 0x18001a2c8
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x18001a2c8
test eax, eax
jle 0x18001a2c8
movzx ebx, ax
or ebx, 0x80070000
jmp 0x18001a2c8
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x18001a21b
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x18001a2a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x18001a295
test eax, eax
jle 0x18001a2ba
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x18001a2ba
test eax, eax
jle 0x18001a2ba
movzx ebx, ax
or ebx, 0x80070000
jmp 0x18001a2ba
mov r8, rbp
mov edx, ebx
mov rcx, rax
call fcn.18001a090
mov ebx, eax
xor eax, eax
test ebx, ebx
cmovns ebx, eax
test rdi, rdi
je 0x18001a2c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001a6a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov rax, rcx
mov ecx, 0x5a4d
mov rbx, r9
mov r11, r8
mov r10d, edx
cmp word [rax], cx
jne 0x18001a76c
cmp dword [rax + 0x3c], 0x200
jge 0x18001a76c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x18001a76c
test byte [rcx + rax + 0x16], 2
je 0x18001a76c
movzx edx, word [rcx + rax + 0x18]
mov r8d, 0x10b
cmp dx, r8w
jne 0x18001a703
lea r8, [rcx + rax + 0x98]
jmp 0x18001a717
mov r8d, 0x20b
cmp dx, r8w
jne 0x18001a76c
lea r8, [rcx + rax + 0xa8]
mov edx, dword [r8]
lea r9, [rcx + rax + 0x58]
add rdx, rax
cmp rdx, rax
jne 0x18001a732
mov eax, 0x800b0100
mov rbx, qword [rsp + 8]
ret
sub edx, eax
cmp edx, r10d
jae 0x18001a76c
sub r9d, eax
sub r8d, eax
mov dword [r11], 0
lea ecx, [r9 + 4]
mov dword [r11 + 0x14], edx
mov dword [r11 + 4], r9d
mov dword [r11 + 8], ecx
lea ecx, [r8 + 8]
mov dword [r11 + 0xc], r8d
mov dword [r11 + 0x10], ecx
mov dword [rbx], edx
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov rbx, qword [rsp + 8]
mov eax, 0x8007000d
ret
Function at 0x18001ae40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx + 0x1c]
mov rbx, rcx
cmp ax, 0x37
movsx rax, ax
mov byte [rax + rcx + 0x1e], pe_nt_image_headers64
jle 0x18001aeb7
inc word [rcx + 0x1c]
movzx eax, word [rcx + 0x1c]
cmp ax, 0x40
jge 0x18001ae87
nop word [rax + rax]
movsx rax, ax
mov byte [rax + rcx + 0x1e], 0
inc word [rcx + 0x1c]
mov ax, word [rcx + 0x1c]
cmp ax, 0x40
jl 0x18001ae70
call fcn.18001a940
cmp word [rbx + 0x1c], 0x38
jge 0x18001aee7
nop word [rax + rax]
movsx rax, word [rbx + 0x1c]
mov byte [rax + rbx + 0x1e], 0
inc word [rbx + 0x1c]
cmp word [rbx + 0x1c], 0x38
jl 0x18001aea0
jmp 0x18001aee7
inc word [rcx + 0x1c]
movzx eax, word [rcx + 0x1c]
cmp ax, 0x38
jge 0x18001aee7
nop word [rax + rax]
movsx rax, ax
mov byte [rax + rcx + 0x1e], 0
inc word [rcx + 0x1c]
mov ax, word [rcx + 0x1c]
cmp ax, 0x38
jl 0x18001aed0
mov ecx, dword [rbx + 0x18]
mov eax, ecx
shr eax, 0x18
mov byte [rbx + 0x56], al
mov eax, ecx
shr ecx, 8
shr eax, 0x10
mov byte [rbx + 0x58], cl
mov ecx, dword [rbx + 0x14]
mov byte [rbx + 0x57], al
movzx eax, byte [rbx + 0x18]
mov byte [rbx + 0x59], al
mov eax, ecx
shr eax, 0x18
mov byte [rbx + 0x5a], al
mov eax, ecx
shr ecx, 8
shr eax, 0x10
mov byte [rbx + 0x5c], cl
mov rcx, rbx
mov byte [rbx + 0x5b], al
movzx eax, byte [rbx + 0x14]
mov byte [rbx + 0x5d], al
add rsp, 0x20
pop rbx
jmp fcn.18001a940
Function at 0x18001e990
Capabilities:
Hash data using sha384

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x18010db20]
xor rax, rsp
mov qword [rsp + 0x100], rax
test r8, r8
movabs rax, 0xcbbb9d5dc1059ed8
lea rdi, [0x180131e68]
mov qword [rsp + 0x20], rax
cmovne rdi, r8
movabs rax, 0x629a292a367cd507
mov qword [rsp + 0x28], rax
movabs rax, 0x9159015a3070dd17
mov r8, rdx
mov qword [rsp + 0x30], rax
movabs rax, 0x152fecd8f70e5939
mov rdx, rcx
mov qword [rsp + 0x38], rax
movabs rax, 0x67332667ffc00b31
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x8eb44a8768581511
mov qword [rsp + 0x48], rax
movabs rax, 0xdb0c2e0d64f98fa7
mov qword [rsp + 0x50], rax
movabs rax, 0x47b5481dbefa4fa4
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [r11 - 0x28], eax
mov dword [r11 - 0x24], 0x30
call fcn.18001c9f0
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18001c440
movzx ebx, byte [0x180131e60]
lea r11, [rsp + 0x20]
mov ecx, 0xd8
nop dword [rax]
mov byte [r11], bl
inc r11
mov rax, r11
and eax, 0xf
sub rcx, 1
lea rbx, [rbx + rax + 0x11]
jne 0x18001ea80
lea rcx, [rsp + 0x20]
movzx edx, bl
mov r8d, 0xd8
call fcn.1800378e8
test rax, rax
je 0x18001eabc
lea rcx, [rbx + rax + 0x3f]
mov byte [0x180131e60], cl
jmp 0x18001eac2
mov byte [0x180131e60], bl
mov rax, rdi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180037360
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
ret

Function at 0x18001eaf0
Capabilities:
Hash data using sha512

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x18010db20]
xor rax, rsp
mov qword [rsp + 0x100], rax
test r8, r8
movabs rax, 0x6a09e667f3bcc908
lea rdi, [0x180131ea0]
mov qword [rsp + 0x20], rax
cmovne rdi, r8
movabs rax, 0xbb67ae8584caa73b
mov qword [rsp + 0x28], rax
movabs rax, 0x3c6ef372fe94f82b
mov r8, rdx
mov qword [rsp + 0x30], rax
movabs rax, 0xa54ff53a5f1d36f1
mov rdx, rcx
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [r11 - 0x28], eax
mov dword [r11 - 0x24], 0x40
call fcn.18001c9f0
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.18001c440
movzx ebx, byte [0x180131e60]
lea r11, [rsp + 0x20]
mov ecx, 0xd8
nop dword [rax]
mov byte [r11], bl
inc r11
mov rax, r11
and eax, 0xf
sub rcx, 1
lea rbx, [rbx + rax + 0x11]
jne 0x18001ebe0
lea rcx, [rsp + 0x20]
movzx edx, bl
mov r8d, 0xd8
call fcn.1800378e8
test rax, rax
je 0x18001ec1c
lea rcx, [rbx + rax + 0x3f]
mov byte [0x180131e60], cl
jmp 0x18001ec22
mov byte [0x180131e60], bl
mov rax, rdi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180037360
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
ret
Function at 0x180020690
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x18010db20]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov rbx, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x84], eax
call fcn.18001e580
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.18001e4c0
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180037360
add rsp, 0xa0
pop rbx
ret

Function at 0x180020730
Capabilities:
Hash data using sha224

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
test r8, r8
mov rbx, rdx
mov rdi, rcx
lea rsi, [0x180131ee0]
lea rcx, [rsp + 0x20]
cmovne rsi, r8
xor edx, edx
lea r8d, [rdx + 0x70]
call fcn.180037390
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
mov dword [rsp + 0x20], 0xc1059ed8
mov dword [rsp + 0x24], 0x367cd507
mov dword [rsp + 0x28], 0x3070dd17
mov dword [rsp + 0x2c], 0xf70e5939
mov dword [rsp + 0x30], 0xffc00b31
mov dword [rsp + 0x34], 0x68581511
mov dword [rsp + 0x38], 0x64f98fa7
mov dword [rsp + 0x3c], 0xbefa4fa4
mov dword [rsp + 0x8c], 0x1c
call fcn.18001bfa0
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.18001e640
movzx ebx, byte [0x180131e60]
lea r11, [rsp + 0x20]
mov ecx, WSACleanup
nop
mov byte [r11], bl
inc r11
mov rax, r11
and eax, 0xf
sub rcx, 1
lea rbx, [rbx + rax + 0x11]
jne 0x1800207e0
lea r8d, [rcx + 0x70]
lea rcx, [rsp + 0x20]
movzx edx, bl
call fcn.1800378e8
test rax, rax
je 0x18002081a
lea rcx, [rbx + rax + 0x3f]
mov byte [0x180131e60], cl
jmp 0x180020820
mov byte [0x180131e60], bl
lea r11, [rsp + 0x90]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180020840
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
test r8, r8
mov rbx, rdx
mov rdi, rcx
lea rsi, [0x180131f00]
lea rcx, [rsp + 0x20]
cmovne rsi, r8
xor edx, edx
lea r8d, [rdx + 0x70]
call fcn.180037390
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
mov dword [rsp + 0x20], 0x6a09e667
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov dword [rsp + 0x3c], 0x5be0cd19
mov dword [rsp + 0x8c], 0x20
call fcn.18001bfa0
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.18001e640
movzx ebx, byte [0x180131e60]
lea r11, [rsp + 0x20]
mov ecx, WSACleanup
nop
mov byte [r11], bl
inc r11
mov rax, r11
and eax, 0xf
sub rcx, 1
lea rbx, [rbx + rax + 0x11]
jne 0x1800208f0
lea r8d, [rcx + 0x70]
lea rcx, [rsp + 0x20]
movzx edx, bl
call fcn.1800378e8
test rax, rax
je 0x18002092a
lea rcx, [rbx + rax + 0x3f]
mov byte [0x180131e60], cl
jmp 0x180020930
mov byte [0x180131e60], bl
lea r11, [rsp + 0x90]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800246d0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180024723
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
jae 0x18002470c
test eax, eax
jle 0x18002473a
movzx eax, ax
or eax, 0xa0070000
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jle 0x18002473a
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, edi
mov edx, 0x1000000
mov rcx, rbx
call fcn.180024330
xor ecx, ecx
test eax, eax
cmovns eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180024750
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1800247c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
jae 0x1800247a7
test eax, eax
jle 0x180024855
movzx eax, ax
or eax, 0xa0070000
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test eax, eax
jle 0x180024855
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1800247fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x18002482b
test eax, eax
jle 0x18002483c
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x18002483c
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x18002483a
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x18002482b
test eax, eax
jle 0x18002483c
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x18002483c
test eax, eax
jle 0x18002483c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x18002483c
xor ebx, ebx
test rdi, rdi
je 0x18002484a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180024e60
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push r13
sub rsp, 0x270
mov rax, qword [0x18010db20]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
mov rbp, rcx
mov r13, rdx
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x1fe
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x50], bx
call fcn.180037390
test rbp, rbp
jne 0x180024ebe
mov eax, 0x80070057
jmp 0x1800250d7
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x2a0], rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x180024f0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
jae 0x180024ef7
test eax, eax
jle 0x1800250cf
movzx eax, ax
or eax, 0xa0070000
jmp 0x1800250cf
test eax, eax
jle 0x1800250cf
movzx eax, ax
or eax, 0x80070000
jmp 0x1800250cf
mov rcx, rsi
mov qword [rsp + 0x268], rdi
mov qword [rsp + 0x260], r12
call fcn.180036df8
mov rdi, rax
test rax, rax
jne 0x180024f36
mov ebx, 0x8007000e
jmp 0x1800250b0
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180037390
mov r9, rdi
mov r8d, esi
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x180024f91
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x180024f7b
test eax, eax
jle 0x1800250b0
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x1800250b0
test eax, eax
jle 0x1800250b0
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1800250b0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x180024fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x180024fd2
test eax, eax
jle 0x1800250b0
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x1800250b0
test eax, eax
jle 0x1800250b0
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1800250b0
mov rax, qword [rsp + 0x38]
lea r8, str.StringFileInfo_04x_04xFileVersion
mov edx, 0x100
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
call fcn.1800372a8
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x180025056
call qword [sym.imp.KERNEL32.dll_GetLastError]
bt eax, 0x1d
mov ebx, eax
jae 0x180025047
test eax, eax
jle 0x1800250b0
movzx ebx, ax
or ebx, 0xa0070000
jmp 0x1800250b0
test eax, eax
jle 0x1800250b0
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1800250b0
mov ecx, dword [rsp + 0x30]
mov eax, 2
inc ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180036df8
mov rcx, rax
mov qword [r13], rax
test rax, rax
jne 0x18002508a
mov ebx, 0x8007000e
jmp 0x1800250b0
mov r8d, dword [rsp + 0x30]
xor edx, edx
inc r8d
add r8, r8
call fcn.180037390
mov edx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, qword [r13]
inc edx
call fcn.1800372cc
mov r12, qword [rsp + 0x260]
test rdi, rdi
je 0x1800250c5
mov rcx, rdi
call fcn.18003747c
mov rdi, qword [rsp + 0x268]
mov eax, ebx
mov rsi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180037360
add rsp, 0x270
pop r13
pop rbp
pop rbx
ret
Function at 0x180025660
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push r12
sub rsp, 0x28
mov rbp, r9
mov rbx, r8
mov r12d, edx
mov rsi, rcx
test rcx, rcx
je 0x1800258d2
test rbx, rbx
je 0x1800258d2
test r9, r9
je 0x1800258d2
mov qword [rsp + 0x58], r13
mov r13d, dword [rsp + 0x70]
mov ecx, r12d
mov edx, r13d
call fcn.1800255c0
cmp dword [rbp], eax
jge 0x1800256c0
xor eax, eax
mov r13, qword [rsp + 0x58]
add rsp, 0x28
pop r12
pop rsi
pop rbp
pop rbx
ret
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], r14
mov eax, 0x55555556
mov qword [rsp + 0x20], r15
mov edi, r8d
lea r10d, [r8 + 0x13]
mov r9d, r8d
imul r12d
mov r14d, edx
mov eax, 0x6bca1af3
shr r14d, 0x1f
add r14d, edx
lea r15d, [r14*4]
imul r15d
mov r11d, edx
sar r11d, 5
mov eax, r11d
shr eax, 0x1f
add r11d, eax
js 0x180025819
and r13d, 2
cmp r9d, r11d
jne 0x180025734
mov eax, r15d
mov ecx, r11d
imul ecx, ecx, 0x4c
sub eax, ecx
cdq
and edx, 3
lea r10d, [rdx + rax]
sar r10d, 2
test r10d, r10d
jle 0x1800257c4
mov ebp, r10d
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x
nop word [rax + rax]
movzx eax, byte [rsi + 2]
movzx ecx, byte [rsi + 1]
movzx edx, byte [rsi]
shl edx, 8
add rbx, 4
add rsi, 3
or edx, ecx
shl edx, 8
or edx, eax
shl edx, 8
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r15]
mov byte [rbx - 4], al
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r15]
mov byte [rbx - 3], al
mov eax, edx
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r15]
mov byte [rbx - 2], al
mov eax, edx
shr eax, 0x14
and eax, 0x3f
sub rbp, 1
movzx eax, byte [rax + r15]
mov byte [rbx - 1], al
jne 0x180025750
lea r15d, [r14*4]
lea edi, [rdi + r10*4]
test r13d, r13d
jne 0x1800257db
mov byte [rbx], 0xd
mov byte [rbx + 1], 0xa
add rbx, 2
add edi, 2
inc r9d
cmp r9d, r11d
jle 0x180025718
test edi, edi
je 0x18002580f
test r13d, r13d
jne 0x180025803
mov rbp, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x70]
sub rbx, 2
sub edi, 2
jmp 0x180025819
mov rbp, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x70]
jmp 0x180025819
mov rbp, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
lea eax, [r14 + r14*2]
mov r14, qword [rsp + 0x60]
sub r12d, eax
je 0x1800258b6
lea r9d, [r12 + 1]
test r9d, r9d
je 0x1800258b6
mov ecx, r8d
cmp ecx, r12d
jge 0x18002584f
movzx eax, byte [rsi]
or r8d, eax
inc rsi
inc ecx
shl r8d, 8
cmp ecx, 3
jl 0x180025841
test r9d, r9d
jle 0x180025892
mov edx, r9d
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x
nop dword [rax]
mov eax, r8d
inc rbx
shl r8d, 6
shr eax, 0x1a
sub rdx, 1
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov byte [rbx - 1], al
jne 0x180025870
mov rbp, qword [rsp + 0x68]
add edi, r9d
test r13b, 1
jne 0x1800258b6
mov esi, 4
sub esi, r9d
test esi, esi
jle 0x1800258b4
mov r8d, esi
mov dl, 0x3d
mov rcx, rbx
call fcn.180037390
add edi, esi
mov r13, qword [rsp + 0x58]
mov dword [rbp], edi
mov rdi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x28
pop r12
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r12
pop rsi
pop rbp
pop rbx
ret