joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f7ad0
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 0x4f7c02
cmp edi, dword [esi + 0x33a4]
jae 0x4f7c02
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 0x4f7b9a
call fcn.00493c90
test eax, eax
je 0x4f7b9a
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.004932a0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.004f7fa0
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 0x4f82d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4f82f2
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 0x4f8ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x522ff6
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], 0x529280
mov dword [esp + 0x2c], 4
call fcn.004f9b50
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.004fa580
mov eax, dword [edi + 4]
push eax
call fcn.0051d19a
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 [0x58f914]
dec eax
mov dword [0x58f914], eax
jne 0x4f8b71
mov edi, dword [0x586038]
mov dword [0x586038], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp edi, ebx
je 0x4f8b88
push edi
call fcn.0051d19a
add esp, 4
lea ecx, [esi + 0x1114]
mov byte [esp + 0x2c], 2
call fcn.0049bff0
lea ecx, [esi + 0x890]
mov byte [esp + 0x2c], 1
call fcn.0049bff0
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.004fa950
mov eax, dword [edi + 4]
push eax
call fcn.0051d19a
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 [0x58f90c]
dec eax
mov dword [0x58f90c], eax
jne 0x4f8bfb
mov edi, dword [0x58f910]
mov dword [0x58f910], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp edi, ebx
je 0x4f8c12
push edi
call fcn.0051d19a
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 0x4f8c6f
mov ecx, eax
cmp eax, ecx
jne 0x4f8c6f
mov edx, dword [edi + 4]
mov ecx, esi
push edx
call fcn.004faf00
mov eax, dword [esi + 4]
mov ecx, dword [0x586038]
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.0049e660
jmp 0x4f8c97
cmp eax, edi
je 0x4f8c97
lea eax, [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004fa520
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004faad0
cmp dword [esp + 0x10], edi
jne 0x4f8c73
mov eax, dword [esi + 4]
push eax
call fcn.0051d19a
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 [0x58f914]
dec eax
mov dword [0x58f914], eax
jne 0x4f8cca
mov esi, dword [0x586038]
mov dword [0x586038], ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebx
je 0x4f8ce1
push esi
call fcn.0051d19a
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 0x4f9d90
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x4f9dea
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f9dea
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f9dea
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4f9df0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebx
sete al
ret

Function at 0x4fb980
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x523096
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.005050d0
lea ebp, [esi + 0xef0]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.004ed4d0
lea ecx, [esi + 0x2f74]
mov byte [esp + 0x18], 1
mov dword [esi + 0xef4], 0x529248
call fcn.004f2540
mov dword [esi + 0x3fa0], edi
mov dword [esi], 0x5292e0
mov dword [esi + 4], 0x5292cc
lea ecx, [esi + 0x3f3c]
mov dword [esi + 0x28], 0x5292c8
xor eax, eax
mov dword [esi + 0x30], 0x5292b8
mov dword [ebp], 0x5292a0
mov dword [esi + 0xef4], 0x529284
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 0x4fbb80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5230d1
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], 0x5292e0
mov dword [esi + 4], 0x5292cc
mov dword [esi + 0x28], 0x5292c8
mov dword [esi + 0x30], 0x5292b8
mov dword [edi], 0x5292a0
mov dword [esi + 0xef4], 0x529284
mov eax, dword [esi + 0x3f90]
mov dword [esp + 0x18], 1
test eax, eax
je 0x4fbc15
mov eax, dword [esi + 0x3f9c]
test eax, eax
je 0x4fbbfe
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.004f2600
mov ecx, esi
mov byte [esp + 0x18], 0
neg ecx
sbb ecx, ecx
and ecx, edi
call fcn.004ed500
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00505120
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4fcd51
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2f6c]
test eax, eax
je 0x4fcd64
call fcn.004fcef0
mov eax, dword [esi + 0xefc]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jl 0x4fce67
mov ecx, dword [esi + 0xf00]
cmp eax, ecx
jg 0x4fce67
test ecx, ecx
je 0x4fce67
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 0x4fce09
lea edi, [esi + 0x2f74]
push eax
push 0x64
push 0
mov ecx, edi
call fcn.004f2620
mov eax, dword [esi + 0xefc]
mov ecx, dword [esi + 0xf00]
cmp eax, ecx
jge 0x4fce67
test edi, edi
je 0x4fcddc
lea eax, [esi + 0x2f78]
jmp 0x4fcdde
xor eax, eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fce67
test edi, edi
je 0x4fce00
mov ecx, dword [esi + 0x2f7c]
lea eax, [esi + 0x2f78]
push 5
jmp 0x4fce64
xor eax, eax
push 5
mov ecx, dword [eax + 4]
jmp 0x4fce64
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 0x4fce67
mov eax, dword [esi + 0x3f2c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fce67
mov ecx, dword [esi + 0x3f2c]
push 5
push ecx
call ebx
cmp dword [esi + 0xefc], 0xffffffff
jne 0x4fceae
mov eax, dword [esi + 0x2f68]
test eax, eax
je 0x4fcea3
lea edx, [esi + 0x2f74]
test edx, edx
je 0x4fce96
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 0x4fcef0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2f7c]
test eax, eax
jne 0x4fd04e
mov eax, dword [esi + 0x3f2c]
test eax, eax
jne 0x4fd04e
push edi
call fcn.004fd420
test eax, eax
jne 0x4fcfd0
test esi, esi
mov dword [esi + 0x2f68], 1
je 0x4fcf33
lea eax, [esi + 0xef4]
jmp 0x4fcf35
xor eax, eax
mov edx, dword [esi + 0x2f74]
lea edi, [esi + 0x2f74]
push eax
mov ecx, edi
call dword [edx + 0x4c]
push 5
push 0x56d150
push 0x56d150
push str.IMG_PROGRESS
push 0x56d150
mov ecx, edi
call fcn.004f2670
mov eax, dword [esi + 0x12c]
mov ecx, dword [esi + 8]
push 1
push 0
push 0
push 2
push eax
push ecx
push str.ProgressBar
mov ecx, edi
call fcn.004feea0
push 0
push 0x64
push 0
mov ecx, edi
call fcn.004f2620
test edi, edi
je 0x4fcfb6
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 [0x58d1a4]
push 0
push eax
push 2
push ecx
push 0
push 0
push 0
push 0
push 0x44000001
push str.ProgressBar
push str.msctls_progress32
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 0x501260
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.00501bc0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5012ba
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x501296
push 2
call edi
shr eax, 8
test al, al
je 0x5012ba
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 0x50133c
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x110], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0x10c], 0xffffffff
mov dword [esi + 0x114], 0
je 0x5012eb
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 0x501336
mov ecx, dword [esi + 8]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.00506040
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.00505fd0
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 0x504a20
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 0x504a3e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
push edi
push esi
call fcn.0043f120
add esp, 8
test eax, eax
jne 0x504a54
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 0x504b82
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x504b8e
cmp ebp, 0xf4240
ja 0x504b8e
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 0x504ad0
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 0x504b82
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 0x504b82
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 0x504b82
mov edi, dword [esp + 0x14]
test edi, edi
je 0x504b82
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 0x508560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x50856b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x50866e
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 + 0x52a9e0]
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 + 0x52a9e0]
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 + 0x52a9e0]
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 + 0x52a9e0]
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 + 0x52a9e0]
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 + 0x52a9e0]
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 + 0x52a9e0]
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 + 0x52a9e0]
xor eax, edx
inc ecx
dec edi
jne 0x508586
pop edi
test esi, esi
je 0x508690
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x52a9e0]
xor eax, edx
inc ecx
dec esi
jne 0x508672
pop esi
pop ebx
not eax
ret

Function at 0x509050
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 0x509091
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 0x509086
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 0x5090a4
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 0x50a070
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x50a109
cmp dword [edi + 4], 0xffffffff
jne 0x50a109
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x539bc8
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 0x50a0cf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x50a0cf
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.00508dc0
add esp, 0x10
test eax, eax
jne 0x50a0f2
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.00509350
add esp, 4
mov dword [edi], eax
mov eax, dword [0x58f928]
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 0x50a590
Capabilities:
Create directory

Disassembly:
sub esp, 0x410
push edi
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x50a636
mov ax, word [edi]
test ax, ax
je 0x50a636
push ebx
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x50a5c4
cmp ax, 0x5c
jne 0x50a5c6
mov esi, ecx
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x50a5b8
mov ebx, dword [esp + 0x420]
cmp esi, edi
je 0x50a603
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.0050a590
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 0x50ace0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52325b
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.0051d1f0
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x569fa0
mov edi, ecx
push esi
call fcn.0043f610
add esp, 8
test eax, eax
je 0x50ae42
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.0043f650
add esp, 0x10
test eax, eax
je 0x50addb
lea ecx, [esp + 0x220]
push 0x557660
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x50ad92
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.0043f650
add esp, 0x10
cmp word [esp + 0x220], 0
jne 0x50ad92
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.0043f650
add esp, 0x10
lea ecx, [esp + 0x220]
push ecx
push 0x5394a4
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.004bed90
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.004ad340
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.004ad410
mov esi, eax
test esi, esi
je 0x50ae29
push esi
lea ecx, [esp + 0xc]
call fcn.004ad510
test eax, eax
je 0x50ae1f
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004ad550
push esi
lea ecx, [esp + 0xc]
call fcn.004ad480
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.004ad390
jmp 0x50adb7
push 0x53bc40
push esi
call fcn.0043f610
add esp, 8
test eax, eax
push esi
je 0x50ad9a
push 0x824
push edi
push 0x56d150
push 0x56143c
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x50adb7