joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412f50
Capabilities:
Convert ip address from string
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x11
push 2
push 2
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
push 8
mov edi, eax
mov dword [ebp - 0x1c], 5
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push 0x1006
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov dword [ebp - 0xa], 0
mov word [ebp - 0x14], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x12], xmm0
push eax
push esi
push 2
mov word [ebp - 6], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_htons]
push 0x3e8
mov word [ebp - 0x12], ax
call fcn.0041e44e
mov esi, eax
add esp, 4
test esi, esi
jne 0x413007
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebx]
push dword [ebp - 0x20]
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebx]
je 0x41304e
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call fcn.0041c717
call fcn.0041fda5
push dword [eax]
call fcn.0041fe95
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x3e7
push esi
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
push edi
test eax, eax
js 0x413020
mov dword [ebx], eax
mov byte [eax + esi], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d103
mov esp, ebp
pop ebp
ret
Function at 0x413260
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x220]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4132ae
or eax, 0xffffffff
jmp 0x4133aa
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3a98
push dword [edi + 8]
call ebx
cmp eax, 0x102
jne 0x4133a2
lea esp, [esp]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x78], 0
push eax
mov ecx, 0x443e40
call sym.IPSClientService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_CUtilities::GetDnsKeepAliveServer_void_
mov ecx, 0x443e40
mov dword [ebp - 4], 0
call sym.IPSClientService.exe_public:_unsigned_long_int___thiscall_CUtilities::GetAgentID_void_
push 0x63
mov esi, eax
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0x73]
push 0
push eax
call fcn.0041dbc0
add esp, 0xc
test esi, esi
je 0x413372
cmp dword [ebp - 0x80], 0
je 0x413372
push esi
lea eax, [ebp - 0x74]
push str.www._lu.com
push eax
call fcn.00413210
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push ecx
push eax
call fcn.00413160
mov esi, eax
add esp, 0x18
test esi, esi
je 0x413372
cmp dword [ebp - 0x78], 2
jl 0x413369
push dword [esi + 0x118]
mov ecx, 0x443e40
push dword [esi + 8]
call sym.IPSClientService.exe_public:_void___thiscall_CUtilities::SaveCrc32s_unsigned_int__unsigned_int_
push esi
call fcn.0041c717
add esp, 4
cmp dword [ebp - 0x7c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x41338d
push dword [ebp - 0x90]
call fcn.0040f3b0
add esp, 4
push 0x3a98
push dword [edi + 8]
call ebx
cmp eax, 0x102
je 0x4132d0
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
Function at 0x413930
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432cf9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x442310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00407030
mov dword [edi], eax
xor eax, eax
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
mov word [edi + 0x1c], ax
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], eax
mov word [edi + 0x34], ax
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 2
call fcn.0040d910
mov dword [edi + 0x50], vtable.CFullDiskScanMgr::CFullDiskScanThread.0
mov dword [edi + 0x80], 0
lea ecx, [edi + 0x84]
mov byte [ebp - 4], 3
call fcn.0040d910
mov dword [edi + 0x84], vtable.CFullDiskScanMgr::CFileInfoUpLoadThread.0
mov eax, edi
mov dword [edi + 0xb4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4140e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp dword [esi + 0x14], 0x10
mov ebx, eax
mov dword [ebp - 8], 0
mov dword [esi + 0x10], 0
jb 0x41410b
mov eax, dword [esi]
jmp 0x41410d
mov eax, esi
mov byte [eax], 0
test ebx, ebx
je 0x4141a6
xor eax, eax
push edi
jmp 0x414120
test bl, 1
je 0x414199
mov ecx, dword [esi + 0x10]
lea edx, [eax + 0x61]
or eax, 0xffffffff
mov byte [ebp - 1], dl
sub eax, ecx
cmp eax, 1
jbe 0x4141ac
lea edi, [ecx + 1]
cmp edi, 0xfffffffe
ja 0x4141ac
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x414164
push ecx
push edi
mov ecx, esi
call fcn.00402580
mov dl, byte [ebp - 1]
test edi, edi
je 0x414196
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x41417e
mov eax, dword [esi]
jmp 0x414180
test edi, edi
jne 0x414157
mov dword [esi + 0x10], edi
cmp eax, 0x10
jb 0x414177
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x414196
mov eax, esi
mov byte [eax], 0
jmp 0x414196
mov eax, esi
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x414190
mov eax, dword [esi]
jmp 0x414192
mov eax, esi
mov byte [eax + edi], 0
mov eax, dword [ebp - 8]
inc eax
shr ebx, 1
mov dword [ebp - 8], eax
jne 0x414120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041c1f7
int3
Function at 0x414630
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e73
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
call fcn.00413880
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004026d0
push 4
push str..
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004021a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414821
jmp 0x4146d0
mov ecx, 0x43476c
lea eax, [ebp - 0x24c]
jmp 0x4146e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414706
test dx, dx
je 0x414702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414706
add eax, 4
add ecx, 4
test dx, dx
jne 0x4146e0
xor eax, eax
jmp 0x41470b
sbb eax, eax
or eax, 1
test eax, eax
je 0x414804
mov ecx, 0x434770
lea eax, [ebp - 0x24c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414746
test dx, dx
je 0x414742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414746
add eax, 4
add ecx, 4
test dx, dx
jne 0x414720
xor eax, eax
jmp 0x41474b
sbb eax, eax
or eax, 1
test eax, eax
je 0x414804
test byte [ebp - 0x278], 0x10
jne 0x414804
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
cmp word [ebp - 0x24c], ax
je 0x41479f
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414790
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x290]
call fcn.00402480
mov esi, dword [edi]
lea eax, [ebp - 0x290]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
push dword [esi + 4]
push esi
call fcn.004138e0
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jb 0x414850
lea ecx, [eax + 1]
mov byte [ebp - 4], 0
mov dword [edi + 4], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp dword [ebp - 0x27c], 8
jb 0x414804
push dword [ebp - 0x290]
call fcn.0040f3b0
add esp, 4
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4146d0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
jb 0x414832
push dword [ebp - 0x28]
call fcn.0040f3b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0041c1f7
int3
Function at 0x414870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x4148a2
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 8]
mov dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
test eax, eax
je 0x4148c4
push eax
call fcn.0041c7fa
add esp, 4
mov dword [edi + 8], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x4149b1
xor esi, esi
test ebx, ebx
je 0x41499f
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 4
lea eax, [edi + 0xc]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41499c
lea edi, [esi + 4]
mov edi, edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x41494e
add esi, eax
cmp esi, 4
jae 0x414951
push 0
add ebx, eax
mov dword [ebp - 8], 0
sub edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414920
cmp esi, 4
mov edi, dword [ebp - 0x14]
lea ebx, [edi + 0xc]
jne 0x41499f
mov esi, dword [ebx]
cmp esi, 0x1a
ja 0x41499f
shl esi, 4
push esi
call fcn.0041c148
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x41499f
push esi
push 0
push eax
call fcn.0041dbc0
push esi
push dword [edi + 8]
push dword [ebp - 0xc]
call fcn.004149f0
xor ecx, ecx
add esp, 0x18
cmp eax, esi
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x10], ecx
jmp 0x41499f
lea ebx, [edi + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4149d0
jmp 0x4149b3
xor esi, esi
mov ecx, dword [edi + 8]
mov dword [ebx], 0
test ecx, ecx
je 0x4149d0
push ecx
call fcn.0041c7fa
add esp, 4
mov dword [edi + 8], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
Function at 0x4149f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xc], ecx
test edi, edi
je 0x414a71
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414a71
push ebx
push esi
lea edx, [ebp - 8]
mov dword [ebp - 8], esi
push edx
push eax
push edi
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414a5e
mov eax, dword [ebp - 8]
test eax, eax
je 0x414a5e
add esi, eax
cmp esi, dword [ebp + 0x10]
jae 0x414a5e
push 0
add edi, eax
mov dword [ebp - 8], 0
sub ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414a30
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret
Function at 0x4153d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x4153fb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0xc], 0
push esi
lea esi, [edi + 0xc]
mov dword [ebp - 0xc], 0
je 0x41546a
cmp dword [edi + 8], 0
je 0x41546a
push ebx
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415469
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call esi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0xc]
shl eax, 4
push eax
push dword [edi + 8]
push ebx
call esi
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop edi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
Function at 0x415480
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x444ab0
call sym.IPSClientService.exe_public:_wchar_t_const____thiscall_CUtilities::GetServicePathW_void_
mov edx, eax
cmp word [edx], 0
jne 0x4154c2
xor ecx, ecx
jmp 0x4154d6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4154c7
sub ecx, edi
sar ecx, 1
push ecx
lea edi, [esi + 0x1c]
push edx
mov ecx, edi
call fcn.00402480
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0040d480
add esp, 8
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4154fe
mov edi, dword [edi]
push 0x4347ac
push edi
lea eax, [ebp - 0x40]
push 0x434778
push eax
call fcn.0040d380
add esp, 0x10
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, esi
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00414870
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004141c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415565
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea ecx, [esi + 0x50]
mov dword [esi + 0x80], esi
mov dword [esi + 0xb4], esi
call fcn.0040d9f0
push 0
lea ecx, [esi + 0x84]
call fcn.0040d9f0
cmp dword [ebp - 0x14], 8
jb 0x415599
push dword [ebp - 0x28]
call fcn.0040f3b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4155be
push dword [ebp - 0x40]
call fcn.0040f3b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x4155e3
push dword [ebp - 0x58]
call fcn.0040f3b0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
Function at 0x417b50
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
mov dword [ebp - 0xa14], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x417bbb
push 1
lea ecx, [ebx + 0x40]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x417bab
push eax
mov dword [ebp - 0xa14], 1
call esi
push edi
call esi
cmp dword [ebp - 0xa14], 0
jne 0x417d05
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x417c76
cmp eax, 0x104
je 0x417c76
mov ecx, 0x22
mov word [ebp - 0x210], cx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x417d1b
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov word [ebp + eax - 0x210], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x417c89
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.00416d30
add esp, 0xc
test eax, eax
jne 0x417c61
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.004207a9
push eax
call fcn.00416bb0
add esp, 0x10
push 0
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0xa10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
add ebx, 0x40
push eax
push 1
push 3
push 0x10
push 0xf01ff
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x417cff
push edi
call esi
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.00416d30
add esp, 0xc
test eax, eax
jne 0x417cf7
push str.Could_not_start_service
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.004207a9
push eax
call fcn.00416bb0
add esp, 0x10
push 0
push ebx
jmp 0x417c67
push eax
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d103
mov esp, ebp
pop ebp
ret
call fcn.004205d2
int3
Function at 0x417d40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.0041ce54
xor eax, eax
add esp, 0x14
cmp dword [esi + 0x260], 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x417d9b
push eax
call fcn.004208c3
add esp, 4
lea eax, [esi + 0x40]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x417dd0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret
Function at 0x419070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4190fb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4190bd
cmp eax, 2
jne 0x4190d9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4190f5
test ecx, ecx
je 0x4190f0
test cl, 1
jne 0x4190d9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4190f5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419270
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x442310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0041a890
test eax, eax
jne 0x4192a2
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.APPID
push eax
push 1
push 0x65
push dword [0x44572c]
mov dword [ebp - 0x10], 0x434e20
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.0041acd0
test eax, eax
js 0x4193df
push ebx
push edi
push 0x20006
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push str.AppID
movq qword [ebp - 0x10], xmm0
lea ecx, [ebp - 0x10]
push SysReAllocString
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00418130
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x10]
test eax, eax
je 0x419333
push eax
call fcn.00416d10
add esp, 4
mov esi, eax
jmp 0x4193d4
push 0
push 0
push 0x2001f
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0x434e20
movq qword [ebp - 0x10], xmm0
lea ecx, [ebp - 0x10]
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004176a0
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x419386
push eax
call fcn.00416d10
add esp, 4
mov esi, eax
jmp 0x4193bf
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
je 0x4193bd
push 1
lea eax, [esi + 0x40]
push eax
push str.LocalService
lea ecx, [ebp - 0x10]
call fcn.0041a490
mov ecx, esi
call fcn.00417b50
test eax, eax
jne 0x4193bd
mov esi, 0x80004005
jmp 0x4193bf
xor esi, esi
test edi, edi
je 0x4193ce
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4193d4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4193db
push ebx
call edi
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d103
mov esp, ebp
pop ebp
ret 4