joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f960
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov ebx, 0x9c73a0
mov edi, 0x597254
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x49f9ca
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x3db
push ebx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
add ebx, 0x3db
cmp edi, str.pol_tv2.bin
jl 0x49f975
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x49f9e0
Capabilities:
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov dword [esp + 0x10], 0x9c73a0
mov esi, 0x597254
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49fad1
push 0
push 0x80
push 3
push 0
push 0
push DirectSoundCreate
push str.pol_st_adver07.bin
call edi
lea ecx, [esp + 0x18]
mov edi, eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x3db
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call ebp
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
mov edi, eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
mov edx, dword [esp + 0x10]
add esi, 4
add edx, 0x3db
cmp esi, str.pol_tv2.bin
mov dword [esp + 0x10], edx
jl 0x49f9fa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x4a3920
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dc838]
sub esp, 0x24
test eax, 0x80000000
jne 0x4a3935
xor eax, eax
add esp, 0x24
ret
mov edx, dword [esp + 0x28]
test edx, edx
jl 0x4a3945
cmp edx, dword [0x7dc83c]
jl 0x4a394b
xor eax, eax
add esp, 0x24
ret
push esi
push edi
mov esi, edx
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
shl esi, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esi, edx
mov edx, dword [0x7dc828]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
lea edx, [edx + esi*4]
mov dword [esp + 0x10], eax
mov eax, dword [0x7dc81c]
push 0
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
pop edi
pop esi
test eax, eax
je 0x4a3a55
cmp eax, 0x80070057
jg 0x4a3a0d
je 0x4a39fc
cmp eax, 0x80004001
je 0x4a39eb
cmp eax, 0x80040110
je 0x4a39da
cmp eax, 0x8007000e
jne 0x4a3a4f
push str.DSERR_OUTOFMEMORY_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
push str.DSERR_NOAGGREGATION_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
push str.DSERR_UNSUPPORTED_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
push str.DSERR_INVALIDPARAM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
cmp eax, 0x8878000a
je 0x4a3a44
cmp eax, 0x88780064
je 0x4a3a33
cmp eax, 0x887800aa
jne 0x4a3a4f
push str.DSERR_UNINITIALIZED_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
push str.DSERR_BADFORMAT_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
push str.DSERR_ALLOCATED_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret
Function at 0x4a5790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.004a6060
push 0
call fcn.004a6070
mov ebx, dword [ebp + 8]
mov ecx, 0xf
xor eax, eax
mov edi, 0x7dc888
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
call dword [0x7dd130]
add esp, 0xc
test eax, eax
je 0x4a5903
push ebx
call fcn.004a56d0
add esp, 4
test eax, eax
je 0x4a5903
mov eax, dword [0x7dc898]
test eax, eax
jne 0x4a580a
mov ecx, dword [0x7dc888]
mov dword [0x7dc898], ecx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov dword [0x7dc8b4], 0x280
mov dword [0x7dc8b8], 0x1e0
call esi
mov edx, dword [0x7dc8b4]
push 0x21
lea edi, [edx + eax*2]
call esi
mov edx, eax
push 0xf
mov dword [ebp + 0xc], edx
call esi
mov ecx, dword [0x7dc8b8]
mov edx, dword [ebp + 0xc]
add ecx, eax
push 0
push ebx
push 0
lea eax, [ecx + edx*2]
mov cl, byte [0x7dc8bc]
neg cl
sbb ecx, ecx
push 0
and ecx, 0x7f320000
push eax
mov eax, dword [0x7dc898]
push edi
add ecx, 0x2ce0000
push DirectSoundCreate
push DirectSoundCreate
push ecx
mov ecx, dword [0x7dc888]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x7dc8ac], eax
je 0x4a5903
call fcn.004a60a0
nop
nop
nop
nop
nop
test al, al
je 0x4a5903
push ebx
mov dword [ebp - 4], 0
call dword [0x7dd12c]
mov edx, dword [ebp + 0x10]
mov eax, dword [0x7dc8ac]
add esp, 4
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x7dc8ac]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a60a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x7dd660
lea eax, [esp + 0xc]
xor ebx, ebx
push 0xa
push eax
push ebx
push str.AllDevicePass
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a60d6
cmp al, 0x54
jne 0x4a60e2
mov eax, dword [0x7dce00]
or al, 1
mov dword [0x7dce00], eax
push 0x7dd660
lea ecx, [esp + 0xc]
push 0xa
push ecx
push ebx
push str.DispVersion
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a610b
cmp al, 0x54
jne 0x4a6117
mov eax, dword [0x7dce00]
or al, 0x20
mov dword [0x7dce00], eax
push 0x7dd660
lea edx, [esp + 0xc]
push 0xa
push edx
push ebx
push str.FullScreen
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a6140
cmp al, 0x54
jne 0x4a614c
mov eax, dword [0x7dce00]
or al, 4
mov dword [0x7dce00], eax
push 0x7dd660
lea eax, [esp + 0xc]
push 0xa
push eax
push ebx
push str.UseZBuffer
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a6175
cmp al, 0x54
jne 0x4a6181
mov eax, dword [0x7dce00]
or al, 0x80
mov dword [0x7dce00], eax
push 0x7dd660
lea ecx, [esp + 0xc]
push 0xa
push ecx
push ebx
push str.UseHEL
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a61aa
cmp al, 0x54
jne 0x4a61b7
mov eax, dword [0x7dce00]
or ah, 1
mov dword [0x7dce00], eax
push 0x7dd660
lea edx, [esp + 0xc]
push 0xa
push edx
push ebx
push str.DispFps
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a61e0
cmp al, 0x54
jne 0x4a61ec
mov eax, dword [0x7dce00]
or al, 2
mov dword [0x7dce00], eax
push 0x7dd660
lea eax, [esp + 0xc]
push 0xa
push eax
push ebx
push str.CDCheckPass
push str.HGLCORE
mov byte [esp + 0x20], bl
call esi
mov al, byte [esp + 8]
cmp al, 0x74
je 0x4a6215
cmp al, 0x54
jne 0x4a6221
mov eax, dword [0x7dce00]
or al, 0x40
mov dword [0x7dce00], eax
push 0x7dd660
push ebx
push str.SmallTexure
push str.HGLCORE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
pop esi
pop ebx
je 0x4a624f
dec eax
jne 0x4a625b
mov eax, dword [0x7dce00]
or al, 0x10
mov dword [0x7dce00], eax
add esp, 0xc
ret
mov eax, dword [0x7dce00]
or al, 8
mov dword [0x7dce00], eax
add esp, 0xc
ret
Function at 0x4a66a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [0x7ddaa0]
push edi
xor edi, edi
test esi, esi
je 0x4a66c3
mov eax, dword [esi]
mov ecx, esi
mov esi, dword [esi + 8]
cdq
xor eax, edx
sub eax, edx
add edi, eax
test esi, esi
jne 0x4a66af
jmp 0x4a66c7
mov ecx, dword [esp + 8]
xor esi, esi
test ecx, ecx
je 0x4a66dd
mov eax, dword [ecx]
mov ecx, dword [ecx + 0xc]
cdq
xor eax, edx
sub eax, edx
add esi, eax
test ecx, ecx
jne 0x4a66cd
mov esi, dword [0x7ddaa8]
mov edi, dword [0x7ddaa4]
cmp esi, edi
jge 0x4a66fc
mov eax, dword [esi]
mov ecx, esi
cdq
xor eax, edx
sub eax, edx
add esi, eax
cmp esi, edi
jl 0x4a66ed
xor esi, esi
test ecx, ecx
je 0x4a6712
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
add esi, eax
test ecx, ecx
jne 0x4a6702
pop edi
pop esi
pop ecx
ret
Function at 0x4af87d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x599450
cmp edx, dword [eax]
je 0x4af89f
add eax, 8
inc ecx
cmp eax, 0x5994e0
jl 0x4af890
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x599450]
jne 0x4af9cd
mov eax, dword [0x80ed1c]
cmp eax, 1
je 0x4af9a7
test eax, eax
jne 0x4af8d0
cmp dword [0x59911c], 1
je 0x4af9a7
cmp edx, 0xfc
je 0x4af9cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4af907
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004adaf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b3490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4af94a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b3490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x57069c
push edi
call fcn.004b3550
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004adaf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004adb00
lea eax, [ebp - 0xa0]
push 0x57067c
push eax
call fcn.004adb00
push dword [esi + 0x599454]
lea eax, [ebp - 0xa0]
push eax
call fcn.004adb00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004b420d
add esp, 0x2c
pop edi
jmp 0x4af9cd
lea eax, [ebp + 8]
lea esi, [esi + 0x599454]
push 0
push eax
push dword [esi]
call fcn.004b3490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4bbec2
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp edi, ebp
mov ebx, ecx
jne 0x4bbedc
mov eax, 0x80070057
jmp 0x4bc059
cmp dword [ebx + 0x104], 0xffffffff
je 0x4bbeec
mov ecx, ebx
call fcn.004bc060
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x10000080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 4
push ebp
mov ecx, eax
push ebp
push 0xc0000000
and ecx, 3
push dword [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x114], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x104], eax
je 0x4bbfa1
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebx + 0x110], eax
sbb esi, esi
neg esi
mov dword [esp + 0x14], esi
je 0x4bbf55
mov eax, 0x1000
jmp 0x4bbf5e
add eax, 0xfff
and ax, 0xf000
push ebp
push eax
push ebp
push 4
push ebp
mov dword [ebx + 0x110], eax
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebx + 0x108], eax
je 0x4bbfa1
push dword [ebx + 0x110]
push ebp
push ebp
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, ebp
mov dword [ebx + 0x10c], edx
jne 0x4bbfd1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4bbfb3
call esi
mov esi, eax
jmp 0x4bbfc3
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, ebx
call fcn.004bc060
mov eax, esi
jmp 0x4bc059
cmp esi, ebp
jne 0x4bc028
push 8
mov edi, str.D3DX_r_n
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4bc000
cmp dword [edx + 8], ebp
jne 0x4bc000
cmp dword [edx + 0x14], 0x10
jne 0x4bc000
mov eax, dword [edx + 0x18]
cmp eax, 0x28
jb 0x4bc000
cmp eax, dword [ebx + 0x110]
jbe 0x4bc020
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x14], 1
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4bc057
mov eax, dword [str.D3DX_r_n]
mov dword [edx], eax
mov eax, dword [0x5722b4]
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
mov dword [edx + 0x10], ebp
mov dword [edx + 0x14], 0x10
mov dword [edx + 0x18], 0x28
mov dword [edx + 0x1c], ebp
mov dword [edx + 0x20], ebp
mov dword [edx + 0x24], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4c0dea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004bbea7
test eax, eax
jne 0x4c0e7b
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, 0x572600
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + edx - 0x100], 0x5c
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea edi, [ebp + edx - 0xff]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x100]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004bbec2
test eax, eax
jl 0x4c0e7d
mov ecx, ebx
call fcn.004bbebb
cmp eax, 0x100000
jbe 0x4c0e7b
mov ecx, ebx
call fcn.004bc0bb
lea eax, [ebp - 0x100]
mov ecx, ebx
push eax
call fcn.004bbec2
test eax, eax
jl 0x4c0e7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c20a0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push 0x80
or ebx, 0xffffffff
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call edi
mov eax, dword [str.HicGameLibMutex]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x80f3b0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c20fd
mov ecx, dword [0x80f3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
mov dword [0x80f3b0], 0
pop ebx
ret 0x10
push 0x20
call esi
push eax
call edi
push 0x4c2160
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x49e100
push 0x49e0e0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0x49dbd0
push 0x49de30
push 0x49ddb0
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.004a5a10
mov esi, eax
mov eax, dword [0x80f3b0]
add esp, 0x24
test eax, eax
je 0x4c2156
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401d9f
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.004045b0
mov dword [esp], eax
mov eax, dword [0x40b3a8]
push eax
push eax
call fcn.004066d2
lea ecx, [esp + 8]
pop edx
call fcn.00403100
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
mov eax, dword [0x40b3a8]
push eax
push eax
push dword [esp + 8]
call fcn.004045d0
lea ecx, [0x40b108]
pop edx
call fcn.00403100
push dword [esp]
call fcn.00404620
push dword [0x40b108]
call fcn.00406640
push dword [0x40b108]
call fcn.00406733
mov eax, dword [0x40b3a8]
push eax
push eax
call fcn.00406575
lea ecx, [0x40b104]
pop edx
call fcn.00403100
mov eax, dword [esp + 0x14]
call fcn.00404640
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401e68
mov edx, dword [0x40b108]
push dword [0x40b3a8]
call fcn.00407df0
lea ecx, [0x40b104]
pop edx
call fcn.00403100
mov dword [esp + 0xc], 2
jmp 0x401e7a
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401e7a
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.00404640
mov dword [0x40b0fc], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.00404640
mov dword [0x40b100], eax
mov eax, 1
jmp 0x401ead
push dword [esp + 4]
call fcn.00407e50
add esp, 0xc
pop ebx
ret 4
Function at 0x402218
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.004030f0
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x402269
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40b14c], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40b148], eax
mov eax, dword [esp + 4]
jmp 0x402271
push dword [esp]
call fcn.00407e50
add esp, 8
ret 8
Function at 0x403aea
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x403b02
push dword [esp + 4]
push 0x403a83
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x403b3f
push esi
mov esi, dword [0x40b1b8]
test esi, esi
je 0x403b3e
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403b36
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b1b8
call fcn.0040711d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x403b0f
pop edi
pop ebx
pop esi
ret 4
Function at 0x404477
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x64
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call esi
test eax, eax
je 0x40451b
mov eax, dword [ebp - 0xc]
dec eax
je 0x4044fe
dec eax
jne 0x40451b
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x4044fa
dec eax
je 0x4044f6
dec eax
je 0x4044dc
dec eax
jne 0x40451b
push 0x46
pop edi
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x9c
call esi
test eax, eax
je 0x40451b
cmp byte [ebp - 0x1e], 1
je 0x40451b
push 0x4b
jmp 0x40451a
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4044f2
dec eax
je 0x4044ee
dec eax
jne 0x40451b
push 0x41
jmp 0x40451a
push 0x3c
jmp 0x40451a
push 0x32
jmp 0x40451a
push 0x14
jmp 0x40451a
push 5
jmp 0x40451a
cmp dword [ebp - 0x14], 0
je 0x404518
cmp dword [ebp - 0x14], 0xa
je 0x404514
cmp dword [ebp - 0x14], 0x5a
jne 0x40451b
push 0x28
jmp 0x40451a
push 0x1e
jmp 0x40451a
push 0xa
pop edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x404d9c
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40b41c]
call fcn.00406f90
mov edi, eax
test edi, edi
je 0x404dfe
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404dc5
push dword [esp + 0xc]
push edi
call eax
jmp 0x404dfe
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00408000
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00408130
pop esi
pop ebx
pop edi
ret 8
Function at 0x4064dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40654a
push 0x11
call esi
test al, al
js 0x40654a
push 0x10
call esi
test al, al
js 0x40654a
push 0x12
call esi
test al, al
js 0x40654a
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40654a
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40656e
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40656e
dec eax
push eax
push dword [0x40b424]
call fcn.00406f90
mov eax, dword [eax + 8]
jmp 0x406570
xor eax, eax
pop esi
leave
ret 4

Function at 0x406733
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x4067a6
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x406788
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x406786
cmp dl, 0x5c
je 0x406786
cmp dl, 0x2f
jne 0x406792
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x406772
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4067a8
xor eax, eax
leave
ret 4

Function at 0x4067b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4067e5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4