joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa8e080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa8e0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xab3458
push ecx
call fcn.00a9e1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a9e1e1
add esp, 0x10
jmp 0xa8e0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a9e20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a9ddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a8e050
mov eax, dword [0xab8728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.wtsapi32.dll_WTSSetSessionInformationW
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xa8e13b
push esi
call fcn.00a8dfb0
add esp, 4
mov dword [0xab8728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa8e14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00a8dff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xa91440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa914b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xa9148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa91471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa9147e
add edx, ecx
cmp ebx, edx
jb 0xa9148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa91467
xor ecx, ecx
jmp 0xa914a2
test eax, eax
jne 0xa91492
xor ecx, ecx
jmp 0xa914a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00a913c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa918f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xa91921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xa91946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xa9196e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], reloc.wtsapi32.dll_WTSQueryUserToken
jne 0xa91993
push ecx
push esi
call fcn.00a914c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xa98e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push reloc.wtsapi32.dll_WTSVirtualChannelRead
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 0xa98ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00a957a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xa98e61
mov edx, dword [eax]
jmp 0xa98e63
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.00a97050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xa98ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xa98ebf
cmp esi, edi
je 0xa98ebf
mov ecx, esi
call fcn.00a90a00
push esi
call fcn.00a9e1c8
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.00a95990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xa98ef5
mov eax, dword [eax]
jmp 0xa98ef7
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.00a94640
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 0xa98f25
mov eax, dword [eax]
jmp 0xa98f27
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 0xa98f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xa98f76
cmp esi, edi
je 0xa98f76
mov eax, dword [esi]
cmp eax, edi
je 0xa98f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xa98f6d
push eax
call fcn.00a9e1c8
add esp, 4
push esi
call fcn.00a9e1c8
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 0xa99f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push reloc.wtsapi32.dll_WTSVirtualChannelRead
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 0xa9a002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a9ddff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa9a002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a956e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a9e20b
push 0x10
call fcn.00a9e1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa99fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a8a1c0
jmp 0xa99fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a99b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa99ff0
mov ecx, edi
call fcn.00a8a2c0
push edi
call fcn.00a9e1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa9a021
inc ebx
cmp ebx, 0x20
jb 0xa99f3e
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 0xa9c000
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 0xa9c131
push esi
call fcn.00a9f145
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.00a8e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa9c131
push 0
push ebp
call fcn.00a8e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a8e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa9c08b
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.00a8e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa9c121
push str.CompanyName
push edi
call fcn.00a9d3f0
push eax
push ebx
push esi
call fcn.00a9bf60
push str.FileDescription
push edi
call fcn.00a9d3f0
push eax
push ebx
push esi
call fcn.00a9bf60
push str.LegalCopyright
push edi
call fcn.00a9d3f0
push eax
push ebx
push esi
call fcn.00a9bf60
push str.ProductName
push edi
call fcn.00a9d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a9bf60
push str.ProductVersion
push edi
call fcn.00a9d3f0
push eax
push ebx
push esi
call fcn.00a9bf60
push str.FileVersion
push edi
call fcn.00a9d3f0
push eax
push ebx
push esi
call fcn.00a9bf60
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 0x401580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401599
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4015d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4015d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4015d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4015c0
cmp esi, eax
jb 0x4015da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403910
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.ProcessorNameString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40397e
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40394f
cmp eax, 2
jne 0x40396a
test esi, esi
mov eax, dword [esp]
je 0x403978
test eax, eax
je 0x403973
test al, 1
jne 0x40396a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x403978
mov eax, 0xd
pop ecx
ret 4
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x403f80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.MaxClockSpeed
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.Win32_Processor
mov dword [esp + 0x40], 0
call fcn.0040dea0
lea edx, [esp + 0xc]
cmp edx, eax
mov byte [esp + 0x38], 1
je 0x403ffe
push eax
mov eax, edx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x403ffe
push eax
mov word [esp + 0x10], 0xa
mov dword [esp + 0x18], eax
call fcn.00401080
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x1c]
push ecx
call edi
cmp word [esp + 0xc], 0
mov esi, 0x270f
je 0x40401c
mov esi, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404240
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446c38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0040f150
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40427e
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftDirectX
mov dword [esp + 0x30], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40434a
mov ecx, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0x100
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x4042f4
push 0x100
lea ecx, [esp + 0xc]
call fcn.00401100
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x14]
push eax
push 0
push 0x44ec30
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
jne 0x404319
xor eax, eax
jmp 0x404331
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404320
sub eax, edx
sar eax, 1
js 0x404394
cmp eax, dword [esi - 8]
jg 0x404394
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
push esi
push 0x100
push eax
call fcn.0042cca9
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404381
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
push 0x80070057
call fcn.00401080
int3
Function at 0x4043a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x446bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x45b684]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x148]
push 0x114
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
call fcn.0042e860
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
movzx ebp, word [esp + 0x2c]
call fcn.0040f150
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404440
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, 1
cmp esi, eax
mov dword [esp + 0x140], 0
jne 0x40450a
cmp ebx, 4
jne 0x4045c0
cmp edi, 0xa
jae 0x4044b5
cmp ebp, 0x3b6
jne 0x404488
push str.Win95
jmp 0x4045b7
lea ecx, [ebp - 0x3b7]
cmp ecx, 0x81
ja 0x4044a0
push str.Win95SP1
jmp 0x4045b7
cmp ebp, 0x438
jbe 0x4044b2
push str.Win95OSR2
jmp 0x4045b7
cmp edi, 0xa
jne 0x4044f7
cmp ebp, 0x7ce
jne 0x4044c9
push str.Win98
jmp 0x4045b7
lea edx, [ebp - 0x7cf]
cmp edx, 0xb7
ja 0x4044e1
push str.Win98SP1
jmp 0x4045b7
cmp ebp, 0x887
jb 0x4045c0
push str.Win98SE
jmp 0x4045b7
cmp edi, 0x5a
jne 0x4045c0
push str.WinME
jmp 0x4045b7
cmp esi, 2
jne 0x4045ad
cmp ebx, 3
jne 0x40452f
cmp edi, 0x33
jne 0x4045c0
mov dword [esp + 0x18], eax
push str.WinNT351
jmp 0x4045b7
cmp ebx, 4
jne 0x404547
test edi, edi
jne 0x4045c0
mov dword [esp + 0x18], eax
push str.WinNT4
jmp 0x4045b7
cmp ebx, 5
jne 0x404582
test edi, edi
jne 0x40455b
mov dword [esp + 0x18], eax
push str.Windows_2000
jmp 0x4045b7
cmp edi, eax
jne 0x40456e
mov dword [esp + 0x18], 2
push 0x44eca8
jmp 0x4045b7
cmp edi, 2
jne 0x4045c0
mov dword [esp + 0x18], 3
push str.Windows_2003
jmp 0x4045b7
cmp ebx, 6
jne 0x4045c0
test edi, edi
jne 0x40459a
mov dword [esp + 0x18], 4
push str.Windows_VISTA
jmp 0x4045b7
cmp edi, eax
jne 0x4045c0
mov dword [esp + 0x18], 5
push str.Windows_7
jmp 0x4045b7
cmp esi, 3
jne 0x4045c0
push str.WinCE
lea ecx, [esp + 0x18]
call fcn.00406210
push 1
push 0x44ece8
lea ecx, [esp + 0x1c]
call fcn.00402f50
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4045d7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402f50
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push esi
push 0x100
push ecx
call fcn.0042cca9
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [esp + 0x140], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404633
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0042c712
add esp, 0x130
ret 4
Function at 0x404ad0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x28
push ebx
mov ebx, 1
cmp dword [0x45f970], ebx
push esi
push edi
jne 0x404aec
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov edi, 0x45f91c
mov dword [0x45f970], ebx
call fcn.00404710
mov edi, 0x45f920
mov dword [0x45f90c], eax
call fcn.00404670
mov dword [0x45f914], eax
call fcn.00403f80
cmp eax, 0xa28
jle 0x404b23
mov eax, 0x14
jmp 0x404b3b
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
mov eax, 0x64d319ff
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x45f904], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x18]
shr eax, 0x14
cmp eax, 0x1000
mov dword [0x45f928], eax
jle 0x404b65
mov eax, 0x14
jmp 0x404b78
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
push 0x45f92c
mov dword [0x45f908], eax
call fcn.00404790
mov ecx, dword [0x45f908]
mov esi, dword [0x45f924]
mov dword [0x45f910], eax
add eax, ecx
add eax, dword [0x45f904]
add eax, dword [0x45f914]
add eax, dword [0x45f90c]
mov dword [0x45f918], eax
mov edx, dword [esi - 8]
sub ebx, dword [esi - 4]
sub edx, 0x100
or ebx, edx
jge 0x404bd6
push 0x100
mov ecx, 0x45f924
call fcn.00401100
mov esi, dword [0x45f924]
call fcn.00403f20
mov edx, dword [0x45f924]
test edx, edx
jne 0x404be9
xor eax, eax
jmp 0x404c01
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404bf0
sub eax, esi
sar eax, 1
js 0x404c21
cmp eax, dword [edx - 8]
jg 0x404c21
mov dword [edx - 0xc], eax
mov ecx, dword [0x45f924]
pop edi
pop esi
mov word [ecx + eax*2], 0
mov eax, dword [0x45f918]
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.00401080
int3
Function at 0x405bc0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x446968
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x44ecf8
lea eax, [esp + 0xc]
push 0x45f964
push eax
call fcn.00405e90
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44ecf8
lea ecx, [esp + 0x10]
push 0x45f964
push ecx
call fcn.00405e90
mov esi, eax
push 0x45f950
lea edx, [esp + 0x18]
push 0x45f900
push edx
mov dword [esp + 0x34], 0
call fcn.00405dd0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.startname
push str.main
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44ecf8
lea ecx, [esp + 0x14]
push 0x45f964
push ecx
call fcn.00405e90
mov edx, dword [eax]
mov eax, dword [0x45f94c]
add esp, 0xc
push edx
push eax
push str.gamename
push str.main
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x406c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.004119c1
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x44e604
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x406c49
pop edi
pop esi
pop ecx
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x406c69
pop ebx
pop edi
pop esi
pop ecx
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.00434760
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x406cc0
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x406cc2
xor esi, esi
mov edx, dword [esp + 0x18]
push edi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 8

Function at 0x409060
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [esi + 0x1cc]
mov ecx, dword [eax + 0x2c]
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esi + 0x20]
lea edi, [esi + 0xcc]
push edi
push edx
mov dword [esi + 0xec], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x74]
add dword [esi + 0xd0], 0x6c
add dword [esi + 0xd8], 0xfffffff5
add dword [edi], 0x10
add dword [esi + 0xd4], 0xfffffff0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea ebx, [esi + 0x54]
push 0
je 0x4090ee
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd8]
mov edi, dword [edi]
mov edx, dword [esi + 0xd4]
sub ecx, eax
push ecx
sub edx, edi
push edx
push eax
push edi
push 0
mov ecx, ebx
call fcn.004170e4
mov eax, dword [esi + 0x1b8]
push 0
push 0
push 0
push 0
push eax
jmp 0x40911e
push 0
push 0
push 0x94
push esi
push edi
push 0x50000000
push str.hello
push 0x44f35c
mov ecx, ebx
call fcn.0041a213
mov ecx, dword [esi + 0x1b8]
push 0
push 0
push 0
push 0
push ecx
push str._bLLLL
push 0
push 0
push 1
push 0x68
push ebx
call fcn.00416f57
mov ecx, dword [esi + 0xc8]
add esp, 0x2c
test ecx, ecx
pop edi
pop ebx
je 0x409147
push 0
call fcn.00416ed9
ret