joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4286e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x430618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push str._Yof
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.0040ca40
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40e2b5
cmp edi, 2
jge 0x40e2b5
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e2ac
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x40e278
lea eax, [ebx + 0xd]
jmp 0x40e298
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x42ce58
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40e2ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x40e231
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
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 0x401800
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 0x401819
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401854
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401850
lea ebx, [ebx]
cmp esi, eax
jae 0x401854
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401840
cmp esi, eax
jb 0x40185a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4040a0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x28
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push 2
push esi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
xor eax, eax
push esi
mov dword [esp + 8], 0x28
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
pop esi
add esp, 0x28
ret
Function at 0x404250
Capabilities:
Check os version
Get token membership

Disassembly:
sub esp, 0xf0
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x90
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x28], ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0x94
call fcn.0045af40
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404365
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404365
cmp dword [esp + 0x24], 6
jb 0x40430b
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x404365
cmp dword [esp + 0x18], 3
jne 0x40430b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x404365
cmp dword [esp + 0xc], ebx
jne 0x404327
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x404365
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xb8]
push eax
push ebx
push 0x1a
mov dword [esp + 0x24], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x404365
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40436d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x404382
push eax
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404391
push eax
call esi
mov dword [esp + 0xc], ebx
cmp edi, ebx
je 0x4043a8
push 0x498924
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edi
call fcn.0045afba
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a1dd
add esp, 0xf0
ret
Function at 0x404f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4771b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a3f4c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
movzx eax, word [esp + 0x48]
push 2
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x400
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00440b5f
mov dword [esp + 0x40], edi
test esi, esi
je 0x404fba
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x1c]
call fcn.00440bf0
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00404df0
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00440c2d
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00440f63
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
Function at 0x4084f0
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [0x4a6104], 0x3f
mov esi, 1
mov ebx, 0x44
jmp 0x408510
push ebx
lea eax, [esp + 0x10]
push 0x47fc38
push eax
call fcn.0045a121
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call edi
cmp eax, 5
jne 0x408536
mov byte [esi + 0x4a6104], bl
inc esi
inc ebx
cmp ebx, 0x5a
jle 0x408510
pop edi
mov byte [esi + 0x4a6104], 0
pop esi
pop ebx
pop ecx
ret

Function at 0x408790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0x4a5e60
lea eax, [esp + 8]
push str._sdxwnd.reg
push eax
call fcn.0045a121
lea ecx, [esp + 0x10]
push 0x47fc68
push ecx
call fcn.0045c402
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4087e5
push 0x10
push 0xea63
push 0xea82
call fcn.0041ede0
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087f0
push esi
sub eax, edx
push 1
push eax
push edi
call fcn.0045c2bc
push esi
push 0x47fc64
call fcn.0045c04b
push esi
call fcn.0045bfcf
mov ecx, dword [esp + 0x128]
add esp, 0x1c
pop esi
xor ecx, esp
call fcn.0045a1dd
add esp, 0x10c
ret
Function at 0x4091c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x638
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x634], eax
mov eax, dword [esp + 0x640]
push edi
mov edi, dword [esp + 0x640]
push str.PSAPI.DLL
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40936e
push str.GetModuleFileNameExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 8], eax
test eax, eax
je 0x40936e
push ebx
push ebp
push esi
push 0
push 2
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ebp, [edi + 4]
mov esi, ebp
push 0x5c
push esi
mov ebx, eax
call fcn.0045ba40
add esp, 8
test eax, eax
je 0x409252
lea esp, [esp]
lea esi, [eax + 1]
push 0x5c
push esi
call fcn.0045ba40
add esp, 8
test eax, eax
jne 0x409240
cmp ebx, 0xffffffff
je 0x40936b
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32First
lea edx, [esp + 0x3c]
push edx
push esi
push str.compare_first:__s____s_n
call fcn.0041f800
lea eax, [esp + 0x48]
push esi
push eax
call fcn.0045ce91
add esp, 0x14
test eax, eax
je 0x4092d6
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409364
jmp 0x4092a0
lea edx, [esp + 0x3c]
push edx
push esi
push str.compare_next:__s____s_n
call fcn.0041f800
lea eax, [esp + 0x48]
push esi
push eax
call fcn.0045ce91
add esp, 0x14
test eax, eax
je 0x4092d6
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4092a0
jmp 0x409364
mov edx, dword [esp + 0x20]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409364
push 0x104
lea eax, [esp + 0x144]
push eax
push 0
push esi
call dword [esp + 0x24]
test eax, eax
je 0x40935d
lea ecx, [esp + 0x140]
push ebp
push ecx
call fcn.0045ce91
add esp, 8
test eax, eax
jne 0x40935d
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x248]
push str.Active_target___s__found._nDisabled.
push eax
call fcn.0045a121
add esp, 0xc
push 0
push 0x47c9d0
lea ecx, [esp + 0x24c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
and dword [edi + 0x16c], 0xffffffef
or dword [edi + 0x19c], 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x638]
pop edi
xor ecx, esp
call fcn.0045a1dd
add esp, 0x638
ret
Function at 0x409390
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, ecx
call fcn.004292a0
test eax, eax
mov eax, str.open
jne 0x4093bb
mov eax, str.explore
push 5
push 0
push 0
push 0x4a5e60
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
jg 0x409415
call fcn.004292a0
test eax, eax
mov eax, str.open
jne 0x4093e9
mov eax, str.explore
push esi
push 0x4a5e60
push eax
lea eax, [esp + 0x14]
push str.ShellExecute___s_____s___failed._nerror_d
push eax
call fcn.0045a121
add esp, 0x14
push 0
push str.error
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00434078
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0045a1dd
add esp, 0x108
ret

Function at 0x409450
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x2bc], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
mov esi, ecx
call fcn.0045af40
add esp, 0xc
push 0x4a6238
push 0x104
lea ecx, [esp + 0x1c0]
push ecx
push str.DbgView.exe
push str.debugview
push str.window
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x1b8]
push edx
lea eax, [esp + 0xb4]
push 0x105
push eax
call fcn.0045cee3
add esp, 0xc
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4094e0
sub eax, edx
jne 0x409506
mov dx, word [0x4800ec]
mov al, byte [0x4800ee]
mov word [esp + 0xb0], dx
mov byte [esp + 0xb2], al
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xb8]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [esp + 0x1d8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40957b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x60]
push str.Error__d_starting_DebugView
push edx
call fcn.0045a121
add esp, 0xc
push 0x10
push 0x47ecb8
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00434078
pop esi
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045a1dd
add esp, 0x2c0
ret
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x2c0]
pop esi
xor ecx, esp
call fcn.0045a1dd
add esp, 0x2c0
ret
Function at 0x4095b0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x1c
push ebp
push esi
xor eax, eax
xor esi, esi
push esi
push 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4095ec
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push ebp
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x409655
push ebx
mov bl, byte [esp + 0x30]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
nop
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x1c], ecx
jne 0x409641
mov edx, dword [esp + 0x18]
push edx
push 0
push 2
call edi
mov esi, eax
push esi
test bl, bl
je 0x409634
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x40963a
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x409610
pop edi
lea esi, [eax + 1]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x409d10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x484
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x480], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
push Ordinal_3
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x409e70
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409d62
mov ecx, dword [str..noshim]
push 0
push 0x80
push 2
push 0
push 0
mov dword [eax], ecx
mov edx, dword [0x480214]
push 0x40000000
push esi
mov dword [eax + 4], edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x409e14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x18]
push str.Creation_of_hidden_copy_of_target_file_with_no_SHIMs_failed_nError_d
push eax
call fcn.0045a121
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0xc
push 0
push str.Warning
lea ecx, [esp + 0x1c]
push ecx
push 0
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x409e70
call esi
push eax
lea edx, [esp + 0x18]
push str.CloseHandle_failed_nError_d
push edx
call fcn.0045a121
add esp, 0xc
push 0
push 0x47ecb8
lea eax, [esp + 0x1c]
push eax
push 0
call ebp
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0045a1dd
add esp, 0x484
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [ebx]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x98]
push edx
push edi
call ebp
test eax, eax
je 0x409e64
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x98]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e64
cmp dword [esp + 0xc], 0x400
je 0x409e20
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045a1dd
add esp, 0x484
ret
Function at 0x40a410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call fcn.0045af40
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4a5e60
push 0
push 0x4000000
push 0
push 0
push 0
push str.._blacker.exe
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a475
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
add esp, 0x54
ret
push 0
push str.error
push str.blacker_run_failed
mov ecx, esi
call fcn.00434078
pop esi
add esp, 0x54
ret

Function at 0x40a530
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov ebx, ecx
push esi
mov esi, dword [ebx]
mov dword [esp + 0xc], eax
test esi, esi
je 0x40a586
mov ecx, dword [esp + 0xc]
push ecx
push 0x50
lea edx, [esp + 0x18]
push edx
push 0x48d4b1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
lea eax, [esp + 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [ebx + 4]
add ebx, 4
test esi, esi
jne 0x40a555
mov ecx, dword [esp + 0x64]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045a1dd
add esp, 0x5c
ret

Function at 0x40a7e0
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
cmp dword [0x4a12f0], esi
je 0x40a859
xor edi, edi
mov eax, dword [edi + 0x4a12fc]
push 0x4a6238
push 0
push eax
push str.keymapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
test ebx, ebx
je 0x40a846
push esi
mov ecx, ebp
call fcn.00404100
push eax
call dword [sym.imp.USER32.dll_UnregisterHotKey]
push ebx
push 7
push esi
mov ecx, ebp
call fcn.00404100
push eax
call dword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
jne 0x40a846
mov ecx, dword [edi + 0x4a12fc]
push ecx
call fcn.00409100
add esp, 4
inc esi
lea edi, [esi + esi*2]
add edi, edi
add edi, edi
add edi, edi
cmp dword [edi + 0x4a12f0], 0
jne 0x40a7f3
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [0x4a1350], edi
je 0x40a8df
mov ebx, esi
lea esp, [esp]
mov edx, dword [edi + 0x4a135c]
push 0x4a6238
push 0
push edx
push str.keymapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
test esi, esi
je 0x40a8c3
push ebx
mov ecx, ebp
call fcn.00404100
push eax
call dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
push 2
push ebx
mov ecx, ebp
call fcn.00404100
push eax
call dword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
jne 0x40a8c3
mov eax, dword [edi + 0x4a135c]
push eax
call fcn.00409100
add esp, 4
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
add edi, edi
inc ebx
cmp dword [edi + 0x4a1350], 0
jne 0x40a870
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40ab70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
push 0
mov edi, ecx
mov eax, dword [edi + 0x20]
push 0x1032
push eax
call ebx
test eax, eax
je 0x40ac3f
mov ecx, dword [edi + 0x20]
push esi
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
mov edx, dword [edi + 0x20]
push 2
mov esi, eax
push esi
push 0x100c
push edx
call ebx
shl esi, 9
push 0x104
lea eax, [esi + edi + 0x70]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0045bb00
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ac3e
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40abf8
sub eax, edx
lea edi, [eax + 1]
push edi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edx, [esp + 0xc]
push edx
push edi
push eax
call fcn.0045cee3
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov ecx, dword [esp + 0x110]
pop edi
pop ebx
xor ecx, esp
call fcn.0045a1dd
add esp, 0x10c
ret
Function at 0x40b0e0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.004351f7
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x6c]
call eax
mov ecx, dword [esi + 0x20]
push ecx
mov ebx, eax
call edi
push eax
call fcn.004351f7
cmp dword [0x4a600c], 0
mov dword [0x4a6120], eax
jne 0x40b223
cmp dword [esi + 0x98f58], 0
jne 0x40b232
mov edx, dword [0x4a5fec]
push 0xa
push 1
neg edx
push 0x47c9d0
sbb edx, edx
not edx
and edx, str.DxWnd_DirectDraw_windowizer
push edx
push 0
push 0x85
push 0
push 0x47c9d0
push 0x800a
lea edi, [esi + 0x98d08]
push 0
mov ecx, edi
call fcn.00424f00
push 0
test eax, eax
jne 0x40b1b2
push 0xea63
push 0xea78
call fcn.0041ede0
add esp, 0xc
cmp dword [0x4a6008], 0
je 0x40b268
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4098a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 4]
push 0x801b
push ecx
call dword [sym.imp.USER32.dll_GetMenuState]
xor edx, edx
cmp eax, 8
setne dl
mov ecx, edi
add edx, 0x87
mov eax, edx
push eax
call fcn.004251f0
test eax, eax
jne 0x40b1f7
push eax
push 0xea63
push 0xea79
call fcn.0041ede0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x40ae10
push 0
push 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x4a600c], 0
je 0x40b232
add esi, 0x98d08
mov ecx, esi
call fcn.00424b80
jmp 0x40b23f
add esi, 0x98d08
mov ecx, esi
call fcn.00425120
push 1
push 0
mov ecx, esi
call fcn.004252f0
mov edx, dword [0x4a6120]
push edx
mov ecx, esi
call fcn.00424c50
mov eax, dword [0x4a6120]
push 0
push eax
call fcn.004258d0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0xc
ret