joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5b0
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00408f80
movzx rax, word [rbp + 0x4e]
cmp word [0x0042baf8], ax
ja 0x40b698
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0042bef8]
mov word [rbp + 0x4e], ax
ja 0x40b698
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40b697
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0042baf8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40b651
mov ecx, eax
sub ecx, 1
jmp 0x40b692
lea rdx, [0x0042baf8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40b673
mov r8d, eax
add r8d, 1
jmp 0x40b692
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0042bb00]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040b450
jmp 0x40b697
cmp ecx, r8d
jae 0x40b620
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40b77a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b77a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409e40
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00409e40
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409e40
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040b7d4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040b7e4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040a1f0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409060
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40b9f0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00433c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00433ca0], ax
jne 0x40ba5b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00433ca2]
mov r8d, 0x55
call fcn.00409e40
lea rcx, [0x00433c78]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bb67
lea rcx, [0x00433c78]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00408f80
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb20
cmp byte [0x00433c70], 0
je 0x40bab4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040b880
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.004094b0
jmp 0x40bb20
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040b5b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.004094b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40bb20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40baff
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040bbb4]
call fcn.00409ff0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040b5b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00409ff0
lea rcx, [0x00433c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00433ca0], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00409d90
lea rcx, [0x00433ca2]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00433c78]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409060
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40c540
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.00409110
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00409e40
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040a0c0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c370
test al, al
jne 0x40c60e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00409e40
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040a0c0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c370
test al, al
jne 0x40c60e
mov rcx, qword [rbp + 0x20]
call fcn.00408f80
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00409060
lea rcx, [rbp + 0x70]
call fcn.00408f80
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40c670
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00409110
mov rcx, qword [rbp + 0x90]
call fcn.00409110
nop
mov rcx, qword [rbp + 0x28]
call fcn.00408f80
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00409530
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40c713
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40c74d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40c746
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040a2d0
jmp 0x40c74d
sub eax, 1
test eax, eax
jne 0x40c718
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040c280
cmp qword [rbp + 0x68], 0
je 0x40c78b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040c410
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.004094b0
jmp 0x40c827
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040b9f0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040c410
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.004094b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c800
cmp byte [0x00433c70], 0
jne 0x40c800
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040b9f0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040c410
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.004094b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c827
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040c540
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.004094b0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00409060
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00409060
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40d120
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40d140
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40d164
cmp eax, 1
jae 0x40d169
cmp ecx, 5
jbe 0x40d175
mov dword [0x0042f998], 0x7f
jmp 0x40d17f
mov dword [0x0042f998], 0x409
add rsp, 0x28
ret
Function at 0x40d460
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040d450
mov ebx, eax
test ebx, ebx
je 0x40d4ab
cmp dword [0x0042c31c], 0xffffffff
jne 0x40d484
mov ecx, 0xe2
call fcn.00408df0
mov ecx, ebx
call fcn.0040d430
test rax, rax
jne 0x40d49d
mov ecx, 0xe2
call fcn.00408df0
jmp 0x40d4ab
mov ecx, dword [0x0042c31c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40d4c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00433d4c], 0
je 0x40d4fb
mov ecx, dword [0x0042c31c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d50f
call fcn.0040d460
mov ecx, dword [0x0042c31c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d50f
mov rax, qword [0x00433d80]
jmp 0x40d50f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0042c31c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x40edc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.00409d90
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40edde
test eax, 0x10
je 0x40ede3
xor rax, rax
jmp 0x40ede5
mov al, 1
add rsp, 0x28
ret

Function at 0x40ef50
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
mov edx, 0xff
call fcn.00409f10
mov rax, qword [rbx]
xor rdi, rdi
test rax, rax
je 0x40ef7b
mov edi, dword [rax - 4]
mov rcx, rsi
call fcn.00409d90
mov r13, rax
mov rcx, qword [rbx]
call fcn.00409d90
mov rcx, r13
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jne 0x40efaa
mov rcx, rbx
call fcn.00408f80
jmp 0x40efb8
mov rcx, rbx
mov edx, eax
call fcn.0040f220
test al, al
je 0x40ef6d
nop
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x40f090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.00409d90
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x40f250
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.kernel32.dll_GetCommandLineW_1
xor rcx, rcx
movzx rdx, word [rax]
sub dx, 1
cmp dx, 0xffff
je 0x40f290
cmp dx, 0x20
jb 0x40f27f
sub dx, 0x21
test dx, dx
jne 0x40f28a
jmp 0x40f285
test cl, cl
je 0x40f290
jmp 0x40f28a
test cl, cl
sete cl
add rax, 2
jmp 0x40f260
nop
jmp 0x40f297
add rax, 2
movzx rcx, word [rax]
cmp cx, 0x3f
ja 0x40f2c1
mov edx, 1
movzx rcx, cx
and rcx, 0x7f
shl rdx, cl
mov rcx, qword [0x0040f2dc]
test rdx, rcx
setne cl
jmp 0x40f2c4
xor rcx, rcx
test cl, cl
jne 0x40f293
mov rcx, rbx
mov rdx, rax
call fcn.00409e10
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x4201a0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4201c7
movzx rax, word [rbp + 0x2c]
jmp 0x4201c9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x421480
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00421230
mov ebx, eax
mov rax, qword [0x0042e3c0]
cmp byte [rax], 0
je 0x4215b8
mov rcx, qword [0x0042e208]
call fcn.004059f0
call fcn.00405100
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00421438]
mov r8d, 1
movsxd r9, esi
call fcn.0040af00
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00421654]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4215fe
mov rcx, qword [0x00433d50]
call fcn.0040b060
mov rcx, rax
mov rax, qword [0x0042e1b8]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00421438]
call fcn.0040af40
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x423850
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.004096a0
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040d100
mov esi, eax
cmp esi, 0x104
jbe 0x4238ad
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404dd0
mov rdi, rax
jmp 0x4238b1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040d100
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x423907
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4238eb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x423919
mov rcx, rdi
call fcn.00404e00
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x425010
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00438308]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405190
mov dword [0x00438250], 0xb7e15163
mov ebx, 1
lea rax, [0x00438250]
movsxd rcx, ebx
lea rdx, [0x0043824c]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x425043
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x00438250]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.00424e50
mov r13d, eax
lea rax, [0x00438250]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.00424e50
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x42507f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x425180
Capabilities:
Encode data using xor

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov eax, dword [0x004382fc]
sub dword [rbx + 8], eax
mov eax, dword [0x004382f8]
sub dword [rbx], eax
mov esi, 0x14
mov eax, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov dword [rbx + 0xc], ecx
mov ecx, dword [rbx + 4]
mov dword [rbx + 8], ecx
mov ecx, dword [rbx]
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov eax, dword [rbx + 0xc]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 0xc]
imul ecx, eax
mov edx, 5
call fcn.00424e50
mov r13d, eax
mov eax, dword [rbx + 4]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 4]
imul ecx, eax
mov edx, 5
call fcn.00424e50
mov edi, eax
lea rax, [0x00438254]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx + 8]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, edi
call fcn.00424e70
xor eax, r13d
mov dword [rbx + 8], eax
lea rax, [0x00438250]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, r13d
call fcn.00424e70
xor eax, edi
mov dword [rbx], eax
sub esi, 1
test esi, esi
jne 0x4251a3
nop
lea rax, [rbx + 0xc]
mov ecx, dword [0x00438254]
sub dword [rax], ecx
lea rax, [rbx + 4]
mov ecx, dword [0x00438250]
sub dword [rax], ecx
mov al, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x4257b0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.00409110
nop
mov rcx, qword [rbp + 0x68]
call fcn.00409d90
mov rcx, rax
mov edx, 0x40000000
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x102
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x58], rax
nop
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x58]
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax + 0x60]
mov rax, qword [rbp + 0x60]
mov r8d, dword [rax + 0x68]
mov r9, qword [rbp + 0x60]
add r9, 0x54
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
nop
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x58]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x68]
call fcn.00408f80
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4258b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x48], rdx
mov rcx, qword [rbp + 0x48]
call fcn.00409110
nop
xor rax, rax
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x48]
call fcn.00409d90
mov rcx, qword [0x00433d50]
mov rdx, rax
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 8], 0
je 0x425a6d
mov rcx, qword [0x00433d50]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_LoadResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 0x10], 0
je 0x425a6d
lea rcx, [0x00425abc]
call fcn.00425110
call fcn.00425010
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_LockResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x00433d50]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x48]
call fcn.00404dd0
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x60], rax
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x60]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x40], 0
jmp 0x425a09
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 0x30]
mov r8d, 0x10
call fcn.00405190
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
call fcn.00425180
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0x28]
mov r8d, 0x10
call fcn.00405190
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x40]
add qword [rax], 0x10
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x20]
add qword [rax], 0x10
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x28]
add qword [rax], 0x10
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x48]
sub rax, qword [rcx + 0x40]
cmp rax, 0x10
jge 0x4259a0
call fcn.00425160
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x60]
add rax, qword [rcx + 0x48]
sub rax, 1
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x20]
movzx rax, byte [rax]
mov rcx, qword [rbp + 0x20]
mov byte [rcx + 0x50], al
mov al, 1
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
movzx rax, byte [rcx + 0x50]
mov ecx, dword [rcx + 0x48]
sub ecx, eax
sub ecx, 1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x68], ecx
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x48]
call fcn.00408f80
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x140005290
Capabilities:
Query service status
Stop service

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x1400052d2
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.140004bb0
nop
cmp byte [r8 + rdx + 1], 0
je 0x1400052f9
lea rdx, str.unsigned_long___cdecl_MinifilterStopCommand::Execute_int_wchar_t____
lea rcx, [0x1402941c0]
call fcn.14000e600
lea rcx, [0x1402941c0]
call fcn.14000e9f0
mov rcx, qword [rbx + 8]
add rsp, 0x30
pop rbx
jmp fcn.140014980
Function at 0x140005950
Capabilities:
Start service

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov rsi, rcx
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov r14d, 0x10
mov eax, dword [r14 + rdi]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x1400059a2
or eax, 1
mov dword [r14 + rdi], eax
mov ecx, edx
add rcx, rdi
call fcn.140004bb0
nop
mov ebx, edx
add rbx, rdi
cmp byte [rbx + 1], 0
je 0x1400059cc
lea rdx, str.unsigned_long___cdecl_MinifilterStartCommand::Execute_int_wchar_t____
lea rcx, [0x1402941c0]
call fcn.14000e600
lea rcx, [0x1402941c0]
call fcn.14000e9f0
mov eax, dword [r14 + rdi]
test al, 1
jne 0x1400059e4
or eax, 1
mov dword [r14 + rdi], eax
mov rcx, rbx
call fcn.140004bb0
nop
cmp byte [rbx + 1], 0
je 0x140005a09
lea rdx, str.Start_Minifilter
lea rcx, [0x1402941c0]
call fcn.14000e600
lea rcx, [0x1402941c0]
call fcn.14000e9f0
mov rcx, qword [rsi + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
jmp 0x140014820
push rbx
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
jne 0x14001491d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x30]
cmp eax, 0x420
jne 0x14001489e
call fcn.140005ff0
xor eax, eax
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], 7
mov word [rsp + 0x128], ax
lea rdx, str.Cannot_start_service._ERROR_SERVICE_ALREADY_RUNNING
lea rcx, [rsp + 0x40]
call fcn.1400104d0
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
jmp 0x14001490c
call fcn.140005ff0
xor eax, eax
mov qword [rsp + 0x140], 7
mov qword [rsp + 0x138], rax
mov word [rsp + 0x128], ax
cmp ebx, 2
jne 0x1400148e4
lea rdx, str.Cannot_start_service._ERROR_FILE_NOT_FOUND
lea rcx, [rsp + 0x40]
call fcn.1400104d0
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
jmp 0x14001490c
lea rdx, str.Cannot_start_service._Error
lea rcx, [rsp + 0x40]
call fcn.1400104d0
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1400170a0
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
lea rcx, [rsp + 0x30]
call fcn.140004cc0
mov eax, 0x6e
jmp 0x140014976
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x14001494d
or eax, 1
mov dword [rcx + rdx], eax
mov ecx, r8d
add rcx, rdx
call fcn.140004bb0
nop
cmp byte [r8 + rdx + 1], 0
je 0x140014974
lea rdx, str.Service_started_successfully.
lea rcx, [0x1402941c0]
call fcn.14000e600
lea rcx, [0x1402941c0]
call fcn.14000e9f0
xor eax, eax
add rsp, 0x150
pop rbx
ret