joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4a70
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
cmp dword [ebp + 0x18], 0
je 0x4a4a8d
push 8
push 0
mov eax, dword [ebp + 0x18]
push eax
call fcn.004e6e70
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a4e10
add esp, 8
mov dword [ebp - 8], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4a4c34
mov dword [ebp - 0x10], 3
cmp dword [ebp + 0x14], 0
je 0x4a4ad9
mov dword [ebp - 0x10], 1
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.advapi32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a4b3f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x431
je 0x4a4b29
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x430
jne 0x4a4b3f
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a4c11
mov dword [ebp - 0x2c], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_StartServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a4bb1
lea ecx, [ebp - 0x2c]
push ecx
push 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.004a4c60
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a4baf
cmp dword [ebp + 0x18], 0
je 0x4a4ba9
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4b8e
jmp 0x4a4beb
call dword [sym.imp.kernel32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x420
sete cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x4a4beb
cmp dword [ebp + 0x18], 0
je 0x4a4be5
mov edx, dword [ebp + 0x18]
mov dword [edx], 3
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4bca
cmp dword [ebp - 8], 0
jne 0x4a4c0f
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_DeleteService]
cmp dword [ebp - 0xc], 0
je 0x4a4c0b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4a4c58
jmp 0x4a4c32
cmp dword [ebp + 0x18], 0
je 0x4a4c2c
mov edx, dword [ebp + 0x18]
mov dword [edx], 2
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4c11
jmp 0x4a4c55
cmp dword [ebp + 0x18], 0
je 0x4a4c4f
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4c34
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4a4c60
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4a4ce0
mov eax, 1
test eax, eax
je 0x4a4ce0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a4c95
jmp 0x4a4ce0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4a4ca2
jmp 0x4a4ce0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jae 0x4a4cc4
mov dword [ebp - 8], 0x3e8
cmp dword [ebp - 8], 0x2710
jbe 0x4a4cd4
mov dword [ebp - 8], 0x2710
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4a4c73
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4a4cf0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a4d15
xor eax, eax
jmp 0x4a4dfd
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a4d3f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4a4dfd
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.advapi32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4a4dbb
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4a4da3
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e7208
add esp, 4
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.advapi32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4a4da1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4a4dfd
jmp 0x4a4dbb
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4a4dfd
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
je 0x4a4dd6
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 1
je 0x4a4dd6
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 2
jne 0x4a4ddf
mov dword [ebp - 4], 1
jmp 0x4a4de6
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4a4e10
Capabilities:
Delete file
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x4a4e36
push 8
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e6e70
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4a4fd4
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a4e9d
cmp dword [ebp + 0xc], 0
je 0x4a4e90
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4e75
xor eax, eax
jmp 0x4a4ff7
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
test eax, eax
jne 0x4a4ed7
cmp dword [ebp + 0xc], 0
je 0x4a4eca
mov edx, dword [ebp + 0xc]
mov dword [edx], 5
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4eaf
xor eax, eax
jmp 0x4a4ff7
cmp dword [ebp - 0x24], 1
je 0x4a4f55
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_ControlService]
test eax, eax
jne 0x4a4f19
cmp dword [ebp + 0xc], 0
je 0x4a4f0c
mov edx, dword [ebp + 0xc]
mov dword [edx], 6
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4ef1
xor eax, eax
jmp 0x4a4ff7
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
cmp dword [ebp - 0x24], 1
je 0x4a4f55
cmp dword [ebp + 0xc], 0
je 0x4a4f48
mov edx, dword [ebp + 0xc]
mov dword [edx], 7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
test edx, edx
jne 0x4a4f2d
xor eax, eax
jmp 0x4a4ff7
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_DeleteService]
test eax, eax
jne 0x4a4f88
cmp dword [ebp + 0xc], 0
je 0x4a4f7e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
xor eax, eax
test eax, eax
jne 0x4a4f63
xor eax, eax
jmp 0x4a4ff7
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, dword [ebp + 8]
push eax
call fcn.004a52d0
add esp, 4
push 0x100
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a5380
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, 1
jmp 0x4a4ff7
cmp dword [ebp + 0xc], 0
je 0x4a4fef
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
xor eax, eax
test eax, eax
jne 0x4a4fd4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a5000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x5caa08
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a501f
xor eax, eax
jmp 0x4a50bc
push 0x5caa18
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0x5caa30
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
push 0x5caa50
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
push 0x5caa68
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
push 0x5caa8c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4a50b3
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x4a50b3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x4a50b3
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
je 0x4a50b3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x4a50b7
xor eax, eax
jmp 0x4a50bc
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4a5380
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 0x104], 0
push 0x5caaa8
lea eax, [ebp - 0x100]
push eax
call fcn.004e6ed0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004e6ee0
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 1
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x104], 0
je 0x4a5483
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0x5caacc
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x4a5470
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e7020
add esp, 4
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x4a543e
push 0x5caad8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e6ee0
add esp, 8
push 0x5caadc
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e6ee0
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e6ee0
add esp, 8
push 0x5caae8
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e6ee0
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a5320
add esp, 4
mov eax, 1
jmp 0x4a5485
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4a6c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.004e70b0
add esp, 8
test eax, eax
jne 0x4a6cd3
push 0x100
lea ecx, [ebp - 0x348]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x348]
push edx
call fcn.004e7020
add esp, 4
movsx eax, byte [ebp + eax - 0x349]
cmp eax, 0x5c
jne 0x4a6c84
lea ecx, [ebp - 0x348]
push ecx
call fcn.004e7020
add esp, 4
mov byte [ebp + eax - 0x349], 0
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
je 0x4a6cb2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x348]
push ecx
push 0x5cab08
lea edx, [ebp - 0x248]
push edx
call fcn.004e6fc0
add esp, 0x10
jmp 0x4a6cd1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x348]
push ecx
push 0x5cab18
lea edx, [ebp - 0x248]
push edx
call fcn.004e6fc0
add esp, 0x10
jmp 0x4a6ce6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.004e6ed0
add esp, 8
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x148], 0xffffffff
je 0x4a6d24
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4a6d30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1be8
push 0x4e8e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x4a6dce
jmp 0x4a6f04
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4a6df0
jmp 0x4a6f04
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4a6e10
jmp 0x4a6f04
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x4a6e33
push 0xb
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x4a6f04
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x454c
je 0x4a6e57
push 0xb
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x4a6f04
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xbc], 0
jne 0x4a6e82
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0x714
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x4a6f04
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0xb8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 0x10], 0
je 0x4a6eb3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x2c]
jae 0x4a6ec5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
push 0x7a
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x4a6f04
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.004e6e70
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004e6b30
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004a6f12
jmp 0x4a6f56
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4814
call fcn.004e7170
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0x5cacb8
lea ecx, [ebp - 0x2814]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.004e6fc0
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x808]
push eax
push 0x80000006
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a7a61
mov dword [ebp - 0x80c], 0x1000
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x180c]
push edx
push 0
push 0
push 0x5cacd8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a7a57
lea ecx, [ebp - 0x180c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004e6ed0
add esp, 8
mov dword [ebp - 0x1810], 4
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x1814]
push ecx
push 0
push 0
push 0x5cace4
lea ecx, [ebp - 0x3814]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a7a57
cmp dword [ebp + 0xc], 0
je 0x4a7a2c
cmp dword [ebp - 0x1814], 0
je 0x4a7a2c
mov eax, dword [ebp - 0x1814]
push eax
push 0x5cacf0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e6fc0
add esp, 0xc
jmp 0x4a7a50
push 0x5cacf4
lea ecx, [ebp - 0x4814]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e6ed0
add esp, 8
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4a8120
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24f4
call fcn.004e7170
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0x5cae30
lea ecx, [ebp - 0x24f4]
call fcn.00497e20
mov ecx, eax
call fcn.00497e50
push eax
push 0x80000006
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
je 0x4a816f
xor eax, eax
jmp 0x4a824b
mov dword [ebp - 0xc], 0
mov ecx, 1
test ecx, ecx
je 0x4a823e
mov dword [ebp - 0x14f4], 0xff
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x14f4]
push edx
lea eax, [ebp - 0x14f0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
je 0x4a81ba
jmp 0x4a823e
lea eax, [ebp - 0x13f0]
push eax
lea ecx, [ebp - 0x14f0]
push ecx
call fcn.004a7b40
add esp, 8
test eax, eax
je 0x4a8230
movsx edx, byte [ebp - 0x1270]
push edx
call fcn.004e8af2
add esp, 4
mov esi, eax
movsx eax, byte [ebp + 8]
push eax
call fcn.004e8af2
add esp, 4
cmp esi, eax
jne 0x4a8230
cmp dword [ebp + 0xc], 0
je 0x4a8210
lea ecx, [ebp - 0x14f0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e6ed0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x4a8227
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 0x13f0]
mov ecx, 0x4f7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 1
jmp 0x4a823e
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4a8176
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a9ec0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x4a9ef4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
jae 0x4a9f67
cmp dword [ebp + 0x10], 0
je 0x4a9f31
cmp dword [ebp - 0x14], 1
jbe 0x4a9f31
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx - 2]
cmp eax, 0xff
jne 0x4a9f31
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx - 1]
cmp edx, 0x15
jne 0x4a9f31
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0
ja 0x4a9f5c
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
xor edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x5cb080]
mov dword [ebp - 0xc], eax
jmp 0x4a9f65
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4a9eeb
mov ecx, dword [ebp - 0xc]
xor ecx, 0xffffffff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4a9fb0
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movsx eax, byte [esi]
push eax
call fcn.004e8bbd
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x3a
push ecx
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 5
je 0x4a9ff1
pop esi
pop ebp
mov eax, 0x80000800
pop ebx
pop ecx
ret
movsx esi, byte [esi]
xor ebp, ebp
xor edx, edx
mov ecx, 0x5f29d8
mov al, byte [ecx]
and eax, 0xff
cmp eax, esi
je 0x4aa014
add ecx, 0x7c
inc edx
cmp ecx, 0x5f3670
jl 0x4a9ffd
cmp edx, 0x1a
jne 0x4aa023
pop esi
pop ebp
mov eax, 0x80000801
pop ebx
pop ecx
ret
mov eax, edx
shl eax, 5
sub eax, edx
lea ebx, [eax*4 + 0x5f29c8]
push ebx
call fcn.004aa480
add esp, 4
cmp eax, ebp
jne 0x4aa11e
push edi
mov edi, dword [esp + 0x1c]
cmp edi, ebp
je 0x4aa0f0
cmp byte [edi], 0x4d
jne 0x4aa0f0
cmp byte [edi + 1], 0x51
jne 0x4aa0f0
cmp byte [edi + 2], 0x43
jne 0x4aa0f0
cmp byte [edi + 3], 0x44
jne 0x4aa0f0
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
push ebp
push edi
push 0x51272
push ebx
call fcn.004aa580
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x4aa116
push 0x12c
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x4aa07a
test esi, esi
jge 0x4aa116
mov dword [esp + 0x18], 0
push ebp
push edi
push 0x57a73
push ebx
call fcn.004aa580
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x4aa116
push 0x12c
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x4aa0b9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x20]
push ecx
push edi
push ebx
call fcn.004aa2d0
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x4aa116
push 0x12c
call dword [sym.imp.kernel32.dll_Sleep]
inc ebp
cmp ebp, 1
jl 0x4aa0f0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 0xffffffff
jne 0x4aa12d
pop esi
pop ebp
mov eax, 0x80000802
pop ebx
pop ecx
ret
xor edx, edx
cmp eax, 0xfffffffd
setne dl
add edx, 0x80000803
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret

Function at 0x4ab8b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x4ab8e7
push ebx
push esi
lea esi, [edx]
mov bl, byte [ecx]
mov edx, eax
xor bl, al
and edx, 0x1ff
mov byte [ecx], bl
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x5ff800]
inc ecx
or ax, bx
dec esi
jne 0x4ab8c4
pop esi
pop ebx
ret

Function at 0x4aba40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5fee20
add eax, 0xc
push esi
push edi
sub ecx, eax
mov edx, 0x249
mov esi, dword [ecx + eax]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x4aba55
pop edi
pop esi
ret