joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483af3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4c058c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push esi
mov eax, dword [0x4c058c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], vtable.NGLogging::CLogFunction.0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov word [esp + 0x34], dx
mov dword [esp + 0xa8], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov word [esp + 0x58], dx
mov byte [esp + 0xa8], 1
mov dword [esp + 0x88], ecx
xor ecx, ecx
mov dword [esp + 0x84], eax
mov word [esp + 0x74], cx
mov byte [esp + 0xa8], 2
mov ecx, dword [esp + 0x34]
mov edx, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0x48], edx
jae 0x415bbf
lea ecx, [esp + 0x34]
xor ebx, ebx
mov word [ecx], bx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], eax
cmp dword [esp + 0x6c], edx
jae 0x415bd6
lea ecx, [esp + 0x58]
xor ebx, ebx
mov word [ecx], bx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x84], eax
cmp dword [esp + 0x88], edx
jae 0x415bf3
lea ecx, [esp + 0x74]
push eax
push eax
push eax
xor edx, edx
mov word [ecx], dx
push str.NGEWSProxy::CEWSProxyMediator::StartCheckEWSLoaded
mov byte [esp + 0x64], al
mov eax, dword [0x4c2800]
push 0x4c5190
push eax
mov ecx, 0x25c
lea edx, [esp + 0x24]
call fcn.0041f106
add esp, 0x18
mov dword [esp + 0xa8], 3
mov ecx, dword [esi + 0x178]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esi + 0x78]
push eax
add esi, 0x1c4
push esi
push edi
call edx
mov bl, al
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0041f230
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00463bd7
mov esp, ebp
pop ebp
ret
Function at 0x419db0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480403
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c058c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00461bf2
mov dword [ebp - 4], 0
push 4
call fcn.0046416f
mov edi, eax
add esp, 4
test edi, edi
je 0x419e38
call fcn.00462072
mov dword [edi], eax
call fcn.00461e31
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00461c94
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x419e2a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00461cbc
jmp 0x419e3a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41caa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483811
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4c058c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [esi], vtable.NGEWSProxy::CEWSProxyPageLoadingChecker.0
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov dword [ebp - 0x9c], esi
mov word [esi + 0x14], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x98], vtable.NGLogging::CLogFunction.0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], dx
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x70]
mov ecx, 8
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x5c], ecx
jae 0x41cb5b
lea eax, [ebp - 0x70]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x38], ecx
jae 0x41cb6e
lea eax, [ebp - 0x4c]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ecx
jae 0x41cb81
lea eax, [ebp - 0x30]
mov edx, dword [0x4c2800]
push ebx
push ebx
push ebx
push str.NGEWSProxy::CEWSProxyPageLoadingChecker::CEWSProxyPageLoadingChecker
xor ecx, ecx
mov word [eax], cx
push 0x4c51b0
push edx
mov ecx, 0xf
lea edx, [ebp - 0x98]
mov byte [ebp - 0x50], bl
call fcn.0041f106
add esp, 0x18
mov byte [ebp - 4], 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 8], ebx
mov dword [esi + 0x38], 0x64
mov dword [esi + 0x3c], 0x12c
mov dword [esi + 0x34], ebx
mov byte [esi + 0x40], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x98]
call fcn.0041f230
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463bd7
mov esp, ebp
pop ebp
ret
Function at 0x41d6d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4836f4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c058c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
call fcn.0041d820
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0041da00
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 4]
test eax, eax
je 0x41d7f9
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
je 0x41d7f9
push esi
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041db10
mov dword [ebp - 4], 2
mov eax, dword [eax]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d7b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41d7f9
mov ebx, dword [ebp + 8]
mov esi, 1
test ebx, ebx
je 0x41d7e3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41d7e3
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov dword [ebx], edx
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041d820
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483af3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4c058c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push esi
mov eax, dword [0x4c058c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xc], vtable.NGLogging::CLogFunction.0
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
mov dword [esp + 0xa8], ebx
xor edx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
mov byte [esp + 0xa8], 1
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], ax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x34]
mov ecx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
cmp dword [esp + 0x48], ecx
jae 0x41d8ef
lea eax, [esp + 0x34]
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], ecx
jae 0x41d906
lea eax, [esp + 0x58]
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], ebx
cmp dword [esp + 0x88], ecx
jae 0x41d923
lea eax, [esp + 0x74]
mov edx, dword [0x4c2800]
push ebx
push ebx
push ebx
push str.NGEWSProxy::CEWSProxyProcess::Close
xor ecx, ecx
mov word [eax], cx
push 0x4c51d0
push edx
mov ecx, 0x65
lea edx, [esp + 0x24]
mov byte [esp + 0x6c], bl
call fcn.0041f106
add esp, 0x18
mov dword [esp + 0xa8], 3
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x41d989
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d986
push str.CEWSProxyProcess::Close___CloseHandle_m_hMutex__failed.
push 0x6a
push 0x80
lea esi, [esp + 0x18]
call fcn.0041f441
add esp, 0xc
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x41d99a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41d9c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d9c4
push str.CEWSProxyProcess::Close___CloseHandle_m_hMapFile__failed.
push 0x78
push 0x80
lea esi, [esp + 0x18]
call fcn.0041f441
add esp, 0xc
mov dword [edi + 4], ebx
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0041f230
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00463bd7
mov esp, ebp
pop ebp
ret
Function at 0x41e220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41e238
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41e26a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x41e266
cmp esi, eax
jae 0x41e26a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41e258
cmp esi, eax
jb 0x41e270
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x41eba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483af3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4c058c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push esi
mov eax, dword [0x4c058c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xc], vtable.NGLogging::CLogFunction.0
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
mov dword [esp + 0xa8], ebx
xor edx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
mov byte [esp + 0xa8], 1
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], ax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x34]
mov ecx, 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
cmp dword [esp + 0x48], ecx
jae 0x41ec71
lea eax, [esp + 0x34]
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], ecx
jae 0x41ec88
lea eax, [esp + 0x58]
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], ebx
cmp dword [esp + 0x88], ecx
jae 0x41eca5
lea eax, [esp + 0x74]
mov edx, dword [0x4c2800]
push ebx
push ebx
push ebx
push str.NGEWSProxy::CInitializeServerCommand::Execute
xor ecx, ecx
mov word [eax], cx
push 0x4c51f0
push edx
mov ecx, 0xb5
lea edx, [esp + 0x24]
mov byte [esp + 0x6c], bl
call fcn.0041f106
mov dword [esp + 0xc0], 3
mov eax, dword [esi + 0x10]
push ebx
push 0x4c2364
push 0x4c1db8
push ebx
push eax
call fcn.0047f083
add esp, 0x2c
cmp eax, ebx
je 0x41ed20
mov edx, dword [eax]
push 1
push 0x4c1e7c
push 0x4c1de8
mov ecx, eax
mov eax, dword [edx + 0x30]
push ebx
call eax
push eax
call fcn.0047f083
add esp, 0x14
mov ecx, eax
call fcn.00415c80
mov dword [esi + 0xc], eax
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0041f230
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00463bd7
mov esp, ebp
pop ebp
ret
Function at 0x41f8d1
Capabilities:
Query environment variable

Disassembly:
push 0x214
mov eax, 0x482351
call fcn.00468d31
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ebx
cmp esi, ebx
je 0x41f9b8
cmp word [esi], bx
je 0x41f9b8
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41f92d
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004668d7
add esp, 0xc
lea edi, [ebp - 0x218]
call fcn.004231d8
mov eax, edi
mov edi, dword [ebp - 0x220]
push eax
call fcn.0041f87b
mov dword [ebp - 0x21c], eax
cmp eax, ebx
jne 0x41f9b8
push 0x40
call fcn.0046416f
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x41f994
lea ecx, [esi + 4]
lea eax, [ebp - 0x218]
mov byte [esi], 1
call fcn.00413200
mov byte [ebp - 4], 1
mov dword [esi + 0x20], ebx
xor eax, eax
mov dword [esi + 0x38], 7
mov dword [esi + 0x34], ebx
mov word [esi + 0x24], ax
mov byte [ebp - 4], bl
jmp 0x41f996
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
cmp esi, ebx
je 0x41f9b8
mov esi, dword [ebp - 0x220]
add esi, 0x50
lea ecx, [ebp - 0x21c]
call fcn.004222b6
mov eax, dword [ebp - 0x21c]
call fcn.00468db4
ret 4
Function at 0x420a61
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x483057
call fcn.00468d31
mov eax, dword [ebx + 0x2fc]
and dword [ebp - 0x30], 0
mov dword [ebp - 0x38], ecx
test eax, eax
jle 0x420b60
cmp ecx, 0xffffffff
je 0x420b60
mov eax, str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00413200
mov dword [ebp - 4], 1
push eax
lea eax, [ebx + 0x2ec]
call fcn.00422376
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0040c150
jmp 0x420b53
lea esi, [ebp - 0x44]
lea eax, [ebx + 0x2ec]
call fcn.0045f1a5
mov ecx, dword [eax]
test ecx, ecx
je 0x420ad2
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x420ade
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x420aef
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x34]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420b0c
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x30], eax
cmp dword [ebx + 0x2fc], 0
je 0x420b60
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [ebx + 0x2f0]
mov esi, dword [ecx + eax*4]
call fcn.0040c150
inc dword [ebx + 0x2f8]
mov eax, dword [ebx + 0x2f8]
cmp dword [ebx + 0x2f4], eax
ja 0x420b44
and dword [ebx + 0x2f8], 0
dec dword [ebx + 0x2fc]
jne 0x420b53
and dword [ebx + 0x2f8], 0
cmp dword [ebx + 0x2fc], 0
ja 0x420abc
mov eax, dword [ebp - 0x30]
call fcn.00468db4
ret
Function at 0x4214db
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x48334c
call fcn.00468d31
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
and dword [ebp - 4], eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
push dword [ebx + 0x10]
call fcn.004211e4
test dword [ebp + 8], 0x8000000
jne 0x421526
test dword [ebx + 0x10], 0x80000
je 0x421559
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x421532
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
mov ecx, edi
call fcn.00420698
cmp dword [eax + 0x14], 8
jb 0x42154a
mov eax, dword [eax]
push eax
call esi
push dword [ebp - 0x30]
call esi
push 0x492660
call esi
mov eax, ebx
call fcn.00423430
push eax
call fcn.00466491
pop ecx
test eax, eax
je 0x421584
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x421577
lea eax, [ebp - 0x2c]
push dword [ebp - 0x30]
mov edx, ebx
push eax
mov ecx, edi
call fcn.00420b69
test dword [ebx + 0x10], 0x10000000
je 0x42159a
add edi, 0xa0
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0040c150
call fcn.00468db4
ret 0xc

Function at 0x4215ae
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push dword [ebp + 0xc]
xor esi, esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
je 0x421624
lea eax, [ebp + 0xc]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x42161d
test dword [ebp + 0xc], 0xfffffffc
jbe 0x42161d
push edi
mov edi, dword [ebp + 8]
add edi, 0xd4
push 0x104
push edi
push dword [ebp + esi*4 - 0x400]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 0xc]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4215fe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 8
Function at 0x4218c8
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x4833f2
call fcn.00468d31
mov esi, edx
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x260], edi
cmp esi, ebx
je 0x421b11
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4218f6
mov al, byte [eax]
jmp 0x4218f9
mov al, byte [esi + 0x18]
cmp al, bl
je 0x421b11
mov eax, esi
call fcn.00423430
push 7
mov dword [ebp - 0x258], eax
pop eax
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
mov byte [ebp - 4], 1
push dword [ebp - 0x258]
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xd4
test eax, eax
je 0x421984
push edi
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x238]
push eax
mov eax, edi
call fcn.00405490
lea eax, [ebp - 0x254]
push eax
mov eax, dword [ebp - 0x258]
jmp 0x4219bb
push dword [ebp - 0x258]
push 0x104
push edi
call fcn.004668d7
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x254]
push ecx
call fcn.00405490
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x238]
push eax
mov eax, edi
call fcn.00405490
test dword [esi + 0x10], 0x20000
je 0x421a2e
cmp dword [ebp - 0x240], 8
mov ecx, dword [ebp - 0x254]
jae 0x4219de
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4219f3
lea eax, [ebp - 0x238]
push edi
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jbe 0x421a2e
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
jbe 0x421a2e
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x421a2e
add eax, 4
push eax
lea eax, [ebp - 0x21c]
call fcn.00405490
mov eax, esi
call fcn.00423430
push eax
mov dword [ebp - 0x258], eax
call fcn.00466491
pop ecx
test eax, eax
je 0x421ab6
test dword [esi + 0x10], 0x10000
push ebx
push 0x80
je 0x421a59
push 2
jmp 0x421a5b
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x421ab6
lea eax, [ebp - 0x258]
push eax
push edi
push 0x104
push ebx
push dword [ebp - 0x258]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebx
jbe 0x421aaa
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x421aaa
add eax, 4
push eax
mov eax, edi
call fcn.00405490
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x421ae6
mov ecx, dword [ebp - 0x260]
push esi
call fcn.0042162a
test dword [esi + 0x10], 0x100000
je 0x421ae6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x260]
call fcn.004215ae
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x421af1
mov byte [eax], bl
jmp 0x421af4
mov byte [esi + 0x18], bl
mov byte [ebp - 4], bl
lea esi, [ebp - 0x254]
call fcn.0040c150
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x238]
call fcn.0040c150
call fcn.00468db4
ret
Function at 0x422a8f
Capabilities:
Check mutex on windows

Disassembly:
push 0x60
mov eax, 0x482c60
call fcn.00468d31
mov ebx, ecx
push 7
pop eax
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov dword [ebp - 4], edi
cmp dword [ebx + 8], edi
jne 0x422b2c
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x48]
mov edi, str.RegValues
call fcn.00423378
push str.Lock
mov eax, esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00409030
add esp, 0xc
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.00407490
mov byte [ebp - 4], 1
lea esi, [ebp - 0x64]
call fcn.0040c150
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x422b10
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.0040c150
xor edi, edi
push 0x32
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x422bda
push str.MappedFile
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00409030
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x422b64
lea eax, [ebp - 0x2c]
push eax
mov esi, 0xa4
push esi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 4], eax
cmp eax, edi
je 0x422bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push esi
cmp eax, 0xb7
push edi
setne cl
push edi
push 0xf001f
push dword [ebx + 4]
mov dword [ebp - 0x68], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x422bc5
cmp dword [ebp - 0x68], edi
je 0x422bc0
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 4
mov esi, eax
call fcn.0041f635
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0xc]
inc dword [eax]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.0040c150
mov ebx, dword [ebx + 0xc]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x48]
call fcn.0040c150
mov eax, ebx
call fcn.00468db4
ret