joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008504
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x100864d
push 0xf01ff
push 0x1001568
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1008619
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10085b6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
mov dword [ebp - 0x28], 4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x1008599
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp eax, 5
jge 0x10085a6
cmp dword [ebp - 0x28], 3
jne 0x10085a6
push ebx
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1008585
cmp dword [ebp - 0x28], 1
pop ebx
je 0x10085f6
mov dword [ebp - 4], 0x80004005
jmp 0x100860d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
sub eax, 0x41c
je 0x10085ea
sub eax, 8
je 0x10085e5
dec eax
dec eax
je 0x10085e5
sub eax, 0xf
je 0x10085e5
push dword [ebp - 4]
push 0x1001c10
call fcn.010081c5
pop ecx
pop ecx
jmp 0x10085f1
mov dword [ebp - 4], esi
jmp 0x10085f6
mov dword [ebp - 4], 0x652
cmp dword [ebp - 4], esi
jne 0x100860d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x100860d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x1008642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
sub eax, 0x424
je 0x100863f
sub eax, 0xc
je 0x100863f
push dword [ebp - 4]
push 0x1001be8
call fcn.010081c5
pop ecx
pop ecx
jmp 0x1008642
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1008663
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001bbc
mov dword [ebp - 4], eax
call fcn.010081c5
pop ecx
pop ecx
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x100866e
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1012d80]
push ebx
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x41c], bx
mov ecx, 0x83
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
push 0x103
lea eax, [ebp - 0x41c]
push eax
push ebx
mov dword [ebp - 0x420], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10086c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100883a
lea eax, [ebp - 0xc]
push eax
push 0x107
lea eax, [ebp - 0x41c]
push eax
mov word [ebp - 0x216], bx
mov word [ebp - 0xc], 0x20
mov word [ebp - 0xa], 0x2f
mov word [ebp - 8], 0x56
mov word [ebp - 6], bx
call fcn.01005acc
cmp eax, ebx
jl 0x100883a
push esi
push 0x7f
pop ecx
xor eax, eax
mov word [ebp - 0x20c], bx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
mov esi, 0x100
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x1008742
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1008827
cmp dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
je 0x1008773
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push dword [0x10111e4]
lea eax, [ebp - 0x41c]
push ebx
push ebx
push eax
push 1
push 3
push 0x20
push 0xf01ff
lea eax, [ebp - 0x20c]
push eax
push 0x1001568
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, ebx
jne 0x10087d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [ebp - 0x424], eax
jne 0x100881c
mov eax, dword [ebp - 0x420]
inc dword [ebp - 0x420]
cmp eax, 0xe
jl 0x100875a
jmp 0x100881c
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x20
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x10087f9
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 1
push edi
call dword [0x1012318]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1008833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100f1d6
leave
ret
Function at 0x100884b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0c
mov eax, dword [0x1012d80]
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0xc00]
push edx
push 0x2001f
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0xc04], eax
mov dword [ebp - 0xc0c], ecx
call fcn.0100438c
add esp, 0x14
cmp eax, esi
je 0x1008899
cmp eax, 2
sete al
jmp 0x10089d5
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
lea eax, [ebp - 0xbf0]
push esi
mov dword [ebp - 0xbfc], eax
push esi
lea eax, [ebp - 0xc08]
push eax
mov ebx, 0x1f4
lea eax, [ebp - 0xbf0]
mov dword [ebp - 0xbf8], ebx
mov dword [ebp - 0xc08], ebx
push eax
jmp 0x100890a
push dword [ebp - 0xbfc]
push dword [ebp - 0xc00]
call fcn.0100884b
test al, al
pop ecx
pop ecx
je 0x10089af
mov eax, dword [ebp - 0xbf8]
push esi
push esi
push esi
mov dword [ebp - 0xc08], eax
push esi
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xbfc]
push esi
push dword [ebp - 0xc00]
call edi
cmp eax, esi
je 0x10088d2
cmp eax, 0x103
push dword [ebp - 0xc00]
jne 0x10089b5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc0c]
push dword [ebp - 0xc04]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
mov dword [ebp - 0xc04], eax
je 0x10089bd
push dword [ebp - 0xc0c]
xor eax, eax
mov word [ebp - 0x808], si
mov ecx, 0x200
lea edi, [ebp - 0x806]
push 0x1001c40
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x808]
push 0x401
push eax
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x1008997
push dword [ebp - 0xc04]
lea eax, [ebp - 0x808]
push eax
call fcn.010081c5
pop ecx
pop ecx
cmp dword [ebp - 0xbf8], ebx
jle 0x10089ab
push dword [ebp - 0xbfc]
call fcn.010052fd
pop ecx
xor al, al
jmp 0x10089d3
push dword [ebp - 0xc00]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1008997
cmp dword [ebp - 0xbf8], ebx
jle 0x10089d1
push dword [ebp - 0xbfc]
call fcn.010052fd
pop ecx
mov al, 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100f1d6
leave
ret
Function at 0x1008dd3
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x1008dfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ec0
jmp 0x1008e18
cmp dword [ebp - 4], 0
je 0x1008e1f
lea eax, [ebp - 8]
push eax
call fcn.010047bc
test eax, eax
pop ecx
je 0x1008e23
push eax
push 0x1001e50
call fcn.010081c5
pop ecx
pop ecx
xor al, al
leave
ret
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1008e61
lea eax, [ebp - 8]
push eax
call fcn.01004707
test eax, eax
pop ecx
je 0x1008e55
push eax
push 0x1001e50
call fcn.010081c5
pop ecx
pop ecx
xor al, al
jmp 0x1008e63
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x1008e51
mov al, 1
pop esi
leave
ret

Function at 0x1008f02
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x1012d80]
and dword [ebp - 0xa30], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0xa20]
mov esi, 0x105
mov dword [ebp - 0xa2c], eax
push esi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0xa28], 0x401
push 0
jmp 0x100900b
lea eax, [ebp - 0xa34]
push eax
push 0xf003f
push 0
push dword [ebp - 0x21c]
push ebx
call fcn.0100438c
add esp, 0x14
test eax, eax
mov dword [ebp - 0xa38], eax
jne 0x100904d
push dword [ebp - 0xa34]
call fcn.01008e6b
test al, al
pop ecx
jne 0x1008fec
push dword [ebp - 0x21c]
push 0x1002120
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x1008fd1
push 0
push dword [ebp - 0xa2c]
call fcn.010081c5
pop ecx
pop ecx
push dword [ebp - 0x21c]
push ebx
call fcn.0100884b
test al, al
pop ecx
pop ecx
jne 0x1008ff2
push 0
push 0x10020b0
jmp 0x1009023
inc dword [ebp - 0xa30]
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0xa30]
push ebx
call edi
test eax, eax
je 0x1008f64
cmp eax, 0x103
je 0x100907e
push eax
push 0x1002048
call fcn.010081c5
pop ecx
pop ecx
lea ecx, [ebp - 0xa2c]
call fcn.010059d7
cmp dword [ebp - 0x218], esi
jle 0x1009049
push dword [ebp - 0x21c]
call fcn.010052fd
pop ecx
xor al, al
jmp 0x100909f
push dword [ebp - 0x21c]
push 0x1001fe0
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x100902a
push dword [ebp - 0xa38]
push dword [ebp - 0xa2c]
jmp 0x1009023
lea ecx, [ebp - 0xa2c]
call fcn.010059d7
cmp dword [ebp - 0x218], esi
jle 0x100909d
push dword [ebp - 0x21c]
call fcn.010052fd
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f1d6
leave
ret
Function at 0x100badf
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1012d80]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x45
mov byte [eax], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
pop edi
jne 0x100bb48
cmp dword [ebp - 0x114], 5
ja 0x100bb3b
jne 0x100bb48
cmp dword [ebp - 0x110], 1
jb 0x100bb48
push 0x1003064
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100bb53
push 0x1003064
call fcn.0100b9a0
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0100f1d6
leave
ret
Function at 0x100f2ee
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1004148
call fcn.0100f544
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100f32b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100f32b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100f343
cmp eax, 0x20b
je 0x100f330
mov dword [ebp - 0x1c], ebx
jmp 0x100f357
cmp dword [ecx + 0x84], 0xe
jbe 0x100f32b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100f351
cmp dword [ecx + 0x74], 0xe
jbe 0x100f32b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1013cf4], 0xffffffff
or dword [0x1013cf8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1013cec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1013ce8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1013cf0], eax
call fcn.0100f624
cmp dword [0x1012d90], ebx
jne 0x100f3b2
push fcn.0100f624
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100f60d
push 0x1011020
push 0x101101c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1013ce4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1013ce0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1011018
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100f448
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100f41c
cmp al, 0x22
jne 0x100f40e
cmp byte [esi], 0x22
jne 0x100f425
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100f42f
cmp al, 0x20
jbe 0x100f421
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100f453
movzx eax, word [ebp - 0x50]
jmp 0x100f456
cmp byte [esi], 0x20
jbe 0x100f425
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100f448
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100f473
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100f4a8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100f57f
ret
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x405198
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4051d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x4051da
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051e4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405205
mov al, byte [esp]
jmp 0x405207
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406978
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4069c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406914
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c7
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406bc8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c56
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c13
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x406c40
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c27
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x406c36
lea edx, [ebp - 4]
call fcn.00406a8c
test ebx, ebx
je 0x406c36
dec ebx
jmp 0x406c18
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c5d
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406c64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d6c
add esp, 0x104
pop ebx
ret
Function at 0x406dac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406ee4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e09
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
cmp dword [ebp - 0x10], 0
jne 0x406e1e
mov eax, dword [ebp - 8]
call fcn.00403150
mov bl, 1
jmp 0x406ece
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e2c
call fcn.00405810
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033d8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406dd2
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e7c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406e87
dec esi
test esi, esi
je 0x406e95
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406e86
cmp dword [ebp - 0xc], 7
jne 0x406ea0
test esi, esi
je 0x406ea0
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034a8
cmp dword [ebp - 0xc], 7
jne 0x406ec1
test esi, esi
je 0x406ec1
lea eax, [ebp - 0x14]
call fcn.004033d8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eeb
lea eax, [ebp - 0x14]
call fcn.00403150
ret

Function at 0x40782c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c558
mov eax, esi
mov edx, 8
test al, 1
je 0x407848
shr eax, 1
xor eax, 0xedb88320
jmp 0x40784a
shr eax, 1
dec edx
jne 0x40783b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407834
pop esi
ret

Function at 0x407860
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c554], 0
jne 0x407883
call fcn.0040782c
push 1
push 0x40c554
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4078ae
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407889
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408f08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408ebc
test al, al
jne 0x408f29
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408f75
xor eax, eax
push ebp
push 0x408f65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f6c
lea eax, [ebp - 0xc]
call fcn.00408ef8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40927c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40936b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406c90
mov edx, dword [ebp - 8]
mov ecx, 0x409384
xor eax, eax
call fcn.00409170
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409339
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40929c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x35
call fcn.00408d44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407220
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x67
call fcn.00408d14
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045ec
call fcn.0040581c
call fcn.00402e88
jmp 0x40929c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409372
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x409394
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
cmp dword [0x40b07c], 2
jne 0x409401
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4093bc
xor eax, eax
jmp 0x40940e
lea eax, [esp + 8]
push eax
push 0x409414
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x409401
xor eax, eax
jmp 0x40940e
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x409428
Capabilities:
Check if file exists

Disassembly:
xor edx, edx
mov eax, 2
call fcn.00409394
ret