joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ace00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4c28f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x4aced2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.004a97a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x4ace61
mov edx, dword [eax]
jmp 0x4ace63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.004ab050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x4acebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4acebf
cmp esi, edi
je 0x4acebf
mov ecx, esi
call fcn.004a4a00
push esi
call fcn.004b21c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.004a9990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x4acef5
mov eax, dword [eax]
jmp 0x4acef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.004a8640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4acf25
mov eax, dword [eax]
jmp 0x4acf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x4acf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4acf76
cmp esi, edi
je 0x4acf76
mov eax, dword [esi]
cmp eax, edi
je 0x4acf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4acf6d
push eax
call fcn.004b21c8
add esp, 4
push esi
call fcn.004b21c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4acf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4acffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x4ad035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.004ace00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x4acfc5
mov edi, 0x4c78b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x4ad035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004ace00
add edi, 4
add esp, 0xc
cmp edi, 0x4c78c0
jb 0x4ad000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x4ad070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.004b3082
mov esi, eax
add esp, 8
test esi, esi
je 0x4ad107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ad102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.004b2946
add esp, 8
test eax, eax
je 0x4ad0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x4ad0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004b2946
add esp, 8
test eax, eax
jne 0x4ad0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x4ad102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x4adf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c29fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x4ae002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.004b1dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4ae002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.004a96e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.004b220b
push 0x10
call fcn.004b21d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x4adfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0049e1c0
jmp 0x4adfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.004adb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x4adff0
mov ecx, edi
call fcn.0049e2c0
push edi
call fcn.004b21c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ae021
inc ebx
cmp ebx, 0x20
jb 0x4adf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4af250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3808
push 0x4b3288
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 0x4af329
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 0x4af329
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.004b21d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x4af329
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 0x4af329
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 0x4af32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004af351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4afd20
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 0x4afd58
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 0x4afd60
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 0x4afd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4afd94
push eax
push esi
call fcn.004b220b
add esp, 8
pop esi
ret 0x10

Function at 0x4afda0
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 0x4afe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x4afe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x4c8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.004b1dff
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 0x4afdda
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 0x4afe30
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 0x4afec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x4afeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x4c8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.004b1dff
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 0x4afeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x4afe6a
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 0x4b0000
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 0x4b0131
push esi
call fcn.004b3145
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.004a2080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x4b0131
push 0
push ebp
call fcn.004a23a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.004a2260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4b008b
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.004a22f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4b0121
push 0x4c8918
push edi
call fcn.004b13f0
push eax
push ebx
push esi
call fcn.004aff60
push 0x4c88f8
push edi
call fcn.004b13f0
push eax
push ebx
push esi
call fcn.004aff60
push 0x4c88d8
push edi
call fcn.004b13f0
push eax
push ebx
push esi
call fcn.004aff60
push 0x4c88c0
push edi
call fcn.004b13f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.004aff60
push 0x4c88a0
push edi
call fcn.004b13f0
push eax
push ebx
push esi
call fcn.004aff60
push 0x4c8888
push edi
call fcn.004b13f0
push eax
push ebx
push esi
call fcn.004aff60
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 0x4b11b0
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.004b1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.004b1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.004b1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.004b1140
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 0x4b1bfa
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 0x4b1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4c387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4b1c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404f18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x404f92
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404f92
cmp dword [ebp - 8], 1
jne 0x404f92
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041187e
mov esi, eax
pop ecx
test esi, esi
je 0x404f91
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404f8a
mov ecx, dword [ebp + 8]
push esi
call fcn.00402990
push esi
call fcn.00411879
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406758
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x434399
call fcn.004118f8
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
test esi, esi
je 0x40681d
cmp word [esi], bx
je 0x40681d
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4067ad
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00418c51
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00404e6d
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004066fe
test eax, eax
jne 0x40681d
push 0x38
call fcn.00411410
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
mov byte [esi], 1
call fcn.004029e0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
call fcn.00402a40
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x40]
mov dword [ebp - 0x21c], esi
call fcn.00404ba3
mov eax, dword [ebp - 0x21c]
call fcn.004118a2
ret 4
Function at 0x4077a0
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x4346aa
call fcn.004118f8
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
cmp dword [ebx + 0x2e4], esi
jle 0x407883
cmp eax, 0xffffffff
je 0x407883
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x28]
call fcn.004029e0
mov dword [ebp - 4], 1
lea edi, [ebx + 0x2d4]
push eax
mov ecx, edi
call fcn.004091ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403720
jmp 0x407876
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004097d3
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x407815
xor eax, eax
jmp 0x407817
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00403110
push 0
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00403560
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x407854
add esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], esi
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
dec eax
and eax, dword [edi + 0xc]
mov ecx, dword [ecx + eax*4]
call fcn.00402d40
sub dword [edi + 0x10], 1
jne 0x407873
and dword [edi + 0xc], 0
jmp 0x407876
inc dword [edi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x4077fe
mov eax, esi
call fcn.004118a2
ret 8
Function at 0x40824b
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x44b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4082d3
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x4082cc
test dword [ebp - 0x408], 0xfffffffc
jbe 0x4082cc
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4082ab
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410f0c
mov esp, ebp
pop ebp
ret 4
Function at 0x40857f
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x4347e8
call fcn.004118f8
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40877f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4085ac
mov al, byte [eax]
jmp 0x4085af
mov al, byte [esi + 0x18]
test al, al
je 0x40877f
mov ecx, esi
call fcn.0040512b
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00402a40
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402a40
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x408615
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00402990
push ebx
lea ecx, [ebp - 0x230]
jmp 0x408645
push ebx
push 0x104
push edi
call fcn.00418c51
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402990
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00402990
test dword [esi + 0x10], 0x20000
je 0x4086a5
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.00403560
push eax
lea ecx, [ebp - 0x248]
call fcn.00403560
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4086a5
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4086a5
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4086a5
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00402990
mov ecx, esi
call fcn.0040512b
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.00418638
pop ecx
test eax, eax
je 0x408723
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x4086d4
push 2
jmp 0x4086d6
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408723
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x40871c
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40871c
push edi
add ecx, 4
call fcn.00402990
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x408751
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.004082e6
test dword [esi + 0x10], 0x100000
je 0x408751
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.0040824b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40875d
mov byte [eax], 0
jmp 0x408761
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403720
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00403720
call fcn.004118a2
ret 4
Function at 0x409cda
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x4349f5
call fcn.004118f8
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00402a40
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x409d62
lea ecx, [ebp - 0x28]
call fcn.00402a40
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.0040504b
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0040a229
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.004034e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403720
lea ecx, [ebp - 0x28]
call fcn.00403560
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00403720
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409e07
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040a229
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00403560
push eax
mov edi, 0x88
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x409df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x409df1
test ebx, ebx
je 0x409dec
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004064c1
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
inc dword [eax]
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00403720
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403720
mov eax, esi
call fcn.004118a2
ret 4