joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b70
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0987
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], esp
mov ebx, 1
push 0x518908
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004d49fb
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 3
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x402c1e
mov esi, dword [ebp + 8]
push 0x518908
mov ecx, esi
call fcn.004d49fb
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004d498d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402d3c
mov al, byte [ecx - 1]
test al, al
je 0x402d32
cmp al, 0xff
je 0x402d32
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x11c]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402c7d
lea edx, [ebp - 0x11c]
lea eax, [ebp + 0x1c]
push edx
push eax
call fcn.00402920
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004d4ac6
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004d498d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402ce0
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004d4702
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], bl
or ecx, ebx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
call fcn.004d498d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402d3c
mov al, byte [ecx - 1]
test al, al
je 0x402d32
cmp al, 0xff
je 0x402d32
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403910
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x120]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x403a36
push edi
call fcn.004d46ce
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403a2d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4039cf
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4039cf
mov ecx, dword [esp + 0x12c]
push eax
call fcn.004d4b16
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xc], 0
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xProductVersion
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403a29
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403a29
mov ecx, dword [esp + 0x130]
push eax
call fcn.004d4b16
test esi, esi
je 0x403a36
push esi
call fcn.004d46f7
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x118
ret

Function at 0x403a40
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x403a8a
cmp byte [eax], 0
je 0x403a8a
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x403a8a
cmp esi, 0xffffffff
je 0x403a8a
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x405940
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
push 0
push 2
mov dword [esp + 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov eax, dword [0x508464]
xor edi, edi
cmp eax, 0xf
jge 0x405971
inc eax
mov edi, 1
mov dword [0x508464], eax
lea eax, [esp + 0x24]
push ebp
push eax
push ebx
mov dword [esp + 0x30], pe_nt_image_headers32
call sub.KERNEL32.dll_Process32First
mov ecx, dword [0x518b90]
mov dword [esp + 0x1c], eax
call fcn.00434340
mov ecx, eax
mov eax, 0xc22e4507
add ecx, 0x7080
imul ecx
mov eax, dword [0x518924]
add edx, ecx
sar edx, 0x10
mov ecx, edx
push eax
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [eax]
mov ebp, edx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x518920
call fcn.00408320
cmp edi, 1
jne 0x4059e6
mov eax, dword [0x51893c]
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, 0x518938
call fcn.00407820
mov ecx, dword [0x51893c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x405a98
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, 0x518920
call fcn.00407ce0
cmp dword [0x51897c], 1
je 0x405a6e
cmp edi, 1
je 0x405a6e
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x405a79
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x405a4f
mov ecx, esi
call fcn.00402e40
cmp eax, 0xe10
jb 0x405a4f
mov ecx, esi
call fcn.00402f10
jmp 0x405a79
push ebp
mov ecx, esi
call fcn.00402ee0
test al, al
je 0x405a79
mov ecx, esi
call fcn.00402f10
mov dword [esi + 0x9c], 0
jmp 0x405a79
push str.bAppPause__TRUE_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
call fcn.00408b60
mov eax, dword [esp + 0x10]
mov ecx, dword [0x51893c]
cmp eax, ecx
jne 0x4059fa
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
pop ebp
test eax, eax
je 0x405aca
cmp dword [0x51897c], 1
je 0x405aca
cmp edi, 1
je 0x405aca
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00403a90
lea eax, [esp + 0x24]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405aa1
call fcn.00405020
test ebx, ebx
je 0x405ada
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x405af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e0e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.004d49fb
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
call fcn.004d4ea1
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x34]
mov byte [esp + 0x14], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00406db0
lea edx, [esp + 0x14]
mov ecx, 0x518950
push edx
mov byte [esp + 0x30], 1
call fcn.0040a570
mov ecx, dword [0x518954]
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x405b90
add eax, 0xc
lea ecx, [esp + 0x14]
push eax
call fcn.0040ad50
test eax, eax
jl 0x405b90
lea eax, [esp + 0xc]
jmp 0x405b9d
mov eax, dword [0x518954]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x405bc4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x405bbb
cmp al, 0xff
je 0x405bbb
dec al
mov byte [ecx], al
jmp 0x405bc4
push ecx
call fcn.004d46f7
add esp, 4
mov eax, dword [0x518954]
pop edi
cmp esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
pop esi
pop ebx
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
je 0x405c01
call fcn.004d498d
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call fcn.004d498d
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x405c20
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x28
mov edx, dword [0x5098e0]
mov eax, dword [str.SeDebugPrivilege]
mov ecx, dword [0x5098dc]
mov dword [esp + 0x1c], edx
lea edx, [esp]
mov dword [esp + 0x14], eax
mov eax, dword [0x5098e4]
mov dword [esp + 0x18], ecx
mov cl, byte [0x5098e8]
push edx
push 0x28
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405cd6
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x405c90
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0x10
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x405ccb
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x28
ret
Function at 0x4061a0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4e0ea3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov eax, dword [0x51347c]
xor ebx, ebx
mov dword [esp + 0x140], ebx
xor edi, edi
mov dword [esp + 0xc], eax
push ebx
push 2
mov byte [esp + 0x148], 1
mov dword [esp + 0x18], pe_nt_image_headers32
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406294
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x40625b
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call fcn.004d4b16
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x148]
push eax
push ecx
call fcn.004aef83
add esp, 8
test eax, eax
je 0x40623c
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
jne 0x406204
jmp 0x40625b
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x150]
mov edi, 1
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov dword [edx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jle 0x406294
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call fcn.004d498d
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call fcn.004d498d
mov eax, 1
jmp 0x4062bd
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call fcn.004d498d
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call fcn.004d498d
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret

Function at 0x40ae20
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 0xc]
test edx, edx
jne 0x40ae3f
push eax
push 0
push ecx
push 0x40ae40
push 0
push 0
call fcn.004af505
add esp, 0x18
ret

Function at 0x40b1f0
Capabilities:
Enumerate internet cache

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
push 0
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40b23c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40b243
push esi
call fcn.004d46f7
mov eax, dword [edi]
push eax
call fcn.004d46ce
mov ecx, dword [edi]
add esp, 8
mov esi, eax
push edi
push esi
push 0
mov dword [esi], ecx
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b20e
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push ebx
cmp eax, 0x103
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40c8d0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x40ce00
push 0
push 0
call fcn.004af505
mov dword [0x518bac], eax
add esp, 0x1c
ret
Function at 0x40d450
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e1428
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x12c]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x40d50b
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x40d4bc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d50b
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40d4df
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
jmp 0x40d50b
mov cl, byte [esi + 3]
mov dl, byte [esi + 2]
mov al, byte [esi + 1]
mov dword [esp + 0x10], 0
mov byte [esp + 0x10], cl
mov cl, byte [esi]
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov ebp, dword [esp + 0x10]
cmp ebp, 0x64
jbe 0x40d525
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], edi
call fcn.004d498d
xor eax, eax
jmp 0x40d5ff
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [esi + ebp + 0xc]
lea eax, [esp + 0x1c]
push str.mvhd
push eax
mov dword [esp + 0x24], edx
call fcn.004b0b80
add esp, 8
test eax, eax
je 0x40d583
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d498d
xor eax, eax
jmp 0x40d5ff
mov dl, byte [esi + ebp + 0x1f]
mov al, byte [esi + ebp + 0x1e]
mov cl, byte [esi + ebp + 0x1d]
mov byte [esp + 0x14], dl
mov dl, byte [esi + ebp + 0x1c]
mov byte [esp + 0x15], al
mov al, byte [esi + ebp + 0x23]
mov byte [esp + 0x16], cl
mov cl, byte [esi + ebp + 0x22]
mov byte [esp + 0x17], dl
mov dl, byte [esi + ebp + 0x21]
mov byte [esp + 0x10], al
mov al, byte [esi + ebp + 0x20]
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
push esi
mov edi, eax
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 ebx
call esi
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d498d
mov eax, edi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x412190
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4e194b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x5189e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4121f2
push 0x50
call fcn.004d46ce
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4121de
mov ecx, eax
call fcn.0041f4e0
jmp 0x4121e0
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esi + 4], eax
call fcn.0041f850
push 0
push 0
push esi
push 0x412360
push 0
push 0
call fcn.004af505
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x4129e0
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4e1b67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov dword [esp + 0x14], 0
push 0x518908
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call fcn.004d49fb
mov esi, dword [esp + 0x30]
mov byte [esp + 0x20], 2
test esi, esi
mov dword [esp + 0xc], 0x34
mov eax, 0x4ea894
je 0x412a34
mov eax, esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x412abc
push ebp
push edi
call fcn.004d46ce
add esp, 4
mov ebp, eax
test esi, esi
mov eax, 0x4ea894
je 0x412a59
mov eax, esi
push ebp
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412ab2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x5095a0
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x412ab2
mov eax, dword [esp + 0x14]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x1c]
push str._d._d._d._d
push ecx
call fcn.004d3a22
add esp, 0x18
push ebp
call fcn.004d46f7
add esp, 4
pop ebp
mov edi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.004d4702
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.004d498d
test esi, esi
je 0x412b13
mov al, byte [esi - 1]
test al, al
je 0x412b09
cmp al, 0xff
je 0x412b09
dec al
mov byte [esi - 1], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec esi
push esi
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x415070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x415091
shr eax, 1
xor eax, 0xedb88320
jmp 0x415093
shr eax, 1
dec esi
jne 0x415084
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x41507d
mov edx, dword [esp + 0x40c]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x4150db
mov esi, dword [esp + 0x408]
push ebx
push edi
movsx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [esp + edi*4 + 0xc]
xor eax, edi
inc ecx
cmp ecx, edx
jb 0x4150bd
pop edi
pop ebx
not eax
pop esi
add esp, 0x400
ret

Function at 0x415220
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x8c
lea eax, [esp + 4]
push esi
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
test esi, esi
je 0x415268
lea edx, [esp + 4]
push edi
push edx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x8c
ret
xor eax, eax
pop esi
add esp, 0x8c
ret
Function at 0x416310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e2267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x18], 0
push 0x518908
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 3
call fcn.004d49fb
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
call fcn.004d4702
lea ecx, [esp + 4]
mov byte [esp + 0x24], 5
call fcn.004d4e8f
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.004d4702
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.004d4e8f
lea edx, [esp + 0x38]
lea ecx, [esp + 8]
push edx
call fcn.004d4702
lea ecx, [esp + 8]
mov byte [esp + 0x24], 7
call fcn.004d4e8f
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
call fcn.004d369c
mov esi, eax
test esi, esi
jl 0x416419
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx - 8]
lea ecx, [esp + 4]
add esi, edx
mov edx, dword [esp + 8]
push esi
push edx
call fcn.004d36aa
cmp eax, 0xffffffff
jne 0x4163d8
mov eax, dword [esp + 4]
mov eax, dword [eax - 8]
mov ecx, dword [esp + 0x30]
sub eax, esi
mov ecx, dword [ecx - 8]
cmp esi, ecx
jg 0x416419
lea edx, [eax + esi]
cmp edx, ecx
jg 0x416419
push eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.004d4ac6
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 7
call fcn.004d498d
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004d4702
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 6
call fcn.004d498d
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.004d498d
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call fcn.004d498d
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004d498d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.004d498d
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call fcn.004d498d
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 0
call fcn.004d498d
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4167a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4e236d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push edi
mov dword [esp + 8], 0
push 0x518908
lea ecx, [esp + 8]
mov dword [esp + 0x418], 1
call fcn.004d49fb
mov edx, dword [esp + 0x420]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [0x518b1c]
lea ecx, [esp + 0xc]
push eax
push 0x3ff
push ecx
push 0x518908
push edx
push str.Config
mov byte [esp + 0x42c], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + eax + 0xc], 0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x41683e
lea eax, [esp + 8]
lea ecx, [esp]
push eax
call fcn.004d4b16
push esi
mov esi, dword [esp + 0x41c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004d4702
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x414], 1
call fcn.004d498d
lea ecx, [esp + 0x420]
mov byte [esp + 0x414], 0
call fcn.004d498d
mov ecx, dword [esp + 0x40c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x414
ret
Function at 0x4188d0
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x418905
push str.IRNPAPFAIL5.exe
call fcn.004180b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x10000
push 0x40
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0x10000
push ebp
push 3
push 0xb
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x41896a
push str.IRNPAPFAIL6.exe
call fcn.004180b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
jbe 0x4189bd
mov eax, dword [ebp]
mov esi, str.IRNPF
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4189a0
test cl, cl
je 0x41899c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4189a0
add eax, 2
add esi, 2
test cl, cl
jne 0x41897c
xor eax, eax
jmp 0x4189a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4189e1
mov eax, dword [esp + 0xc]
inc edi
add ebp, 0x24
cmp edi, eax
jb 0x418974
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.IRNPAPFAIL7.exe
call fcn.004180b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
lea eax, [edi + edi*8]
mov eax, dword [esi + eax*4 + 0xc]
dec eax
cmp eax, 6
ja case.0x4189f2.3
jmp dword [eax*4 + 0x418a50]
push str.CONTINUEPENDING.exe
jmp 0x418a28
push str.PAUSEPENDING.exe
jmp 0x418a28
push str.SERVICEPAUSED.exe
jmp 0x418a28
push str.SERVICERUNNING.exe
jmp 0x418a28
push str.SERVICESTART.exe
jmp 0x418a28
push str.SERVICESTOPPED.exe
jmp 0x418a28
push str.SERVICEUNKNOW.exe
call fcn.004180b0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret