joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c1a
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x43106e], 0
jne 0x412c33
xor eax, eax
jmp 0x412dc2
call fcn.00413da8
mov dword [ebp - 8], 0
jmp 0x412c4a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x431076]
jge 0x412c76
mov edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x43107a]
cmp edx, ecx
jne 0x412c74
xor eax, eax
jmp 0x412dc2
jmp 0x412c41
mov edx, dword [0x4310be]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x412c8c
xor eax, eax
jmp 0x412dc2
push 0x431880
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x43106e]
add eax, 0x20
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x10
mov edx, dword [ebp - 4]
mov al, byte [ebp + 8]
mov byte [edx + 1], al
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
add ecx, 0x1e
mov edx, dword [ebp - 4]
mov byte [edx + 2], cl
mov eax, dword [ebp - 4]
mov cx, word [ebp + 0x10]
mov word [eax + 3], cx
mov edx, dword [ebp - 4]
mov word [edx + 5], 0x8000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xf], ecx
push 0x20
push 0
mov edx, dword [0x43106e]
push edx
call fcn.0041ee40
add esp, 0xc
mov eax, dword [0x43106e]
mov ecx, dword [0x43105c]
mov dword [eax], ecx
mov edx, dword [0x43106e]
mov dword [edx + 4], 0x7d04
mov eax, dword [0x43106e]
mov word [eax + 8], 1
mov ecx, dword [0x43106e]
mov dx, word [ebp + 0x18]
mov word [ecx + 0xa], dx
mov eax, dword [0x43106e]
mov word [eax + 0xc], 0x33
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x7a120
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x40
jae 0x412d74
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp + ecx*4 - 0x114], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
xor edx, edx
test edx, edx
jne 0x412d49
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
call sub.WSOCK32.dll_select
push 0
mov edx, dword [0x43106e]
xor eax, eax
mov ax, word [edx + 0xc]
push eax
mov ecx, dword [0x43106e]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_send
push 0x431880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x413da8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
cmp dword [0x4310d0], 0
je 0x413dbf
jmp 0x413e95
mov dword [0x4310d0], 1
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._sSYSPCU_SERV.INI
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xd4]
push ecx
push 0x80
lea edx, [ebp - 0x84]
push edx
push 0x4310dc
push str.NoWrite
push str.TRANS_NT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x84]
test eax, eax
jne 0x413e1d
jmp 0x413e95
mov dword [ebp - 0xd8], 0
push 0x42d09c
lea ecx, [ebp - 0x84]
push ecx
call fcn.004200d4
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413e8a
mov edx, dword [ebp - 4]
push edx
call fcn.0041f0ce
add esp, 4
mov ecx, dword [ebp - 0xd8]
mov byte [ecx + 0x43107a], al
push 0x42d0a0
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xd8]
add edx, 1
mov dword [ebp - 0xd8], edx
cmp dword [ebp - 0xd8], 0x40
jne 0x413e88
jmp 0x413e8a
jmp 0x413e3e
mov eax, dword [ebp - 0xd8]
mov dword [0x431076], eax
mov esp, ebp
pop ebp
ret

Function at 0x4151ed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x4310e8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x4310f0], 0
mov eax, 1
pop ebp
ret
Function at 0x41543b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x431154
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x41545b
xor eax, eax
jmp 0x4155e9
push 0x42d204
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
push str.FUNCKEYS
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x24], 0
jne 0x4154aa
xor eax, eax
jmp 0x4155e9
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, 1
test eax, eax
je 0x4155cb
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0xc]
jge 0x4154e5
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4154ea
jmp 0x4155cb
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
push edx
push 0x42d21c
push 0x431154
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x431154
call fcn.0041efa0
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jge 0x415553
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x20
jl 0x415553
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [eax + 0x431154], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x41551a
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x431154], 0
cmp dword [ebp - 4], 1
jl 0x4155c6
cmp dword [ebp - 4], 0xa
jg 0x4155c6
push 0x431154
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x431128]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x431128]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x431128]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4154bd
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
push eax
push 0x431154
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4155ed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4310e8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0x19
mov edx, dword [ebp + 0xc]
and edx, 0xffff
and edx, 0x2000
test edx, edx
jne 0x415639
mov eax, dword [ebp + 0xc]
and eax, 0xffff
cmp eax, 0xffffffff
jne 0x4156cf
cmp dword [0x43117c], 0
je 0x4156be
push 0x431180
mov ecx, dword [0x4310e8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x4310e8]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x4310e8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 0x9c], 0
jmp 0x41568e
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
cmp eax, dword [0x4310fc]
jge 0x4156b4
push 5
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx*4 + 0x431100]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41567f
mov dword [0x43117c], 0
push 1
call fcn.0041d535
add esp, 4
xor eax, eax
jmp 0x415857
cmp dword [0x43117c], 0
jne 0x415723
mov dword [ebp - 0x9c], 0
jmp 0x4156f3
mov eax, dword [ebp - 0x9c]
add eax, 1
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [0x4310fc]
jge 0x415719
push 0
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx*4 + 0x431100]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4156e4
mov dword [0x43117c], 1
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
and ecx, 0x800
test ecx, ecx
je 0x415742
mov byte [ebp - 0x98], 0
jmp 0x4157e9
mov edx, dword [ebp + 0xc]
and edx, 0xffff
and edx, 0x10
test edx, edx
je 0x4157ca
mov eax, dword [0x4310e8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov dword [ebp - 0xa0], eax
push 0
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x14]
and eax, 0xffff
cdq
mov ecx, 0x3e8
idiv ecx
imul eax, eax, 0x3e8
mov word [ebp - 0x14], ax
push 0x80
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x14]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x4157e9
push 0x80
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 0x10]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xa
lea edx, [ebp - 0x98]
push edx
call fcn.00420a00
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x415809
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [0x4310e8]
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4310e8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x4310e8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
cmp dword [0x43117c], 0
sete al
push eax
call fcn.0041d535
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x415860
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415aff
test eax, eax
jne 0x415881
xor eax, eax
jmp 0x415994
mov edx, dword [ebp + 0x10]
push edx
push 0x42d220
push 0x44ddc0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x42d224
push 0x44da60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x124], 0x44da60
push 0x42d228
push 0x44da60
call fcn.004200d4
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4158f1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x124], ecx
push 0x42d22c
push 0
call fcn.004200d4
add esp, 8
mov dword [ebp - 4], eax
jmp 0x4158ce
mov edx, dword [ebp - 0x124]
push edx
push 0x44ddc0
call fcn.0041ed60
add esp, 8
push 0
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x415924
xor eax, eax
jmp 0x415994
push 0x1000
lea edx, [ebp - 0x120]
push edx
push 0x44ddc0
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x415950
mov eax, dword [ebp - 0x10]
push eax
call sub.LZ32.dll_LZClose
xor eax, eax
jmp 0x415994
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.LZ32.dll_LZCopy
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.LZ32.dll_LZClose
mov ecx, dword [ebp - 0xc]
push ecx
call sub.LZ32.dll_LZClose
cmp dword [ebp - 8], 0
jg 0x415985
push 0x44ddc0
call fcn.0042776a
add esp, 4
cmp dword [ebp - 8], 0
jge 0x41598f
xor eax, eax
jmp 0x415994
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415cdc
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x415d53
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll__lclose]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x118], 1
jne 0x415dc0
push 2
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x415dc0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x118]
mov esp, ebp
pop ebp
ret
Function at 0x415ed2
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov dword [ebp - 4], 1
push 0x42d274
call fcn.0041efa0
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x42d278
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0041ed60
add esp, 8
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415f43
mov eax, 1
jmp 0x41604d
push 0x42d27c
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00420050
add esp, 8
test eax, eax
je 0x415f73
push 0x42d280
lea edx, [ebp - 0x11c]
push edx
call fcn.00420050
add esp, 8
test eax, eax
jne 0x415f78
jmp 0x416012
lea eax, [ebp - 0x11c]
push eax
call fcn.0041efa0
add esp, 4
mov ecx, 0x104
sub ecx, eax
sub ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x42d284
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0041ed60
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x24c]
push eax
call fcn.0041ed60
add esp, 8
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
test ecx, ecx
je 0x415ffa
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00415ed2
add esp, 8
test eax, eax
jne 0x415ff8
mov dword [ebp - 4], 0
jmp 0x416012
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x416012
mov dword [ebp - 4], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415f43
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41604a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41aa9b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x42d384]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [0x42d384]
mov edx, dword [ecx + 0x36]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41ab22
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x42d384]
mov edx, dword [ecx + 0x4a]
push edx
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x4e]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041c6c8
add esp, 0x1c
mov ecx, dword [0x42d384]
mov edx, dword [ecx + 0x36]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
push 0
mov eax, dword [ebp - 8]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 4]
sub edx, 1
push edx
mov eax, dword [ebp - 8]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 4]
sub edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_LineTo]
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x12]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
push 0x64
push 0x43118c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x3a]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x41abf0
cmp dword [ebp - 0x24], 1
je 0x41abcd
jmp 0x41ac0e
push 0x43118c
call fcn.0041efa0
add esp, 4
push eax
push 0x43118c
push 2
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x41ac0e
push 0x43118c
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x4a]
push ecx
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
call fcn.004189eb
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esp, ebp
pop ebp
ret
Function at 0x41c35c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x46]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
jne 0x41c385
jmp 0x41c4cb
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x2a]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
jmp 0x41c3a2
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jg 0x41c3c5
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x26
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x32]
mov edx, dword [ebp - 0x18]
add edx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x18], edx
jmp 0x41c399
mov eax, dword [0x42d384]
xor ecx, ecx
mov cx, word [eax + 8]
and ecx, 2
test ecx, ecx
je 0x41c3e6
mov edx, dword [0x42d384]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x1e]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jle 0x41c46b
mov ecx, dword [0x42d384]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x4a]
jne 0x41c422
push 0
push 0x3e80004
push 0x114
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x41c46b
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x2a]
add eax, dword [ebp + 8]
mov ecx, dword [0x42d384]
sub eax, dword [ecx + 0x4a]
and eax, 0xffff
shl eax, 0x10
or al, 4
push eax
push 0x114
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
jne 0x41c484
push 0
push 4
push 0x114
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x42d384]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x2a]
jge 0x41c4cb
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [ebp + 8]
and edx, 0xffff
shl edx, 0x10
or edx, 4
push edx
push 0x114
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x41c4cf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x46]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x41c4f8
jmp 0x41c59d
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x2e]
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x26]
lea ecx, [ecx + eax - 1]
cmp dword [ebp + 8], ecx
jle 0x41c556
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [0x42d384]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax + 0x26]
add ecx, 1
and ecx, 0xffff
shl ecx, 0x10
or ecx, 4
push ecx
push 0x115
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x42d384]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x2e]
jge 0x41c59d
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp + 8]
and ecx, 0xffff
shl ecx, 0x10
or ecx, 4
push ecx
push 0x115
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x41d414
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x4312c0]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x4312c4], 0
mov eax, 1
pop ebp
ret

Function at 0x41e810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0xffffffff
mov dword [0x431498], 1
call sub.WINDCS32.dll_Ordinal_52_1
push eax
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._sTEXTE._1.1iMENUAPPL.INI
push 0x43149c
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x41e85c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x16
jge 0x41e8a1
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x42d4bc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x43149c
push 0xffffffffffffffff
push 0x42d4c8
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x14]
mov dword [edx*4 + 0x4314ec], eax
jmp 0x41e853
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov esp, ebp
pop ebp
ret