joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44749c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447647
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x447628
mov dl, 1
mov eax, dword [0x40c80c]
call fcn.00402df8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403ab0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x447617
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00435978
test al, al
je 0x44760a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x447658
lea eax, [ebp - 0x254]
call fcn.00408bc4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44760a
xor eax, eax
push ebp
push 0x447603
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x447690
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4475ec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ce0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4475ec
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44760a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44750d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040f4a8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44764e
lea eax, [ebp - 0x260]
call fcn.00403ab0
ret

Function at 0x447e94
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45d7d0]
cmp byte [eax + 0x95], 0
jne 0x447f05
cmp dword [0x45d7ec], 0
jne 0x447ec6
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x447e50
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45d7ec], eax
cmp dword [0x45d7e8], 0
jne 0x447ee1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x45d7e8], eax
cmp dword [0x45d7f0], 0
jne 0x447f05
push esp
push 0
push 0
push 0x447df4
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x45d7f0], eax
pop edx
ret
Function at 0x447ffc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x448013
add esp, 0xfffffff0
call fcn.00403128
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00412414
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40c50c]
call fcn.00402df8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40c50c]
call fcn.00402df8
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41426c]
call fcn.0041b590
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x448188
mov eax, dword [0x45c2d8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041b960
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449b94
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45c2d8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a060
test eax, eax
je 0x448106
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408564
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a088
test eax, eax
je 0x44811a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403ce0
mov eax, dword [0x45c1cc]
cmp byte [eax], 0
jne 0x44814b
mov eax, ebx
call fcn.00448274
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44817d
call fcn.00403180
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4484e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45d7d0]
cmp dword [eax + 0x24], 0
je 0x448587
cmp dword [ebx + 0x84], 0
jne 0x448581
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x448474
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x448581
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44854a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x448581
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040dbd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x448559
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x448f94
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x448fc9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b98
jmp 0x448fd3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403b04
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x449f08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x449f40
mov eax, esi
call fcn.004316a8
test al, al
je 0x449f40
mov eax, dword [ebx + 0x74]
call fcn.004313ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x449f40
push 0
mov eax, dword [ebx + 0x74]
call fcn.004313ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4510d4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 0x58
call fcn.00402b28
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
pop ecx
pop ebp
ret

Function at 0x456c7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0x45eec8
xor ecx, ecx
mov edx, 0x44
call fcn.00402b28
mov dword [0x45eec8], 0x44
cmp dword [ebp - 8], 0
je 0x456cb8
mov eax, dword [ebp - 8]
call fcn.00403ef4
mov dword [0x45ef1c], eax
jmp 0x456cbf
xor eax, eax
mov dword [0x45ef1c], eax
push 0x45ef0c
push 0x45eec8
mov eax, dword [0x45ef1c]
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403ef4
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
pop ecx
pop ecx
pop ebp
ret
Function at 0x456eb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ee4
xor eax, eax
push ebp
push 0x456fb8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x456fc4
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
jne 0x456fa2
push 0x14
call sub.user32.dll_GetKeyState
not ax
test al, 1
sete al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x456f18
xor edx, edx
mov al, 0x14
call fcn.00456cf0
mov eax, dword [ebp - 4]
call fcn.00403d30
test eax, eax
jle 0x456f93
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov al, byte [eax + edx - 1]
push eax
call sub.user32.dll_VkKeyScanA
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
call fcn.00406e50
cmp al, 0xff
je 0x456f8b
cmp byte [ebp - 0xe], 0xff
je 0x456f8b
mov ax, word [ebp - 0xe]
call fcn.00406e50
and al, 1
cmp al, 1
jne 0x456f6b
mov al, 0x10
call fcn.00456e80
mov al, byte [ebp - 0xe]
xor edx, edx
call fcn.00456cf0
mov ax, word [ebp - 0xe]
call fcn.00406e50
and al, 1
cmp al, 1
jne 0x456f8b
mov al, 0x10
call fcn.00456e9c
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x456f2e
cmp dword [ebp - 0xc], 0
je 0x456fa2
xor edx, edx
mov al, 0x14
call fcn.00456cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456fbf
lea eax, [ebp - 4]
call fcn.00403ab0
ret
Function at 0x402954
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x49d030], 0x8088405
inc edx
mov dword [0x49d030], edx
mul edx
mov eax, edx
ret

Function at 0x406340
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040632c
add esp, 0x104
pop ebx
ret
Function at 0x4089b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4089f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004034e0
jmp 0x4089fa
mov eax, ebx
mov edx, esi
call fcn.00403494
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408a04
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x408a25
mov al, byte [esp]
jmp 0x408a27
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4114c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403400
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x411521
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x411521
cmp byte [ebp - 0x102], 0
je 0x411521
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040355c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412760
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x4127e1
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x412792
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4127a4
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x4127b0
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00412638
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4127d5
push ebp
mov eax, dword [ebp - 4]
call fcn.004126d4
pop ecx
mov ebx, eax
cmp bl, 2
je 0x4127b0
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416860
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.kernel32.dll_ExitProcess]
add byte [ecx - 0x74dbdbbc], cl
inc esp
and al, 0x2c
call eax
test eax, eax
je 0x41695c
xor ecx, ecx
push ecx
push dword [0x49bdf0]
push ecx
push ecx
push dword [0x49be1c]
push eax
mov eax, dword [esp + 0x34]
call eax
mov esi, eax
test esi, esi
je 0x41695c
lea eax, [esp + 0x10]
push eax
push dword [0x49bdec]
mov ecx, dword [esp + 0x1c]
push ebx
push esi
call ecx
test eax, eax
je 0x41695c
cmp dword [esp + 0x10], 0
jbe 0x4168d2
add edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push dword [0x49bdec]
mov eax, dword [esp + 0x1c]
push edi
push esi
call eax
test eax, eax
jne 0x4168b0
cmp edi, ebx
je 0x41695c
mov edx, dword [ebx]
xor ecx, ecx
mov eax, dword [0x49bdd8]
mov eax, dword [eax + ecx]
add eax, edx
mov dword [ecx + edi], eax
add ecx, 4
cmp ecx, 0x14
jl 0x4168de
push edi
push dword [esp + 0x24]
call ebp
test eax, eax
je 0x41695c
push dword [0x49be00]
push 0x1000
push dword [0x49bdec]
push 0
call eax
mov ecx, dword [0x49bdf8]
mov edx, eax
add ecx, dword [0x49be14]
mov edi, 0x13fe
lea esi, [edx + 8]
mov ebp, dword [ecx + 4]
sub ecx, edx
mov eax, dword [ecx + esi]
add eax, ebp
mov dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x41692e
mov eax, dword [0x49bde4]
mov dword [edx + 8], eax
mov eax, dword [0x49be20]
mov ecx, dword [edx + 0xc]
add ecx, eax
mov eax, dword [0x49be20]
add ecx, edx
add edx, eax
push edx
call ecx
pop ecx
push 0
jmp 0x4167f4

Function at 0x419f54
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419f5a
ret
Function at 0x41f814
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49d654
cmp dword [edi], 0
jne 0x41f890
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49d650]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b594
mov ecx, 2
call fcn.00402738
mov edx, 0x41f7ec
lea eax, [esi + 5]
call fcn.0041f80c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f80c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f865
mov dword [0x49d650], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f994
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f9e4]
test si, 4
je 0x41f9a8
or bl, 1
test si, 8
je 0x41f9b2
or bl, 4
test si, 1
je 0x41f9bc
or bl, 8
test si, 2
je 0x41f9c6
or bl, 0x10
test si, 0x10
je 0x41f9d0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f9df
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41f9e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41fa20]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fa01
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fa10
or bl, 4
test esi, 0x20000000
je 0x41fa1b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4239b4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49d62c]
cmp byte [eax + 0x7f], 0
jne 0x423a07
cmp dword [0x49d658], 0
jne 0x4239e3
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x423970
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49d658], eax
cmp dword [0x49d65c], 0
jne 0x423a07
push esp
push 0
push 0
push 0x423920
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49d65c], eax
pop edx
ret

Function at 0x423a0c
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x49d658], 0
je 0x423a20
mov eax, dword [0x49d658]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x49d658], eax
cmp dword [0x49d65c], 0
je 0x423a3d
push 0
mov eax, dword [0x49d65c]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x49d65c], eax
ret

Function at 0x423adc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x423af3
add esp, 0xfffffff0
call fcn.00402d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00410480
mov dl, 1
mov eax, 0x40a724
call fcn.00402b30
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x40a724
call fcn.00402b30
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x419e4c
call fcn.0041de64
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x423c34
mov eax, dword [0x49d014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041e1f0
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424ef4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49d014]
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00407910
test eax, eax
je 0x423bd0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407778
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004078f0
test eax, eax
je 0x423be4
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040355c
cmp byte [0x49d034], 0
jne 0x423c14
mov eax, ebx
call fcn.00423cc4
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x423c2c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4246cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x4246fe
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004034e0
jmp 0x424708
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403494
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4250cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x425104
mov eax, esi
call fcn.004187c8
test al, al
je 0x425104
mov eax, dword [ebx + 0x60]
call fcn.00418630
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x425104
push 0
mov eax, dword [ebx + 0x60]
call fcn.00418630
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42d11c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42d164
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042d010
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d16b
lea eax, [ebp - 4]
call fcn.00403400
ret

Function at 0x42d174
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42d18d
test al, 0x10
je 0x42d191
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42d1bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42d1da
test al, 0x10
je 0x42d1da
test ah, 4
je 0x42d1de
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42d1e4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00403728
xor eax, eax
push ebp
push 0x42d2d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403744
mov ebx, pe_nt_image_headers32
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.004034e0
cmp dword [ebp + 0xc], 0
je 0x42d261
mov eax, dword [ebp + 0xc]
call fcn.00403738
push eax
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d28a
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
test eax, eax
je 0x42d29a
mov eax, dword [esi]
call fcn.00403738
call fcn.00407710
mov edx, ebx
sub edx, 8
cmp eax, edx
jl 0x42d2ab
cmp ebx, 0x10000
jl 0x42d2b5
mov edx, esi
xchg edx, eax
call fcn.004038a4
jmp 0x42d2c0
mov eax, ebx
add eax, eax
mov ebx, eax
jmp 0x42d21c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d2dd
lea eax, [ebp - 0xc]
call fcn.00403400
ret

Function at 0x42d3ac
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x42d3f4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00403738
push eax
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d418
push 8
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
push ebx
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
sete al
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42d478
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov ebx, edx
mov esi, eax
mov byte [esp], 0
test ebx, ebx
je 0x42d4b4
mov eax, ebx
call fcn.00403738
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x42d4e4
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
jmp 0x42d4d2
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x42d4e4
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetProfileStringA
cmp byte [esp], 0
sete al
add esp, 0x100
pop esi
pop ebx
ret