joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4d2cac
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4d2cac
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4d2c96
push eax
call ebp
test ax, ax
jl 0x4d2ca4
inc esi
add edi, 4
cmp esi, 6
jb 0x4d2c88
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004d2960
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d6880
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4d68e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4d68e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4d68e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4d68e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4d68f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4d9c90
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5ef784]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4d9ca3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4d9ce4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5ef82c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4d9d16
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4d9d1a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4d9d0b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4d9d38
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4d9d3c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4d9d2d
xor ecx, ecx
mov eax, 0x5ef794
xor ebx, ebx
mov bl, byte [ecx + 0x5ef83c]
cmp byte [esp + ebx + 0x14], 0
je 0x4d9d67
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5ef854]
cmp byte [esp + ebx + 0x14], 0
je 0x4d9d7e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4d9d4e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4d9cd7
lea edx, [esp + 0x84]
push edx
call fcn.004d9dc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4f867f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f86b7
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.004f670c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f66e4
jmp 0x4f86c3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f9d71
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 0x4f9db3
call fcn.004ffd29
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f9db3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f9daa
xor eax, eax
jmp 0x4f9dbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f9dc1
pop edi
pop esi
pop ebx
ret 4

Function at 0x500259
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 0x500287
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5002a5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005001bf
jmp 0x5002a5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5002a5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005001bf
test edi, edi
mov eax, edi
jne 0x50028f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403502
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40355a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x403554
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x40355e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4035b6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x4035b0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x40364f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4036b9
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4036b9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
push dword [ebp + 0xc]
push 0x8000
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004035ba
add esp, 0x10
test eax, eax
jne 0x4036bd
cmp dword [ebp - 4], eax
je 0x4036b9
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0
je 0x4036d8
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
leave
ret
Function at 0x403922
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and byte [ebp - 9], 0
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
mov al, byte [eax]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x403955
cmp eax, 5
je 0x403955
push 1
pop eax
jmp 0x40398a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
lea eax, [ebp - 0xc]
push 0x41d2dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
mov edi, eax
call esi
xor eax, eax
cmp edi, 0xffffffff
pop edi
pop esi
setne al
leave
ret 4

Function at 0x40398e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and byte [ebp - 9], 0
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
mov al, byte [eax]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x4039c0
cmp eax, 5
je 0x4039c0
xor eax, eax
jmp 0x4039c3
push 1
pop eax
leave
ret 4

Function at 0x403a23
Capabilities:
Copy file
Set file attributes

Disassembly:
push esi
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x403a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret
Function at 0x40411d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
and byte [ebp - 0x230], 0
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x404392
push 0x3e
push edi
call fcn.00414320
pop ecx
test eax, eax
pop ecx
je 0x404169
sub eax, edi
inc eax
mov esi, eax
lea eax, [ebp - 0x230]
push esi
push edi
push eax
call fcn.00413eb0
add esp, 0xc
and byte [ebp + esi - 0x230], 0
jmp 0x404178
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.00413bb0
pop ecx
pop ecx
lea eax, [ebp - 0x230]
push str._Win_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x4041a5
mov esi, 0x420870
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4043a6
lea eax, [ebp - 0x230]
push str._Sys_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x4041d7
mov esi, 0x420870
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System
jmp 0x404347
lea eax, [ebp - 0x230]
push str._Sys32_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x404209
mov esi, 0x420870
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System32
jmp 0x404347
lea eax, [ebp - 0x230]
push str._AutoSys_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x404236
mov esi, 0x420870
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4043a6
lea eax, [ebp - 0x230]
push str._WinTemp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x404288
mov esi, 0x420870
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00413dd0
test eax, eax
pop ecx
je 0x4043a6
cmp byte [eax + 0x42086f], 0x5c
lea eax, [eax + 0x42086f]
jne 0x4043a6
and byte [eax], 0
jmp 0x4043a6
lea eax, [ebp - 0x230]
push str._Temp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x40438b
lea eax, [ebp - 0x230]
push str._ADTemp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x40438b
lea eax, [ebp - 0x230]
push str._ProgramFiles_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x4042e5
mov esi, 0x420870
push esi
call fcn.00403502
jmp 0x4043a5
lea eax, [ebp - 0x230]
push str._CommonFiles_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40430c
mov esi, 0x420870
push esi
call fcn.0040355e
jmp 0x4043a5
lea eax, [ebp - 0x230]
push str._Fonts_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40434f
mov esi, 0x420870
push esi
push 0x14
call fcn.0040364f
pop ecx
test eax, eax
pop ecx
jne 0x4043a6
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Fonts
push esi
call fcn.00403d6d
jmp 0x4043a4
lea eax, [ebp - 0x230]
push str._InstallFolder_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40436d
mov eax, 0x422260
jmp 0x4043a8
lea eax, [ebp - 0x230]
push str._Exe_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x404392
mov eax, 0x423620
jmp 0x4043a8
push 0x423820
jmp 0x404399
lea eax, [ebp - 0x230]
push eax
mov esi, 0x420870
push esi
call fcn.00413bb0
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4049c5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
mov edi, 0x41d30c
je 0x404a4f
push eax
call fcn.004132a2
mov esi, eax
pop ecx
test esi, esi
je 0x404a4f
push esi
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404a48
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404a48
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.00413354
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x404ab5
push eax
call fcn.004132a2
mov esi, eax
pop ecx
test esi, esi
je 0x404ab5
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404aae
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404aae
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
push esi
call fcn.00413354
pop ecx
cmp dword [ebp - 0x10], 0
je 0x404ad5
cmp dword [ebp - 0x14], 0
je 0x404ad5
cmp dword [ebp - 8], ebx
ja 0x404ad0
jne 0x404ad5
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jbe 0x404ad5
push 1
pop eax
jmp 0x404ad7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e5b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp byte [ebx], 0
je 0x40605d
push 0x5c
push ebx
call fcn.00414320
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x405ea2
mov esi, edi
lea eax, [ebp - 0x104]
sub esi, ebx
push esi
push ebx
push eax
call fcn.00413eb0
add esp, 0xc
and byte [ebp + esi - 0x104], 0
jmp 0x405eb1
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00413bb0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push str._Win_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405ede
mov esi, 0x422260
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x406055
lea eax, [ebp - 0x104]
push str._Sys_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405f16
mov esi, 0x422260
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System
push esi
call fcn.00403d6d
jmp 0x406053
lea eax, [ebp - 0x104]
push str._Sys32_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405f45
mov esi, 0x422260
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System32
jmp 0x405f0b
lea eax, [ebp - 0x104]
push str._AutoSys_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405f72
mov esi, 0x422260
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x406055
lea eax, [ebp - 0x104]
push str._ProgramFiles_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405f99
mov esi, 0x422260
push esi
call fcn.00403502
jmp 0x406054
lea eax, [ebp - 0x104]
push str._CommonFiles_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405fc0
mov esi, 0x422260
push esi
call fcn.0040355e
jmp 0x406054
lea eax, [ebp - 0x104]
push str._WinTemp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x405fea
mov esi, 0x422260
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x406055
lea eax, [ebp - 0x104]
push str._Temp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x406043
lea eax, [ebp - 0x104]
push str._ADTemp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x406043
lea eax, [ebp - 0x104]
push str._Exe_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x406036
push 0x423620
jmp 0x406048
push ebx
push 0x422260
call fcn.00413bb0
jmp 0x40607a
push 0x423820
mov esi, 0x422260
push esi
call fcn.00413bb0
pop ecx
pop ecx
test edi, edi
je 0x40607c
inc edi
push edi
jmp 0x406074
mov esi, 0x422260
push esi
call fcn.00403502
mov eax, dword [0x423974]
pop ecx
cmp byte [eax], 0
je 0x40607c
push eax
push esi
call fcn.00403d6d
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406081
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp byte [ebx], 0
je 0x4062a5
push 0x5c
push ebx
call fcn.00414320
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4060c8
mov esi, edi
lea eax, [ebp - 0x104]
sub esi, ebx
push esi
push ebx
push eax
call fcn.00413eb0
add esp, 0xc
and byte [ebp + esi - 0x104], 0
jmp 0x4060d7
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00413bb0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push str._Win_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x406104
mov esi, 0x4225c0
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40629c
lea eax, [ebp - 0x104]
push str._Sys_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40613c
mov esi, 0x4225c0
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System
push esi
call fcn.00403d6d
jmp 0x40629a
lea eax, [ebp - 0x104]
push str._Sys32_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40616b
mov esi, 0x4225c0
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.System32
jmp 0x406131
lea eax, [ebp - 0x104]
push str._AutoSys_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x406198
mov esi, 0x4225c0
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40629c
lea eax, [ebp - 0x104]
push str._ProgramFiles_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x4061bf
mov esi, 0x4225c0
push esi
call fcn.00403502
jmp 0x40629b
lea eax, [ebp - 0x104]
push str._CommonFiles_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x4061e6
mov esi, 0x4225c0
push esi
call fcn.0040355e
jmp 0x40629b
lea eax, [ebp - 0x104]
push str._WinTemp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x406213
mov esi, 0x4225c0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40629c
lea eax, [ebp - 0x104]
push str._Temp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x40628a
lea eax, [ebp - 0x104]
push str._ADTemp_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x40628a
lea eax, [ebp - 0x104]
push str._InstallFolder_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40625f
push 0x422260
jmp 0x40628f
lea eax, [ebp - 0x104]
push str._Exe_
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x40627d
push 0x423620
jmp 0x40628f
push ebx
push 0x4225c0
call fcn.00413bb0
jmp 0x4062b4
push 0x423820
mov esi, 0x4225c0
push esi
call fcn.00413bb0
pop ecx
pop ecx
test edi, edi
je 0x4062b6
inc edi
push edi
push esi
jmp 0x4062af
push 0x41d474
push 0x4225c0
call fcn.00403d6d
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40681b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x20]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
push str.300
push str.GBLUE256
push dword [0x4237c0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebx, ebx
cmp eax, ebx
je 0x406991
push eax
push dword [0x4237c0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x406991
push esi
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x406987
cmp dword [eax + 0x2e], ebx
lea esi, [eax + 0xe]
jne 0x40688e
push esi
call fcn.004067a1
movzx eax, ax
mov dword [esi + 0x20], eax
push 0x404
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x406987
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
je 0x40697d
mov word [edi], 0x300
mov ax, word [esi + 0x20]
mov word [edi + 2], ax
cmp dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
jbe 0x4068f7
lea ecx, [edi + 5]
lea edx, [esi + 0x29]
mov al, byte [edx + 1]
inc dword [ebp - 4]
mov byte [ecx - 1], al
mov al, byte [edx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov eax, dword [ebp - 4]
mov byte [ecx + 2], bl
add edx, 4
add ecx, 4
cmp eax, dword [esi + 0x20]
jb 0x4068d3
push edi
call dword [sym.imp.GDI32.dll_CreatePalette]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x406974
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea edi, [ecx + eax*4]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 8]
add edi, esi
cmp ecx, eax
mov dword [ebp - 4], eax
jl 0x406936
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x18], ebx
jle 0x40696b
mov eax, dword [esi + 4]
push 0xcc0020
push ebx
push esi
push edi
push dword [esi + 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, dword [esi + 4]
add dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x18]
jl 0x40693e
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebx
leave
ret
Function at 0x406c74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
push str.300
push str.GBLUE
push dword [0x4237c0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor edi, edi
cmp eax, edi
je 0x406d04
push eax
push dword [0x4237c0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x406d04
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x406cfd
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xe]
sub ecx, dword [ebp - 0xc]
add eax, 0xe
push esi
add edx, eax
mov esi, dword [eax + 8]
cmp esi, ecx
jl 0x406cdb
mov ecx, esi
push 0xcc0020
push edi
push eax
push edx
push esi
push dword [eax + 4]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push edi
push edi
push ecx
push eax
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
leave
ret