joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc455
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4bc56d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bc56d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e4f98
mov esi, eax
test esi, esi
je 0x4bc56d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4bc56d
mov ecx, esi
call fcn.004bc2f0
cmp edi, eax
jge 0x4bc56d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4bc4f3
mov dword [esp + 0x34], 1
jmp 0x4bc54e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4bc56d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004b9820
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4c1bd6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4c1bd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4c1bb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4c1f60
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4c1f98
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4c2c30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4c2c79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4c30f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f2eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c2ca0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c2d20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c2d20
lea ecx, [esi + 0xc]
call fcn.004e34f9
lea ecx, [esi + 0x10]
call fcn.004e34f9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004c42b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004c42b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004c42b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e356e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e356e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cbe40
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x585044]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4cbe53
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4cbe94
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5850ec]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4cbec6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4cbeca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4cbebb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4cbee8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4cbeec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4cbedd
xor ecx, ecx
mov eax, 0x585054
xor ebx, ebx
mov bl, byte [ecx + 0x5850fc]
cmp byte [esp + ebx + 0x14], 0
je 0x4cbf17
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x585114]
cmp byte [esp + ebx + 0x14], 0
je 0x4cbf2e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4cbefe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4cbe87
lea edx, [esp + 0x84]
push edx
call fcn.004cbf70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4e593c
Capabilities:
Get graphical window text

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

Function at 0x4e702e
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 0x4e7070
call fcn.004ecdac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e7070
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e7067
xor eax, eax
jmp 0x4e7078
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e707e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ed2dc
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 0x4ed30a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ed328
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ed242
jmp 0x4ed328
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ed328
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ed242
test edi, edi
mov eax, edi
jne 0x4ed312
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6d9f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x6ee9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x6da002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.006dddff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x6da002
lea edx, [esp + 0x14]
push edx
push 0x6f4140
call fcn.006d56e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.006de20b
push 0x10
call fcn.006de1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x6d9fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006ca1c0
jmp 0x6d9fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.006d9b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x6d9ff0
mov ecx, edi
call fcn.006ca2c0
push edi
call fcn.006de1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6da021
inc ebx
cmp ebx, 0x20
jb 0x6d9f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x6dd1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006dd140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006dd140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006dd140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006dd140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6dd230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6dd2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x6dd2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.006dd230
mov esi, eax
add esp, 8
test esi, esi
jne 0x6dd2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x6dd27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x6dd2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x6ddbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6ddc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6ef87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6ddc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6ddc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x401045
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402370
Capabilities:
Link many functions at runtime

Disassembly:
lea esi, [0x412818]
push esi
mov eax, dword [0x412408]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x41282d], eax
mov dword [0x4120f5], 1
mov eax, 0x4000
push eax
lea eax, [0x412333]
push eax
lea eax, [0x4120e1]
push eax
lea esi, [0x4125cf]
call dword [esi]
cmp eax, 0xffffffff
jne 0x4023bc
mov dword [0x4120f5], 0
cmp dword [0x4120f5], 0
je 0x402432
mov eax, 0x4000
push eax
lea eax, [0x412333]
push eax
lea eax, [0x4120ca]
push eax
lea esi, [0x4125cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x402432
lea eax, [0x4120ca]
push eax
call dword [0x4121f3]
mov dword [0x4120ed], eax
cmp eax, 0
je 0x402432
lea edx, [0x4120f9]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x402432
mov dword [0x41214b], eax
mov eax, dword [0x4120ed]
lea edx, [0x412130]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x402432
mov dword [0x41214f], eax
jmp 0x4024aa
mov eax, 0x4000
push eax
lea eax, [0x412333]
push eax
lea eax, [0x4120d7]
push eax
lea esi, [0x4125cf]
call dword [esi]
cmp eax, 0xffffffff
je 0x40249f
lea eax, [0x4120d7]
push eax
call dword [0x4121f3]
mov dword [0x4120f1], eax
cmp eax, 0
je 0x40249f
lea edx, [0x412115]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x40249f
mov dword [0x41214b], eax
mov eax, dword [0x4120f1]
lea edx, [0x41213e]
push edx
push eax
call sub.KERNEL32.dll_GetProcAddress
cmp eax, 0
je 0x40249f
mov dword [0x41214f], eax
jmp 0x4024b5
mov dword [0x412153], 0
ret
mov dword [0x412153], 1
ret
mov dword [0x412153], 2
ret

Function at 0x4027cd
Capabilities:
Packed with generic packer

Disassembly:
pushal
push eax
push ecx
push edx
test ax, 1
je 0x4027ea
push ecx
push edx
call dword [0x412763]
cmp eax, 0
je 0x4027ea
pop edx
pop ecx
pop eax
stc
jmp 0x402805
pop edx
pop ecx
pop eax
test ax, 2
je 0x402804
push ecx
push edx
call dword [0x412775]
cmp ax, 0
je 0x402804
stc
jmp 0x402805
clc
popal
ret
Function at 0x40b311
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x40cbd0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x58
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
xor ebx, ebx
mov esi, str.champion.clp
push ebx
push 0x1001
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CFile::Open
push ebx
push 0x1000
lea eax, [ebp - 0x20]
push ebx
push eax
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CArchive::CArchive
mov eax, dword [edi + 0x78]
lea ecx, [edi + 0x78]
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 1
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CArchive::Close
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::Close
push 0xf
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40b394
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
jne 0x40b3a2
push ebx
push ebx
push 0x411304
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40b3dd
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, ebx
je 0x40b3dd
call dword [sym.imp.USER32.dll_EmptyClipboard]
movzx eax, word [0x411ae0]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0040bb96
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040bb72
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401750
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x412e28], 0
push esi
mov esi, dword [esp + 0x218]
je 0x4017e0
push str.SYSTEMControlSet001Services_
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40d50c
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
push 0x20019
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40184f
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 8]
push edx
push esi
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
push str.ImagePath
jmp 0x401835
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 4]
push edx
push 0x20019
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40184f
mov ecx, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ecx
push 0x40d50c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401867
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040c056
add esp, 0x210
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040c056
add esp, 0x210
ret
Function at 0x401890
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x39c
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
xor ebx, ebx
push 0x257
lea eax, [esp + 0x14d]
push ebx
push eax
mov byte [esp + 0x154], bl
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push ebx
push ecx
mov byte [esp + 0x20], bl
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4018f1
sub eax, edx
add eax, 0xffffffff
mov cl, 0x5c
cmp byte [esp + eax + 8], cl
je 0x401910
sub eax, 1
cmp byte [esp + eax + 8], cl
jne 0x401907
mov byte [esp + eax + 9], bl
lea eax, [esp + 8]
add eax, 0xffffffff
jmp 0x401920
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x401920
mov ecx, dword [str.Rockey_Service.ini]
mov edx, dword [0x40d570]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [eax], ecx
mov ecx, dword [0x40d574]
mov dword [eax + 4], edx
mov edx, dword [0x40d578]
mov dword [eax + 8], ecx
mov cx, word [0x40d57c]
mov dword [eax + 0xc], edx
mov dl, byte [0x40d57e]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
mov eax, dword [esp + 0x3a8]
sub eax, 1
je 0x4019e8
sub eax, 1
je 0x4019b5
sub eax, 1
jne 0x401a25
mov ecx, dword [0x411f18]
push 0x200
lea eax, [esp + 0x14c]
push eax
push 0x8009
push ecx
call esi
lea edx, [esp + 8]
push edx
push 0x64
lea eax, [esp + 0x150]
push eax
mov ecx, eax
push ecx
push str.ERROR
jmp 0x401a1a
mov eax, dword [0x411f18]
push 0x200
lea edx, [esp + 0x14c]
push edx
push 0x8007
push eax
call esi
lea ecx, [esp + 8]
push ecx
push 0x64
lea edx, [esp + 0x150]
push edx
mov eax, edx
push eax
push str.OVERLOOK
jmp 0x401a1a
mov edx, dword [0x411f18]
push 0x200
lea ecx, [esp + 0x14c]
push ecx
push 0x8008
push edx
call esi
lea eax, [esp + 8]
push eax
push 0x64
lea ecx, [esp + 0x150]
push ecx
mov edx, ecx
push edx
push str.FIND
push 0x40d548
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [0x411f34], 1
je 0x401a6e
mov ecx, dword [0x411f18]
push 0x28
lea eax, [esp + 0x110]
push eax
push 0x8006
push ecx
mov dword [0x411f34], 1
call esi
push ebx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x150]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x411f34], ebx
mov ecx, dword [esp + 0x3a0]
pop esi
pop ebx
xor ecx, esp
call fcn.0040c056
add esp, 0x39c
ret
Function at 0x4025e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x204
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x200], eax
push ebp
mov ebp, dword [esp + 0x20c]
push esi
push str.FTSERVICE_SYTSTRAY_ICON_ATOM
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
movzx esi, ax
test si, si
je 0x402666
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [esp + 0xc]
push eax
push 0x1f5
push ebp
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40275f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push 0
push str.Error
push str.The_service_was_not_shutdown_properly_last_time__please_restart_the_service_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40275f
push ebx
push edi
push str.FTSERVICE_SYTSTRAY_ICON_ATOM
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
movzx ebx, ax
call fcn.00401000
push 0x200
lea edx, [esp + 0x14]
push edx
push 0
mov dword [0x411f30], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.__start
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea esp, [esp]
push 0x1f4
add esi, 1
call edi
call fcn.00401000
test eax, eax
mov dword [0x411f30], eax
jne 0x4026dd
cmp esi, 0x14
jl 0x4026c0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea edx, [esp + 0x10]
push 0x200
push edx
mov dword [0x411f18], ebp
call fcn.00401750
add esp, 8
test eax, eax
je 0x40272d
lea eax, [esp + 0x10]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x402716
mov byte [eax], 0
push 0x40d648
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push edx
jmp 0x402732
push str..SvrCfg.ini
mov ecx, 0x411f38
call fcn.004050d0
push 0
push fcn.00401d60
push 0
push 0x81
push ebp
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
call fcn.00401050
pop edi
pop ebx
mov ecx, dword [esp + 0x208]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040c056
add esp, 0x204
ret 0x10

Function at 0x402780
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0
push accept
push 0
push accept
push 0xcf0000
push 0x412cb0
push 0x412d20
push 0
mov dword [0x412d14], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x4027ba
ret
push 0
push eax
mov dword [0x412e24], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret