joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48be70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x55000]
push edi
jmp 0x48be8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48be91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48be80
mov eax, 1
add ebx, ebx
jne 0x48bea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48beb4
jne 0x48bed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bed3
dec eax
add ebx, ebx
jne 0x48bec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48be98
add ebx, ebx
jne 0x48becf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48bf25
xor ecx, ecx
sub eax, 3
jb 0x48beeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48bf5a
sar eax, 1
mov ebp, eax
jmp 0x48bef6
add ebx, ebx
jne 0x48bef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bec4
inc ecx
add ebx, ebx
jne 0x48bf04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48bec4
add ebx, ebx
jne 0x48bf11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48bf06
jne 0x48bf22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48bf06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48bf44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48bf36
jmp 0x48be86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48bf44
add edi, ecx
jmp 0x48be86
pop esi
mov edi, esi
mov ecx, 0x3132
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48bf62
cmp byte [edi], 0x19
jne 0x48bf62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48bf67
lea edi, [esi + 0x88000]
mov eax, dword [edi]
or eax, eax
je 0x48bfdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x906e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x907fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48bf94
mov ecx, edi
jns 0x48bfc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x90800]
or eax, eax
je 0x48bfd9
mov dword [ebx], eax
add ebx, 4
jmp 0x48bfb1
call dword [esi + 0x90810]
mov ebp, dword [esi + 0x90804]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48c013
sub esp, 0xffffff80
jmp 0x453cde
Function at 0x732610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x7384cc]
cmp dword [eax + 0x28], 0
jne 0x732628
xor eax, eax
jmp 0x732757
mov ecx, dword [0x73843c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x738430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x73842c], eax
push 0
call dword [0x736138]
mov dword [ebp - 0x10], eax
push 1
call dword [0x736138]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x738430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x73842c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x7384b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x736680
push 0x7366d0
push 0x88
call dword [0x736134]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x738428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x73610c]
push eax
call fcn.00732550
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [0x736148]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x73612c]
push 0x7325e0
mov edx, dword [0x7384cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [0x73613c]
mov dword [0x738434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x736130]
test eax, eax
je 0x732757
cmp dword [ebp - 0x38], 0x12
jne 0x73274b
mov dword [0x738444], 0
call fcn.00732760
xor eax, eax
jmp 0x732757
lea edx, [ebp - 0x3c]
push edx
call dword [0x736140]
jmp 0x73271c
mov esp, ebp
pop ebp
ret 4

Function at 0x733b30
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [fcn.007360dc]
call dword [fcn.00736124]
call dword [fcn.00736128]
call dword [fcn.00736094]
call dword [fcn.007360fc]
call dword [fcn.007360f4]
call dword [fcn.00736150]
call dword [fcn.0073600c]
call dword [fcn.00736000]
call dword [fcn.00736160]
call fcn.00735674
mov eax, 1
pop ebp
ret 4
Function at 0x7346cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x736168
sub eax, eax
test esi, esi
je 0x7347a4
sub eax, 1
test ecx, ecx
je 0x7347a2
test esi, 3
je 0x73470a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x7346ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x734789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x734714
mov ecx, edx
test ecx, ecx
je 0x7347a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x73478f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x7347ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0073482f
jae 0x7347ba
xor ecx, ecx
call fcn.0073482f
jae 0x7347e9
xor eax, eax
call fcn.0073482f
jae 0x7347f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0073482f
adc al, al
jae 0x7347db
jne 0x734825
stosb byte es:[edi], al
jmp 0x7347bd
call fcn.0073483b
sub ecx, ebx
jne 0x734802
call fcn.00734839
jmp 0x734821
lodsb al, byte [esi]
shr eax, 1
je 0x73484b
adc ecx, ecx
jmp 0x73481e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00734839
cmp eax, 0x7d00
jae 0x73481e
cmp ah, 5
jae 0x73481f
cmp eax, 0x7f
ja 0x734820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7347bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x73517c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x738000]
jne 0x735186
repz ret
jmp fcn.0073542d
Function at 0x402f20
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [esp + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
test eax, eax
jne 0x402f59
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
cmp dword [esi], 0
je 0x402f55
mov eax, 1
pop esi
ret

Function at 0x405960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405979
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4059b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4059b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4059b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4059a0
cmp esi, eax
jb 0x4059ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405c50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, eax
jmp 0x405c70
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405c7d
cmp dword [eax], 0
jne 0x405cb6
push 1
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x405caa
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
call edi
call ebx
sub eax, ebp
cmp eax, esi
jb 0x405c70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x405cf0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x3ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0045a0f0
mov edx, dword [esp + 0x414]
lea ecx, [esp + 0x418]
push ecx
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0045b6f8
add esp, 0x18
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
xor eax, eax
call fcn.00459426
add esp, 0x404
ret
Function at 0x405e50
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405eb0
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x405e9d
cmp eax, 2
je 0x405e9d
pop edi
mov eax, 0xd
pop esi
ret 0xc
test esi, esi
mov eax, dword [esp + 0x14]
je 0x405eac
cmp byte [eax + esi - 1], 0
jne 0x405e93
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x405ef0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi], vtable.CWSocket.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405f4c
mov dword [esi + 0x24], 1
mov dword [esi + 4], edi
jmp 0x405f58
mov dword [esi + 0x24], edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x198]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00459426
add esp, 0x194
ret
Function at 0x406430
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x110], eax
movzx eax, word [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
push edi
push 0x490220
push eax
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp dword [esp + 0x130], ebp
mov dword [esp + 0x10], eax
jne 0x4064a3
xor eax, eax
jmp 0x406490
mov cl, byte [eax + 0x4b39d0]
mov byte [esp + eax + 0x1c], cl
add eax, 1
test cl, cl
jne 0x406490
jmp 0x4064d4
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x1c]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4064c0
mov dx, word [0x490010]
mov word [edi], dx
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4064d8
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4064f0
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
push 2
push 0
push 0
mov ecx, eax
push 0x40000000
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406555
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x406558
or eax, 0xffffffff
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459426
add esp, 0x114
ret

Function at 0x406ba0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406bc6
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
test eax, eax
je 0x406c0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x14
ret
Function at 0x406d60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0045a0f0
mov eax, dword [esp + 0x64]
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
xor eax, eax
lea edx, [esp + 0x14]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406dc0
add esp, 0x54
ret 8
push 0
push 0x64
call fcn.00405c50
add esp, 8
cmp dword [0x4b3ae0], 0
je 0x406dc0
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [0x4b3ae0], 0
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret 8

Function at 0x408210
Capabilities:
Modify service
Query or enumerate registry value
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487c00
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 4
mov dword [ebp - 4], edi
jne 0x408298
push 0x20
call fcn.004186d7
mov esi, eax
add esp, 4
cmp esi, edi
je 0x408290
push 4
push str.__guardclient_live_exchange_bread
push edi
mov ecx, esi
mov dword [esi], vtable.CSFMServer.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.00406020
jmp 0x408292
xor esi, esi
cmp esi, edi
mov dword [ebx], esi
je 0x4082a7
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x4082a7
mov dword [eax], 1
cmp dword [ebp + 0xc], edi
je 0x40832a
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x40832a
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x408303
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push str.Start
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], 2
je 0x408303
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x408303
push str.ChangeServiceConfig_error
push 0x490428
call fcn.00405cf0
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [ebp - 0x38]
push edx
push esi
call ebx
test eax, eax
je 0x40832a
cmp dword [ebp - 0x34], 4
je 0x40832a
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea eax, [ebp - 0x38]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487ca8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
xor edi, edi
push edi
push 0x48fb7c
push eax
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edi
mov dword [esi], vtable.CTfxLock.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00408790
test eax, eax
jne 0x409af5
push edi
jmp 0x409b05
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x409b04
lea eax, [esp + 0x20]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x409b1b
mov dword [esi + 8], 1
cmp dword [esp + 0x34], 0x10
jb 0x409b2f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00418702
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x1c

Function at 0x40a9f0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0045be80
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
mov esi, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
push 0x1fff
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.0045a0f0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x40aa9c
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40aa9c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x490010
lea edx, [esp + 0x20]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40aa9c
mov eax, dword [esp + 8]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
push edi
call fcn.0040a590
add esp, 0x18
mov eax, 1
jmp 0x40aa9e
xor eax, eax
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.00459426
add esp, 0x2010
ret 8
Function at 0x40c5a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x488268
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b2288]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, ecx
mov eax, dword [esi + 0x17c]
xor ebx, ebx
cmp eax, ebx
je 0x40c5e8
push eax
call edi
mov eax, dword [0x4b3ad8]
cmp eax, ebx
je 0x40c5f4
push eax
call edi
mov eax, dword [esi + 0x184]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40c607
push eax
call edi
mov ecx, dword [esi + 0x69c]
cmp ecx, ebx
je 0x40c61f
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x69c], ebx
mov ecx, dword [esi + 0x18c]
cmp ecx, ebx
je 0x40c637
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x18c], ebx
mov ecx, dword [esi + 0x190]
cmp ecx, ebx
je 0x40c64f
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x190], ebx
mov eax, dword [esi + 0x17c]
cmp eax, ebx
je 0x40c662
push eax
call edi
mov dword [esi + 0x17c], ebx
mov eax, dword [0x4b3ad8]
cmp eax, ebx
je 0x40c674
push eax
call edi
mov dword [0x4b3ad8], ebx
mov ecx, esi
call fcn.00406640
lea edi, [esi + 0x74]
mov eax, edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c693
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00404640
add esi, 0x420
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x60], ebx
call fcn.00404a90
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x28], esi
jb 0x40c6de
mov edx, dword [esp + 0x14]
push edx
call fcn.00418702
add esp, 4
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x40c6ec
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x44], esi
jb 0x40c706
mov eax, dword [esp + 0x30]
push eax
call fcn.00418702
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00459426
add esp, 0x48
ret
Function at 0x40e8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4885c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4b2288]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004090e0
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], 0x3f1
mov dword [esp + 0x14], 0x1391
mov dword [esp + 0x18], 0x2719
mov dword [esp + 0x1c], 0x4e2b
mov dword [esp + 0x20], 0xc365
mov dword [esp + 0x24], 0x186a3
mov dword [esp + 0x28], 0x30d43
mov dword [esp + 0x2c], 0x7a129
xor ecx, ecx
nop
mov eax, dword [esp + ecx*4 + 0x10]
cmp edx, eax
mov dword [esi + 0xc], eax
jle 0x40e963
add ecx, 1
cmp ecx, 8
jl 0x40e950
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418707
mov ecx, dword [esi + 0xc]
add ecx, ecx
add ecx, ecx
push ecx
push edi
push eax
mov dword [esi + 0x14], eax
call fcn.0045a0f0
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 8
Function at 0x411560
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x240], 0
je 0x41160b
cmp dword [esi + 0x248], 0
je 0x4115c5
cmp dword [esi + 0x244], 0
je 0x41160b
cmp dword [esi + 0x204], 0x10
jb 0x411597
mov eax, dword [esi + 0x1f0]
jmp 0x41159d
lea eax, [esi + 0x1f0]
push eax
call fcn.00405cc0
add esp, 4
test eax, eax
jle 0x41160b
mov eax, dword [esi + 0x23c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
jns 0x41160b
mov ecx, esi
pop esi
jmp fcn.00411200
cmp dword [esi + 0x358], 0
jne 0x4115e7
mov eax, dword [esi + 0x23c]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
jns 0x41160b
pop esi
jmp fcn.00411200
cmp dword [esi + 0x374], 0
je 0x41160b
call fcn.00411200
mov dword [esi + 0x374], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x370], eax
pop esi
ret