joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f08d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51f9c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005135fe
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00518c97
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0051a1b3
test eax, eax
je 0x4f09ec
mov ecx, dword [esp + 0x3c]
call fcn.00518cc4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4f09b0
push edi
mov ecx, esi
call fcn.00516329
mov ecx, esi
call fcn.004f0b50
cmp dword [esp + 0x38], 1
jne 0x4f09e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00516464
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4f3410
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4f3443
push esi
call fcn.004f6500
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4f343c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4f34c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4f34b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4f3467
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4f34ae
cmp eax, 2
je 0x4f34b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4f345a
cmp eax, 3
je 0x4f348d
cmp eax, 1
jne 0x4f345a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4f345a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4f345a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004f34f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4f34d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004f34f0
add esp, 4
pop esi
ret

Function at 0x4fea80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51fccf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x5cad48]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov edi, 1
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x4fead8
mov esi, dword [esp + 0x38]
push 0x5dba20
mov ecx, esi
call fcn.005120ac
mov dword [esp + 0x10], edi
jmp 0x4feb3e
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
je 0x4feafe
mov esi, dword [esp + 0x38]
push 0x5dba20
mov ecx, esi
call fcn.005120ac
jmp 0x4feb3a
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0051217b
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
push 0x5dba20
push 0x5ca1dc
lea ecx, [esp + 0x14]
call fcn.0050fae7
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00511db3
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.0051203e
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x5143f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51442c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00512499
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00512471
jmp 0x514438
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x515ae6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x515b28
call fcn.0051b59e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x515b28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x515b1f
xor eax, eax
jmp 0x515b30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00515b36
pop edi
pop esi
pop ebx
ret 4

Function at 0x51bace
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x51bafc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51bb1a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051ba34
jmp 0x51bb1a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51bb1a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051ba34
test edi, edi
mov eax, edi
jne 0x51bb04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401120
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1f4
mov ecx, dword [esp + 0x1f8]
xor eax, eax
push ebx
push ebp
mov al, byte [ecx + 6]
mov ebp, dword [esp + 0x208]
add ecx, 7
push esi
mov dword [esp + 0xc], ecx
push edi
lea ecx, [esp + 0x20]
mov esi, 2
mov edx, eax
xor ebx, ebx
and edx, 3
sub ecx, 4
sar eax, 2
mov bl, byte [edx + 0x416030]
dec esi
mov dword [ecx + 4], ebx
jne 0x40114d
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx]
cmp ebx, 1
je 0x4011ae
cmp ebx, 4
je 0x4011ae
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push 0x18
push edx
push eax
push 0x420748
call fcn.00406de0
mov ecx, 0x78
lea esi, [esp + 0x34]
mov edi, ebp
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
jmp 0x4011b9
mov ecx, 0x78
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, ebx
add ebp, 0x1e0
add ecx, 4
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x401176
pop edi
pop esi
pop ebp
mov eax, 0x3c0
pop ebx
add esp, 0x1f4
ret 0xc
Function at 0x402b40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 9]
push ebp
and eax, 0x1c0
mov ebp, ecx
cmp eax, 0x80
jbe 0x402b5e
mov eax, 1
pop ebp
pop ecx
ret 0x10
push ebx
lea ecx, [ebp + 0x8c]
push 0x416044
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402bec
push esi
push edi
mov edi, dword [esp + 0x1d]
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x402be0
mov edx, dword [esp + 0x24]
push 0
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp edi, eax
jne 0x402be0
mov eax, dword [ebp + 0x29c]
mov ecx, dword [ebp + 0x298]
push eax
push edi
push esi
call fcn.00409d00
test eax, eax
je 0x402be0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
pop ebp
pop ecx
ret 0x10
Function at 0x4048d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [esp + 0x3f5]
push ebx
and eax, 0x1c0
push ebp
push esi
cmp eax, 0x100
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x404980
mov eax, dword [0x420c60]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
shr edx, 1
and edx, 1
mov dword [esi + 0x193c0], edx
mov eax, dword [0x420c60]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
shr edx, 2
and edx, 1
mov dword [esi + 0x193c4], edx
mov eax, dword [0x420c60]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
shr edx, 4
and edx, 0x3fff
mov dword [esi + 0x193b8], edx
mov eax, dword [0x420c60]
mov ecx, dword [0x4207e0]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
mov eax, 1
shr edx, 0x12
mov dword [esi + 0x193bc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 0x10
lea eax, [esi + 0x194c4]
push 0x416044
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x404ab4
mov edi, dword [esp + 0x409]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404aaa
mov ecx, dword [esp + 0x410]
push 0
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp edi, eax
jne 0x404aaa
mov eax, dword [esp + 0x10]
cmp eax, 0x80
ja 0x404a3f
lea ebp, [esi + 0x60]
lea ecx, [esi + 0x90]
push ebp
push edi
push ebx
call fcn.00409d00
test eax, eax
je 0x404aa6
push ebp
lea ecx, [esi + 0x78]
call sym.ScrSelfPlayer.exe_public:_int___thiscall_CTPImage::DuplicateFrom_class_CTPImage__
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
mov ecx, esi
mov dword [esi + 0x194bc], edx
mov dword [esi + 0x194c0], eax
call fcn.00405140
mov ecx, esi
call fcn.00405690
mov ebp, dword [esp + 0x18]
jmp 0x404a93
cmp eax, 0xc0
jne 0x404a93
lea ecx, [esi + 0x145c4]
mov dword [esp + 0x10], ecx
call fcn.004068f0
test eax, eax
je 0x404a93
lea ecx, [esp + 0x3d]
push ecx
push 0
push ebx
lea ecx, [esi + 0x19384]
call fcn.00401120
test eax, eax
je 0x404a93
sub esp, 0x3e4
mov ecx, 0xf8
lea esi, [esp + 0x400]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3f4]
movsb byte es:[edi], byte [esi]
call fcn.00406900
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x14], 1
jmp 0x404aaa
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 0x10
Function at 0x40b320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412e2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.0040c5c0
lea ecx, [esi + 0x60bc]
mov byte [esp + 0x18], 4
call fcn.0040c5c0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x792c], edi
mov dword [esi + 0x7968], edi
mov dword [esi], 0x413acc
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40b3f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x413acc
mov dword [esp + 0x14], 5
call fcn.0040b4b0
lea ecx, [esi + 0x60bc]
mov byte [esp + 0x14], 4
call fcn.0040c670
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.0040c670
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408966
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
dec ecx
dec ecx
call fcn.00408990
xor dword [edi], ebx
inc edi
add esi, 0xf14e944f
sub esi, esi
cmp edi, eax
jne fcn.00408966
mov ecx, ecx
add ecx, 0xe7eb204b
ret
Function at 0x4010b3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401102
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 5
jmp 0x401105
push 4
pop eax
pop esi
pop ebp
ret 0xc

Function at 0x401479
Capabilities:
Delete service

Disassembly:
push esi
push 0xf01ff
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40149a
mov eax, 0x200041
jmp 0x4014c1
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4014ac
mov eax, 0x200044
jmp 0x4014c1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg eax
sbb eax, eax
and eax, 0xffdfffbe
add eax, 0x200042
pop esi
ret 8

Function at 0x4014c5
Capabilities:
Start service

Disassembly:
push esi
push 0xf01ff
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4014e6
mov eax, 0x200041
jmp 0x40151e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401509
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x401509
mov eax, 0x200043
jmp 0x40151e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg eax
sbb eax, eax
and eax, 0xffdfffbe
add eax, 0x200042
pop esi
ret 8

Function at 0x401522
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401547
mov eax, 0x200041
jmp 0x401574
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40155f
mov eax, 0x200045
jmp 0x401574
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg eax
sbb eax, eax
and eax, 0xffdfffbe
add eax, 0x200042
pop esi
leave
ret 8

Function at 0x405702
Capabilities:
Terminate process

Disassembly:
push 0x417f14
push dword [esp + 8]
call fcn.0040a698
pop ecx
mov dword [0x424f28], eax
test eax, eax
pop ecx
jne 0x405749
push dword [esp + 4]
push str.Error_opening___s_r_n
call fcn.0040968b
push 0x421a00
call fcn.0040a394
add esp, 0xc
mov eax, dword [0x424f28]
test eax, eax
je 0x405746
push eax
call fcn.0040a622
pop ecx
ret 4
call fcn.004055b4
test eax, eax
je 0x405736
push 6
push 0x421530
call fcn.0040565f
test eax, eax
jne 0x405749
push 0xffffffffffffffff
call fcn.0040a54d
mov ax, word [0x424f78]
push 0
push eax
push dword [0x424f70]
call fcn.0040774c
test eax, eax
mov dword [0x424f2c], eax
jne 0x40578c
mov eax, 0x120002
ret
call fcn.004055b4
test eax, eax
je 0x4057a5
push 2
push 0x421578
call fcn.0040565f
test eax, eax
jne 0x40578c
xor eax, eax
ret
Function at 0x406fd5
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40700d
lea eax, [ebp - 0x1c]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x407bde
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
mov esi, str.dmiedit.log
lea edi, [ebp - 0x50]
push 0x44
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.PATH
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
xor edi, edi
call fcn.00409590
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
mov dword [ebp - 0x94], esi
call fcn.00409590
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push 0x800
push ebx
push ebx
push ebx
push str.dmi16.exe
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407c58
mov eax, 0x120019
jmp 0x407d7a
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040a7af
add esp, 0xc
cmp byte [ebp - 0xe4], bl
je 0x407d68
push 0x4195ac
push str.dmiedit.log
call fcn.0040a698
mov esi, eax
pop ecx
pop ecx
test byte [esi + 0xc], 0x10
je 0x407cae
push str._nUnable_to_open_log_file
call fcn.0040968b
jmp 0x407d4a
push esi
lea eax, [ebp - 0x44]
push 0x2a
push eax
call fcn.0040a4a1
add esp, 0xc
test eax, eax
je 0x407cae
cmp byte [ebp - 0x44], 4
je 0x407d4b
push 5
lea eax, [ebp - 0x44]
push str.DMI16
push eax
call fcn.0040a260
add esp, 0xc
test eax, eax
je 0x407d36
push 4
lea eax, [ebp - 0x44]
push str.Done
push eax
call fcn.0040a260
add esp, 0xc
test eax, eax
jne 0x407d02
mov byte [0x421671], 1
jmp 0x407cae
push 6
lea eax, [ebp - 0x44]
push 0x419578
push eax
call fcn.0040a260
add esp, 0xc
test eax, eax
jne 0x407d21
mov byte [0x421671], bl
jmp 0x407cae
lea eax, [ebp - 0x44]
push eax
push 0x417efc
call fcn.0040968b
pop ecx
pop ecx
jmp 0x407cae
lea eax, [ebp - 0x44]
mov edi, 0x120019
push eax
push 0x419574
call fcn.0040968b
pop ecx
pop ecx
cmp esi, ebx
je 0x407d56
push esi
call fcn.0040a622
pop ecx
call fcn.0040a757
lea eax, [ebp - 0xe4]
push eax
call fcn.0040a72d
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d98f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d9af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d794
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40d9d0
test byte [esp + 8], 2
je 0x40d9d0
mov dword [0x424f88], 0xd
mov dword [0x424f8c], 5
jmp 0x40d9ab
xor eax, eax
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219