joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402de0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x94
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xa0]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi + 0x4d11f8]
push ebp
push 0x40
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push str.Theme
call edi
test eax, eax
jbe 0x402ee4
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push str._x__x
push ecx
call fcn.0049f49e
add esp, 0x10
cmp eax, 2
jne 0x402ee4
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
movzx eax, dl
movzx edx, cl
shl edx, 8
or eax, edx
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
movzx ebx, cl
movzx edx, dl
shl ebx, 8
shr ecx, 0x10
or edx, ebx
movzx ecx, cl
shl edx, 8
or edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp eax, 0xffffff
jb 0x402ebd
mov eax, 0xffffff
mov edx, dword [esi + 0x4d11fc]
mov ebx, dword [esp + 0x1c]
mov dword [ebx + edx*4], eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffff
jb 0x402eda
mov eax, 0xffffff
mov ecx, dword [esi + 0x4d11fc]
mov dword [ebx + ecx*4 + 4], eax
add esi, 8
cmp esi, 0x130
jb 0x402e20
mov edx, dword [esp + 0x18]
push 0x80
push 0
push edx
call fcn.0049e9f0
add esp, 0xc
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x4d1328]
push ebp
push 0x40
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push str.Theme
call edi
test eax, eax
jbe 0x402f88
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 0x4b9e38
push eax
mov dword [esp + 0x1c], 0
call fcn.0049f49e
add esp, 0xc
cmp eax, 1
jne 0x402f88
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
movzx eax, dl
movzx edx, cl
shl edx, 8
shr ecx, 0x10
or eax, edx
movzx ecx, cl
shl eax, 8
or eax, ecx
mov dword [esp + 0x10], eax
cmp eax, 0xffffff
jb 0x402f7f
mov eax, 0xffffff
mov edx, dword [esi + 0x4d132c]
mov dword [ebx + edx*4], eax
add esi, 8
cmp esi, 0x38
jb 0x402f10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor esi, esi
jmp 0x402fa0
mov eax, dword [esi + 0x4d1360]
push ebp
push 0xbc614e
push eax
push str.Style
call edi
cmp eax, 0xbc614e
jne 0x402fbd
xor eax, eax
mov ecx, dword [esi + 0x4d1364]
mov edx, dword [esp + 0x18]
add esi, 8
mov dword [edx + ecx*4], eax
cmp esi, 0xd8
jb 0x402fa0
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0049e9d2
add esp, 0x94
ret
Function at 0x4031f0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax - 8]
push esi
sub eax, 0x10
push edi
mov edi, ecx
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x400
or ecx, edx
jge 0x40321f
push 0x400
mov ecx, ebx
call fcn.00401af0
mov eax, dword [esp + 0x20]
mov esi, dword [ebx]
cmp eax, 0xffffffff
jne 0x403230
mov eax, dword [esp + 0x14]
jmp 0x40324e
push eax
mov eax, dword [esp + 0x18]
push eax
push 0x4b9960
push 0x4dbb10
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, 0x4dbb10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push edi
push 0x400
push esi
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, eax
neg ecx
sbb ecx, ecx
cmp ecx, 0xffffffff
jne 0x403291
mov ecx, dword [ebx]
test ecx, ecx
je 0x403295
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x403282
sub ecx, esi
sar ecx, 1
test ecx, ecx
jl 0x4032ad
mov edx, dword [ebx]
cmp ecx, dword [edx - 8]
jg 0x4032ad
mov dword [edx - 0xc], ecx
mov edx, dword [ebx]
xor esi, esi
pop edi
mov word [edx + ecx*2], si
pop esi
pop ebx
ret 0x14
push 0x80070057
call fcn.00401000
int3

Function at 0x403840
Capabilities:
Read .ini file

Disassembly:
call fcn.00403350
push eax
push 0xbc614e
push str.CurrentFont
push str.Fonts
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xbc614e
jne 0x403864
xor eax, eax
add eax, 0x596
ret
Function at 0x403870
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x298
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
mov ebx, dword [esp + 0x2a4]
push esi
push edi
mov edi, dword [esp + 0x2a8]
call fcn.00403350
push eax
push 0x40
lea eax, [esp + 0x228]
push eax
push 0
push str.EditTheme
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [0x5144c4]
push str..ini
lea ecx, [esp + 0x224]
push ecx
push str.theme_
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00417280
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004032c0
add esp, 0xc
push eax
lea edx, [esp + 0x14]
push edx
call fcn.004032c0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403919
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40399b
push esi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00402de0
mov bl, al
lea eax, [esi - 0x10]
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.0049e9d2
add esp, 0x298
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0049e9d2
add esp, 0x298
ret

Function at 0x403c80
Capabilities:
Read .ini file

Disassembly:
call fcn.00403350
push eax
push 0xbc614e
push str.CurrentFont
push str.Fonts
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xbc614e
jne 0x403ca5
xor eax, eax
ret
add eax, 0x596
push eax
call fcn.00403bb0
add esp, 4
ret
Function at 0x403f90
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
mov bl, byte [esp + 0x18]
push esi
push edi
mov edi, ecx
xor eax, eax
xor ecx, ecx
mov word [esp + 0xc], ax
mov word [esp + 0xe], cx
mov esi, 0x4ba194
test bl, bl
jne 0x403fb6
mov esi, 0x4ba190
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x403fc5
mov eax, dword [esp + 0x18]
jmp 0x403fe3
mov edx, dword [esp + 0x18]
push eax
push edx
push 0x4b9960
push 0x4dbb10
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, 0x4dbb10
mov edx, dword [esp + 0x14]
push edi
push 2
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp ecx, eax
movzx ecx, word [esp + 0xc]
sbb eax, eax
add ecx, 0xffffffd0
neg eax
cmp ecx, 0x49
ja case.0x404014.50
movzx edx, byte [ecx + 0x404050]
jmp dword [edx*4 + 0x404044]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov byte [ecx], 1
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov byte [edx], 0
pop ebx
pop ecx
ret 0x14
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov byte [ecx], bl
pop ebx
pop ecx
ret 0x14

Function at 0x4041d0
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
sub esp, 0x14
call fcn.00403350
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xb]
push ecx
push str.MulInst
push str.Setting
mov ecx, eax
call fcn.00403f90
cmp byte [esp + 3], 0
je 0x4041ff
mov al, 1
add esp, 0x14
ret
push 0x4ba1cc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x40421f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4041f9
push esi
push 0
push 0x4ba1cc
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x404241
mov al, 1
pop esi
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404256
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
lea eax, [esp + 8]
push eax
push 0x1388
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x4a
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
xor al, al
pop esi
add esp, 0x14
ret

Function at 0x404970
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x404990
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4049a6
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x4049d0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x4049e8
push 0x80004005
call fcn.00401000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4049f5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x404fe0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40504e
test ecx, ecx
je 0x405040
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
test eax, eax
je 0x40505c
test ecx, ecx
je 0x405101
push ecx
jmp 0x4050fb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4050ce
jmp 0x405090
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00404fe0
mov edi, eax
test edi, edi
jne 0x40511d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x405090
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4050e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405101
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0049e9d2
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40512c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405103
Function at 0x4054d0
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 0x4054e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405524
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405520
lea ebx, [ebx]
cmp esi, eax
jae 0x405524
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405510
cmp esi, eax
jb 0x40552a
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 0x40ba30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x414
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
mov ebx, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x424]
push edi
push 2
push 0
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ba95
call fcn.00404800
mov esi, eax
jmp 0x40bb55
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40baae
call fcn.00404800
jmp 0x40bb4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40bac6
call fcn.00404800
jmp 0x40bb4c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40bafa
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x40baea
lea ecx, [esp + 0x18]
call fcn.00404fb0
lea ecx, [esp + 0xc]
call fcn.004040a0
mov eax, 0x8007000e
jmp 0x40bb72
push eax
lea ecx, [esp + 0x1c]
call fcn.004059f0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40bb13
mov esi, 0x8007000e
jmp 0x40bb4e
push esi
push eax
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40bb2c
call fcn.00404800
jmp 0x40bb4c
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x430]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00406b80
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x1c]
cmp dword [esp + 0x18], edx
je 0x40bb70
lea ecx, [esp + 0x18]
call fcn.00404fb0
jmp 0x40bb70
mov eax, esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x414
ret 0x10
Function at 0x40c900
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
call fcn.00403350
push eax
push 0xbc614e
push str.Language
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xbc614e
jne 0x40c943
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push str.mui_d.dll
push eax
call fcn.00402950
mov ecx, dword [esp + 0x14]
mov edx, dword [0x5144c4]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00417280
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
call fcn.00402640
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 0x40c9ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call edi
test eax, eax
jne 0x40ca85
push 0x409
lea ecx, [esp + 0xc]
push str.mui_d.dll
push ecx
call fcn.00402950
mov edx, dword [esp + 0x14]
mov eax, dword [0x5144c4]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00417280
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
call fcn.00402640
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ca17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 8]
push esi
call edi
test eax, eax
jne 0x40ca85
push esi
lea edx, [esp + 0x14]
xor ecx, ecx
push 0x3b02
push edx
mov word [esp + 0x1c], cx
call fcn.00405730
add esp, 0xc
push 0x30
push 0x4ba1cc
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0049e9d2
add esp, 0x10c
ret
push eax
push 0x5144c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0049e9d2
add esp, 0x10c
ret
Function at 0x40ea80
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0xc], eax
cmp edx, ecx
ja 0x40eabc
jb 0x40eab0
cmp eax, ebx
jae 0x40eabc
mov eax, ebx
mov edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x28]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x40eae3
call fcn.00404800
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
mov edx, dword [esp + 0x20]
test ebx, ebx
jne 0x40eaf6
mov ecx, dword [esp + 0xc]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x40eaf9
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x24]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x40eb49
call fcn.00404800
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
add esp, 8
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x18
Function at 0x410dd0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x410e0a
call fcn.00404800
test eax, eax
je 0x410e0d
xor eax, eax
pop esi
add esp, 0x28
ret 8
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x1c]
push edi
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
jne 0x410e35
call fcn.00404800
test eax, eax
jl 0x410e3d
mov edi, dword [esp + 8]
mov eax, edi
or eax, dword [esp + 0xc]
jne 0x410e47
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 8
mov eax, dword [esi + 0x1c]
push ebx
push 4
push 2
push 0
push 0
push 0
lea ebx, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.0040ea80
test eax, eax
je 0x410e6f
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 8
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x410eb3
lea ecx, [esp + 0x14]
call fcn.00410d30
cmp dword [esp + 0x14], 0
je 0x410eaa
mov eax, dword [esi + 0x10]
cmp eax, edi
jl 0x410e99
mov eax, edi
mov edx, dword [esi + 0x40]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0040ecc0
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x14]
call fcn.00410d80
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x40]
push edx
push edi
push ebx
mov ecx, esi
call fcn.0040dc30
sub eax, ebx
sub edi, eax
pop ebx
mov dword [esi + 8], edi
mov dword [esi + 0x18], eax
mov dword [esi + 4], eax
pop edi
mov dword [esi], edx
mov byte [esi + 0xc], 0
mov eax, 1
pop esi
add esp, 0x28
ret 8
Function at 0x416600
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x10]
lea esi, [eax + 1]
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x416633
push esi
mov ecx, ebx
call fcn.00401af0
mov eax, dword [ebx]
push esi
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, eax
cmp eax, 0xffffffff
jne 0x41665f
mov ecx, dword [ebx]
test ecx, ecx
je 0x416663
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x416650
sub ecx, esi
sar ecx, 1
test ecx, ecx
jl 0x41667b
mov edx, dword [ebx]
cmp ecx, dword [edx - 8]
jg 0x41667b
mov dword [edx - 0xc], ecx
mov edx, dword [ebx]
xor esi, esi
pop edi
mov word [edx + ecx*2], si
pop esi
pop ebx
ret 4
push 0x80070057
call fcn.00401000
int3

Function at 0x416a10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, dword [esp + 0x410]
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ecx
mov dword [edi], ebp
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0xa
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
lea esi, [edi + 0x24]
mov ecx, esi
mov dword [edi + 0x1c], eax
call fcn.00435eb0
mov eax, dword [esp + 0x418]
mov dword [esi], vtable.CHookComboEdit.0
mov dword [edi + 0x20], eax
cmp ebx, ebp
jne 0x416a82
xor eax, eax
jmp 0x416a96
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x416a87
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [edi + 0x1c]
call fcn.00402140
push 0x3fe
lea edx, [esp + 0x16]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x1c], cx
call fcn.0049e9f0
add esp, 0xc
mov esi, 1
nop
mov ebx, dword [edi + 0x1c]
mov ebp, dword [edi + 0x20]
cmp esi, 0xffffffff
jne 0x416ad2
mov eax, 0x4bb238
jmp 0x416af0
push esi
push 0x4bb238
push 0x4b9960
push 0x4dbb10
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, 0x4dbb10
push ebp
push 0x200
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x416b3d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x416b34
cmp word [esp + 0x10], 0x23
jne 0x416b27
lea eax, [esp + 0x12]
push eax
jmp 0x416b2c
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 4]
call fcn.004169b0
inc esi
lea edx, [esi - 1]
cmp edx, 0x14
jl 0x416ac0
mov ecx, dword [esp + 0x410]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x404
ret 8