joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc9f0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x574ab0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CXmlLogManager.0
mov eax, dword [esi + 0x1c0]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], 6
je 0x4bca6b
push 0xbb8
push eax
mov dword [esi + 0x1c4], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4bca58
mov eax, dword [esi + 0x1c0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c0], ebx
mov ecx, esi
call fcn.004bc990
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x100]
call fcn.004b6e20
lea ecx, [esi + 0x48]
call fcn.004b6e20
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x4bca9f
push eax
call fcn.0050fd2d
add esp, 4
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x4bcab8
push eax
call fcn.0050fd2d
add esp, 4
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x24]
sub eax, 0x10
mov byte [esp + 0x18], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bcae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x20]
sub eax, 0x10
mov byte [esp + 0x18], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bcb08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x1c]
sub esi, 0x10
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bcb2f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4bcc50
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x574ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
push str.User.ini
lea ecx, [esp + 0x20]
call fcn.004019c0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
call fcn.00406b70
add eax, 4
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004016a0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], edi
push 0x57e008
mov byte [esp + 0x30], 1
call fcn.00406b70
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00402100
add esp, 0xc
lea ecx, [esi + 0x1c]
push eax
mov byte [esp + 0x30], 2
call fcn.00402060
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bccff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 4]
push ecx
mov dword [esi + 0x1b8], ebp
mov dword [esi + 0x1bc], ebp
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1cc], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [esp + 0x18]
push edx
push ebx
push esi
push 0x4bcb50
push ebx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x1c4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c0], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bcd68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4bcd89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4bcda0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x574ab0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CXmlLogManager.0
call fcn.00518333
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4bcdeb
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esp + 0x18], edi
call fcn.00518333
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4bce18
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x18], 1
call fcn.00518333
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4bce46
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x48]
call fcn.004b6da0
lea ecx, [esi + 0x100]
call fcn.004b6da0
mov ecx, esi
mov byte [esp + 0x18], 6
call fcn.004bcc50
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4beff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.desc]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf077
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4
Function at 0x4bf090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.host]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf117
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x4bf130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.username]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf1b7
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x4bf1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.password]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf257
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4
Function at 0x4bf270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.DDNSHost]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf2f7
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x4bf3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [str.name]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf437
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4

Function at 0x4bf810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5747f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x5d2560]
push eax
lea edx, [esp + 0x10]
push edx
add ecx, 4
call fcn.004b60b0
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.004b7960
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x44], 1
mov byte [esi + 4], bl
call fcn.00406510
cmp dword [esp + 0x2c], 0x10
jb 0x4bf897
mov eax, dword [esp + 0x18]
push eax
call fcn.0050fd2d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret 4
Function at 0x4d3480
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x57665c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
lea edi, [esi + 0x34]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [edi + 4], eax
mov dword [edi], vtable.CBitmap.0
lea ebp, [esi + 0x3c]
mov dword [esp + 0x38], eax
mov dword [ebp + 4], eax
mov dword [ebp], vtable.CBitmap.0
lea ebx, [esi + 0x44]
mov ecx, ebx
mov byte [esp + 0x38], 1
call fcn.00517947
lea ecx, [esi + 0x54]
mov byte [esp + 0x38], 2
call fcn.00517947
mov byte [esp + 0x38], 3
call fcn.0051cb2d
movzx ecx, word [esp + 0x40]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.0051811c
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x38]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call fcn.00517e55
test edi, edi
je 0x4d356c
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x48]
push edi
push ecx
call fcn.005181a1
cmp dword [esi + 0xc], 1
jne 0x4d35bb
call fcn.0051cb2d
movzx ecx, word [esp + 0x40]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, ebp
call fcn.0051811c
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x54]
call fcn.00517e55
test ebp, ebp
je 0x4d35b1
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 0x58]
push ebp
push edx
call fcn.005181a1
lea eax, [esi + 0x1c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push eax
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x38]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
xor ecx, ecx
cmp eax, edx
setl cl
mov edi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esi + 0x10], edi
ja 0x4d35f9
mov ecx, eax
mov ebx, dword [esi + 8]
test ebx, ebx
mov dword [esi + 4], ecx
ja 0x4d3605
mov ebx, edx
test edi, edi
mov dword [esi + 8], ebx
jne 0x4d3612
xor edx, edx
div ecx
jmp 0x4d3618
mov eax, edx
xor edx, edx
div ebx
mov dword [esi], eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10
Function at 0x4d38a0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x74]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0
push 0x419
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00516c22
mov ecx, dword [esp + 0x30]
test al, 2
mov eax, dword [esi + 0xdc]
je 0x4d391f
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov dword [ecx], eax
sub eax, dword [esp + 0xc]
add eax, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov eax, esi
sub eax, dword [esp + 0x28]
sub eax, edi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [ecx + 4], eax
sub eax, edi
pop edi
add eax, esi
pop esi
mov dword [ecx + 0xc], eax
pop ebx
add esp, 0x20
ret 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
sub eax, dword [esp + 0x10]
add eax, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
mov eax, esi
sub eax, dword [esp + 0x24]
sub eax, edi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [ecx], eax
sub eax, edi
pop edi
add eax, esi
pop esi
mov dword [ecx + 8], eax
pop ebx
add esp, 0x20
ret 4
Function at 0x4d6640
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d666e
xor eax, eax
pop edi
add esp, 0xc
ret 8
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d6689
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret 8
push esi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d6777
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d6777
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6777
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
push edx
push 1
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4d6770
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d6770
lea ecx, [esp + 0xc]
push ecx
push 0x598d88
push 0
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x4d6764
cmp dword [esp + 0xc], 0
je 0x4d6764
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0051816f
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0051811c
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0xc
ret 8
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret 8
Function at 0x4d8270
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5770b8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d82bd
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push 0x58e388
push ecx
mov dword [esp + 0x7c], 0
call fcn.004020e0
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x14
push edi
push 0
push str.IsUseMask
push str.MainSettings
call ebx
test eax, eax
push edi
push 0x40
je 0x4d8363
lea edx, [esp + 0x24]
push edx
push 0x57e9e8
push str.MainWindow_Size
push str.MainSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004019c0
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004d7800
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x30]
push 1
push edx
mov edx, dword [ecx + 0x20]
push eax
push 0
push 0
push edx
jmp 0x4d83b1
lea eax, [esp + 0x24]
push eax
push 0x57e9e8
push str.MainWindow_Size
push str.MainSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004019c0
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004d7800
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
push 1
push ecx
mov ecx, dword [eax + 0x20]
push edx
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push edi
push 0
push str.IsFullScreen
push str.MainSettings
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x68], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d83ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0053042b
add esp, 0x5c
ret
Function at 0x4d8410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5770f8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
lea ecx, [esi + 4]
push edx
mov dword [esp + 0x14], 2
mov dword [esi + 0x30], eax
call fcn.00402060
lea eax, [esp + 0x1c]
lea ecx, [esi + 8]
push eax
call fcn.00402060
lea edx, [esp + 0x20]
lea ecx, [esi + 0xc]
push edx
call fcn.00402060
mov eax, dword [esp + 0x28]
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.004d7d80
mov ecx, esi
call fcn.004d8270
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x10], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d84ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x10], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d84d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d84f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x14