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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4c
mov eax, dword [0x1009f7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x208
push esi
lea eax, [ebp - 0xa34]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100341a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x624]
push 0x104
push eax
call fcn.01002e41
push eax
push 0x1001564
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x14
jmp 0x10035e9
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002aa5
test eax, eax
jge 0x100343c
push 0x1001520
jmp 0x10035e2
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
cmp eax, edi
pop ecx
pop ecx
jne 0x100345b
push 0x10014b8
jmp 0x10035e2
push str.Resources_
mov word [eax], di
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002c26
test eax, eax
jl 0x10035dd
cmp ebx, edi
jne 0x1003481
mov ebx, str.1033
push ebx
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002c26
test eax, eax
jl 0x10035dd
push 0x1001334
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002c26
test eax, eax
jl 0x10035dd
push str.sqladevn90.rll
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01002c26
test eax, eax
jl 0x10035dd
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0xe4c], ebx
je 0x10035ba
cmp word [ebp - 0xa34], 0x22
mov eax, 0x10014a8
jne 0x10034fc
mov eax, 0x10014a0
lea ecx, [ebp - 0xa34]
push ecx
push eax
lea eax, [ebp - 0xe48]
push 0x20a
push eax
call fcn.01002bf8
add esp, 0x10
test eax, eax
jge 0x1003534
push 0x1001458
call dword [sym.imp.MSVCR80.dll_wprintf]
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10035e9
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xe48]
push eax
push 1
push 3
push 0x10
push 0xf01ff
mov esi, str.MSSQLServerADHelper
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1003589
lea eax, [ebp - 0x414]
push eax
call fcn.01002ccb
test eax, eax
pop ecx
jne 0x1003584
push esi
push 0x1001438
call dword [sym.imp.MSVCR80.dll_wprintf]
pop ecx
pop ecx
push ebx
call edi
jmp 0x10035b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x624]
push 0x104
push eax
call fcn.01002e41
push eax
push 0x1001400
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x14
push dword [ebp - 0xe4c]
call edi
jmp 0x10035e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x624]
push 0x104
push eax
call fcn.01002e41
push eax
push 0x10013c8
jmp 0x100340c
push 0x1001388
call dword [sym.imp.MSVCR80.dll_wprintf]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b3a
leave
ret
Function at 0x10035fd
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1009f7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x218], esi
call fcn.01002b89
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x21c], eax
je 0x1003770
push edi
push 0xf01ff
mov edi, str.MSSQLServerADHelper
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 0x214], eax
je 0x100373a
lea ecx, [ebp - 0x238]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_wprintf]
je 0x10036ed
push ebx
push edi
push 0x1001678
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
pop ecx
push 0x3e8
call ebx
jmp 0x10036bb
cmp dword [ebp - 0x218], 0x12c
jae 0x10036d2
cmp dword [ebp - 0x234], 3
jne 0x10036d2
push 0x1001674
call esi
mov dword [esp], 0x3e8
call ebx
inc dword [ebp - 0x218]
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1003690
cmp dword [ebp - 0x234], 1
pop ebx
push edi
jne 0x10036e4
push 0x1001658
jmp 0x10036e9
push 0x100162c
call esi
pop ecx
pop ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1003709
push edi
push 0x1001610
call esi
pop ecx
pop ecx
jmp 0x100372c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.01002e41
push eax
push 0x10015d8
call esi
add esp, 0x14
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1003761
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.01002e41
push eax
push 0x10015a4
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x14
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x1003797
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.01002e41
push eax
push 0x10013c8
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01006b3a
leave
ret

Function at 0x1004072
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10040e8
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10040e8
and word [edi], 0
push esi
push 1
call fcn.01003a5f
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
add esi, 0x618
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10040e4
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push str.Service_Account
push dword [ebp + 8]
mov dword [ebp - 4], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10040ed
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x10040f6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x100416f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100416f
push esi
push 1
call fcn.01003a5f
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
add esi, 0x618
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100416b
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100413a
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push str.Service_Account
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004174
mov eax, 0x80070057
pop esi
leave
ret

Function at 0x1004323
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1009f7c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push 2
call fcn.01003a5f
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
add esi, 0x618
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10043cc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x100190c
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10043cc
test edi, edi
je 0x10043cc
lea eax, [ebp - 0x20c]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x10043be
cmp dword [ebp - 0x210], 0
je 0x10043e1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01006b3a
leave
ret
Function at 0x100468d
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push str.MSSQLServerADHelper
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
je 0x10046d4
push esi
lea eax, [ebp - 8]
push eax
push esi
push 2
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
leave
ret
Function at 0x10049fd
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x1009f7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x33c], ebx
je 0x1004c29
cmp eax, ebx
je 0x1004c29
push 0x80000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x348], eax
jne 0x1004a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x33c], eax
jmp 0x1004c21
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x338]
push eax
push ebx
push esi
mov dword [ebp - 0x358], 0x84
call sub.instapi.dll_GetSQLServiceByName
test eax, eax
jne 0x1004aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x33c], eax
jmp 0x1004c15
push 1
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0x344], eax
jne 0x1004ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x33c], eax
jmp 0x1004c01
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0x340]
push ecx
push dword [ebp - 0x350]
lea ecx, [ebp - 0x350]
push ecx
push eax
call esi
test eax, eax
jne 0x1004c01
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
mov dword [ebp - 0x33c], eax
jne 0x1004c00
push dword [ebp - 0x340]
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x1004b2f
mov dword [ebp - 0x33c], 0xe
jmp 0x1004bf2
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x340]
push ebx
push dword [ebp - 0x344]
call esi
test eax, eax
jne 0x1004b56
call edi
mov dword [ebp - 0x33c], eax
jmp 0x1004bf2
push dword [ebx + 0x1c]
push dword [ebp + 0x10]
push dword [ebp - 0x34c]
call fcn.01002bd6
test eax, eax
jl 0x1004bdf
push dword [ebp - 0x34c]
lea eax, [ebp - 0x230]
push 0x104
push eax
call fcn.01002aa5
test eax, eax
jl 0x1004bdf
lea eax, [ebp - 0x230]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1004b9f
and word [eax], 0
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x354], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1004beb
cmp word [ebp - 0x230], 0x2e
je 0x1004bdf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004beb
mov dword [ebp - 0x33c], 0x80004005
jmp 0x1004bf2
and dword [ebp - 0x33c], 0
test ebx, ebx
je 0x1004bfe
push ebx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor ebx, ebx
pop edi
cmp dword [ebp - 0x344], ebx
je 0x1004c15
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x33c]
jmp 0x1004c2e
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b3a
leave
ret
Function at 0x1004c5e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009f7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x210], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x1004d10
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x1004cb9
sub ecx, ebx
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x1004d10
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x1004cef
push 0x1001334
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01002c26
push edi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01002c26
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b3a
leave
ret
Function at 0x1006204
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1414
call fcn.01006f00
mov eax, dword [0x1009f7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x25c]
push edi
push eax
mov dword [ebp - 0x1408], edi
mov dword [ebp - 0x1400], edi
mov dword [ebp - 0x1414], edi
mov dword [ebp - 0x140c], edi
mov dword [ebp - 0x260], edi
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x13fc]
push esi
push eax
call fcn.010046dd
add esp, 0x14
cmp eax, edi
jne 0x1006420
cmp dword [ebp + 0xc], 1
jne 0x1006285
lea eax, [ebp - 0x13fc]
push eax
push esi
call fcn.01003b8c
pop ecx
pop ecx
push edi
push 1
push esi
push 1
push 0x105
lea eax, [ebp - 0x46c]
push eax
push ebx
call fcn.0100572e
add esp, 0x1c
cmp eax, edi
mov dword [ebp - 0x1404], eax
jne 0x10063d2
lea eax, [ebp - 0x1400]
push eax
push 0x10028f8
lea eax, [ebp - 0x46c]
push eax
call dword [0x100a608]
cmp eax, edi
mov dword [ebp - 0x1404], eax
jl 0x10063d2
push esi
push dword [ebp + 0xc]
call fcn.01003a5f
pop ecx
pop ecx
lea eax, [ebp - 0x1408]
push eax
push 2
push edi
lea eax, [esi + 0x618]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006376
mov eax, dword [ebp - 0x1400]
mov ecx, dword [eax]
lea edx, [ebp - 0x1414]
push edx
push 0x1002918
push eax
call dword [ecx]
test eax, eax
jl 0x1006376
mov eax, dword [ebp - 0x1414]
mov ecx, dword [eax]
lea edx, [ebp - 0x140c]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x140c]
cmp eax, edi
je 0x1006376
lea edx, [ebp - 0x54]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x1006339
lea eax, [ebp - 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x100634d
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x54]
push eax
push 1
push edi
push 0x100190c
push dword [ebp - 0x1408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.01004072
test eax, eax
pop ecx
pop ecx
je 0x1006396
push esi
push str.LocalSystem
call fcn.010040f6
pop ecx
pop ecx
cmp dword [esi + 0x10f4], edi
mov eax, dword [ebp - 0x1400]
lea esi, [ebp - 0x1410]
jne 0x10063b6
push 0x12
pop ecx
push esi
push ecx
push 0x1009ca8
jmp 0x10063c0
push 0x18
pop ecx
push esi
push ecx
push 0x1009ac8
mov dword [ebp - 0x1410], ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x1404], eax
cmp dword [ebp - 0x140c], edi
je 0x10063e6
push dword [ebp - 0x140c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1414]
cmp eax, edi
je 0x10063f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1400]
cmp eax, edi
je 0x1006406
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x1408], edi
je 0x100641a
push dword [ebp - 0x1408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1404]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006b3a
leave
ret
Function at 0x1006b3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009f7c]
jne 0x1006b4b
test ecx, 0xffff0000
jne 0x1006b4b
ret
jmp fcn.01006b55

Function at 0x1006ee5
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007c18
call fcn.01007180
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100a97c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006ccb
cmp eax, esi
jne 0x1006cbe
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1006cce
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006ca5
xor esi, esi
inc esi
mov eax, dword [0x100a978]
cmp eax, esi
jne 0x1006ce1
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x1006d1c
mov eax, dword [0x100a978]
test eax, eax
jne 0x1006d16
mov dword [0x100a978], esi
push 0x10011d0
push 0x10011c8
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x1006d1c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1006df3
mov dword [0x100a950], esi
mov eax, dword [0x100a978]
cmp eax, esi
jne 0x1006d40
push 0x10011c4
push 0x10011bc
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x100a978], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1006d4d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100a988], ebx
je 0x1006d6e
push 0x100a988
call fcn.010070f7
pop ecx
test eax, eax
je 0x1006d6e
push ebx
push 2
push ebx
call dword [0x100a988]
mov eax, dword [0x100a938]
mov ecx, dword [sym.imp.MSVCR80.dll___winitenv]
mov dword [ecx], eax
push dword [0x100a938]
push dword [0x100a93c]
push dword [0x100a934]
call fcn.010038e7
add esp, 0xc
mov dword [0x100a94c], eax
cmp dword [0x100a940], ebx
jne 0x1006dd9
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR80.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100a950], ebx
jne 0x1006de7
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100a94c]
call fcn.010071c5
ret
call fcn.01006ac7
jmp 0x1006c83
Function at 0x1003def
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001408
call fcn.010040b4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1003e2a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003e2a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003e42
cmp eax, 0x20b
je 0x1003e2f
mov dword [ebp - 0x1c], edi
jmp 0x1003e56
cmp dword [ecx + 0x84], 0xe
jbe 0x1003e2a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003e50
cmp dword [ecx + 0x74], 0xe
jbe 0x1003e2a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10141f0], 0xffffffff
or dword [0x10141f4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101417c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1014178]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10141f8], eax
call fcn.0100405e
cmp dword [0x1014040], edi
jne 0x1003eb1
push fcn.0100405e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01004047
push 0x101401c
push 0x1014018
call sub.msvcrt.dll__initterm
mov eax, dword [0x1014174]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1014170]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1014014
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100396f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1003f28
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003f5d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010040ef
ret

Function at 0x1004475
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp eax, edi
je 0x1004498
mov dword [ebp + 8], eax
push 0x10101d0
lea eax, [ebp + 8]
jmp 0x10044f3
push edi
lea ebx, [esi + 8]
push 0x80
mov ecx, ebx
call fcn.010042c5
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.010021c5
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
sub ecx, edi
je 0x10044f9
sub ecx, 0xea
jne 0x10044e3
mov eax, dword [ebp - 4]
push edi
inc eax
push eax
jmp 0x10044a1
sub ecx, 0x19
je 0x1004516
mov dword [ebp - 8], eax
push 0x10101d0
lea eax, [ebp - 8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 4]
push 1
inc eax
push eax
mov ecx, ebx
call fcn.0100436f
push edi
mov ecx, ebx
call fcn.010021c5
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x100450f
Function at 0x100451f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x18]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x1004547
mov dword [ebp + 8], eax
push 0x10101d0
lea eax, [ebp + 8]
jmp 0x10045bc
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
mov ecx, esi
call fcn.010021c5
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x1004586
cmp eax, 0xea
jne 0x10045b1
push ebx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010042c5
jmp 0x1004599
push 1
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100436f
mov dword [ebp - 4], 1
cmp dword [ebp - 4], ebx
je 0x100454b
mov eax, dword [ebp + 0x10]
pop esi
pop edi
cmp eax, ebx
pop ebx
je 0x10045ad
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
leave
ret 0xc
mov dword [ebp - 0xc], eax
push 0x10101d0
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1004614
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x1004661
cmp dword [ebp + 0x10], 5
jne 0x1004647
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0xc], eax
xor esi, esi
lea eax, [ebp - 1]
mov dl, byte [ebp + esi + 0xc]
inc esi
mov byte [eax], dl
dec eax
cmp esi, 4
jb 0x1004633
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
pop esi
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1004672
mov dword [ebp + 0x10], eax
push 0x10101d0
lea eax, [ebp + 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
leave
ret 0xc