joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8160
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
cmp edi, 0xffffffff
mov dword [esp + 8], esi
je 0x4f8292
cmp edi, dword [esi + 0x33a4]
jae 0x4f8292
mov eax, dword [esi + 4]
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [edi + edi*4]
push eax
shl ecx, 7
add esi, ecx
mov dword [esp + 0x18], eax
mov ebx, dword [esi + 0xe1c]
mov edx, dword [esi + 0xe14]
mov ebp, dword [esi + 0xe20]
mov ecx, dword [esi + 0xe18]
sub ebx, edx
sub ebp, ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x14]
push ebp
push ebx
push edx
mov edi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov ecx, dword [ecx + 0x51bc]
mov dword [esp + 0x20], eax
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
je 0x4f822a
call fcn.004941c0
test eax, eax
je 0x4f822a
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
mov ecx, dword [eax + 0x51bc]
push 0
push 0
push 0
lea edx, [esp + 0x38]
push 1
push edx
push edi
call fcn.004937d0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.004f8630
mov eax, dword [esi + 0xe18]
mov ecx, dword [esi + 0xe14]
mov esi, dword [esp + 0x14]
push 0xcc0020
push 0
push 0
push edi
push ebp
push ebx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x18]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x10]
push esi
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x4f8960
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4f8982
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb9c], eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4f9170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x523616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x5292a0
mov dword [esp + 0x2c], 4
call fcn.004fa1e0
mov eax, dword [esi + 0x1998]
lea edi, [esi + 0x1994]
push eax
mov byte [esp + 0x30], 3
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.004fab90
mov eax, dword [edi + 4]
push eax
call fcn.0051d79a
mov ebp, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
xor ebx, ebx
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0x10]
xor edi, edi
call ebp
mov eax, dword [0x59099c]
dec eax
mov dword [0x59099c], eax
jne 0x4f9201
mov edi, dword [0x5870c0]
mov dword [0x5870c0], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp edi, ebx
je 0x4f9218
push edi
call fcn.0051d79a
add esp, 4
lea ecx, [esi + 0x1114]
mov byte [esp + 0x2c], 2
call fcn.0049c680
lea ecx, [esi + 0x890]
mov byte [esp + 0x2c], 1
call fcn.0049c680
mov eax, dword [esi + 0x884]
lea edi, [esi + 0x880]
push eax
mov byte [esp + 0x30], bl
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004faf60
mov eax, dword [edi + 4]
push eax
call fcn.0051d79a
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0x10]
xor edi, edi
call ebp
mov eax, dword [0x590994]
dec eax
mov dword [0x590994], eax
jne 0x4f928b
mov edi, dword [0x590998]
mov dword [0x590998], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp edi, ebx
je 0x4f92a2
push edi
call fcn.0051d79a
add esp, 4
mov edi, dword [esi + 0x874]
mov ecx, dword [esi + 0x87c]
add esi, 0x870
cmp ecx, ebx
mov eax, dword [edi]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], eax
je 0x4f92ff
mov ecx, eax
cmp eax, ecx
jne 0x4f92ff
mov edx, dword [edi + 4]
mov ecx, esi
push edx
call fcn.004fb510
mov eax, dword [esi + 4]
mov ecx, dword [0x5870c0]
lea edx, [esp + 0x18]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ebx
push edx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [eax + 8], eax
call fcn.004baba0
jmp 0x4f9327
cmp eax, edi
je 0x4f9327
lea eax, [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004fab30
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004fb0e0
cmp dword [esp + 0x10], edi
jne 0x4f9303
mov eax, dword [esi + 4]
push eax
call fcn.0051d79a
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esp + 0x14]
xor esi, esi
call ebp
mov eax, dword [0x59099c]
dec eax
mov dword [0x59099c], eax
jne 0x4f935a
mov esi, dword [0x5870c0]
mov dword [0x5870c0], ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebx
je 0x4f9371
push esi
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4fbf90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5236b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.005056e0
lea ebp, [esi + 0xef0]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.004edba0
lea ecx, [esi + 0x2f74]
mov byte [esp + 0x18], 1
mov dword [esi + 0xef4], 0x529268
call fcn.004f2bd0
mov dword [esi + 0x3fa0], edi
mov dword [esi], 0x529300
mov dword [esi + 4], 0x5292ec
lea ecx, [esi + 0x3f3c]
mov dword [esi + 0x28], 0x5292e8
xor eax, eax
mov dword [esi + 0x30], 0x5292d8
mov dword [ebp], 0x5292c0
mov dword [esi + 0xef4], 0x5292a4
mov dword [esi + 0x3f64], edi
mov dword [esi + 0xf04], 0x78
mov dword [esi + 0xf08], 0xa
mov dword [esi + 0xef8], edi
mov word [esi + 0xf1c], di
mov word [esi + 0x1f1c], di
mov dword [esi + 0xf10], edi
mov dword [esi + 0xf14], 0xff0000
mov dword [esi + 0x2f6c], edi
mov dword [esi + 0x2f70], edi
mov dword [esi + 0x2f64], edi
mov dword [esi + 0x3f2c], edi
mov dword [esi + 0x2f68], edi
mov dword [esi + 0x3f34], edi
mov dword [esi + 0x3f38], 0xffffffff
mov dword [esi + 0x3f30], edi
mov dword [ecx], eax
xor edx, edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea eax, [esi + 0x3f4c]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
lea edx, [esi + 0x3f68]
mov eax, 0x64
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [esi + 0xf00], eax
mov dword [esi + 0xefc], eax
lea eax, [esi + 0x3fa8]
mov edx, eax
mov dword [esi + 0x3f5c], edi
mov dword [esi + 0xf0c], 0x808080
mov dword [esi + 0xf18], edi
mov dword [esi + 0x3f60], 5
mov dword [esi + 0x4c], 1
mov dword [esi + 0x3f78], 1
mov dword [esi + 0x3fa4], 2
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [eax], 0x10
lea eax, [esi + 0x3f7c]
mov dword [esi + 0x3f8c], edi
push eax
mov dword [esi + 0x3f90], edi
mov dword [esi + 0x3f9c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea edx, [esi + 0x3f94]
xor ecx, ecx
mov eax, esi
pop edi
mov dword [edx], ecx
pop esi
pop ebp
mov dword [edx + 4], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4fc190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5236f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0xef0]
mov dword [esi], 0x529300
mov dword [esi + 4], 0x5292ec
mov dword [esi + 0x28], 0x5292e8
mov dword [esi + 0x30], 0x5292d8
mov dword [edi], 0x5292c0
mov dword [esi + 0xef4], 0x5292a4
mov eax, dword [esi + 0x3f90]
mov dword [esp + 0x18], 1
test eax, eax
je 0x4fc225
mov eax, dword [esi + 0x3f9c]
test eax, eax
je 0x4fc20e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x3f9c], 0
mov eax, dword [esi + 0x3f90]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x3f90], 0
lea ecx, [esi + 0x2f74]
call fcn.004f2c90
mov ecx, esi
mov byte [esp + 0x18], 0
neg ecx
sbb ecx, ecx
and ecx, edi
call fcn.004edbd0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00505730
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4fd361
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2f6c]
test eax, eax
je 0x4fd374
call fcn.004fd500
mov eax, dword [esi + 0xefc]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jl 0x4fd477
mov ecx, dword [esi + 0xf00]
cmp eax, ecx
jg 0x4fd477
test ecx, ecx
je 0x4fd477
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov ecx, dword [esi + 0x2f68]
test ecx, ecx
mov dword [esi + 0xefc], eax
je 0x4fd419
lea edi, [esi + 0x2f74]
push eax
push 0x64
push 0
mov ecx, edi
call fcn.004f2cb0
mov eax, dword [esi + 0xefc]
mov ecx, dword [esi + 0xf00]
cmp eax, ecx
jge 0x4fd477
test edi, edi
je 0x4fd3ec
lea eax, [esi + 0x2f78]
jmp 0x4fd3ee
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fd477
test edi, edi
je 0x4fd410
mov ecx, dword [esi + 0x2f7c]
lea eax, [esi + 0x2f78]
push 5
jmp 0x4fd474
xor eax, eax
push 5
mov ecx, dword [eax + 4]
jmp 0x4fd474
mov edx, dword [esi + 0x3f2c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push 0
push 0x401
push edx
call edi
mov eax, dword [esi + 0xefc]
mov ecx, dword [esi + 0x3f2c]
push 0
push eax
push 0x402
push ecx
call edi
mov edx, dword [esi + 0xefc]
mov eax, dword [esi + 0xf00]
cmp edx, eax
jge 0x4fd477
mov eax, dword [esi + 0x3f2c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fd477
mov ecx, dword [esi + 0x3f2c]
push 5
push ecx
call ebx
cmp dword [esi + 0xefc], 0xffffffff
jne 0x4fd4be
mov eax, dword [esi + 0x2f68]
test eax, eax
je 0x4fd4b3
lea edx, [esi + 0x2f74]
test edx, edx
je 0x4fd4a6
lea eax, [esi + 0x2f78]
push 0
mov eax, dword [eax + 4]
push eax
call ebx
pop edi
pop esi
pop ebx
ret
xor eax, eax
push eax
mov eax, dword [eax + 4]
push eax
call ebx
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x3f2c]
push 0
push ecx
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4fd500
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2f7c]
test eax, eax
jne 0x4fd65e
mov eax, dword [esi + 0x3f2c]
test eax, eax
jne 0x4fd65e
push edi
call fcn.004fda30
test eax, eax
jne 0x4fd5e0
test esi, esi
mov dword [esi + 0x2f68], 1
je 0x4fd543
lea eax, [esi + 0xef4]
jmp 0x4fd545
xor eax, eax
mov edx, dword [esi + 0x2f74]
lea edi, [esi + 0x2f74]
push eax
mov ecx, edi
call dword [edx + 0x4c]
push 5
push 0x56e1d0
push 0x56e1d0
push 0x56c880
push 0x56e1d0
mov ecx, edi
call fcn.004f2d00
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 8]
push 1
push 0
push 0
push 2
push eax
push ecx
push 0x56c868
mov ecx, edi
call fcn.004ff4b0
push 0
push 0x64
push 0
mov ecx, edi
call fcn.004f2cb0
test edi, edi
je 0x4fd5c6
mov edx, dword [esi + 0x2f7c]
lea eax, [esi + 0x2f78]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x90]
pop edi
pop esi
ret
xor eax, eax
push eax
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x90]
pop edi
pop esi
ret
mov ecx, dword [esi + 8]
mov dword [esi + 0x2f68], 0
mov eax, dword [0x58e22c]
push 0
push eax
push 2
push ecx
push 0
push 0
push 0
push 0
push 0x44000001
push 0x56c868
push 0x56c844
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push 0
push 0x401
push eax
mov dword [esi + 0x3f2c], eax
call edi
mov edx, dword [esi + 0x3f2c]
push 0
push 0
push 0x409
push edx
call edi
mov eax, dword [esi + 0x3f2c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x90]
pop edi
pop esi
ret
Function at 0x501870
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.005021d0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5018ca
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x5018a6
push 2
call edi
shr eax, 8
test al, al
je 0x5018ca
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [esi + 8]
je 0x50194c
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x110], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0x10c], 0xffffffff
mov dword [esi + 0x114], 0
je 0x5018fb
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1f4], 4
call dword [eax + 0x34]
mov eax, dword [esi + 0xec]
test eax, eax
je 0x501946
mov ecx, dword [esi + 8]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.00506650
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.005065e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x12c]
push eax
push 0xffffffffffffffff
push 0x37ea
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
add esp, 8
ret
Function at 0x505030
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
lea esi, [ecx + 0x6d8]
xor edi, edi
cmp word [esi], di
jne 0x50504e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
push edi
push esi
call fcn.0043f630
add esp, 8
test eax, eax
jne 0x505064
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push edi
push 0x20
push 3
push edi
push 1
push SysReAllocStringLen
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x505192
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x50519e
cmp ebp, 0xf4240
ja 0x50519e
mov dword [esp + 0x10], edi
lea edi, [ebp + 2]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
je 0x5050e0
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, 0x18
jbe 0x505192
mov ecx, 6
mov esi, ebx
lea edi, [esp + 0x1c]
add eax, 0xffffffe8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
mov ebp, esi
imul ebp, dword [esp + 0x28]
cmp ebp, eax
ja 0x505192
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetDC]
mov edx, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x48], eax
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x40]
push 0
push ecx
neg esi
push edx
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x54], esi
mov word [esp + 0x58], 1
mov word [esp + 0x5a], 0x20
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x18], eax
je 0x505192
mov edi, dword [esp + 0x14]
test edi, edi
je 0x505192
mov ecx, ebp
lea esi, [ebx + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
Function at 0x508b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x508b7b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x508c7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x52aa00]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x52aa00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x52aa00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x52aa00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x52aa00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x52aa00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x52aa00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x52aa00]
xor eax, edx
inc ecx
dec edi
jne 0x508b96
pop edi
test esi, esi
je 0x508ca0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x52aa00]
xor eax, edx
inc ecx
dec esi
jne 0x508c82
pop esi
pop ebx
not eax
ret

Function at 0x509660
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x5096a1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x509696
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x5096b4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x50a680
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x50a719
cmp dword [edi + 4], 0xffffffff
jne 0x50a719
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x53abc8
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
add esp, 8
cmp esi, 1
jne 0x50a6df
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x50a6df
pop edi
pop esi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push ebx
call fcn.005093d0
add esp, 0x10
test eax, eax
jne 0x50a702
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.00509960
add esp, 4
mov dword [edi], eax
mov eax, dword [0x5909b0]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc

Function at 0x50aba0
Capabilities:
Create directory

Disassembly:
sub esp, 0x410
push edi
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x50ac46
mov ax, word [edi]
test ax, ax
je 0x50ac46
push ebx
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x50abd4
cmp ax, 0x5c
jne 0x50abd6
mov esi, ecx
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x50abc8
mov ebx, dword [esp + 0x420]
cmp esi, edi
je 0x50ac13
sub esi, edi
lea eax, [esp + 0xc]
sar esi, 1
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea ecx, [esp + 0x18]
mov word [esp + esi*2 + 0x18], 0
push ecx
push ebx
call fcn.0050aba0
add esp, 0x14
lea edx, [esp + 0x214]
push ebx
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0x21c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea ecx, [esp + 0x214]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebx
pop edi
add esp, 0x410
ret
Function at 0x50b2f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52387b
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.0051d7f0
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x56b020
mov edi, ecx
push esi
call fcn.0043fb20
add esp, 8
test eax, eax
je 0x50b452
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.0043fb60
add esp, 0x10
test eax, eax
je 0x50b3eb
lea ecx, [esp + 0x220]
push 0x5586c0
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x50b3a2
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.0043fb60
add esp, 0x10
cmp word [esp + 0x220], 0
jne 0x50b3a2
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.0043fb60
add esp, 0x10
lea ecx, [esp + 0x220]
push ecx
push 0x53a4a4
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.004bf470
mov ecx, dword [esp + 0x126c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x126c
ret 4
lea ecx, [esp + 8]
call fcn.004ada10
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.004adae0
mov esi, eax
test esi, esi
je 0x50b439
push esi
lea ecx, [esp + 0xc]
call fcn.004adbe0
test eax, eax
je 0x50b42f
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004adc20
push esi
lea ecx, [esp + 0xc]
call fcn.004adb50
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.004ada60
jmp 0x50b3c7
push 0x53cc98
push esi
call fcn.0043fb20
add esp, 8
test eax, eax
push esi
je 0x50b3aa
push 0x824
push edi
push 0x56e1d0
push 0x5624bc
push 0x562880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x50b3c7