joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a64
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457c01
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402b38
cmp word [ebx + 0xa2], 0
je 0x457aad
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x457ac1
lea esi, [ebp - 8]
jmp 0x457ac3
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x457ad0
xor edi, edi
jmp 0x457add
mov eax, dword [ebx + 0x80]
call fcn.00404fb0
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404fb0
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0045719c
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fb0
push eax
mov eax, ebx
call fcn.004572d0
push eax
mov eax, ebx
call fcn.004572a4
push eax
mov eax, ebx
call fcn.00457258
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00457068
mov eax, dword [ebp - 0x18]
call fcn.00404fb0
push eax
mov eax, dword [ebx + 8]
call fcn.00404fb0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x457b66
call fcn.0040d6d8
xor edx, edx
push ebp
push 0x457bdf
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x457ba4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x457b9a
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457be6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x457c10
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x457c3c
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404fb0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x457c61
call fcn.0040d6d8
xor eax, eax
push ebp
push 0x457c98
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x457c81
call fcn.0040d6d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457c9f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x458c1c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458d85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404b98
mov eax, dword [ebp - 0x10]
call fcn.004588a8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x458c6e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00405050
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045929c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x458d43
xor eax, eax
push ebp
push 0x458d3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00458a18
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00458db4
test al, al
je 0x458d1a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404bf0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x458d1a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x458d14
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404cf0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00458c1c
dec ebx
cmp ebx, 0xffffffff
jne 0x458ccd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458d43
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00458a18
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404fb0
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00458a04
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458d8c
lea eax, [ebp - 0x3c]
call fcn.00404b00
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404b24
ret

Function at 0x458db4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403288
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x49ef18]
cmp byte [edx + 0xc], 0
je 0x458e18
mov edx, dword [0x49ef0c]
cmp dword [edx], 2
jne 0x458e18
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x458e1c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x458ed4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00458db4
test al, al
je 0x458eb6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404bf0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x458eb6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fb0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404cf0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x458e6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458edb
lea eax, [ebp - 0x2c]
call fcn.00404b00
lea eax, [ebp - 0xc]
call fcn.00404b00
ret

Function at 0x458ee4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x458f9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00458db4
test al, al
je 0x458f7e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404bf0
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x458f7e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fb0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404cf0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x458f37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458fa3
lea eax, [ebp - 0x2c]
call fcn.00404b00
lea eax, [ebp - 0xc]
call fcn.00404b00
ret
Function at 0x4591b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004588bc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404fb0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45920e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49ec08]
mov dl, 1
mov eax, dword [0x4587b4]
call fcn.0040c200
call fcn.004044dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x459218
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404fb0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x459270
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49ef24]
mov dl, 1
mov eax, dword [0x4587b4]
call fcn.0040c200
call fcn.004044dc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004588ec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x459568
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45967f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00458a18
xor eax, eax
push ebp
push 0x45965a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00458db4
test al, al
je 0x45963e
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00459448
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404bf0
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x45963e
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fb0
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x45963a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404cf0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00459448
pop ecx
inc edi
dec ebx
jne 0x4595ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459661
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00458a18
ret
Function at 0x459690
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4598d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.00458a18
xor eax, eax
push ebp
push 0x4598a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00458db4
test al, al
je 0x45988b
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404bf0
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x45988b
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x45987f
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00404cf0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045929c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x45987f
xor eax, eax
push ebp
push 0x459878
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.00458a18
xor eax, eax
push ebp
push 0x45985a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00404cf0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00458a1c
mov eax, dword [ebp - 0x14]
call fcn.00404fb0
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00404cf0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045929c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x459837
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00459568
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00459690
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45983e
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x45971b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4598ae
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.00458a18
ret
Function at 0x45a308
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x45a371
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404cf0
mov ecx, dword [ebp - 8]
mov edx, dword [0x49eed0]
mov edx, dword [edx]
lea eax, [ebp - 4]
call fcn.00404e04
mov eax, dword [ebp - 4]
call fcn.00404fb0
push eax
call sub.kernel32.dll_WinExec
push 0
call sub.kernel32.dll_ExitProcess_1

Function at 0x45a3f0
Capabilities:
Get session user name
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45a565
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45a4f8
push 0xf01ff
mov eax, dword [0x49e888]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x45a4ef
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
call fcn.00408e5c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x45a4df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.00404cf0
mov edx, dword [0x49ed44]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.00408fa8
test eax, eax
jne 0x45a4c7
lea eax, [ebp - 0x14]
mov edx, dword [0x49e8e4]
mov edx, dword [edx]
call fcn.00404b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a4e6
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00402764
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
je 0x45a54a
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040513c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fb0
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.00404fb0
call fcn.00409a8c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040513c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00408fa8
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a56c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404b24
ret
Function at 0x45a798
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbf8
mov edi, edx
mov esi, eax
mov eax, edi
call fcn.00404b00
push 0
push 0
push 0
push 0
push 0x45a838
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
jne 0x45a7cd
mov eax, edi
call fcn.00404b00
jmp 0x45a82e
push 0
push 0x84000002
push 0
push 0
push esi
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
jne 0x45a7ee
mov eax, edi
call fcn.00404b00
jmp 0x45a82e
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x401
call fcn.00403288
push esp
push 0x400
lea eax, [esp + 0xc]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x45a828
mov eax, edi
lea edx, [esp + 4]
mov ecx, 0x401
call fcn.00404d68
push ebx
call sub.wininet.dll_InternetCloseHandle
add esp, 0x408
pop edi
pop esi
pop ebx
ret

Function at 0x45a7b2
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffbf8
mov edi, edx
mov esi, eax
mov eax, edi
call fcn.00404b00
push 0
push 0
push 0
push 0
push 0x45a838
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
jne 0x45a7cd
mov eax, edi
call fcn.00404b00
jmp 0x45a82e
push 0
push 0x84000002
push 0
push 0
push esi
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
jne 0x45a7ee
mov eax, edi
call fcn.00404b00
jmp 0x45a82e
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x401
call fcn.00403288
push esp
push 0x400
lea eax, [esp + 0xc]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x45a828
mov eax, edi
lea edx, [esp + 4]
mov ecx, 0x401
call fcn.00404d68
push ebx
call sub.wininet.dll_InternetCloseHandle
add esp, 0x408
pop edi
pop esi
pop ebx
ret
Function at 0x45a83c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd48
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x298], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fa0
xor eax, eax
push ebp
push 0x45a98e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x193]
push eax
push 0x101
call sub.WS2_32.DLL_WSAStartup
xor ecx, ecx
push ebp
push 0x45a966
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x293]
push eax
call sub.WS2_32.DLL_gethostname
lea eax, [ebp - 0x293]
mov edx, dword [ebp - 4]
call fcn.00409b50
lea eax, [ebp - 0x293]
push eax
call sub.WS2_32.DLL_gethostbyname
test eax, eax
je 0x45a94f
mov edx, dword [eax + 0xc]
test edx, edx
je 0x45a949
mov ebx, dword [edx]
test ebx, ebx
je 0x45a943
lea eax, [ebp - 0x298]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 0x2b4], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0
lea edx, [ebp - 0x2b8]
mov ecx, 3
mov eax, 0x45a9a8
call fcn.0040a22c
mov edx, dword [ebp - 0x298]
mov eax, esi
call fcn.00404b54
mov byte [ebp - 5], 1
jmp 0x45a953
mov byte [ebp - 5], 0
jmp 0x45a953
mov byte [ebp - 5], 0
jmp 0x45a953
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a96d
call sub.WS2_32.DLL_WSACleanup
ret

Function at 0x45aa58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45aaf0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404d68
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.00404db8
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00405010
mov eax, dword [ebp - 0x104]
mov edx, 0x45ab04
call fcn.00404efc
je 0x45aad7
mov eax, ebx
mov edx, 0x45ab04
call fcn.00404dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aaf7
lea eax, [ebp - 0x104]
call fcn.00404b00
ret

Function at 0x45ab08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45ab7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404d68
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x45ab90
call fcn.00404e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ab83
lea eax, [ebp - 0x108]
call fcn.00404b00
ret