joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49ff08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x45e799
inc eax
mov dword [esi + 0x10], eax
jmp 0x45e8ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x45e7ad
mov eax, 0xffffffc7
jmp 0x45e8ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x45e7be
cmp dword [esi + 8], eax
jne 0x45e7ad
cmp dword [esi + 8], eax
jne 0x45e7d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x45e7d7
mov eax, 0xffffffc7
jmp 0x45e8ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x45e7eb
push eax
mov ecx, ebx
call fcn.0045df90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0042e6d0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x45e81c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0042e6f0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0045d700
test eax, eax
mov dword [esp + 0x38], eax
je 0x45e84f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4d8cc0
call fcn.0042e8d0
mov eax, dword [esp + 0x38]
jmp 0x45e8ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0045e5c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x45e893
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0045e5e0
mov esi, eax
test esi, esi
jne 0x45e8c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0045e5c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x45e865
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4d8cc0
call fcn.0042e8d0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4d8cc0
call fcn.0042e8d0
mov eax, esi
jmp 0x45e8ae

Function at 0x4619e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x461a40
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x461a40
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x461a40
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x461a40
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x461a80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4679c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a0538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00497306
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00467360
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00497234
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00493a1e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00493a1e
push 1
push 0
push 0
mov ecx, esi
call fcn.004939c6
push 1
push 0
push 1
mov ecx, esi
call fcn.004939c6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00497378
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x467b40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a0558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00497306
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00467360
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00497234
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x467c04
cmp dword [esp + 0x40], 1
jne 0x467c02
cmp ecx, eax
jge 0x467c04
mov eax, ecx
cmp eax, 0xc8
jge 0x467c10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004679c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00497378
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x468390
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a05c3
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.00491e3e
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.004975ae
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00498b06
test eax, eax
je 0x4684ac
mov ecx, dword [esp + 0x3c]
call fcn.004975db
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 0x468470
push edi
mov ecx, esi
call fcn.00494b9c
mov ecx, esi
call fcn.00468610
cmp dword [esp + 0x38], 1
jne 0x4684a5
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.00494d06
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 0x46aee0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46af13
push esi
call fcn.0046dfd0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46af0c
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 0x46af99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46af82
mov eax, dword [esi + 8]
test eax, eax
je 0x46af37
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 0x46af7e
cmp eax, 2
je 0x46af82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46af2a
cmp eax, 3
je 0x46af5d
cmp eax, 1
jne 0x46af2a
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 0x46af2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46af2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046afc0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46afa8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046afc0
add esp, 4
pop esi
ret

Function at 0x492c34
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x492c6c
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.00490cbe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490c96
jmp 0x492c78
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x494322
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 0x494364
call fcn.0049a00d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x494364
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49435b
xor eax, eax
jmp 0x49436c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00494372
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a53d
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 0x49a56b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a589
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a4a3
jmp 0x49a589
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a589
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a4a3
test edi, edi
mov eax, edi
jne 0x49a573
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
mov ecx, 0xce67a2f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
mov ecx, 0xb5974db
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4eaf67
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004eafe6
jae 0x4eaf73
xor ecx, ecx
call fcn.004eafe6
jae 0x4eaf9d
xor eax, eax
call fcn.004eafe6
jae 0x4eafae
mov al, 0x10
call fcn.004eafe6
adc al, al
jae 0x4eaf8f
jne 0x4eafdb
stosb byte es:[edi], al
jmp 0x4eaf74
call fcn.004eaff2
dec ecx
loop 0x4eafba
mov eax, ebp
call fcn.004eaff0
jmp 0x4eafdc
lodsb al, byte [esi]
shr eax, 1
je 0x4eb002
adc ecx, 2
mov ebp, eax
jmp 0x4eafdc
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004eaff0
cmp eax, 0x7d00
jae 0x4eafda
cmp eax, 0x500
jae 0x4eafdb
cmp eax, 0x7f
ja 0x4eafdc
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4eaf74
pop ebp
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4016a0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add esi, 4
mov edi, eax
push 4
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4016e3
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4016e3
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x401700
Capabilities:
Create service
Persist via windows service

Disassembly:
push ecx
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40171c
pop ebx
pop ecx
ret 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
push 0
push 0
push 0
push 0
push 0
push ebp
push 1
push 2
push 1
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401773
mov edx, dword [esp + 0x10]
push 0x64
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], 0x64
jl 0x40172f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret 8

Function at 0x4017e0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x3c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
mov eax, dword [esp + 0x4c]
push 0xf01ff
push eax
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401880
lea ecx, [esp + 0x28]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401880
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edi
push edx
push esi
xor edi, edi
call ebx
cmp eax, 1
jne 0x401865
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x3e8
jg 0x401861
cmp dword [esp + 0x18], 1
je 0x401861
push 0x64
call ebp
lea eax, [esp + 0x14]
inc edi
push eax
push esi
call ebx
cmp eax, 1
je 0x401840
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x3c
ret 8
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret 8
Function at 0x401890
Capabilities:
Modify service
Query service configuration
Start service

Disassembly:
push ecx
push ebx
push esi
push edi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x18]
push 0xf01ff
push eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x401995
push ebp
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40196a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push 0x400
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40196a
lea ebp, [esi + 0x10c]
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
push ebp
call esi
mov edx, dword [edi + 0xc]
push edx
call esi
mov eax, dword [edi + 0xc]
add esp, 8
mov esi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40193d
test cl, cl
je 0x401939
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40193d
add eax, 2
add esi, 2
test cl, cl
jne 0x401919
xor eax, eax
jmp 0x401942
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40196a
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x40196a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
pop ebp
jne 0x40198a
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x402740
Capabilities:
Get file version info

Disassembly:
sub esp, 8
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ebx, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402765
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x10]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x402780
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x402799
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4027bd
mov ecx, ebx
call fcn.00402710
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [ebx]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push str.VarFileInfoTranslation
push ecx
mov dword [esp + 0x2c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4027f3
mov ecx, ebx
call fcn.00402710
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
pop edi
pop esi
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
shl ecx, 0x10
or edx, ecx
pop ebp
mov dword [ebx + 4], edx
mov eax, 1
pop ebx
add esp, 8
ret 4
Function at 0x402ce0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
mov edx, dword [esp + 0x10c]
mov ecx, dword [ecx + 0x434]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x110]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402d89
push esi
push edi
mov ecx, 0x3f
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call esi
push eax
lea edx, [esp + 0x10]
push 0x418578
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x423658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x76
push str.C:TEMPRisingAutoLinkProduct2005AppPersonalRavMonRavMonDPop3FilePop3File.cpp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407b30
add esp, 0x14
push 0x423658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x104
ret 8
mov eax, dword [esp]
add esp, 0x104
ret 8

Function at 0x402da0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
push 0
push eax
mov eax, dword [esi + 0x434]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402dd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret 8
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x438]
add eax, ecx
mov dword [esi + 0x438], eax
mov eax, 1
pop esi
ret 8

Function at 0x402df0
Capabilities:
Delete file

Disassembly:
add ecx, 0x330
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret