joyce8/EMBER2024-capa huggingface dataset:
Function at 0x87b250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x88f808
push 0x87f288
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 0x87b329
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 0x87b329
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.0087e1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x87b329
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 0x87b329
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 0x87b32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0087b351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x87bd20
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 0x87bd58
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 0x87bd60
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 0x87bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x87bd94
push eax
push esi
call fcn.0087e20b
add esp, 8
pop esi
ret 0x10

Function at 0x87bda0
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 0x87be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x87be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x894320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0087ddff
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 0x87bdda
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 0x87be30
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 0x87bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x87beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x894320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0087ddff
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 0x87beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x87be6a
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 0x87c000
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 0x87c131
push esi
call fcn.0087f145
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.0086e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x87c131
push 0
push ebp
call fcn.0086e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0086e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x87c08b
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.0086e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x87c121
push 0x894918
push edi
call fcn.0087d3f0
push eax
push ebx
push esi
call fcn.0087bf60
push 0x8948f8
push edi
call fcn.0087d3f0
push eax
push ebx
push esi
call fcn.0087bf60
push 0x8948d8
push edi
call fcn.0087d3f0
push eax
push ebx
push esi
call fcn.0087bf60
push 0x8948c0
push edi
call fcn.0087d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0087bf60
push 0x8948a0
push edi
call fcn.0087d3f0
push eax
push ebx
push esi
call fcn.0087bf60
push 0x894888
push edi
call fcn.0087d3f0
push eax
push ebx
push esi
call fcn.0087bf60
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 0x87d1b0
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.0087d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0087d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0087d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0087d140
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 0x87dbfa
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 0x87dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x88f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x87dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x87dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4024c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push 0x2f
mov esi, ecx
xor ebx, ebx
push str..pipe86A12194_0576_496F_911E_CB6B64509AA9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00406e20
mov eax, dword [esp + 0x18]
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jae 0x402508
lea eax, [esp + 0x18]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x4025b0
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x40252a
lea eax, [esp + 0x18]
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4025af
cmp dword [esi + 0x18], ebp
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], ebx
jb 0x402559
mov esi, dword [esi + 4]
jmp 0x40255c
add esi, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4025a8
xor eax, eax
push ebx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
push 0x14
lea eax, [esp + 0x40]
push eax
push edi
mov byte [esp + 0x48], bl
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp dword [esp + 0x2c], ebp
jb 0x4025c3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043e445
add esp, 4
mov ecx, dword [esp + 0x44]
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043e436
add esp, 0x3c
ret

Function at 0x403750
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x465e56
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
push 0x10
call fcn.0043e44a
add esp, 4
xor edi, edi
cmp eax, edi
je 0x403797
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov esi, eax
jmp 0x403799
xor esi, esi
cmp esi, edi
mov dword [esp + 0x24], 0xffffffff
je 0x4037c9
push ebx
push esi
call fcn.004076a0
push edi
push edi
push esi
push 0x4025e0
push edi
push edi
call fcn.0043e645
add esp, 0x18
cmp eax, edi
je 0x4037c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
call fcn.0043e44a
add esp, 4
cmp eax, edi
je 0x4037e4
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov esi, eax
jmp 0x4037e6
xor esi, esi
cmp esi, edi
mov dword [esp + 0x24], 0xffffffff
je 0x403816
push ebx
push esi
call fcn.004076a0
push edi
push edi
push esi
push 0x402bc0
push edi
push edi
call fcn.0043e645
add esp, 0x18
cmp eax, edi
je 0x403816
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x403d50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push edi
push 0
push 2
xor bl, bl
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x403e10
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x403e09
lea ecx, [esp + 0x2c]
push 0x46a1c4
push ecx
call fcn.0045c3c7
add esp, 8
test eax, eax
je 0x403de6
lea edx, [esp + 0x2c]
push 0x46a1dc
push edx
call fcn.0045c3c7
add esp, 8
test eax, eax
je 0x403de6
lea eax, [esp + 0x2c]
push str.webclient.exe
push eax
call fcn.0045c3c7
add esp, 8
test eax, eax
je 0x403de6
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403d93
jmp 0x403e09
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.0040af00
add esp, 4
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00407280
mov ecx, esi
call fcn.004073b0
mov bl, 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043e436
add esp, 0x230
ret
Function at 0x404c20
Capabilities:
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x4632b2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x1c], ebp
mov byte [ebp + 4], bl
mov eax, dword [esp + 0x248]
push eax
push ebx
mov dword [esp + 0x244], ebx
push 0x1f0fff
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x404d46
push 0x104
lea ecx, [esp + 0x25]
push ebx
push ecx
mov byte [esp + 0x2c], bl
call fcn.00442eb0
add esp, 0xc
push 0x104
lea edx, [esp + 0x24]
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edi, 0x469f6d
lea esi, [esp + 0x20]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404d3b
push 0x104
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], bl
call fcn.00442eb0
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0x30]
call fcn.00404960
lea eax, [esp + 0x138]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404d20
sub eax, edx
push eax
lea eax, [esp + 0x12c]
push eax
mov ecx, ebp
call fcn.00406e20
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0043e436
add esp, 0x22c
ret
Function at 0x407950
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x407968
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40797d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4079a0
mov eax, dword [ecx]
push eax
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x4079b5
cmp eax, 1
jne 0x4079b8
mov ecx, dword [ecx]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4079e2
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x40c770
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c7ac
lea ecx, [esp + 8]
push ecx
push 0x46a474
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40c7b2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40c7ff
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x24
ret
mov al, 1
add esp, 0x24
ret
Function at 0x40c810
Capabilities:
Check if file exists
Enumerate processes
Get file attributes
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x463872
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4dc]
mov dword [esp + 0x14], 0
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
mov dword [esp + 0x1c], ebp
mov byte [ebp + 4], 0
push 0
mov dword [esp + 0x4d8], 0
push 2
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40ca4e
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40ca47
jmp 0x40c8c0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x464]
push 0x46a498
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x44]
push 0x46a49c
push eax
call fcn.0045c3c7
add esp, 8
test eax, eax
je 0x40c937
lea ecx, [esp + 0x44]
push str.pd.exe
push ecx
call fcn.0045c3c7
add esp, 8
test eax, eax
je 0x40c937
lea edx, [esp + 0x44]
push str.ltm.exe
push edx
call fcn.0045c3c7
add esp, 8
test eax, eax
je 0x40c937
lea eax, [esp + 0x44]
push str.nos.exe
push eax
call fcn.0045c3c7
add esp, 8
test eax, eax
jne 0x40ca34
mov ecx, dword [esp + 0x28]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40ca13
push 0x104
lea edx, [esp + 0x35d]
push 0
push edx
mov byte [esp + 0x364], 0
call fcn.00442eb0
add esp, 0xc
push 0x104
lea eax, [esp + 0x35c]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
mov edi, 0x469f6d
lea esi, [esp + 0x358]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40ca08
push 0x104
push edx
lea eax, [esp + 0x259]
push eax
mov byte [esp + 0x25c], dl
call fcn.00442eb0
lea ecx, [esp + 0x25c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x35c]
call fcn.0040c4a0
add esp, 4
lea edx, [esp + 0x250]
push 0x5c
push edx
call fcn.0043ec00
add esp, 8
test eax, eax
je 0x40ca08
lea ecx, [esp + 0x250]
sub eax, ecx
mov edx, ecx
push eax
push edx
mov ecx, ebp
call fcn.00406e20
push 7
push 0x46a4dc
mov eax, ebp
call fcn.00408d20
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov eax, ebp
call fcn.00406f20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ca47
push 0
push 0x469f6d
mov ecx, ebp
call fcn.00406e20
lea eax, [esp + 0x20]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c8c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.0043e436
add esp, 0x4c4
ret
Function at 0x40ca80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46284d
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1a4]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edx, 0xf
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x28], ebp
mov byte [ebp + 4], bl
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], vtable.CLmMv_struct_ns_config::_tagInterProcessParamEx_.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
mov dword [esp + 0x1b8], eax
push 0x26
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], ebx
push str.897184E9_DF31_4542_A244_3CBBA1334575
mov byte [ecx + 4], bl
call fcn.00406e20
lea esi, [esp + 0x30]
call fcn.004209b0
cmp al, bl
je 0x40cbc0
push 0x5b
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.00442eb0
push 0x104
lea ecx, [esp + 0x98]
push ebx
push ecx
call fcn.00442eb0
mov esi, dword [esp + 0x34]
add esp, 0x18
cmp esi, ebx
je 0x40cb63
mov ecx, 0x58
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x88]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cb70
sub eax, edx
push eax
lea edx, [esp + 0x8c]
push edx
mov ecx, ebp
call fcn.00406e20
push 6
push str.SERVER
mov eax, ebp
call fcn.00408d20
cmp dword [ebp + 0x18], 0x10
jb 0x40cba4
mov eax, dword [ebp + 4]
jmp 0x40cba7
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cbc0
push ebx
push 0x469f6d
mov ecx, ebp
call fcn.00406e20
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40cbcf
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40cbde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0043e436
add esp, 0x18c
ret
Function at 0x40cc10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x463e26
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
call fcn.0040c770
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x30]
push eax
call fcn.0040c810
add esp, 4
mov dword [esp + 0xc0], ebx
mov esi, dword [esp + 0x48]
cmp esi, 0x10
mov edi, dword [esp + 0x34]
mov eax, edi
jae 0x40cc7f
lea eax, [esp + 0x34]
push eax
xor eax, eax
mov ecx, 0x469f6d
call fcn.00401090
add esp, 4
cmp eax, ebx
jne 0x40cce5
xor eax, eax
cmp dword [esp + 0x44], ebx
setne al
cmp eax, ebx
jne 0x40cce5
lea ecx, [esp + 0x14]
push ecx
call fcn.0040ca80
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 1
call fcn.00407c00
mov byte [esp + 0xc0], bl
cmp dword [esp + 0x2c], 0x10
jb 0x40ccdd
mov edx, dword [esp + 0x18]
push edx
call fcn.0043e445
add esp, 4
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x48]
cmp esi, 0x10
mov eax, edi
jae 0x40ccf0
lea eax, [esp + 0x34]
push eax
xor eax, eax
mov ecx, 0x469f6d
call fcn.00401090
add esp, 4
cmp eax, ebx
jne 0x40cd20
xor eax, eax
cmp dword [esp + 0x44], ebx
setne al
cmp eax, ebx
jne 0x40cd20
cmp esi, 0x10
jb 0x40cdb0
push edi
jmp 0x40cda8
push 0x63
lea eax, [esp + 0x51]
push ebx
push eax
mov byte [esp + 0x58], bl
call fcn.00442eb0
add esp, 0xc
cmp esi, 0x10
mov eax, edi
jae 0x40cd3f
lea eax, [esp + 0x34]
push eax
push 0x63
lea ecx, [esp + 0x54]
push ecx
push 0x469f6d
push 0x46a514
push 0x46a518
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40cd63
sub eax, edx
push eax
lea edx, [esp + 0x50]
push edx
mov ecx, 0x480ac4
call fcn.00406e20
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, 0x480ae4
mov dword [0x480ae0], 0x3ef
call fcn.00407c00
cmp dword [esp + 0x48], 0x10
mov bl, 1
jb 0x40cdb0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0043e445
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0043e436
add esp, 0xb4
ret