joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418734
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xfc]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x41886d
push eax
call fcn.00405678
mov ebx, eax
test ebx, ebx
pop ecx
je 0x41883a
mov eax, dword [ebx + 0x10]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x4187ae
lea eax, [ebx + 0x14]
push eax
call fcn.0040e1b7
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.004057f4
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0xfc], eax
jne 0x418804
mov ecx, dword [ebx + 0x40]
xor eax, eax
cmp ecx, eax
je 0x4187f6
cmp word [ecx], ax
je 0x4187f6
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41883a
cmp dword [ebx + 0x10], eax
je 0x41883a
mov dword [ebp - 4], 1
jmp 0x41883a
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x418823
lea eax, [ebx + 0x14]
push eax
call fcn.0040e1b7
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.004057f4
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0xfc], ecx
je 0x41884b
push 0x67
jmp 0x418866
cmp dword [ebp - 8], ecx
je 0x41886d
cmp dword [ebp - 0xc], ecx
je 0x41886d
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0xf8]
cmp edx, dword [eax]
jne 0x418864
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.00418480
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42040d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x420466
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x420457
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x420457
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x420466
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4

Function at 0x42046a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x42048a
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x4204e7
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x4204ec
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x4204ec
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4204e7
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x4204de
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.00420500
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4204e7
cmp dword [edi + 0x18], esi
je 0x4204e7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x4204fb
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8

Function at 0x4218f3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x42193f
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x10c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x42193f
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1f0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x2f0], 0
je 0x4219b7
lea ebx, [esi + 0x300]
cmp dword [ebx], 0
je 0x42195c
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x2f0], edi
jne 0x4219b0
push edi
call fcn.00405678
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.004057f4
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x2f0], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x4219bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x300]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x4219ee
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x421a32
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x421a32
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x1f0]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x2ec]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x421b84
push eax
call fcn.00405678
mov edi, eax
test edi, edi
pop ecx
je 0x421b03
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x421a78
push 1
push edi
call fcn.00405616
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.004057f4
mov eax, dword [ebp - 4]
cmp dword [esi + 0x2ec], eax
jne 0x421ace
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x421ac0
cmp word [ecx], ax
je 0x421ac0
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x421b03
cmp dword [edi + 0x10], eax
je 0x421b03
mov dword [ebp - 0xc], 1
jmp 0x421b03
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x421aec
push 1
push edi
call fcn.00405616
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.004057f4
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x2ec], eax
je 0x421b45
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x421b84
cmp dword [ebp - 0x10], eax
je 0x421b84
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x421b84
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x2e8
cmp eax, dword [esi]
jne 0x421b84
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x421b9f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x421c02
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x421cb0
mov eax, dword [ebp - 0x98]
dec eax
je 0x421c9c
dec eax
jne 0x421cb0
cmp dword [ebp - 0xa4], 6
jne 0x421c4d
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x421c35
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
add ecx, 8
jmp 0x421c49
cmp dword [ebp - 0xa0], edi
jne 0x421c89
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x421cb0
cmp dword [ebp - 0xa4], 5
jne 0x421c7c
cmp dword [ebp - 0xa0], 2
jne 0x421c63
push 5
jmp 0x421c99
cmp dword [ebp - 0xa0], 1
jne 0x421c70
push 6
jmp 0x421c99
cmp dword [ebp - 0xa0], edi
jne 0x421cb0
push 3
jmp 0x421c99
cmp dword [ebp - 0xa4], 4
ja 0x421cb0
push 4
jmp 0x421c99
cmp dword [ebp - 0xa0], 2
jne 0x421cb0
cmp byte [ebp + 0x72], al
jne 0x421cb0
push 0xa
pop edi
jmp 0x421cb0
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d0736
add ebp, 0x78
leave
ret

Function at 0x422290
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x4f05cc
call fcn.004d1298
mov eax, dword [ebp + 0x41c]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push 0x40e
lea eax, [ebp + 2]
push edi
mov dword [ebp - 4], edi
push eax
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x42234b
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [ebp]
push eax
call edi
test eax, eax
pop ecx
jbe 0x42234b
lea eax, [ebp]
push eax
call edi
pop ecx
lea ecx, [ebp]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.00402ad1
lea eax, [ebp - 0x10]
push eax
call fcn.0048b04d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push str._d.tmp
call fcn.00417918
mov edi, dword [ebp - 0x10]
add esp, 0xc
add edi, 0xfffffff0
jmp 0x42234e
lea edi, [ebx - 0x10]
mov eax, edi
call fcn.00401311
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.004012f9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004d0736
add ebp, 0x414
leave
ret
Function at 0x4223a9
Capabilities:
Copy file

Disassembly:
push 8
mov eax, 0x4f3903
call fcn.004d1298
mov eax, dword [ebx + 4]
sub eax, 0x10
call fcn.00401311
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0048b04d
lea eax, [ebp - 0x10]
mov dword [esp], str.closepop.dat
push eax
call fcn.00402a1b
push dword [ebp + 8]
lea esi, [ebp - 0x14]
call fcn.00422290
pop ecx
lea edi, [ebx + 8]
mov byte [ebp - 4], 1
call fcn.00402a90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov edi, dword [edi]
xor esi, esi
cmp dword [edi - 0xc], esi
jne 0x42241b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x422469
push esi
push edi
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x422466
push esi
xor eax, eax
inc eax
push eax
push eax
push esi
push dword [ebp + 8]
mov dword [ebx], eax
push dword [0x550b44]
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [0x550bdc], esi
je 0x422466
push str.KClosePopSend:_OK
call fcn.004022f5
call fcn.0040233d
mov esi, eax
call fcn.00402366
lea eax, [edi - 0x10]
call fcn.004012f9
xor eax, eax
call fcn.004d1370
ret 4

Function at 0x423b9b
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4e8f64
call fcn.004d1298
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov edi, dword [ecx]
push eax
push 0x20
push 0x20
lea esi, [ebp - 0x10]
call fcn.00401958
push eax
push ebx
push str.show
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x10]
cmp esi, ebx
mov edi, eax
jne 0x423bf1
xor eax, eax
jmp 0x423bf9
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.00401385
cmp edi, ebx
jbe 0x423c25
push esi
call dword [sym.imp.MSVCR80.dll__wtoi64]
pop ecx
mov edi, eax
mov ebx, edx
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, edi
mov edx, ebx
call fcn.004d1370
ret 8
xor edi, edi
jmp 0x423c11

Function at 0x423c29
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4e8f41
call fcn.004d1298
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov edi, dword [ecx]
push eax
push 0x20
push 0x20
lea esi, [ebp - 0x10]
call fcn.00401958
push eax
push ebx
push str.click
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x10]
cmp esi, ebx
mov edi, eax
jne 0x423c7f
xor eax, eax
jmp 0x423c87
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.00401385
cmp edi, ebx
jbe 0x423cb3
push esi
call dword [sym.imp.MSVCR80.dll__wtoi64]
pop ecx
mov edi, eax
mov ebx, edx
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, edi
mov edx, ebx
call fcn.004d1370
ret 8
xor edi, edi
jmp 0x423c9f
Function at 0x423cb7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb6dc
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
lea eax, [esp + 0x24]
push eax
call fcn.00498532
pop ecx
and dword [esp + 0x40], 0
push esi
push edi
call fcn.00423b9b
mov edi, dword [edi]
mov esi, dword [esi]
push edi
push 0
push str.NoShowDays
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423d1e
xor eax, eax
jmp 0x423d47
test ebx, ebx
je 0x423d44
test esi, esi
je 0x423d44
mov eax, ebx
lea ecx, [esp + 0x14]
call fcn.00497cf9
mov eax, esi
lea ecx, [esp + 0x14]
lea esi, [esp + 0x24]
call fcn.0049873a
test eax, eax
je 0x423d1a
xor eax, eax
inc eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42422b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [ebp + 0x1c], 0
push ebx
push esi
jne 0x424362
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp eax, 0x4e
jne 0x42427b
mov esi, dword [ebp + 0x14]
cmp dword [esi + 4], 0xffffffff
jne 0x424342
mov eax, edi
mov dword [edi + 0x3cc], ebx
call fcn.00424199
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [edi + 0x3cc], 0
je 0x424342
mov eax, ebx
jmp 0x424364
cmp eax, 0x110
jne 0x42429b
lea esi, [edi + 0x3cc]
mov eax, edi
mov dword [esi], ebx
call fcn.00424420
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
cmp dword [esi], 0
jmp 0x42426e
cmp eax, 0x86
jne 0x4242cc
xor eax, eax
cmp dword [ebp + 0x10], eax
lea esi, [edi + 0x3cc]
mov dword [esi], eax
jne 0x4242c3
push eax
push eax
push 0x401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], ebx
cmp dword [esi], eax
jmp 0x42426e
cmp eax, 2
jne 0x4242f5
cmp dword [edi + 0x2d8], 0
lea esi, [edi + 0x3cc]
mov dword [esi], ebx
je 0x4242ed
lea eax, [edi + 0x2d4]
call fcn.00416095
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x424296
cmp eax, 0x201
jne 0x424326
mov ecx, dword [ebp + 0x14]
movsx eax, word [ebp + 0x14]
shr ecx, 0x10
movsx ecx, cx
push ecx
push eax
push dword [ebp + 0x10]
mov eax, edi
mov dword [edi + 0x3cc], ebx
call fcn.00421dca
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x424267
cmp eax, 0x401
jne 0x424342
push 0
push dword [edi + 4]
lea esi, [edi + 0x3cc]
mov dword [esi], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4242ed
push 0
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041fab1
test eax, eax
jne 0x424274
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4245fa
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push 0
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ebx, [edi + 0x3e0]
mov eax, ebx
call fcn.00403114
cmp esi, eax
jge 0x424647
mov eax, ebx
call fcn.00403114
cmp esi, eax
jb 0x42462b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 4]
imul esi, esi, 0xc
push dword [eax + esi]
push 0
push 0x469
push dword [edi + 0x3d0]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebx
ret

Function at 0x4259e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x425a01
xor eax, eax
jmp 0x425a51
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x4259fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4259fd
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.004052a5
test eax, eax
je 0x425a3d
push edi
push dword [ebp - 4]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, ebx
call fcn.00425915
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x425a55
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4eb632
call fcn.004d1298
mov edi, ecx
mov eax, dword [0x550310]
mov esi, 0x550310
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
lea eax, [edi + 0xc]
jne 0x425a8a
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00402a90
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x425b73
mov eax, dword [0x550310]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp + 0x14]
push edi
push 0x506588
call fcn.00401a57
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x425b68
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x425b5f
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.004052a5
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x425b56
cmp dword [ebp + 8], edi
jne 0x425b56
mov eax, edi
call fcn.00425915
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d1370
ret 0x10
xor eax, eax
mov edx, esi
call fcn.004053a6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov esi, dword [ebp - 0x14]
jmp 0x425b41

Function at 0x429b35
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x188], eax
test esi, esi
mov eax, dword [ebp + 0x194]
mov dword [ebp - 0x80], eax
je 0x429bbd
test edi, edi
je 0x429bbd
push esi
call fcn.0048b5a6
test al, al
pop ecx
je 0x429bbd
and word [ebp - 0x78], 0
push 0x1fe
lea eax, [ebp - 0x76]
push 0
push eax
mov dword [ebp - 0x7c], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x100
lea eax, [ebp - 0x78]
push eax
push 0
push edi
push str.SPCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x429bb8
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [0x4fe438]
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
jmp 0x429bc2
mov eax, 0x80004005
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.004d0736
add ebp, 0x18c
leave
ret
Function at 0x429e1d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x429e3e
mov eax, 0x80004005
jmp 0x429ec1
push edi
call fcn.0048b5a6
test al, al
pop ecx
je 0x429e34
and word [ebp - 0x804], 0
push ebx
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov ebx, 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x429ebe
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call dword [0x4fe438]
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x5c
je 0x429ebc
push 0x5091ec
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
xor ebx, ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0736
leave
ret

Function at 0x429f48
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x788], eax
test edi, edi
mov eax, dword [ebp + 0x794]
push esi
mov dword [ebp - 0x80], eax
je 0x429fd8
xor eax, eax
mov esi, str.kxebase.dll
cmp eax, esi
je 0x429fd8
push edi
call fcn.0048b5a6
test al, al
pop ecx
je 0x429fd8
and word [ebp - 0x78], 0
push 0x7fe
lea eax, [ebp - 0x76]
push 0
push eax
mov dword [ebp - 0x7c], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x78]
push eax
push 0
push esi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x429fd3
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [0x4fe438]
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
jmp 0x429fdd
mov eax, 0x80004005
mov ecx, dword [ebp + 0x788]
xor ecx, ebp
pop esi
call fcn.004d0736
add ebp, 0x78c
leave
ret

Function at 0x42a1de
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x42a236
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0xc]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x508f60]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x508f60]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x42a1ea
pop edi
pop esi
ret