joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420490
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push esi
push edi
mov esi, 0x540e48
lea edi, [ebp - 0x8c]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
push str.127.0.0.1
call sub.WS2_32.DLL_inet_addr
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx]
jne 0x4204d4
mov dword [ebp - 8], 1
jmp 0x420597
push 0x7f
lea eax, [ebp - 0x8c]
push eax
call sub.WS2_32.DLL_gethostname
test eax, eax
jne 0x420597
lea edx, [ebp - 0x8c]
push edx
call sub.WS2_32.DLL_gethostbyname
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x42057e
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov cl, byte [eax]
cmp edx, ecx
jne 0x42057b
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 1]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
xor edx, edx
mov dl, byte [ecx + 1]
cmp eax, edx
jne 0x42057b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 2]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [edx + eax*4]
xor eax, eax
mov al, byte [edx + 2]
cmp ecx, eax
jne 0x42057b
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [edx + 3]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, dword [edx + eax*4]
xor eax, eax
mov al, byte [edx + 3]
cmp ecx, eax
jne 0x42057b
mov dword [ebp - 8], 1
jmp 0x420597
inc dword [ebp - 0xc]
cmp dword [ebp - 4], 0
je 0x420597
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0xc]
cmp dword [ecx + eax*4], 0
jne 0x420500
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4205e4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push esi
push edi
mov esi, 0x5411bc
lea edi, [ebp - 0x104]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x5412c0
lea edi, [ebp - 0x208]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0x547de7
lea eax, [ebp - 0x208]
push eax
call fcn.00420bd0
add esp, 8
push eax
push 0x104
lea edx, [ebp - 0x104]
push edx
push 0x547ddf
push 0x547dd6
push 0x547dcd
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push str.CHINESE
lea ecx, [ebp - 0x104]
push ecx
call fcn.00503c44
add esp, 8
test eax, eax
jne 0x420667
mov eax, 1
jmp 0x420669
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42096c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push dword [ebp + 8]
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4209a9
push dword [ebp + 8]
call sub.WS2_32.DLL_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4209af
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
jmp 0x4209af
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x1c]
call sub.WS2_32.DLL_inet_ntoa
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4209d0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.00503a5c
add esp, 8
jmp 0x4209de
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00503a5c
add esp, 8
push dword [ebp + 0xc]
call fcn.00503a8c
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x420c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
cmp dword [ebp + 8], 0
jne 0x420c76
mov dword [ebp + 8], 0x547f1b
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
lea edx, [ebp - 0x108]
push edx
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x421c60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 6
push dword [ebp + 8]
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421ca8
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x558878
push 0x577970
call fcn.00505c70
add esp, 0xc
push dword [ebp + 8]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 4]
call sub.KERNEL32.DLL_UnmapViewOfFile
pop ecx
pop ebp
ret
push dword [ebp + 0x14]
movsx eax, byte [ebp + 0x10]
push eax
push dword [ebp - 4]
call fcn.005038dc
add esp, 0xc
push dword [ebp - 4]
call sub.KERNEL32.DLL_UnmapViewOfFile
pop ecx
pop ebp
ret

Function at 0x421cc8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x421cd7
xor eax, eax
pop ecx
pop ebp
ret
push 0
push 0
push 0
push 6
push dword [ebp + 8]
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421d1d
call sub.KERNEL32.DLL_GetLastError
push eax
push str.MapViewOfFile___failed__error_code:__lu_n
push 0x577970
call fcn.00505c70
add esp, 0xc
push dword [ebp + 8]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 4]
call sub.KERNEL32.DLL_UnmapViewOfFile
xor eax, eax
pop ecx
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0xc]
pop ecx
pop ebp
ret
Function at 0x4251ac
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push str.localhost
push dword [ebp + 8]
call fcn.00503c44
add esp, 8
test eax, eax
jne 0x4251d3
mov eax, 1
jmp 0x425275
push str.127.
call fcn.00503a8c
pop ecx
push eax
push 0x5627a2
push dword [ebp + 8]
call fcn.00503b58
add esp, 0xc
test eax, eax
jne 0x4251fa
mov eax, 1
jmp 0x425275
push 0x10
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.005038dc
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x425266
push dword [ebp + 8]
call sub.WS2_32.DLL_gethostbyname
mov dword [ebp - 4], eax
test eax, eax
jne 0x425248
call sub.WS2_32.DLL_WSAGetLastError
push eax
push 0x5627ac
lea edx, [ebp - 0xe0]
push edx
call fcn.00506898
add esp, 0xc
xor eax, eax
jmp 0x425275
mov edx, dword [ebp - 4]
movsx ecx, word [edx + 0xa]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
push dword [edx]
lea ecx, [ebp - 0x14]
push ecx
call fcn.0050386c
add esp, 0xc
jmp 0x42526c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.004205a0
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42527c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push esi
push edi
mov esi, 0x560c14
lea edi, [ebp - 0x128]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jmp 0x425479
push 0x5627d9
mov edx, dword [ebp - 8]
push dword [edx]
call fcn.00503c44
add esp, 8
test eax, eax
je 0x4252d0
push 0x5627e6
mov ecx, dword [ebp - 8]
push dword [ecx]
call fcn.00503c44
add esp, 8
test eax, eax
jne 0x4252de
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
jmp 0x425479
mov ecx, dword [ebp - 8]
push dword [ecx]
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x42532e
mov eax, dword [ebp - 8]
push dword [eax]
call sub.WS2_32.DLL_gethostbyname
mov dword [ebp - 4], eax
test eax, eax
jne 0x425310
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
jmp 0x425479
mov eax, dword [ebp - 4]
movsx edx, word [eax + 0xa]
push edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
push dword [eax]
lea edx, [ebp - 0x20]
push edx
call fcn.0050386c
add esp, 0xc
jmp 0x42533c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 8], eax
jmp 0x425479
push 0x5627ed
push dword [ebp + 8]
call fcn.00421182
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x425377
push 0x18
call fcn.00420d10
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 4
push 0x5627fa
push dword [ebp + 8]
call fcn.00420fc7
add esp, 0x14
push dword [ebp - 0x20]
call sub.WS2_32.DLL_inet_ntoa
push eax
push 0x562807
lea edx, [ebp - 0x128]
push edx
call fcn.00506898
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push dword [ebp - 0x10]
call fcn.00421182
add esp, 8
test eax, eax
jne 0x4253d6
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.00503c10
pop ecx
push eax
mov edx, dword [ebp - 8]
push dword [edx]
call fcn.00503a8c
pop ecx
push eax
push 1
lea ecx, [ebp - 0x128]
push ecx
push dword [ebp - 0x10]
call fcn.00420fc7
add esp, 0x14
push 0x56280a
push dword [ebp + 8]
call fcn.00421182
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x425411
push 0x18
call fcn.00420d10
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0xffffffffffffffff
push 4
push 0x562811
push dword [ebp + 8]
call fcn.00420fc7
add esp, 0x14
push dword [ebp - 0x20]
call sub.WS2_32.DLL_inet_ntoa
push eax
push 0x562818
lea eax, [ebp - 0x128]
push eax
call fcn.00506898
add esp, 0xc
mov edx, dword [ebp - 8]
push dword [edx]
push dword [ebp - 0x14]
call fcn.00421182
add esp, 8
test eax, eax
jne 0x425470
lea ecx, [ebp - 0x128]
push ecx
call fcn.00503c10
pop ecx
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00503a8c
pop ecx
push eax
push 1
mov edx, dword [ebp - 8]
push dword [edx]
push dword [ebp - 0x14]
call fcn.00420fc7
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42548c
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x4252a4
mov ecx, dword [ebp + 8]
mov dword [0x560410], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42549c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe08
push esi
push edi
mov esi, 0x560d18
lea edi, [ebp - 0x130]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
push 6
push 1
push 2
call sub.WS2_32.DLL_socket
mov dword [ebp - 0x10], eax
test eax, eax
jge 0x4254fb
call sub.WS2_32.DLL_WSAGetLastError
push eax
push str.socket_failed__errno:_d
lea edx, [ebp - 0x1f8]
push edx
call fcn.00506898
add esp, 0xc
or eax, 0xffffffff
jmp 0x425664
push 0x10
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.005038dc
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x130]
push ecx
call fcn.00503a5c
add esp, 8
push 0x562835
push dword [0x560410]
call fcn.00421182
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42556f
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.00421182
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42556f
push dword [ebp - 0x1c]
call fcn.00503a8c
pop ecx
test eax, eax
je 0x42556f
push dword [ebp - 0x1c]
lea eax, [ebp - 0x130]
push eax
call fcn.00503a5c
add esp, 8
lea edx, [ebp - 0x130]
push edx
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4255df
lea ecx, [ebp - 0x130]
push ecx
call sub.WS2_32.DLL_gethostbyname
mov dword [ebp - 4], eax
test eax, eax
jne 0x4255c1
call sub.WS2_32.DLL_WSAGetLastError
push eax
push str.gethostbyname_and_inet_addr_failed__errno:_d
lea edx, [ebp - 0x1f8]
push edx
call fcn.00506898
add esp, 0xc
push dword [ebp - 0x10]
call sub.WS2_32.DLL_closesocket
or eax, 0xffffffff
jmp 0x425664
mov edx, dword [ebp - 4]
movsx ecx, word [edx + 0xa]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
push dword [edx]
lea ecx, [ebp - 0x28]
push ecx
call fcn.0050386c
add esp, 0xc
jmp 0x4255e5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov word [ebp - 0x2c], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WS2_32.DLL_htons
mov word [ebp - 0x2a], ax
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
push dword [ebp - 0x10]
call sub.WS2_32.DLL_ioctlsocket
test eax, eax
jge 0x425622
push dword [ebp - 0x10]
call sub.WS2_32.DLL_closesocket
or eax, 0xffffffff
jmp 0x425664
push 0x10
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x10]
call sub.WS2_32.DLL_connect
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push dword [ebp - 0x10]
call sub.WS2_32.DLL_ioctlsocket
test eax, eax
jge 0x42565a
push dword [ebp - 0x10]
call sub.WS2_32.DLL_closesocket
or eax, 0xffffffff
jmp 0x425664
push 0xa
call sub.KERNEL32.DLL_Sleep
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429c18
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov byte [ebp - 8], dl
test dl, dl
jle 0x429c2a
call fcn.0050f95c
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x56f068
call fcn.00503e60
mov word [ebp - 0x18], 8
mov cl, byte [ebp - 0x2a]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e476c
add dword [ebp - 0xc], 2
mov edx, dword [ebp - 4]
add edx, 0x30
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ecx], eax
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x429c7f
call fcn.0050f969
mov esp, ebp
pop ebp
ret

Function at 0x42a590
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
push 1
push 3
push 1
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_CreateServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a607
mov esi, 0x56f27c
lea edi, [ebp - 0x108]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.DLL_GetLastError
push eax
push str.CreateService___fail__error_code__lu
lea eax, [ebp - 0x108]
push eax
call fcn.00506898
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call fcn.0042a588
pop ecx
xor eax, eax
jmp 0x42a614
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a61c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push esi
push edi
mov eax, 0x5703cc
call fcn.00503e60
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x42a6d0
mov esi, 0x56f380
lea edi, [ebp - 0x13c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp + 0xc]
push 0x5701d2
lea eax, [ebp - 0x13c]
push eax
call fcn.00506898
add esp, 0x10
lea edx, [ebp - 0x13c]
push edx
call fcn.0042a588
pop ecx
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x13c]
lea eax, [ebp - 4]
call fcn.0050efe0
inc dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [sym.xscan_gui.exe__MainForm]
mov eax, dword [eax]
call fcn.00417710
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f140
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x42a794
push 0
push 0
push dword [ebp - 0x30]
call sub.ADVAPI32.DLL_StartServiceA
mov dword [ebp - 0x34], eax
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x34], 0
jne 0x42a771
cmp dword [ebp - 0x38], 0x420
jne 0x42a703
mov dword [ebp - 0x34], 1
jmp 0x42a771
mov esi, 0x56f484
lea edi, [ebp - 0x240]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x38]
push dword [ebp + 0xc]
push str.Failed_to_start_driver___s___error_code__lu
lea eax, [ebp - 0x240]
push eax
call fcn.00506898
add esp, 0x10
lea edx, [ebp - 0x240]
push edx
call fcn.0042a588
pop ecx
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0x240]
lea eax, [ebp - 8]
call fcn.0050efe0
inc dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [sym.xscan_gui.exe__MainForm]
mov eax, dword [eax]
call fcn.00417710
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f140
push dword [ebp - 0x30]
call sub.ADVAPI32.DLL_CloseServiceHandle
cmp dword [ebp - 0x38], 0
je 0x42a787
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_SetLastError
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a870
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push esi
push edi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a8d1
mov esi, 0x56f68c
lea edi, [ebp - 0x128]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x570252
lea eax, [ebp - 0x128]
push eax
call fcn.00506898
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call fcn.0042a588
pop ecx
xor eax, eax
jmp 0x42a8ed
lea edx, [ebp - 0x24]
push edx
push 1
push dword [ebp - 4]
call sub.ADVAPI32.DLL_ControlService
mov dword [ebp - 8], eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a8f4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push esi
push edi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a955
mov esi, 0x56f790
lea edi, [ebp - 0x10c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.DLL_GetLastError
push eax
push str.OpenService___fail__error_code__lu
lea eax, [ebp - 0x10c]
push eax
call fcn.00506898
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
call fcn.0042a588
pop ecx
xor eax, eax
jmp 0x42a96b
push dword [ebp - 4]
call sub.ADVAPI32.DLL_DeleteService
mov dword [ebp - 8], eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x570be8
call fcn.00503e60
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.005032a0
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x42d5c5
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x42d5c5
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.005032c0
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x42d5c5
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x42d5e2
cmp dword [ebp - 0x34], 0
je 0x42d5e2
mov edx, dword [ebp - 0x34]
jmp 0x42d5e7
mov edx, 0x57085c
lea eax, [ebp - 4]
call fcn.0050efe0
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.005032b0
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0050f170
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f140
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42d665
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445bac
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
push eax
push 0x445ae0
call sub.USER32.DLL_EnumWindows
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445dad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004456a0
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jbe 0x445d50
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00445264
cmp dword [ebp - 0xc], 0
je 0x445d97
push 0
push 9
mov eax, dword [ebp - 0xc]
call fcn.00500e48
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445db4
lea eax, [ebp - 0xc]
call fcn.00500998
ret
Function at 0x4581bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45838d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a2040
mov eax, dword [ebp - 4]
cmp byte [eax + 0x210], 0
je 0x458372
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x45821f
mov eax, dword [ebp - 4]
add eax, 0x21c
call fcn.00500998
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x4582fa
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x57b820]
and eax, 0xff
bt dword [edx], eax
jae 0x4582b9
push 1
push 0x102
push 0x102
mov eax, dword [ebp - 4]
call fcn.004a3674
push eax
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x45833e
mov eax, dword [ebp - 4]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00500b78
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00500b78
push dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 0x21c
mov edx, 3
call fcn.00500d10
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x45833e
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00500b78
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add eax, 0x21c
call fcn.00500c58
jmp 0x45833e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.00500c50
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x21c
mov ecx, 1
call fcn.00500ee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.00500c50
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.004f0520
cmp al, 2
je 0x4582d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.00500c50
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x21c
mov ecx, 1
call fcn.00500ee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
call fcn.00500c50
test eax, eax
jle 0x458359
push ebp
call fcn.004580d0
pop ecx
jmp 0x458372
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebp - 4]
mov si, 0xffeb
call fcn.004ffe64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458394
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.005009bc
ret

Function at 0x45dd54
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00500998
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45ddad
push 0x100
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, 0x100
call fcn.00500c00
mov esp, ebp
pop ebp
ret