joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ef76
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x70903c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00471200
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004c97a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
fld1
fstp dword [eax + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0049fbd0
push 1
mov eax, dword [0x6e3500]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0049fb10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4a3450
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65f12b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x70903c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x10]
fstp dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004a3510
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004a3610
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0b50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
call fcn.0046d2a0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004d0ab0
push 0x6828a8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00616a76
add esp, 8
mov dword [ebp - 4], eax
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
fld dword [ebp - 0x20]
sub esp, 8
fstp qword [esp]
fld dword [ebp - 0x24]
sub esp, 8
fstp qword [esp]
fld dword [ebp - 0x28]
sub esp, 8
fstp qword [esp]
push str.CenterPos__f__f__f_n
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00564aa0
add esp, 0x24
fld dword [ebp - 0x10]
sub esp, 8
fstp qword [esp]
fld dword [ebp - 0xc]
sub esp, 8
fstp qword [esp]
fld dword [ebp - 8]
sub esp, 8
fstp qword [esp]
push str.CameraSetting__f__f__f_n
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00564aa0
add esp, 0x24
fld dword [ebp - 0x14]
sub esp, 8
fstp qword [esp]
fld dword [ebp - 0x18]
sub esp, 8
fstp qword [esp]
fld dword [ebp - 0x1c]
sub esp, 8
fstp qword [esp]
push str.CmrPos__f__f__f_n
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00564aa0
add esp, 0x24
fld dword [ebp - 0x14]
call fcn.00613e80
push eax
fld dword [ebp - 0x18]
call fcn.00613e80
push eax
fld dword [ebp - 0x1c]
call fcn.00613e80
push eax
fld dword [ebp - 0x10]
call fcn.00613e80
push eax
fld dword [ebp - 0xc]
call fcn.00613e80
push eax
fld dword [ebp - 8]
call fcn.00613e80
push eax
fld dword [ebp - 0x20]
call fcn.00613e80
push eax
fld dword [ebp - 0x24]
call fcn.00613e80
push eax
fld dword [ebp - 0x28]
call fcn.00613e80
push eax
push str.Line__x__dy__dz__ddistance__dpitch__drot__dup__dview__dcross__d__n
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00564aa0
add esp, 0x30
mov ecx, dword [ebp - 4]
push ecx
call fcn.0061705d
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x4d5c30
Capabilities:
Hide graphical window

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

Function at 0x4d9110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x683f9c
push 0x683fa0
call fcn.00616a76
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4d9138
xor al, al
jmp 0x4d9163
mov eax, dword [ebp - 4]
push eax
push 0xc8
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x2628
push ecx
call fcn.006185a3
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0061705d
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d9170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2624], 0
jne 0x4d9187
jmp 0x4d9200
push 0x683fb0
call dword [sym.imp.python22.dll_Py_BuildValue]
add esp, 4
push eax
push str.OnSaveInterfaceStatus
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2624]
push edx
call fcn.00592400
add esp, 0xc
push 0x683fcc
push str.interface.cfg
call fcn.00616a76
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4d91d7
push str.Cannot_open_interface.cfg
call fcn.00587390
add esp, 4
jmp 0x4d9200
mov eax, dword [ebp - 4]
push eax
push 0xc8
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x2628
push ecx
call fcn.00618dcc
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0061705d
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4db370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x70903c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
lea eax, [ebp - 0x48]
push eax
push 3
mov ecx, dword [ebp - 0x64]
call fcn.00566900
movzx ecx, al
test ecx, ecx
jne 0x4db3b8
mov al, 1
jmp 0x4db506
movzx esi, word [ebp - 0x47]
mov ecx, dword [ebp - 0x64]
call fcn.00566810
cmp esi, eax
jle 0x4db3cf
mov al, 1
jmp 0x4db506
lea edx, [ebp - 0x24]
push edx
push 7
mov ecx, dword [ebp - 0x64]
call fcn.00566910
movzx eax, al
test eax, eax
jne 0x4db3eb
xor al, al
jmp 0x4db506
movzx ecx, word [ebp - 0x23]
sub ecx, 7
mov word [ebp - 0x14], cx
mov edx, dword [ebp - 0x21]
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x14]
push eax
call fcn.0061278d
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.00566910
movzx ecx, al
test ecx, ecx
jne 0x4db443
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00616e52
add esp, 4
xor al, al
jmp 0x4db506
mov ecx, 0x714acc
call fcn.004171b0
push eax
call fcn.005876a0
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005015a0
add esp, 4
push eax
lea ecx, [ebp - 0x44]
call fcn.00417170
mov dword [ebp - 4], 0
push 0x684484
lea ecx, [ebp - 0x44]
call fcn.004171b0
push eax
call fcn.00616a76
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4db4bb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.00616e52
add esp, 4
mov byte [ebp - 0x55], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.005d2b30
mov al, byte [ebp - 0x55]
jmp 0x4db506
mov ecx, dword [ebp - 0x10]
push ecx
push 1
movzx edx, word [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00618dcc
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0061705d
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00616e52
add esp, 4
mov byte [ebp - 0x5d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.005d2b30
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00613e6e
mov esp, ebp
pop ebp
ret
Function at 0x4dba50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.DevIL.dll_ilGenImages]
mov ecx, dword [ebp - 4]
push ecx
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 edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.DevIL.dll_ilLoad]
movzx eax, al
test eax, eax
jne 0x4dbaa8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 2
xor al, al
jmp 0x4dbbba
push 0xde4
call dword [sym.imp.DevIL.dll_ilGetInteger]
cmp eax, 0x40
je 0x4dbac8
mov edx, dword [ebp + 0xc]
mov dword [edx], 3
xor al, al
jmp 0x4dbbba
push 0xde5
call dword [sym.imp.DevIL.dll_ilGetInteger]
cmp eax, 0x80
je 0x4dbaea
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
xor al, al
jmp 0x4dbbba
lea ecx, [ebp - 4]
push ecx
push 1
call dword [sym.imp.DevIL.dll_ilDeleteImages]
call dword [sym.imp.DevIL.dll_ilShutDown]
push 0x6844b8
mov edx, dword [ebp + 8]
push edx
call fcn.00616a76
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4dbb1f
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00618855
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.0061875d
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3a0], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00618855
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3a0]
push ecx
call fcn.0061278d
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x3a8], eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3a0]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3a8]
push edx
call fcn.006185a3
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0061705d
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0058c950
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3a4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4e4e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.004e5ca0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.0049ff40
mov ecx, eax
call fcn.00459540
movzx ecx, al
test ecx, ecx
je 0x4e4e52
jmp 0x4e4f85
lea ecx, [ebp - 8]
call fcn.004a0510
add eax, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.004e44b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e4f10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004489a0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00448950
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00447f90
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004453d0
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0044ed30
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00453f50
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00453ef0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00447040
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00447070
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00447130
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov eax, dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [edx + 0x84], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [edx + 0x68], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x6c], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x70], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x78], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x20]
mov byte [edx + 0x7c], cl
mov esp, ebp
pop ebp
ret 4
Function at 0x4e7ba0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66169b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x70903c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4e7d05
lea ecx, [ebp - 0x25c]
call fcn.00416290
mov dword [ebp - 4], 0
lea eax, [ebp - 0x25c]
push eax
call fcn.00587b90
add esp, 4
push 0x224
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.006135b0
add esp, 0xc
mov dword [ebp - 0x23c], 0x224
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x4e7ce9
lea ecx, [ebp - 0x25c]
call fcn.004171b0
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004e7b40
add esp, 8
test eax, eax
je 0x4e7cae
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00449ef0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x25d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.005d2b30
mov al, byte [ebp - 0x25d]
jmp 0x4e7d07
push 0x224
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.006135b0
add esp, 0xc
mov dword [ebp - 0x23c], 0x224
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0x240], eax
jmp 0x4e7c3d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.005d2b30
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613e6e
mov esp, ebp
pop ebp
ret
Function at 0x501e50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x501fd8
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00501ce0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00501db0
push 0
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00501670
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00501670
push 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x18]
call edx
test eax, eax
jne 0x501f97
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00501ce0
push 0
push 0x1000000
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x14]
call eax
test eax, eax
jge 0x501f52
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00502e70
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x501f92
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 0x8000
jne 0x501f90
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
and edx, 0x8000
jne 0x501f90
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
je 0x501f92
jmp 0x501f97
jmp 0x501ee1
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 1
je 0x501fa5
jmp 0x501fba
mov edx, dword [ebp + 0x1c]
push edx
push 0x514
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00502420
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x503140
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662188
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x70903c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
jmp 0x50317a
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x6e6574]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x503212
push str.lib_
lea ecx, [ebp - 0x30]
call fcn.00417170
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x6e6574]
push edx
lea ecx, [ebp - 0x30]
call fcn.00416ed0
push 0
lea ecx, [ebp - 0x30]
call fcn.004171b0
push eax
call fcn.00616b16
add esp, 8
test eax, eax
je 0x5031e6
mov byte [ebp - 0x31], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005d2b30
mov al, byte [ebp - 0x31]
jmp 0x503214
lea ecx, [ebp - 0x30]
call fcn.004171b0
push eax
lea ecx, [ebp - 0x30]
call fcn.004171b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005d2b30
jmp 0x503171
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613e6e
mov esp, ebp
pop ebp
ret
Function at 0x503240
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x70903c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx edx, byte [ebp + eax - 0x211]
cmp edx, 0x5c
je 0x503294
push 0x689630
lea eax, [ebp - 0x210]
push eax
call fcn.00619010
add esp, 8
push str.metin2client.dat
lea ecx, [ebp - 0x210]
push ecx
call fcn.00619010
add esp, 8
call fcn.004e1b50
push eax
lea edx, [ebp - 0x108]
push edx
call fcn.00619000
add esp, 8
push 0x689648
call fcn.00614270
add esp, 4
push eax
push 0x689650
lea eax, [ebp - 0x108]
push eax
call fcn.006191ea
add esp, 0xc
test eax, eax
jne 0x503309
call fcn.004e1b50
mov esi, eax
push str.locale_
call fcn.00614270
add esp, 4
add esi, eax
push esi
lea ecx, [ebp - 0x108]
push ecx
call fcn.00619000
add esp, 8
lea edx, [ebp - 0x210]
push edx
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x410]
test eax, eax
jne 0x503356
push 0x1ff
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x714d2c]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
movsx ecx, byte [ebp - 0x410]
test ecx, ecx
jne 0x503385
lea edx, [ebp - 0x210]
push edx
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x689660
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x410]
test edx, edx
jne 0x5033a3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.00619000
add esp, 8
lea edx, [ebp + 8]
push edx
mov ecx, 0x714d30
call fcn.004a8680
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.00449ef0
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00613e6e
mov esp, ebp
pop ebp
ret
Function at 0x50c330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6625e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x3f8]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [0x7123e0]
call fcn.00524970
test eax, eax
je 0x50c44b
mov edx, dword [edi + 0x3fc]
mov ecx, dword [esp + 0xc]
push edx
call fcn.00525580
mov esi, dword [eax + 0x2c]
sub esi, dword [eax + 0x28]
lea ecx, [eax + 0x1c]
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x50c44b
push 0
call fcn.0050bc80
add eax, 4
cmp dword [eax + 0x18], 0x10
jb 0x50c3c8
mov edx, dword [eax + 4]
jmp 0x50c3cb
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50c3e5
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00417040
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x3c], 0
call fcn.004f9520
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x28], 0x10
jae 0x50c41d
lea eax, [esp + 0x14]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push ecx
fstp dword [esp]
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
mov ecx, edi
call fcn.005b21d9
cmp dword [esp + 0x28], 0x10
jb 0x50c44b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00613a18
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00613e6e
add esp, 0x30
ret 0xc