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

Disassembly:
push 0xffffffffffffffff
push 0x491038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x465420
mov eax, dword [0x4c5250]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004826a3
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004826f2
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0048264f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x465407
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x465407
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004822bf
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x468520
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4914c0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4686c7
mov ecx, dword [0x4c5250]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x46861c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00467240
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004823ac
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004822bf
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4c3f64
call fcn.0048232d
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00467600
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004823ac
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004822bf
lea ecx, [esp + 0xc]
call fcn.00482787
mov ecx, dword [esp + 0xc]
push 0x4c49a4
push ecx
call fcn.00472014
add esp, 8
test eax, eax
je 0x468644
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x46857d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004822bf
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004822bf
jmp 0x4686cb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004682c0
test eax, eax
push 0
je 0x4686af
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00466960
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x468695
cmp eax, 0x64
jg 0x468683
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x468620
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x468620
cmp eax, 0x64
jge 0x46861c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x468620
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00466960
mov esi, eax
jmp 0x468620
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4686d5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4846a3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4846db
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.0048271a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004826f2
jmp 0x4846e7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x485d95
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 0x485dd7
call fcn.0048bb14
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485dd7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x485dce
xor eax, eax
jmp 0x485ddf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00485de5
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c044
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 0x48c072
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c090
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048bfaa
jmp 0x48c090
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c090
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048bfaa
test edi, edi
mov eax, edi
jne 0x48c07a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
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 0x4037b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.00413e74
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x452624
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4037d9
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 0x4037f9
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.00436e00
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 0x403850
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 0x403852
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 0x403a20
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 0x403a8e
mov eax, dword [esp + 8]
cmp eax, 1
je 0x403a5f
cmp eax, 2
jne 0x403a7a
test esi, esi
mov eax, dword [esp]
je 0x403a88
test eax, eax
je 0x403a83
test al, 1
jne 0x403a7a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x403a88
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 0x4040c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x45f684]
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.00410310
lea edx, [esp + 0xc]
cmp edx, eax
mov byte [esp + 0x38], 1
je 0x40413e
push eax
mov eax, edx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x40413e
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 0x40415c
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 0x404380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a228
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45f684]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.004115c0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043be
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 0x40448a
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 0x404434
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 str.Version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
jne 0x404459
xor eax, eax
jmp 0x404471
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404460
sub eax, edx
sar eax, 1
js 0x4044d4
cmp eax, dword [esi - 8]
jg 0x4044d4
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.0042f077
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 0x4044c1
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 0x4044e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44a1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x45f684]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f684]
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.00431180
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.004115c0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404580
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 0x40464a
cmp ebx, 4
jne 0x404700
cmp edi, 0xa
jae 0x4045f5
cmp ebp, 0x3b6
jne 0x4045c8
push str.Win95
jmp 0x4046f7
lea ecx, [ebp - 0x3b7]
cmp ecx, 0x81
ja 0x4045e0
push str.Win95SP1
jmp 0x4046f7
cmp ebp, 0x438
jbe 0x4045f2
push str.Win95OSR2
jmp 0x4046f7
cmp edi, 0xa
jne 0x404637
cmp ebp, 0x7ce
jne 0x404609
push str.Win98
jmp 0x4046f7
lea edx, [ebp - 0x7cf]
cmp edx, 0xb7
ja 0x404621
push str.Win98SP1
jmp 0x4046f7
cmp ebp, 0x887
jb 0x404700
push str.Win98SE
jmp 0x4046f7
cmp edi, 0x5a
jne 0x404700
push str.WinME
jmp 0x4046f7
cmp esi, 2
jne 0x4046ed
cmp ebx, 3
jne 0x40466f
cmp edi, 0x33
jne 0x404700
mov dword [esp + 0x18], eax
push str.WinNT351
jmp 0x4046f7
cmp ebx, 4
jne 0x404687
test edi, edi
jne 0x404700
mov dword [esp + 0x18], eax
push str.WinNT4
jmp 0x4046f7
cmp ebx, 5
jne 0x4046c2
test edi, edi
jne 0x40469b
mov dword [esp + 0x18], eax
push str.Windows_2000
jmp 0x4046f7
cmp edi, eax
jne 0x4046ae
mov dword [esp + 0x18], 2
push 0x452cc8
jmp 0x4046f7
cmp edi, 2
jne 0x404700
mov dword [esp + 0x18], 3
push str.Windows_2003
jmp 0x4046f7
cmp ebx, 6
jne 0x404700
test edi, edi
jne 0x4046da
mov dword [esp + 0x18], 4
push str.Windows_VISTA
jmp 0x4046f7
cmp edi, eax
jne 0x404700
mov dword [esp + 0x18], 5
push str.Windows_7
jmp 0x4046f7
cmp esi, 3
jne 0x404700
push str.WinCE
lea ecx, [esp + 0x18]
call fcn.00406430
push 1
push 0x452d08
lea ecx, [esp + 0x1c]
call fcn.00402f90
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404717
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402f90
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push esi
push 0x100
push ecx
call fcn.0042f077
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 0x404773
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.0042eae0
add esp, 0x130
ret 4
Function at 0x404c10
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x28
push ebx
mov ebx, 1
cmp dword [0x4639b4], ebx
push esi
push edi
jne 0x404c2c
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov edi, 0x46395c
mov dword [0x4639b4], ebx
call fcn.00404850
mov edi, 0x463960
mov dword [0x46394c], eax
call fcn.004047b0
mov dword [0x463954], eax
call fcn.004040c0
cmp eax, 0xa28
jle 0x404c63
mov eax, 0x14
jmp 0x404c7b
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 [0x463944], 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 [0x463968], eax
jle 0x404ca5
mov eax, 0x14
jmp 0x404cb8
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
push 0x46396c
mov dword [0x463948], eax
call fcn.004048d0
mov ecx, dword [0x463948]
mov esi, dword [0x463964]
mov dword [0x463950], eax
add eax, ecx
add eax, dword [0x463944]
add eax, dword [0x463954]
add eax, dword [0x46394c]
mov dword [0x463958], eax
mov edx, dword [esi - 8]
sub ebx, dword [esi - 4]
sub edx, 0x100
or ebx, edx
jge 0x404d16
push 0x100
mov ecx, 0x463964
call fcn.00401100
mov esi, dword [0x463964]
call fcn.00404060
mov edx, dword [0x463964]
test edx, edx
jne 0x404d29
xor eax, eax
jmp 0x404d41
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d30
sub eax, esi
sar eax, 1
js 0x404d61
cmp eax, dword [edx - 8]
jg 0x404d61
mov dword [edx - 0xc], eax
mov ecx, dword [0x463964]
pop edi
pop esi
mov word [ecx + eax*2], 0
mov eax, dword [0x463958]
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.00401080
int3
Function at 0x405e90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x449dd8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x45f684]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x452d18
lea eax, [esp + 0xc]
push 0x4639a8
push eax
call fcn.00406160
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 0x405ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x452d18
lea ecx, [esp + 0x10]
push 0x4639a8
push ecx
call fcn.00406160
mov esi, eax
push 0x463990
lea edx, [esp + 0x18]
push 0x463940
push edx
mov dword [esp + 0x34], 0
call fcn.004060a0
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 0x405f61
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 0x405f89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x452d18
lea ecx, [esp + 0x14]
push 0x4639a8
push ecx
call fcn.00406160
mov edx, dword [eax]
mov eax, dword [0x46398c]
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 0x405fd5
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 0x407520
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x40752f
push 0x80004005
call fcn.00401080
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x4075a7
mov ecx, dword [edi]
test ecx, ecx
jbe 0x4075a2
mov edx, dword [esp]
test edx, edx
jbe 0x40759d
cmp edx, 2
jbe 0x40758e
cmp edx, 7
jne 0x40759d
test cl, 1
jne 0x40759d
shr ecx, 1
cmp ecx, 1
jb 0x40759d
cmp word [esi + ecx*2 - 2], 0
jne 0x40759d
cmp ecx, 1
jbe 0x4075a7
cmp word [esi + ecx*2 - 4], 0
jmp 0x40759b
test cl, 1
jne 0x40759d
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4075a7
mov eax, 0xd
mov word [esi], 0
pop ecx
ret 8
Function at 0x4075b0
Capabilities:
Set registry value

Disassembly:
test esi, esi
jne 0x4075be
push 0x80004005
call fcn.00401080
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
add eax, 1
add eax, eax
push eax
mov eax, dword [edx]
push esi
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x409870
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [esi + 0x2d4]
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 + 0x1bc]
push edi
push edx
mov dword [esi + 0x1dc], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x74]
add dword [esi + 0x1c0], 0x6c
add dword [esi + 0x1c8], 0xfffffff5
add dword [edi], 0x10
add dword [esi + 0x1c4], 0xfffffff0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea ebx, [esi + 0x54]
push 0
je 0x4098fe
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c8]
mov edi, dword [edi]
mov edx, dword [esi + 0x1c4]
sub ecx, eax
push ecx
sub edx, edi
push edx
push eax
push edi
push 0
mov ecx, ebx
call fcn.00419591
mov eax, dword [esi + 0x2c0]
push 0
push 0
push 0
push 0
push eax
jmp 0x40992e
push 0
push 0
push 0x94
push esi
push edi
push 0x50000000
push str.hello
push 0x453450
mov ecx, ebx
call fcn.0041c5ef
mov ecx, dword [esi + 0x2c0]
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.00419404
mov ecx, dword [esi + 0xc8]
add esp, 0x2c
test ecx, ecx
pop edi
pop ebx
je 0x409957
push 0
call fcn.00419386
ret

Function at 0x409960
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [esi + 0x2d4]
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 + 0x1bc]
push edi
push edx
mov dword [esi + 0x1dc], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x74]
add dword [esi + 0x1c0], 0x6c
add dword [esi + 0x1c8], 0xfffffff5
add dword [edi], 0x10
add dword [esi + 0x1c4], 0xfffffff0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea ebx, [esi + 0x54]
push 0
je 0x4099ee
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c8]
mov edi, dword [edi]
mov edx, dword [esi + 0x1c4]
sub ecx, eax
push ecx
sub edx, edi
push edx
push eax
push edi
push 0
mov ecx, ebx
call fcn.00419591
mov eax, dword [esi + 0x2c4]
push 0
push 0
push 0
push 0
push eax
jmp 0x409a1e
push 0
push 0
push 0x94
push esi
push edi
push 0x50000000
push str.hello
push 0x453450
mov ecx, ebx
call fcn.0041c5ef
mov ecx, dword [esi + 0x2c4]
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.00419404
mov ecx, dword [esi + 0xc8]
add esp, 0x2c
test ecx, ecx
pop edi
pop ebx
je 0x409a47
push 0
call fcn.00419386
ret
Function at 0x409ce0
Capabilities:
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x449a7a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45f684]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 0x2d4]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [edi + 0x74]
xor esi, esi
push ecx
mov dword [edi + 0x1dc], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409d31
push esi
lea ecx, [edi + 0x54]
call fcn.00419386
mov ecx, dword [edi + 0xc8]
cmp ecx, esi
jne 0x409da0
push 0x184
call fcn.004114fe
add esp, 4
mov dword [esp + 8], eax
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x409d5d
mov esi, eax
call fcn.004065a0
jmp 0x409d5f
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [edi + 0xc8], eax
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 0x134]
push 0xa3
call eax
mov ecx, dword [edi + 0xc8]
push 1
push 0x1a9
push 0x384
push 0x64
push 0xf
call fcn.00419348
mov ecx, dword [edi + 0xc8]
push 5
call fcn.00419386
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret