joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x500ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x501035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00500e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x500fc5
mov edi, 0x51b8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x501035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00500e00
add edi, 4
add esp, 0xc
cmp edi, 0x51b8c0
jb 0x501000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x501070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00507082
mov esi, eax
add esp, 8
test esi, esi
je 0x501107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x501102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00506946
add esp, 8
test eax, eax
je 0x5010e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x5010e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00506946
add esp, 8
test eax, eax
jne 0x5010c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x501102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x501f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5169fb
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 0x502002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00505dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x502002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.004fd6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0050620b
push 0x10
call fcn.005061d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x501fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.004f21c0
jmp 0x501fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00501b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x501ff0
mov ecx, edi
call fcn.004f22c0
push edi
call fcn.005061c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x502021
inc ebx
cmp ebx, 0x20
jb 0x501f3e
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 0x503250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517808
push 0x507288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x503329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x503329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005061d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x503329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x503329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x50332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00503351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x503d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x503d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x503d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x503d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x503d94
push eax
push esi
call fcn.0050620b
add esp, 8
pop esi
ret 0x10

Function at 0x503da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x503e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x503e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x51c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00505dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x503dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x503e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x503ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x503eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x51c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00505dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x503eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x503e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x504000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x504131
push esi
call fcn.00507145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.004f6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x504131
push 0
push ebp
call fcn.004f63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.004f6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x50408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.004f62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x504121
push 0x51c918
push edi
call fcn.005053f0
push eax
push ebx
push esi
call fcn.00503f60
push 0x51c8f8
push edi
call fcn.005053f0
push eax
push ebx
push esi
call fcn.00503f60
push 0x51c8d8
push edi
call fcn.005053f0
push eax
push ebx
push esi
call fcn.00503f60
push 0x51c8c0
push edi
call fcn.005053f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00503f60
push 0x51c8a0
push edi
call fcn.005053f0
push eax
push ebx
push esi
call fcn.00503f60
push 0x51c888
push edi
call fcn.005053f0
push eax
push ebx
push esi
call fcn.00503f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5051b0
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.00505140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00505140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00505140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00505140
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 0x505bfa
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 0x505c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x51787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x505c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x505c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4011d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a268
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x458974]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401246
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], str.CatalogWatcher_in_OnStart
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 8
call fcn.004314de
add esp, 4
test eax, eax
je 0x40125f
mov dword [eax], 0x4012c0
mov dword [eax + 4], edi
jmp 0x401261
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x10
push eax
push 0x4013b0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x40129a
push 0
call fcn.00431482
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0x44fa18
lea eax, [ebp - 0x10]
push eax
call fcn.00435fb0
int3

Function at 0x401310
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401367
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 8]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.CatalogWatcher_in_OnStop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [edi + 0x2c]
push 0xffffffffffffffff
push eax
mov dword [edi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
test eax, eax
je 0x401397
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x44fa18
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
call fcn.00435fb0
mov esp, ebp
pop ebp
ret

Function at 0x401b00
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edi + 4]
push esi
push eax
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401b55
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401b60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x458974]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
push str._s_failed_w_err_0x_08lx
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00401410
mov edx, dword [edi + 4]
add esp, 0xc
xor ebx, ebx
push edx
push ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x401be4
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x214]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp - 0x20c]
push esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043125e
mov esp, ebp
pop ebp
ret 4

Function at 0x401fe0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00432355
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0x44deac
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402049
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.00432355
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 4]
push eax
push 1
push esi
mov dword [ebp - 4], str.Google_ADB_LoaclSocket_Multi_threading_Graphics_API
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x40206b
push esi
call ebx
push edi
call ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x458974]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x402143
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.00432176
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043125e
mov esp, ebp
pop ebp
ret
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40217a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.00432176
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043125e
mov esp, ebp
pop ebp
ret
push 0
push str.LocalSystem
push 0x44de7c
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 4
push str.Catalog_Watch_Service
push 0x44deac
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4021c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
call fcn.00432176
add esp, 8
jmp 0x402214
call fcn.00402080
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x320
call ebx
call fcn.00401fe0
push 0x320
call ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x210], esp
push 0xe
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.CatalogWatcher
mov byte [ecx], 0
call fcn.00402630
call fcn.00401c40
add esp, 0x1c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402224
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043125e
mov esp, ebp
pop ebp
ret
Function at 0x402240
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x458974]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
push 1
push eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x40229e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.00432176
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043125e
mov esp, ebp
pop ebp
ret
push esi
push 0x10024
push 0x44deac
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4022c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x40237b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402358
push ebx
push 0x44deac
push str.Stopping__s.
call fcn.00432176
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x402335
lea ecx, [ecx]
cmp dword [ebp - 0x1c], 3
jne 0x402335
push 0x44e408
call fcn.00432176
add esp, 4
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x402310
cmp dword [ebp - 0x1c], 1
pop ebx
push 0x44deac
jne 0x402348
push 0x44e40c
jmp 0x40234d
push str._n_s_failed_to_stop._n
call fcn.00432176
mov edi, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402371
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x40237b
push 0x44deac
push str._s_is_removed._n
call fcn.00432176
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402393
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.0043125e
mov esp, ebp
pop ebp
ret
Function at 0x402c10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449a18
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x458974]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x402c4e
lea eax, [ebp + 8]
push 0
lea ecx, [ebp - 0x94]
push ecx
push 0
push 8
push 1
push eax
call dword [sym.imp.DNSAPI.dll_DnsQuery_A]
test eax, eax
jne 0x402ccb
push 0x7f
push eax
lea edx, [ebp - 0x8f]
push edx
mov byte [ebp - 0x90], al
call fcn.00434110
mov eax, dword [ebp - 0x94]
mov eax, dword [eax + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x44e4f4
lea edx, [ebp - 0x90]
call fcn.00404630
lea eax, [ebp - 0x90]
add esp, 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402cb0
sub eax, edx
push eax
lea ecx, [ebp - 0x90]
push ecx
mov ecx, 0x459e7c
call fcn.00402630
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x1c], 0x10
jb 0x402ce5
mov edx, dword [ebp + 8]
push edx
call fcn.00431482
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043125e
mov esp, ebp
pop ebp
ret

Function at 0x402d00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
mov edi, eax
push 4
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
je 0x402d25
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
test edi, edi
je 0x402d45
lea ecx, [ecx]
push 0
push edi
push esi
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x402d4d
add esi, eax
sub edi, eax
jne 0x402d30
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x458974]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
xor eax, eax
push eax
mov word [ebp - 0x107], ax
mov byte [ebp - 0x105], al
push 4
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push esi
mov byte [ebp - 0x108], 0
call ebx
test eax, eax
jg 0x402df4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfe
lea ecx, [ebp - 0x103]
push 0
push ecx
mov esi, eax
mov byte [ebp - 0x104], 0
call fcn.00434110
push esi
push str.test__recvmessagewithlen_error__d
lea edx, [ebp - 0x104]
call fcn.00404650
add esp, 0x14
lea eax, [esi - 0x274c]
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043125e
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x402e39
mov eax, dword [ebp - 0x108]
test eax, eax
jle 0x402e39
cmp eax, 0x64
jge 0x402e39
cmp eax, 0x1900
jge 0x402e39
push 0
push eax
push edi
push esi
call ebx
test eax, eax
jg 0x402e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x274c
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043125e
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043125e
mov esp, ebp
pop ebp
ret