joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cc1a
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x41cc3d
or esi, 1
push 1
call edi
test ax, ax
jns 0x41cc49
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x41cc55
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41cc61
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x41d384
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0xd8], ebx
jle 0x41d3d1
mov eax, dword [esi + 0xd4]
lea edx, [ebp - 5]
push edx
push dword [ebp + 0x10]
mov byte [ebp - 5], 0
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax]
cmp byte [ebp - 5], 0
jne 0x41d42c
inc ebx
cmp ebx, dword [esi + 0xd8]
jl 0x41d3a6
sub edi, 0x100
je 0x41d48e
sub edi, 4
je 0x41d430
dec edi
dec edi
jne 0x41d47b
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.00435f05
pop ecx
mov ecx, dword [esi + 0x54]
push 0x8000000a
lea edx, [ebp - 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [ecx]
push edx
push 0x41fa0b
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x41d47b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x41d47d
cmp dword [esi + 0x58], 0
je 0x41d47b
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x1c], eax
call fcn.0041cc1a
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + pe_nt_image_headers32]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x41d47b
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x41d4db
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x41d4db
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x41d4db
mov ecx, dword [esi + 0x58]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004339f2
pop ecx
pop ecx
test eax, eax
je 0x41d4db
mov eax, dword [esi + 0x58]
cmp byte [eax + 0x4d9], 0
jne 0x41d47b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0041ef58
jmp 0x41d42c
Function at 0x41eba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4590c0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx]
je 0x41ebd7
cmp esi, dword [ebx + 0x58]
je 0x41eca1
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x58]
je 0x41eca1
cmp dword [ebx + 0x58], 0
je 0x41ec2e
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x14
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
call dword [eax + pe_nt_image_headers32]
xor edi, edi
push ecx
push edi
push edi
push str.killfocus
push dword [ebx + 0x58]
mov ecx, ebx
call fcn.0041f0db
mov dword [ebx + 0x58], edi
test esi, esi
je 0x41eca1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x41eca1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x41eca1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x41eca1
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [ebx + 0x58], esi
mov dword [esp + 0xc], 0x15
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
call dword [eax + pe_nt_image_headers32]
push ecx
push 0
push 0
push str.setfocus
push dword [ebx + 0x58]
mov ecx, ebx
call fcn.0041f0db
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432b05
mov esp, ebp
pop ebp
ret 4
Function at 0x41ff4f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x444ee2
call fcn.00437c51
mov eax, ecx
mov dword [ebp - 0x2d8], eax
mov edi, dword [ebp + 8]
call fcn.0042013d
xor ebx, ebx
push 0x45a2e8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], ebx
call fcn.0042e894
mov dword [ebp - 4], ebx
mov eax, dword [0x45a370]
cmp word [eax], bx
jne 0x42004d
test edi, edi
je 0x41ffa7
push edi
lea ecx, [ebp - 0xa0]
call fcn.0042e8c9
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x420128
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x420128
cmp esi, 0x400000
ja 0x420128
push esi
mov dword [ebp - 0x14], ebx
call fcn.00432956
pop ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x2d4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x420033
mov esi, dword [ebp - 0x2d4]
push esi
call fcn.00433692
pop ecx
mov ecx, dword [ebp - 0x2d8]
call fcn.0042013d
jmp 0x420128
push ecx
mov ecx, dword [ebp - 0x2d8]
push esi
mov esi, dword [ebp - 0x2d4]
push esi
call fcn.0041febe
push esi
jmp 0x420120
push eax
lea ecx, [ebp - 0xa0]
call fcn.0042e8c9
cmp byte [0x45bfa8], 0
je 0x42006a
mov esi, dword [0x45bfa4]
jmp 0x420079
push ecx
mov ecx, dword [ebp - 0xa0]
call fcn.00404572
pop ecx
mov esi, eax
test esi, esi
je 0x420128
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
mov edx, edi
mov ecx, esi
call fcn.004046e8
add esp, 0xc
test eax, eax
jne 0x420128
mov edi, dword [ebp - 0xa4]
test edi, edi
je 0x420128
cmp edi, 0x400000
ja 0x420128
push edi
call fcn.00432956
mov edx, dword [ebp - 0x14]
pop ecx
push 3
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x2d4], eax
call fcn.004047b9
add esp, 0xc
test eax, eax
je 0x4200fb
cmp eax, 0x600
je 0x4200fb
mov edi, dword [ebp - 0x2d4]
push edi
call fcn.00433692
cmp byte [0x45bfa8], 0
pop ecx
jne 0x420128
mov ecx, esi
call fcn.004047ee
jmp 0x420128
cmp byte [0x45bfa8], 0
jne 0x42010b
mov ecx, esi
call fcn.004047ee
push ecx
mov ecx, dword [ebp - 0x2d8]
push edi
mov edi, dword [ebp - 0x2d4]
push edi
call fcn.0041febe
push edi
mov bl, al
call fcn.00433692
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.0042e8b9
mov al, bl
call fcn.00437c0f
ret 8
Function at 0x427546
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4d4], 0
je 0x4275af
cmp dword [ebp + 8], 0x100
jne 0x42759f
cmp word [ebp + 0xc], 0xd
jne 0x42759f
cmp byte [esi + 0x4da], 0
je 0x427584
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42759f
cmp byte [esi + 0x4db], 0
jne 0x42759f
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x42759b
push ecx
push 0
push 0
push str.return
push esi
call fcn.0041f0db
xor eax, eax
jmp 0x4275b2
mov eax, dword [esi + 0x4d4]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x42f0e4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14c]
push eax
push ecx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x150], esi
cmp esi, 0xffffffff
je 0x42f20e
test byte [ebp - 0x14c], 0x10
jne 0x42f1f1
mov eax, dword [ebp - 0x158]
test eax, eax
jne 0x42f147
inc ebx
jmp 0x42f1f1
lea ecx, [ebp - 0x120]
push ecx
call eax
pop ecx
test al, al
je 0x42f1f1
inc ebx
cmp edi, 0xffffffff
je 0x42f1f1
xor ecx, ecx
cmp edi, 0x10
jge 0x42f18f
cmp byte [0x45bfa9], cl
je 0x42f18f
mov al, byte [ebp - 0x120]
lea edx, [ebp - 0x120]
jmp 0x42f188
movsx eax, al
add ecx, eax
inc edx
mov al, byte [edx]
test al, al
jne 0x42f180
and ecx, 0xf
mov eax, dword [0x45c048]
imul eax, eax, 0x18
add edi, ecx
mov esi, dword [eax + 0x44d918]
imul esi, dword [edi*4 + 0x45bfb8]
push dword [eax + 0x44d920]
add esi, dword [eax + 0x44d91c]
mov eax, dword [edi*4 + 0x45c000]
add eax, esi
push 0
push eax
call fcn.00433270
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov eax, dword [edi*4 + 0x45c000]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [edi*4 + 0x45bfb8]
mov esi, dword [ebp - 0x150]
mov edi, dword [ebp - 0x154]
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42f12a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret

Function at 0x42f21f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x452e34
push str.Text.idx
call fcn.00436bff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42f24b
xor al, al
jmp 0x42f2c8
and dword [ebp - 8], 0
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.00436dd7
push esi
call fcn.00436eef
add esp, 0x14
cmp dword [ebp - 8], 0x534d525f
jne 0x42f27b
mov dword [0x45c048], 3
jmp 0x42f2a1
cmp dword [ebp - 8], 0x5458455f
jne 0x42f290
mov dword [0x45c048], 2
jmp 0x42f2a1
xor eax, eax
cmp dword [ebp - 8], 0x5844495f
sete al
mov dword [0x45c048], eax
push 0xffffffffffffffff
xor edx, edx
mov ecx, str.Sprite.idx
call fcn.0042f0e4
pop ecx
cmp eax, 1
push 0x12
setg byte [0x45bfa9]
xor eax, eax
pop ecx
mov edi, 0x45bfb8
rep stosd dword es:[edi], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00432b05
leave
ret
Function at 0x42f2d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [edi], esi
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], edi
mov dword [edx], esi
cmp eax, 0x10
jge 0x42f337
test eax, eax
jne 0x42f31e
cmp byte [0x45bfa9], 0
je 0x42f337
push eax
push ecx
lea eax, [ebp - 0x110]
push str._s_02d.idx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x42f34d
push ecx
lea eax, [ebp - 0x110]
push str._s.idx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x452e34
push eax
call fcn.00436bff
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x19c], ebx
test ebx, ebx
je 0x42f427
cmp dword [0x45c048], esi
je 0x42f384
push esi
push 4
push ebx
call fcn.00436ff5
add esp, 0xc
push ebx
push 1
push 4
push edi
call fcn.00436dd7
mov esi, dword [0x45c048]
mov edi, dword [edi]
imul esi, esi, 0x18
imul edi, dword [esi + 0x44d918]
push edi
call fcn.004331da
push dword [ebp - 0x19c]
mov ebx, eax
mov eax, dword [ebp - 0x1a4]
mov dword [eax], ebx
mov eax, dword [ebp - 0x1a0]
push dword [eax]
push dword [esi + 0x44d918]
push ebx
call fcn.00436dd7
add esp, 0x24
cmp dword [ebp - 0x194], 0x10
jne 0x42f41b
push ecx
lea edx, [ebp - 0x198]
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x198], 0x2340217e
mov dword [ebp - 0x194], 0x3c245e25
call fcn.00404833
pop ecx
cmp edi, 8
jl 0x42f41b
shr edi, 3
push ebx
mov edx, ebx
lea ecx, [ebp - 0x190]
call fcn.00404d59
add ebx, 8
pop ecx
dec edi
jne 0x42f406
push dword [ebp - 0x19c]
call fcn.00436eef
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret
Function at 0x42ff65
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov eax, edx
xor edi, edi
mov dword [ebp - 4], eax
mov edx, ecx
cmp dword [0x45d360], edi
jne 0x42ffb2
push ebx
push esi
mov esi, edi
push 8
mov ecx, esi
pop ebx
test cl, 1
mov eax, 0xedb88320
cmovne eax, edi
shr ecx, 1
xor ecx, eax
dec ebx
jne 0x42ff85
xor ecx, 0xff000000
mov dword [esi*4 + 0x45d360], ecx
inc esi
cmp esi, 0x100
jb 0x42ff80
mov eax, dword [ebp - 4]
pop esi
pop ebx
cmp dword [ebp + 8], edi
jbe 0x42ffd3
movzx ecx, byte [edi + eax]
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x45d360]
inc edi
cmp edi, dword [ebp + 8]
jb 0x42ffb7
mov eax, edx
pop edi
leave
ret

Function at 0x430013
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43003f
xor eax, eax
jmp 0x430097
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x43003b
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x43003b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00432b05
leave
ret
Function at 0x430586
Capabilities:
Create thread
Delete file

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [edi + 0x268]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xd8]
cmp byte [0x45c4ea], bl
je 0x4305e4
push esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [edi + 0xf00]
push 0x45c4eb
push esi
call fcn.00433672
push 0x2f
push esi
call fcn.00436962
add esp, 0x10
xor ecx, ecx
push ebx
push ebx
push edi
push 0x430575
push ebx
push ebx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop edi
pop ebx
ret
mov ecx, edi
call fcn.00431239
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
pop edi
pop ebx
jmp fcn.0043104a

Function at 0x4305ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.windowinit
mov ecx, edi
call fcn.0042ea51
test al, al
je 0x430626
lea ecx, [esi - 0x10]
call fcn.00430586
jmp 0x43073a
push str.click
mov ecx, edi
call fcn.0042ea51
test al, al
je 0x43073a
mov ecx, dword [edi + 0x108]
cmp ecx, dword [esi + 0x250]
jne 0x430662
push 0
push 0xf020
push 0x112
push dword [esi - 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x43073a
cmp ecx, dword [esi + 0x254]
je 0x430732
cmp ecx, dword [esi + 0x25c]
je 0x430732
mov edx, dword [esi + 0x258]
cmp ecx, edx
jne 0x4306c0
mov eax, dword [esi + 0x2a4]
test eax, eax
js 0x4306ac
cmp eax, 8
jge 0x4306ac
mov eax, dword [edx]
push 0
mov ecx, edx
call dword [eax + 0xd8]
lea ecx, [esi - 0x10]
call fcn.004307da
jmp 0x43073a
push 0x40
push 0
push str.Please_choose_a_server_
push dword [esi - 0xc]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x43073a
mov eax, dword [ecx]
call dword [eax + 0xc0]
mov ecx, dword [edi + 0x108]
cmp eax, 0xffff0001
mov eax, dword [ecx]
jne 0x430715
call dword [eax + 0xb8]
push 0x44e5d4
push dword [eax]
call fcn.004356f9
pop ecx
pop ecx
test eax, eax
je 0x43073a
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0xb8]
push 1
push 0
push 0
push dword [eax]
push str.OPEN
push dword [esi - 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x43073a
call dword [eax + 0xc0]
cmp eax, 0xffff0002
jne 0x43073a
push dword [edi + 0x108]
lea ecx, [esi - 0x10]
call fcn.00430740
jmp 0x43073a
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
ret 4
Function at 0x43104a
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push str..ini
mov edx, 0x200
lea ecx, [ebp - 0x610]
call fcn.0042ffd8
pop ecx
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [0x45c2e1], 0
je 0x4310d3
lea eax, [ebp - 0x610]
push 0x45c2e2
push eax
call fcn.00433672
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x610]
push eax
mov ecx, esi
call fcn.00430bf0
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00431117
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4310ea
cmp eax, 0xffffffff
je 0x4310ea
test al, 0x10
jne 0x4310ea
lea eax, [ebp - 0x610]
push eax
mov ecx, esi
call fcn.00431117
mov ecx, dword [esi + 0x2a8]
push str.Press_Start_to_play_Lineage.
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x268]
push 1
mov eax, dword [ecx]
call dword [eax + 0xd8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00432b05
leave
ret

Function at 0x431117
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xe0], eax
jmp 0x43114a
lea ebx, [esi + 0x280]
lea eax, [esi + 0x2bc]
mov dword [ebp - 0xd8], ebx
mov ebx, dword [ebp - 0xe0]
xor edi, edi
mov dword [ebp - 0xdc], eax
inc edi
push edi
lea eax, [ebp - 0x4c]
push str.Server_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x4c]
push ebx
push 0x188
push dword [ebp - 0xdc]
push str.Data
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x4311f9
push ebx
push 0x20
lea eax, [ebp - 0xd4]
push eax
push 0
push str.Name
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4311f9
inc dword [esi + 0x2b8]
mov ecx, dword [ebp - 0xd8]
lea edx, [ebp - 0xd4]
mov ecx, dword [ecx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0xd8]
push 1
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xcc]
add dword [ebp - 0xd8], 4
add dword [ebp - 0xdc], 0x188
cmp edi, 8
jl 0x43116a
cmp dword [esi + 0x2b8], 0
jle 0x431218
push dword [esi + 0x280]
mov ecx, esi
call fcn.00430740
jmp 0x431228
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret 4
Function at 0x43142b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x614
mov eax, dword [0x4590c0]
xor eax, esp
mov dword [esp + 0x610], eax
cmp byte [0x45c4ea], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4314eb
xor ebx, ebx
push ebx
call fcn.00437450
pop ecx
push edx
push eax
push 0x45c4eb
lea eax, [esp + 0x224]
push str._s_t_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push ebx
lea eax, [esp + 0x220]
push eax
mov ecx, esi
call fcn.00430bf0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0043168e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.00431519
test eax, eax
je 0x4314eb
mov ecx, esi
call fcn.0043194d
test al, al
jne 0x4314eb
mov ecx, dword [esi + 0x2a8]
mov edi, str.Failed_to_receive_ServerList_file__Try_later_
mov eax, dword [ecx]
push edi
call dword [eax + 0x2c]
push 0x30
push ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esi + 0x268]
push 1
mov eax, dword [ecx]
call dword [eax + 0xd8]
mov ecx, esi
call fcn.00431239
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0043104a
mov ecx, dword [esp + 0x61c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00432b05
mov esp, ebp
pop ebp
ret
Function at 0x431519
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [edi + 0x2a0]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], ebx
mov dword [ecx + 0x5b4], ebx
call fcn.00412d3b
mov ecx, dword [edi + 0x2a0]
mov eax, dword [edi + 0xefc]
mov dword [ecx + 0x5ac], eax
call fcn.00412d3b
mov ecx, dword [edi + 0x2a8]
push str.Checking_updated_files...
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea esi, [edi + 0x110c]
mov eax, dword [esi]
mov dword [esi + 4], eax
cmp dword [edi + 0xefc], ebx
jle 0x431677
inc ebx
mov eax, dword [edi + 0x1108]
add eax, dword [ebp - 0x420]
push ebx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x418]
push 0x4536c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push str.._update.local
push 0x104
push eax
push 0x44e5d4
lea eax, [ebp - 0x418]
push eax
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
call fcn.004333dc
pop ecx
test eax, eax
jne 0x431651
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x41c]
cmp ecx, eax
jae 0x431631
cmp dword [esi], ecx
ja 0x431631
mov edi, ecx
sub edi, dword [esi]
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x43161b
push ecx
mov ecx, esi
call fcn.00432322
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x431629
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
mov edi, dword [ebp - 0x424]
jmp 0x43164d
cmp eax, dword [esi + 8]
jne 0x43163e
push ecx
mov ecx, esi
call fcn.00432322
mov eax, dword [esi + 4]
test eax, eax
je 0x43164d
mov ecx, dword [ebp - 0x428]
mov dword [eax], ecx
add dword [esi + 4], 4
mov ecx, dword [edi + 0x2a0]
push ebx
call fcn.00421157
add dword [ebp - 0x420], 0x20c
inc ebx
lea eax, [ebx - 1]
cmp eax, dword [edi + 0xefc]
jl 0x43158f
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
sar eax, 2
pop ebx
call fcn.00432b05
leave
ret
Function at 0x43168e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, str.update
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
xor edi, edi
push edi
mov dword [ebp - 0x58], eax
push str.count
lea eax, [ebp - 0x14]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [ebx + 0xefc], eax
mov edx, 0x20c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432956
pop ecx
mov dword [ebx + 0x1108], eax
cmp dword [ebx + 0xefc], edi
jle 0x431755
mov esi, edi
mov eax, dword [ebx + 0x1108]
inc edi
mov dword [eax + esi + 0x208], edi
mov eax, dword [ebx + 0x1108]
push dword [eax + esi + 0x208]
lea eax, [ebp - 0x54]
push 0x4536c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx + 0x1108]
add esp, 0xc
add eax, esi
push dword [ebp - 0x58]
push 0x104
push eax
push 0x44e5d4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esi, 0x20c
cmp edi, dword [ebx + 0xefc]
jl 0x4316f6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret 4