joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403a44
test esi, esi
jne 0x402912
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b34
jmp 0x402930
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004027f0
mov edi, eax
test esi, esi
je 0x402930
cmp dword [ebx], 0
je 0x402930
dec esi
jmp 0x402919
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ec8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ea8
xor eax, eax
push ebp
push 0x402ea1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ee4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ea8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x414020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x414020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4038c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x424044], 0
je 0x403929
cmp word [0x424218], 0xd7b2
jne 0x4038f1
cmp dword [0x424220], 0
jbe 0x4038f1
mov eax, 0x424214
call dword [0x424230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x414068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403950
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x403945
push 0
push 0x414060
push 0x414068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405414
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40547a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403cb4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405464
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405481
lea eax, [ebp - 0x10]
call fcn.00403a44
ret

Function at 0x4096d8
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_1
test eax, eax
jle 0x409711
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b34
jmp 0x40971a
mov eax, ebx
mov edx, esi
call fcn.00403a98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409724
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_1
test eax, eax
jle 0x409745
mov al, byte [esp]
jmp 0x409747
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409dcc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409c44
mov eax, dword [0x423314]
cmp byte [eax], 0
je 0x409e48
mov eax, dword [0x423234]
call fcn.004029a0
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040708c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409e90
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409e7e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x423210]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x424660]
call fcn.00404964
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40ab2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ab90
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403cb4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406bbc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab97
lea eax, [ebp - 0xc]
call fcn.00403a44
ret

Function at 0x412870
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.004125cc
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.00403ee0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4128ce
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4232a0]
mov dl, 1
mov eax, dword [0x4124f0]
call fcn.00409f8c
call fcn.004034a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412a38
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed0
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x412ba6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0040be20
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0040be40
jmp 0x412b72
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403cb4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00406fa4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040686c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040686c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403e2c
je 0x412b52
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403cb4
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040686c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040686c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00403e2c
jne 0x412b69
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0040be60
test eax, eax
jne 0x412ab3
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bad
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00403a68
lea eax, [ebp - 4]
call fcn.00403a44
ret
Function at 0x412bb8
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
push esi
add esp, 0xfffff8c8
mov esi, eax
push 0
push 0
push 3
push 0
push 3
push 0
push 0x412c34
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [esp + 4]
push eax
push 0x730
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x70050
push ebx
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x412c25
mov eax, dword [esp + 8]
sub eax, 1
jb 0x412c0b
je 0x412c19
jmp 0x412c25
mov eax, esi
mov edx, 0x412c50
call fcn.00403a98
jmp 0x412c25
mov eax, esi
mov edx, 0x412c5c
call fcn.00403a98
push ebx
call sub.kernel32.dll_CloseHandle
add esp, 0x738
pop esi
pop ebx
ret

Function at 0x412c60
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov eax, dword [0x423388]
cmp dword [eax], 2
jne 0x412cda
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x412cda
lea eax, [esp + 0xc]
push eax
push 0x412cf0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x412cda
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret

Function at 0x412d0c
Capabilities:
Get token membership

Disassembly:
add esp, 0xfffffff8
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4143a4
call sub.advapi32.dll_AllocateAndInitializeSid
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp], al
cmp byte [esp], 0
je 0x412d61
push esp
mov eax, dword [esp + 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test al, al
jne 0x412d57
mov byte [esp], 0
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_FreeSid
mov al, byte [esp]
pop ecx
pop edx
ret

Function at 0x412d68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed0
xor eax, eax
push ebp
push 0x412ddb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
mov edx, 0x3c
call fcn.00405928
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x500
mov eax, 0x412dec
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
call fcn.00403ee0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412de2
lea eax, [ebp - 4]
call fcn.00403a44
ret

Function at 0x412df4
Capabilities:
Acquire debug privileges

Disassembly:
mov dl, 1
mov eax, 0x412e34
call fcn.00412948
push 0
push 0
push 1
call sub.ntdll.dll_RtlSetProcessIsCritical
mov eax, 0x412e50
call fcn.00412a38
mov eax, 0x412e64
call fcn.00412a38
mov eax, 0x412e78
call fcn.00412a38
ret
Function at 0x401bbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401cc6
cmp dword [ebp - 4], esi
je 0x401cc6
cmp dword [ebp - 0xc], esi
je 0x401cc6
cmp dword [ebp - 8], esi
je 0x401cc6
cmp dword [ebp - 0x10], esi
je 0x401cc6
cmp dword [ebp - 0x14], esi
je 0x401cc6
cmp dword [ebp - 0x18], esi
je 0x401cc6
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401ca2
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43259c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432924], eax
mov esi, 0x42f0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401c8c
mov eax, dword [ebp - 0x10]
mov dword [0x432810], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431548], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43258c], eax
xor eax, eax
jmp 0x401cc9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401cdd
pop dword [ebp - 0x30]
mov eax, 0x401cdd
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3ea4b
push 0
mov eax, 0x8c095c10
add eax, 0x7438f608
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x4b74
mov esi, eax
mov edx, 0x1738a858
sub edx, 0x16f55458
add edx, dword [ebp - 0x30]
mov edi, 0x4154e993
add edi, 0x4d215d02
mov dword [ebp - 4], 0x7920e65c
mov ebx, dword [edx]
add dword [ebp - 0x14], ecx
add ebx, edi
sub dword [ebp - 0xc], eax
mov dword [esi], ebx
xor dword [ebp - 0x20], 0x582102d0
add esi, 0xccd03229
sub esi, 0xccd03225
add edx, 0x8f0f92d8
add edx, 0x70f06d2c
loop 0x401d31
add eax, 0x6c869d36
add eax, 0x937a836d
xor ebx, ebx
add ebx, eax
add eax, 0xe3628a37
sub eax, 0xe3628a32
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x11a121c3
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x61f41816
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401a60
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x801
push 0
push 0x452528
call fcn.00416150
mov eax, dword [esp + 0x14]
push 0x42aa4c
push eax
call fcn.00417241
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x401a8e
xor al, al
pop esi
ret
push esi
push 0x800
push 1
push 0x452528
call fcn.00417162
push esi
call fcn.00416e4a
push 0x452528
call fcn.004160db
mov ecx, dword [esp + 0x24]
push ecx
push 0x452528
call fcn.00415c20
add esp, 0x20
test eax, eax
setne al
pop esi
ret

Function at 0x401ad0
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401ae8
pop edi
ret
push esi
push 0xf01ff
push 0x42aa50
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401b0c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x401b50
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x401b6b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop esi
ret
Function at 0x402680
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
call fcn.0040d647
cmp eax, ebp
jne 0x40269d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebp
mov esi, eax
lea eax, [esp + 0x24]
push eax
push 7
push edi
add esi, 0x10
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x4027a5
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x40272e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40272e
test ebp, ebp
je 0x402701
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
push 7
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4026e0
test ebp, ebp
je 0x4027a5
cmp byte [ebp], 0
mov ebx, ebp
je 0x40279e
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
add ecx, ebp
cmp ebx, ecx
jae 0x40279e
push ebx
call fcn.004160db
mov edi, dword [esp + 0x2c]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebx
mov esi, ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402762
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402770
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
mov esi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
jne 0x402740
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4027c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x403e60
Capabilities:
Modify service
Query service configuration
Stop service

Disassembly:
sub esp, 0x124
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, edi
jne 0x403eba
push str.error:_OpenSCManager_fail...
call fcn.00403d60
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0041613d
add esp, 0x124
ret
push esi
push 0xf01ff
push 0x42aa50
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
jne 0x403eed
push str.error:_OpenService_fail...
call fcn.00403d60
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x403f94
lea eax, [esp + 0x10]
push eax
push 0x3e8
push ebx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x403f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push str.QueryServiceConfig___d
push ecx
call fcn.00416ae4
lea edx, [esp + 0x3c]
push edx
jmp 0x403f7e
cmp eax, 1
jne 0x403f86
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403f41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, eax
test edi, edi
jne 0x403f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x34]
push str.ChangeServiceConfig___d
push edx
call fcn.00416ae4
lea eax, [esp + 0x3c]
push eax
call fcn.00403d60
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, edi
mov ecx, dword [esp + 0x130]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041613d
add esp, 0x124
ret
Function at 0x4040b0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x428686
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x90], eax
push esi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404289
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.Identifier
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
call fcn.0040d647
xor ecx, ecx
test esi, esi
je 0x4041ad
test eax, eax
setne cl
test ecx, ecx
jne 0x404155
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push esi
lea ecx, [esp + 0xc]
push str.IsVista64_RegQueryValueEx_errorcode:__d_n
push ecx
mov dword [esp + 0xb0], 0
call fcn.004034f0
mov esi, dword [esp + 0x14]
push esi
call fcn.00403d60
lea eax, [esi - 0x10]
add esp, 0x10
mov dword [esp + 0xa4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404265
test eax, eax
setne cl
test ecx, ecx
jne 0x4041c0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push str.Identifier:__s_n
push edx
mov dword [esp + 0xb0], 1
call fcn.004034f0
mov esi, dword [esp + 0x14]
push esi
call fcn.00403d60
lea eax, [esp + 0x28]
push 0x42ac58
push eax
call fcn.00415c20
add esp, 0x18
test eax, eax
je 0x40424a
push str.Find_substring_64__So_this_is_a_64bit_OS_n
call fcn.00403d60
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40428b
lea eax, [esi - 0x10]
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404271
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Cant_find_substring_64__So_this_isnt_a_64bit_OS_n
call fcn.00403d60
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0041613d
add esp, 0xa0
ret