joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497c16
Capabilities:
Get graphical window text

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

Function at 0x499308
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 0x49934a
call fcn.0049f086
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49934a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499341
xor eax, eax
jmp 0x499352
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499358
pop edi
pop esi
pop ebx
ret 4

Function at 0x49f5b6
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 0x49f5e4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49f602
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f51c
jmp 0x49f602
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49f602
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f51c
test edi, edi
mov eax, edi
jne 0x49f5ec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5363f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x53b494]
cmp dword [eax + 0x28], 0
jne 0x536408
xor eax, eax
jmp 0x536537
mov ecx, dword [0x53b414]
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 [0x53b408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x53b404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x53b408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x53b404]
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 [0x53b48c]
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 0x53a604
push 0x53a620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x53b400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00536330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x5363c0
mov edx, dword [0x53b494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x53b40c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x536537
cmp dword [ebp - 0x38], 0x12
jne 0x53652b
mov dword [0x53b41c], 0
call fcn.00536540
xor eax, eax
jmp 0x536537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x5364fc
mov esp, ebp
pop ebp
ret 4

Function at 0x537840
Capabilities:
Read .ini file
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 [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x53820c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x53a118
sub eax, eax
test esi, esi
je 0x5382e4
sub eax, 1
test ecx, ecx
je 0x5382e2
test esi, 3
je 0x53824a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x53822f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x5382c9
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 0x538254
mov ecx, edx
test ecx, ecx
je 0x5382e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5382cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5382ec
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.0053836f
jae 0x5382fa
xor ecx, ecx
call fcn.0053836f
jae 0x538329
xor eax, eax
call fcn.0053836f
jae 0x538339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0053836f
adc al, al
jae 0x53831b
jne 0x538365
stosb byte es:[edi], al
jmp 0x5382fd
call fcn.0053837b
sub ecx, ebx
jne 0x538342
call fcn.00538379
jmp 0x538361
lodsb al, byte [esi]
shr eax, 1
je 0x53838b
adc ecx, ecx
jmp 0x53835e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00538379
cmp eax, 0x7d00
jae 0x53835e
cmp ah, 5
jae 0x53835f
cmp eax, 0x7f
ja 0x538360
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 0x5382fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x538c7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53b000]
jne 0x538c86
repz ret
jmp fcn.00538f2d

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x40915c
nop
mov ecx, 0x34c44da0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x5ae20853
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40147b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x114]
sub esp, 0x134
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
call dword [sym.imp.USER32.dll_GetCursorPos]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x4014f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040147b
mov dword [esp], 0x4015cc
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202e
sub eax, 0x4015cc
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401593
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.00401382
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013f5
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b600]
shl eax, cl
mov dword [esp + 4], eax
mov eax, 0x40300c
shr eax, cl
mov dword [esp], eax
call fcn.00401d31
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401040
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 6
push 1
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4010b9
push str.get_sock__defeat....
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
or ax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.get_sock_succesful....
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401100
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 8]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esi], eax
mov dword [esp + 0x1c], 0x7530
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x40115b
call ebx
push eax
push str.SO_ERROR_failed:__d_n
call fcn.004f172e
add esp, 8
mov ecx, dword [esi]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x401190
call ebx
push eax
push str.SO_ERROR_failed:__d_n
call fcn.004f172e
add esp, 8
mov edx, dword [esp + 0x18]
push edi
lea edi, [esi + 4]
push edx
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 6], ax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi]
push 0x10
push edi
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
pop edi
jne 0x4011ee
call ebx
push eax
push str.CONNECT_failed:__d_n
call fcn.004f172e
add esp, 8
mov ecx, esi
call fcn.00401310
pop esi
or ax, 0xffff
pop ebx
add esp, 8
ret 8
pop esi
mov ax, 1
pop ebx
add esp, 8
ret 8
Function at 0x401200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 0x531520
lea ecx, [ebp - 0x40]
push str.yes::_s
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], eax
call fcn.004f175f
mov eax, dword [esi]
add esp, 0xc
lea edx, [ebp - 0x44]
push 0
push 0x34
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x401299
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed:__d_n
call fcn.004f172e
add esp, 8
mov ecx, esi
call fcn.00401310
or ax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401350
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x290
lea eax, [esp + 0x100]
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x88]
push 0x10
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4013a8
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4013d9
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 8]
mov edi, eax
jmp 0x4013e2
lea edx, [esp + 8]
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x29c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x290
ret
Function at 0x4015d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
push str.Idle
rep stosd dword es:[edi], eax
push 0x531420
mov dword [esp + 0x14], 0x128
call ebx
cmp esi, 0xffffffff
je 0x401686
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40167f
mov edi, dword [esp + 0x35c]
mov edx, dword [esp + 0x14]
cmp edx, edi
je 0x40163f
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401626
jmp 0x40167f
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x138]
push edx
rep stosd dword es:[edi], eax
push 8
mov dword [esp + 0x13c], 0x224
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x134]
push edx
push eax
call sub.KERNEL32.dll_Module32First
lea eax, [esp + 0x254]
push eax
push 0x531420
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x531420
pop ebx
add esp, 0x34c
ret
Function at 0x402740
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
test eax, eax
jne 0x402755
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4027b3
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
test eax, eax
je 0x4027ab
mov ecx, dword [esi]
push ecx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
jne 0x402780
pop edi
pop esi
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
test eax, eax
jne 0x40279e
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x4037d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe3f8
push 0x4f2680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x24], esi
or ebx, 0xffffffff
cmp esi, ebx
jne 0x403851
mov eax, dword [0x563c78]
test eax, eax
je 0x40383b
push str._could_not_open_
call fcn.004f2758
add esp, 4
mov dword [ebp - 4], ebx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x8000002
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x4038a1
mov eax, dword [0x563c78]
test eax, eax
je 0x403884
push str._mapping_failed_
call fcn.004f2758
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x4038dd
mov eax, dword [0x563c78]
test eax, eax
je 0x4038cf
push str._view_failed_
call fcn.004f2758
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
jmp 0x403917
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403e00
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 1
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x403e30
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret
Function at 0x403e40
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push ebx
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x403e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService___failed.err_d._n
call fcn.004f172e
add esp, 8
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea edx, [esp + 4]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x403ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus___failed.err_d._n
call fcn.004f172e
add esp, 8
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, dword [esp + 0x24]
mov esi, eax
cmp dword [esp + 0x14], 2
jne 0x403f23
mov eax, 0xcccccccd
mul dword [esp + 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x403edc
mov edx, 0x3e8
jmp 0x403ee9
cmp edx, 0x2710
jbe 0x403ee9
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403f23
cmp dword [esp + 0x24], ebp
jbe 0x403f10
call edi
mov ebp, dword [esp + 0x24]
mov esi, eax
jmp 0x403f1c
call edi
mov ecx, dword [esp + 0x28]
sub eax, esi
cmp eax, ecx
ja 0x403f23
cmp dword [esp + 0x14], 2
je 0x403ec1
cmp dword [esp + 0x14], 4
jne 0x403f40
push ebx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x403f60
Capabilities:
Check os version

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x403f84
mov eax, dword [esp + 0x44]
lea ecx, [esp]
push eax
push str..Global_s
push ecx
jmp 0x403f93
mov edx, dword [esp + 0x44]
lea eax, [esp]
push edx
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x403fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile___failed.err_d._n
call fcn.004f172e
add esp, 8
xor eax, eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x403feb
mov dword [ecx], eax
mov eax, 1
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x40
ret
Function at 0x404000
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40403a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService___failed.err_d._n
call fcn.004f172e
add esp, 8
xor eax, eax
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
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
add esp, 0x1c
ret

Function at 0x404060
Capabilities:
Delete service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x404094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService___failed.err_d._n
call fcn.004f172e
add esp, 8
xor eax, eax
pop esi
ret
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
ret