joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x41bc50], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x401470
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x401760
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00401420
je 0x401a75
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x41b0a8]
jmp 0x401b8c
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401b73
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004087e3
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00408ebe
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401aec
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x401b38
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004087e3
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00408ebe
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x401b73
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x401b38
push esi
call ebp
jmp 0x401b73
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x401b33
inc edi
cmp edi, 3
jl 0x401b40
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x41b0a8], edx
mov dword [0x41b0b0], eax
mov dword [fcn.00401420], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x41b0a8]
mov dword [0x41bc50], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075fb
add esp, 0x238
ret 4

Function at 0x401cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ce7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d18
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401d14
cmp esi, eax
jae 0x401d18
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401d04
cmp esi, eax
jb 0x401d1e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401dc0
Capabilities:
Access the windows event log

Disassembly:
push esi
push str.Elsevier.DaTong
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0
push 1
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret
Function at 0x401e00
Capabilities:
Access the windows event log

Disassembly:
push 0xffffffffffffffff
push 0x415b68
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x41a2f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [0x41b184]
mov eax, dword [edx + 0xc]
mov ecx, 0x41b184
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x10]
push ecx
push esi
push edx
push str.Function__s_caused_following_error:_r_n__d__s
lea edi, [esp + 0x1c]
call fcn.00406e40
mov edi, dword [esp + 0x1c]
add esp, 0x10
push str.Elsevier.DaTong
push 0
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 1
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401ee5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4020a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x402187
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0xc
push ebx
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x40211f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40211b
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
test esi, esi
je 0x402187
cmp dword [ebx + 8], 0
jbe 0x402187
xor eax, eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x402187
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x402187
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, eax
test edi, edi
je 0x402192
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x4023f0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 0x24]
cmp eax, 5
jge 0x40244c
push ebx
push esi
xor ebx, ebx
push edi
mov ecx, dword [ebp + 0x20]
add ecx, eax
cmp ecx, 0xa
jge 0x402449
mov esi, 0xa
lea edi, [ebp + 0xac]
sub edi, 0xc
dec esi
cmp dword [edi], ebx
jne 0x402432
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jle 0x40244e
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp esi, ebx
jne 0x402417
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x24]
cmp eax, 5
jl 0x402402
pop edi
pop esi
pop ebx
pop ebp
ret
cmp esi, 0xffffffff
je 0x402436
lea edx, [ebp + 0x28]
push edx
push 0x3e8
push ebx
push ebx
push 0xa
push ebx
push 0x40000003
push str..PipeDTUpdateService9DE6D619_8F87_4526_9183_8AE4433C7C41
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esi + esi*2]
lea esi, [ebp + ecx*4]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x402441
mov edx, dword [ebp]
push ebx
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x402507
lea edi, [ebp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x4024d1
lea ecx, [esi + 0x34]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov edx, dword [esi + 0x38]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x402441
mov eax, dword [esi + 0x38]
add esi, 0x34
cmp eax, ebx
je 0x4024e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4024f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call esi
push edi
call esi
jmp 0x402441
mov eax, dword [esi + 0x38]
add esi, 0x34
cmp eax, ebx
je 0x40251b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40252c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call esi
lea eax, [ebp + 0x24]
push eax
call esi
jmp 0x402441
Function at 0x402540
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x1c]
cmp dword [edi + 0x14], 0
jne 0x402560
mov eax, dword [edi + 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0x18]
push esi
push 0
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4025e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4025e4
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4025b5
push eax
call ebx
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x4025c6
push eax
call ebx
mov dword [edi + 8], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call edi
mov edx, dword [esp + 0xc]
add edx, 0x20
push edx
call edi
pop ebx
pop edi
mov dword [esp + 4], esi
jmp fcn.004023a0
pop edi
ret

Function at 0x4025f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x18
push 8
mov edi, eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
push 0x20
push 8
mov ebp, eax
call esi
push eax
call ebx
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x40262b
mov dword [esi + 0x14], 2
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebp
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
push esi
push ebx
push 0xc
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40268b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40268b
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x402662
push eax
call ebp
mov dword [edi + 4], ebx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x40266f
push eax
call ebp
mov dword [edi + 8], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call edi
mov eax, dword [esp + 0x14]
add eax, 0x20
push eax
call edi
push esi
call fcn.004023a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xafc8
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 0x102
jne 0x402847
call fcn.00402fa0
test eax, eax
je 0x402790
call fcn.00403510
call fcn.00403610
call fcn.00403710
mov eax, dword [edi + 0xb0]
xor esi, esi
cmp eax, esi
je 0x402817
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402804
cmp dword [esp + 0x10], 0x103
je 0x402790
mov edx, dword [edi + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xb0], esi
mov eax, dword [edi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push esi
push edi
push 0x406580
push esi
push esi
mov dword [edi + 0xac], esi
call fcn.004085cc
add esp, 0x18
mov dword [edi + 0xb0], eax
jmp 0x402790
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x4028e6
sub eax, 1
jne 0x402951
test esi, esi
je 0x402873
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
call fcn.00402690
jmp 0x402949
call ebx
mov ecx, dword [esp + 0x14]
mov ebx, ecx
cmp eax, 0x6d
jne 0x4028d0
cmp dword [ecx + 0x14], 2
jne 0x4028d0
mov esi, dword [ecx + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x40289e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4028b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call esi
push ebx
call fcn.004023a0
add esp, 4
lea ecx, [edi + 0x20]
push ecx
call esi
jmp 0x402790
test ecx, ecx
je 0x402790
push ecx
call fcn.004023a0
add esp, 4
jmp 0x402790
mov eax, dword [esp + 0x18]
mov esi, 1
sub eax, esi
je 0x4028fb
sub eax, esi
jne 0x402949
xor esi, esi
jmp 0x402949
cmp dword [0x41bc64], 3
jne 0x402949
inc dword [0x41bc74]
xor esi, esi
mov dword [0x41bc78], 0x4e20
mov dword [0x41bc6c], esi
mov dword [0x41bc70], esi
cmp dword [0x41bc7c], esi
jne 0x40293c
mov edx, dword [0x41bc80]
push 0x41bc60
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [edi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x402790
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402d30
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0x208
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.__service
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 2
push 0x10
push 0xf01ff
push str.DATONG_Update_Service
push str.DATONG_Update_Service
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 1
push edi
mov dword [esp + 0x18], 0x417dd0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x402dc7
push esi
call ebx
test edi, edi
je 0x402dce
push edi
call ebx
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004075fb
add esp, 0x210
ret
Function at 0x402df0
Capabilities:
Delete service
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402e52
push 0x200000
push str.DATONG_Update_Service
push str.unable_to_load_Winsock__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.004075fb
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x41b1a4]
cmp eax, 2
mov edi, dword [0x41b1a8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jge 0x402e86
push 0x200000
push str.DATONG_Update_Service
push str.DATONG_Update_Service_n_nUsage:_MultiDownLoad.exe___install____remove____debug____service__n____install_t_tInstalls_the_service_in_the_SCMs_database._n____remove_t_tRemoves_the_service_from_the_SCMs_database._n____debug_t_tRuns_the_service_as_a_normal_process._n____service_t_tRuns_the_process_as_a_service__should_only_be_set_in_the_SCMs_database_.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402f73
mov ebx, 1
cmp eax, ebx
jle 0x402f73
mov eax, dword [edi + ebx*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x402ea6
cmp cl, 0x2f
jne 0x402f68
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.install
inc eax
push eax
call esi
test eax, eax
jne 0x402ebe
call fcn.00402d30
mov ecx, dword [edi + ebx*4]
push str.remove
inc ecx
push ecx
call esi
test eax, eax
jne 0x402f14
push 1
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0x10000
mov esi, eax
push str.DATONG_Update_Service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test esi, esi
je 0x402eff
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x402f0a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, dword [esp + 0x10]
mov edx, dword [edi + ebx*4]
push str.debug
inc edx
push edx
call esi
test eax, eax
jne 0x402f35
push eax
push eax
mov dword [0x41bc7c], 1
call fcn.00402ad0
mov eax, dword [edi + ebx*4]
push str.service
inc eax
push eax
call esi
test eax, eax
jne 0x402f68
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.DATONG_Update_Service
mov dword [esp + 0x20], fcn.00402ad0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x402e93
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004075fb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403250
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xe1
lea eax, [esp + 0x143]
push 0
push eax
mov dword [esp + 0x20], 2
movsb byte es:[edi], byte [esi]
call fcn.00409500
push 0x417dd0
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call fcn.00408ebe
add esp, 0x18
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x138]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4033eb
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push ebx
lea eax, [esp + 0x18]
push eax
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4033eb
push 0x104
push ebx
call fcn.004081ff
add esp, 8
cmp eax, 1
jbe 0x4033eb
push 0x103
lea eax, [esp + 0x1d]
push esi
push eax
mov byte [esp + 0x24], 0
call fcn.00409500
xor ecx, ecx
add esp, 0xc
cmp ecx, str.MultiDownLoad.exe
jne 0x403389
push 0x417dd0
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.004087e3
push str..exe
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00408ebe
add esp, 0x18
jmp 0x4033a0
push str.MultiDownLoad.exe
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.004087e3
add esp, 0xc
push 0x104
push ebx
call fcn.00408c21
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.00408c21
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004080ea
add esp, 0x18
test eax, eax
je 0x4033cf
mov byte [eax], 0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004075fb
add esp, 0x21c
ret
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004075fb
add esp, 0x21c
ret
Function at 0x403410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x114], eax
push edi
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x1c], 2
mov byte [esp + 0x20], 0
call fcn.00409500
push edi
push str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONUNINSTALL_
push str._s_s
mov ecx, 0x104
lea edi, [esp + 0x2c]
call fcn.00401bb0
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 1
push 0
push 0
push 0
mov eax, edi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4034f0
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.InstallLocation
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4034f0
push 0x104
push esi
call fcn.004081ff
add esp, 8
cmp eax, 1
jbe 0x4034f0
lea eax, [edi + 1]
pop edi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004075fb
add esp, 0x118
ret
mov ecx, dword [esp + 0x118]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004075fb
add esp, 0x118
ret

Function at 0x403510
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push esi
push 0x3ff
xor esi, esi
lea eax, [esp + 0x40d]
push esi
push eax
mov byte [esp + 0x414], 0
call fcn.00409500
add esp, 0xc
lea ebx, [esp + 0x408]
call fcn.00403250
test eax, eax
je 0x4035f4
push 0x3ff
lea ecx, [esp + 0xd]
push esi
push ecx
mov byte [esp + 0x14], 0
call fcn.00409500
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x408]
mov byte [esp + eax + 8], cl
inc eax
test cl, cl
jne 0x403574
lea eax, [esp + 8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403590
mov edx, dword [str.MultiProductC.ini]
mov ecx, dword [0x41805c]
mov dword [eax], edx
mov edx, dword [0x418060]
mov dword [eax + 4], ecx
mov ecx, dword [0x418064]
mov dword [eax + 8], edx
mov dx, word [0x418068]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
lea eax, [esp + 8]
push eax
push 1
push str.UserMode
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004075fb
add esp, 0x804
ret
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004075fb
add esp, 0x804
ret