joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689b00
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x763480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.005df630
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.005df630
add esp, 8
lea ecx, [esi + 0xc]
call fcn.004562e0
test byte [ebp + 8], 1
je 0x4df3c8
push 0x40
push esi
call fcn.005df40c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4e4740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 0x40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 0xc

Function at 0x4e4a10
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.00556610

Function at 0x4e6b80
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x69da04
push str.interface.cfg
mov edi, ecx
call fcn.00634963
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e6ba1
pop edi
xor al, al
pop esi
ret
push esi
push 0xc8
lea eax, [edi + 0x2660]
push 1
push eax
call fcn.0063a10b
push esi
call fcn.006346f4
add esp, 0x14
mov al, 1
pop edi
pop esi
ret

Function at 0x4e6e60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x265c], 0
je 0x4e6ecf
push edi
push 0x6a05e4
call dword [sym.imp.python27.dll_Py_BuildValue]
push eax
push str.OnSaveInterfaceStatus
push dword [esi + 0x265c]
call fcn.005d50b0
push 0x69da0c
push str.interface.cfg
call fcn.00634963
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4e6eb1
push str.Cannot_open_interface.cfg
call fcn.0051ef80
add esp, 4
pop edi
pop esi
ret
push edi
push 0xc8
lea eax, [esi + 0x2660]
push 1
push eax
call fcn.0063a6d6
push edi
call fcn.006346f4
add esp, 0x14
pop edi
pop esi
ret
Function at 0x4e9060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
mov esi, ecx
push eax
push 3
call fcn.00538e90
test al, al
je 0x4e9187
mov ecx, esi
call fcn.00538de0
movzx ecx, word [ebp - 0x1f]
cmp ecx, eax
jg 0x4e9187
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push 7
call fcn.00539070
test al, al
jne 0x4e90b9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2b]
mov ecx, dword [ebp - 0x29]
add eax, 0xfffffff9
push ebx
movzx ebx, ax
push edi
push ebx
mov dword [ebp - 0x24], ecx
call fcn.005df60e
add esp, 4
mov edi, eax
mov ecx, esi
push edi
push ebx
call fcn.00539070
test al, al
jne 0x4e90fe
push edi
call fcn.005df44b
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret
cmp dword [0x752540], 0x10
mov eax, 0x75252c
cmovae eax, dword [0x75252c]
push eax
call fcn.0051f650
push dword [ebp - 0x24]
call fcn.00506a50
add esp, 8
lea ecx, [ebp - 0x1c]
push eax
call fcn.00478d30
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0x69da0c
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00634963
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e914e
xor bl, bl
jmp 0x4e9163
push esi
push 1
push ebx
push edi
call fcn.0063a6d6
push esi
call fcn.006346f4
add esp, 0x14
mov bl, 1
push edi
call fcn.005df44b
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00455610
pop edi
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005df41a
mov esp, ebp
pop ebp
ret
Function at 0x4e9830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push 1
call dword [sym.imp.DevIL.dll_ilGenImages]
push dword [ebp - 4]
call dword [sym.imp.DevIL.dll_ilBindImage]
push 0x600
call dword [sym.imp.DevIL.dll_ilEnable]
push 0x602
call dword [sym.imp.DevIL.dll_ilOriginFunc]
mov edi, dword [ebp + 8]
push edi
push 0
call dword [sym.imp.DevIL.dll_ilLoad]
test al, al
jne 0x4e9886
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [eax], 2
xor al, al
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [sym.imp.DevIL.dll_ilGetInteger]
push 0xde4
call esi
cmp eax, 0x40
je 0x4e98ad
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov dword [eax], 3
xor al, al
mov esp, ebp
pop ebp
ret 8
push 0xde5
call esi
cmp eax, 0x80
je 0x4e98cf
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov dword [eax], 4
xor al, al
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.DevIL.dll_ilDeleteImages]
call dword [sym.imp.DevIL.dll_ilShutDown]
push 0x69da04
push edi
call fcn.00634963
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e98fe
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 2
push 2
push 0
push esi
call fcn.0063a49c
push esi
call fcn.0063b9c1
push 0
push 0
push esi
mov dword [ebx + 0x380], eax
call fcn.0063a49c
push dword [ebx + 0x380]
call fcn.005df60e
push esi
push 1
push dword [ebx + 0x380]
mov dword [ebx + 0x388], eax
push eax
call fcn.0063a10b
push esi
call fcn.006346f4
push edi
call fcn.00525980
add esp, 0x38
mov dword [ebx + 0x384], eax
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ea470
Capabilities:
Access peb ldr_data
Create directory
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a0ec
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x763480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [0x777be4], ebx
lea esi, [ebx + 4]
mov dword [ebx], vtable.CGuildMarkManager.0
mov dword [ebp - 0x10], esi
push 0x18
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005df3dc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [ebx + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005df3dc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [ebx + 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005df3dc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0xf
mov byte [ebx + 0x1c], 0
lea edi, [ebx + 0x34]
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], edi
push 0x24
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.005df3dc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
push str.mark
mov byte [ebp - 4], 5
call fcn.0063e6c0
xor ebx, ebx
add esp, 0x14
mov dword [ebp - 0x10], ebx
xor edi, edi
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004656e0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x28], xmm0
cmp byte [eax + 0xd], 0
jne 0x4ea5bb
cmp edi, dword [eax + 0x10]
jae 0x4ea608
cmp dword [esi + 4], 0xccccccc
je 0x4ea62f
mov edi, dword [esi]
mov dword [ebp - 0x1c], esi
push 0x14
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
call fcn.005df3dc
add esp, 4
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [eax + 0x10], ebx
push eax
push dword [ebp - 0x24]
mov dword [eax], edi
push dword [ebp - 0x28]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], 0
call fcn.004653a0
inc ebx
mov dword [ebp - 0x10], ebx
mov edi, ebx
cmp ebx, 0x1900
jb 0x4ea595
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004655b0
int3

Function at 0x4ecd60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004edc80
Function at 0x4ed220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [eax + 0x18]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004656e0
mov edi, dword [ebp - 8]
cmp byte [edi + 0xd], 0
jne 0x4ed3e5
mov eax, dword [esi]
cmp eax, dword [edi + 0x10]
jb 0x4ed3e5
cmp dword [ebx], edi
je 0x4ed3e5
mov ecx, dword [ebp - 4]
add edi, 0x18
push edi
call fcn.004ed850
mov ebx, eax
test ebx, ebx
je 0x4ed343
push dword [esi + 8]
mov ecx, ebx
call fcn.0045d610
push 0
push dword [esi + 0xc]
mov ecx, ebx
call fcn.0045da70
push dword [esi + 0x10]
mov ecx, ebx
call fcn.0045d830
push dword [esi + 0x14]
mov ecx, ebx
call fcn.0045d5f0
push dword [esi + 0x18]
mov ecx, ebx
call fcn.0045d7e0
push dword [esi + 0x1c]
mov ecx, ebx
call fcn.0045dab0
movzx eax, byte [esi + 0x38]
mov ecx, ebx
push eax
push dword [esi + 4]
call fcn.0045d800
lea eax, [esi + 0x40]
mov ecx, ebx
push eax
call fcn.00467480
push dword [esi + 0x20]
mov ecx, ebx
call fcn.00469ae0
push dword [esi + 0x24]
mov ecx, ebx
call fcn.00469a80
push dword [esi + 0x2c]
mov ecx, ebx
push dword [esi + 0x28]
call fcn.00460e40
movzx eax, byte [esi + 0x30]
mov ecx, ebx
push eax
call fcn.00461310
push dword [esi + 0x3c]
mov ecx, ebx
call fcn.00461420
movzx eax, byte [esi + 0x31]
mov ecx, ebx
push eax
call fcn.00461460
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4ed320
push eax
mov ecx, ebx
call fcn.00461250
movzx eax, byte [esi + 0x4c]
mov ecx, ebx
push eax
call fcn.004613a0
movzx eax, byte [esi + 0x4d]
mov ecx, ebx
push eax
call fcn.004613b0
lea eax, [esi + 0x50]
mov ecx, ebx
push eax
call fcn.0045d870
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xa0], eax
movzx eax, byte [esi + 0x38]
mov byte [edi + 0xa4], al
mov eax, dword [esi + 0x20]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x8c], ecx
mov ecx, 0x37
mov dword [edi + 0x88], eax
movzx eax, byte [esi + 0x30]
mov byte [edi + 0x90], al
movzx eax, byte [esi + 0x31]
mov byte [edi + 0x80], al
mov eax, dword [esi + 0x48]
mov dword [edi + 0xa8], eax
movzx eax, byte [esi + 0x4c]
mov byte [edi + 0xac], al
movzx eax, byte [esi + 0x4d]
add esi, 0x50
mov byte [edi + 0xad], al
add edi, 0xb0
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4edc80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi + 0x20]
mov byte [edi + 0x20], al
lea ecx, [edi + 0x18]
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
lea eax, [esi + 0x18]
push eax
call fcn.00455240
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], ecx
movzx eax, byte [esi + 0x90]
mov byte [edi + 0x90], al
movzx eax, byte [esi + 0x80]
mov byte [edi + 0x80], al
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0xa0], eax
movzx eax, byte [esi + 0xa4]
mov byte [edi + 0xa4], al
mov eax, dword [esi + 0xa8]
mov dword [edi + 0xa8], eax
movzx eax, byte [esi + 0xac]
mov byte [edi + 0xac], al
movzx eax, byte [esi + 0xad]
mov byte [edi + 0xad], al
cmp edi, esi
je 0x4eddc9
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4eddbe
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00457e40
mov eax, dword [esi + 0x94]
mov ecx, 0x37
mov dword [edi + 0x94], eax
add esi, 0xb0
add edi, 0xb0
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4ffc80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68aab0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x763480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x40]
call fcn.00455190
push 0xdc
lea eax, [edi + 0x50]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov word [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x48], 0
mov word [edi + 0x4c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.006279a0
add esp, 0xc
lea ecx, [edi + 0x40]
call fcn.004551b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x507ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x38]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0
push 0
mov dword [ebp - 0x44], eax
mov eax, dword [ecx]
push edi
push ecx
mov dword [ebp - 0x38], 0
call dword [eax + 0x34]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
js 0x508047
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.005070f0
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00507060
push 0
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.005071a0
push 0
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.005071a0
mov ecx, dword [ebp - 0x44]
push 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x38]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x50801b
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [eax]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.005070f0
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x14]
push 0
push 0x1000000
push 0
mov ecx, dword [eax]
push edi
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jns 0x507fd8
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [edi]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [ecx + 0x44]
test eax, eax
js 0x507fcd
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0xcc0020
push dword [esi + 0xc]
push dword [esi + 8]
push 0
push 0
push dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x40]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0x3c]
mov eax, dword [edi]
push edi
call dword [eax + 0x68]
push dword [ebp - 0x40]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [ebp + 0x14], 0
je 0x507fff
push 1
call ebx
bt ax, 0xf
jb 0x508018
push 0x1b
call ebx
bt ax, 0xf
jb 0x508018
push 0x20
call ebx
bt ax, 0xf
jb 0x508018
mov eax, dword [ebp - 0x38]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x507f50
mov ebx, dword [ebp - 0x48]
sub dword [ebp + 0x18], 1
jne 0x508031
push dword [ebp + 0x1c]
mov ecx, esi
push 0x514
push edi
call fcn.005079f0
mov ecx, dword [ebp - 0x44]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005df41a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x508600
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push edi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x105], 0x5c
je 0x50865b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x508648
mov ax, word [0x6b5bb0]
mov word [edi], ax
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x508662
mov eax, dword [str.metin2client.dat]
mov dword [ecx], eax
mov eax, dword [0x6b5c10]
mov dword [ecx + 4], eax
mov eax, dword [0x6b5c14]
mov dword [ecx + 8], eax
mov eax, dword [0x6b5c18]
mov dword [ecx + 0xc], eax
mov al, byte [0x6b5c1c]
mov byte [ecx + 0x10], al
call fcn.004eaf60
lea edx, [ebp - 0x404]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x5086a0
push 7
lea eax, [ebp - 0x404]
push str.locale_
push eax
call fcn.00634de3
add esp, 0xc
test eax, eax
jne 0x5086e4
call fcn.004eaf60
lea edx, [ebp - 0x404]
lea ecx, [eax + 7]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x5086d7
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
lea eax, [ebp - 0x404]
push eax
call edi
cmp byte [ebp - 0x304], 0
jne 0x508771
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 8]
push dword [0x77a184]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x304], 0
jne 0x508771
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
push 0x6b5c28
call edi
cmp byte [ebp - 0x304], 0
jne 0x508771
lea ecx, [ebp - 0x304]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x508764
lea eax, [ebp + 8]
mov ecx, 0x77a188
push eax
call fcn.00508490
lea ecx, [ebp - 0x304]
mov esi, eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x508790
sub ecx, edx
lea eax, [ebp - 0x304]
push ecx
push eax
mov ecx, esi
call fcn.00457e40
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005df41a
mov esp, ebp
pop ebp
ret
Function at 0x50ace0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68824d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6b5e78]
mov esi, 0xf
movq xmm0, qword [str.MultiBoxBlock]
mov dword [ebp - 0x20], eax
mov al, byte [0x6b5e7c]
mov dword [ebp - 0x14], esi
lea edx, [esi - 2]
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0
mov bl, byte [ebp + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov byte [eax + edx], bl
mov byte [eax + edx + 1], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x50ad83
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x50ad83
xor bl, bl
jmp 0x50ada3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x50add3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50adc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50adf1
push edx
push ecx
call fcn.005df40c
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret
call fcn.00631407
int3
Function at 0x50b740
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x77b6fc]
test eax, eax
je 0x50b784
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x77b6fc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50b76e
push dword [0x77b6fc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x77b700]
mov dword [0x77b6fc], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x51f650
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x51f6f9
cmp byte [esi], 0
je 0x51f6f9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f670
sub ecx, edx
cmp ecx, 3
jb 0x51f687
cmp byte [esi + 1], 0x3a
jne 0x51f687
add esi, 3
mov ecx, esi
mov dword [ebp + 8], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51f690
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.005df60e
mov cl, byte [esi]
add esp, 4
mov edi, eax
test cl, cl
je 0x51f6ef
push ebx
xor ebx, ebx
mov eax, esi
cmp cl, 0x2f
je 0x51f6c0
cmp cl, 0x5c
jne 0x51f6e2
push dword [ebp - 4]
push 0
push edi
call fcn.006279a0
push ebx
push esi
push edi
call fcn.00639040
add esp, 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 1]
inc eax
inc ebx
mov dword [ebp + 8], eax
test cl, cl
jne 0x51f6b6
pop ebx
push edi
call fcn.005df44b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret