joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c10dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c110a
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4c110f
cmp eax, 1
je 0x4c110f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c1113
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x565e78]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4c118b
push ebx
call fcn.004c10dc
test eax, eax
pop ecx
jne 0x4c115a
call fcn.004b5bf0
mov dword [eax], 0xf
call fcn.004b5be7
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004b6cac
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4c119d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4c114d
inc eax
cmp eax, 0x104
ja 0x4c114d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4c11d5
cmp eax, dword [ebp + 0x10]
jg 0x4c11b8
mov eax, dword [ebp + 0x10]
push eax
call fcn.004b6355
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4c11ea
call fcn.004b5be7
mov dword [eax], 0xc
jmp 0x4c114d
cmp eax, dword [ebp + 0x10]
jle 0x4c11ea
call fcn.004b5be7
mov dword [eax], 0x22
jmp 0x4c114d
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004bacc0
pop ecx
pop ecx
jmp 0x4c114f
Function at 0x4c4307
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x56b3cc], ebx
push esi
push edi
jne 0x4c4387
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c43c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52ce94
push edi
call esi
test eax, eax
mov dword [0x56b3cc], eax
je 0x4c43c2
push 0x52ce84
push edi
call esi
push 0x52ce70
push edi
mov dword [0x56b3d0], eax
call esi
cmp dword [0x56af24], 2
mov dword [0x56b3d4], eax
jne 0x4c4387
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x56b3dc], eax
je 0x4c4387
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x56b3d8], eax
mov eax, dword [0x56b3d8]
test eax, eax
je 0x4c43cc
call eax
test eax, eax
je 0x4c43b3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x56b3dc]
test eax, eax
je 0x4c43b3
test byte [ebp - 8], 1
jne 0x4c43cc
cmp dword [0x56af30], 4
jb 0x4c43c6
or byte [ebp + 0x12], 0x20
jmp 0x4c43eb
xor eax, eax
jmp 0x4c43fb
or byte [ebp + 0x12], 4
jmp 0x4c43eb
mov eax, dword [0x56b3d0]
test eax, eax
je 0x4c43eb
call eax
mov ebx, eax
test ebx, ebx
je 0x4c43eb
mov eax, dword [0x56b3d4]
test eax, eax
je 0x4c43eb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x56b3cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5649
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004b77e0
mov eax, dword [0x565e78]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004bc4ed
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4c577c
push 2
push esi
push dword [ebp + 8]
call fcn.004bc4ed
add esp, 0xc
cmp eax, ebx
je 0x4c577c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4c571c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004b7200
push 0x8000
push dword [ebp + 8]
call fcn.004c6591
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4c56d2
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004bd73e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4c56f2
sub edi, eax
test edi, edi
jg 0x4c56ca
jmp 0x4c570a
call fcn.004b5bf0
cmp dword [eax], 5
jne 0x4c5707
call fcn.004b5be7
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004c6591
pop ecx
pop ecx
jmp 0x4c5764
jge 0x4c5764
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bc4ed
push dword [ebp + 8]
call fcn.004b8268
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4c5764
call fcn.004b5be7
mov dword [eax], 0xd
call fcn.004b5bf0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004bc4ed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4c577e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004b6cac
leave
ret
Function at 0x4c62b3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x52cf98
call fcn.004b7b70
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x56b408], edi
jne 0x4c62f7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c62e2
mov dword [0x56b408], ebx
jmp 0x4c62f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c62f7
mov dword [0x56b408], 2
mov eax, dword [0x56b408]
cmp eax, ebx
jne 0x4c6317
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4c63da
cmp eax, 2
je 0x4c6320
cmp eax, edi
jne 0x4c6348
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4c6333
mov eax, dword [0x56b374]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4c634f
xor eax, eax
jmp 0x4c63da
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004b77e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4c6382
cmp esi, edi
jne 0x4c6398
push dword [ebp - 0x20]
call fcn.004b6355
pop ecx
mov esi, eax
cmp esi, edi
je 0x4c6348
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4c63cb
cmp dword [ebp + 0x14], edi
jne 0x4c63b5
push edi
push edi
jmp 0x4c63bb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4c63d7
push esi
call fcn.004b3a90
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004b7bab
ret
Function at 0x4c63e3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x52cfa8
call fcn.004b7b70
xor esi, esi
cmp dword [0x56b40c], esi
jne 0x4c6427
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6412
mov dword [0x56b40c], edi
jmp 0x4c6427
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c6427
mov dword [0x56b40c], 2
mov eax, dword [0x56b40c]
cmp eax, 2
je 0x4c6508
cmp eax, esi
je 0x4c6508
cmp eax, 1
jne 0x4c646c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4c6455
mov eax, dword [0x56b374]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4c6473
xor eax, eax
jmp 0x4c651a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004b77e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4c64a9
cmp edi, esi
jne 0x4c64c4
lea eax, [ebx + ebx]
push eax
call fcn.004b6355
pop ecx
mov edi, eax
cmp edi, esi
je 0x4c646c
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c64f7
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4c64e1
push esi
push esi
jmp 0x4c64e7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4c6503
push edi
call fcn.004b3a90
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4c651a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004b7bab
ret
Function at 0x4c6a4b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4c6a64
or eax, 0xffffffff
jmp 0x4c6ac5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4c6ac1
push 0x3d
push esi
call fcn.004b5b6c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4c6ac1
cmp esi, eax
je 0x4c6ac1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x56af44]
sete cl
cmp eax, dword [0x56af48]
mov dword [ebp - 8], ecx
jne 0x4c6aa7
mov edi, eax
call fcn.004c69ea
mov dword [0x56af44], eax
cmp eax, ebx
jne 0x4c6b00
cmp dword [ebp + 0xc], ebx
je 0x4c6ac9
cmp dword [0x56af4c], ebx
je 0x4c6ac9
call fcn.004c57d8
test eax, eax
je 0x4c6b00
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4c6ad2
xor eax, eax
jmp 0x4c6ac4
push 4
call fcn.004b6355
cmp eax, ebx
pop ecx
mov dword [0x56af44], eax
je 0x4c6ac1
mov dword [eax], ebx
cmp dword [0x56af4c], ebx
jne 0x4c6b00
push 4
call fcn.004b6355
cmp eax, ebx
pop ecx
mov dword [0x56af4c], eax
je 0x4c6ac1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x56af44]
call fcn.004c699d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4c6b61
cmp dword [esi], ebx
je 0x4c6b61
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004b3a90
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4c6b44
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4c6ba2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4c6b3b
mov eax, edi
shl eax, 2
push eax
push dword [0x56af44]
call fcn.004b762b
cmp eax, ebx
pop ecx
pop ecx
je 0x4c6ba2
jmp 0x4c6b9d
cmp dword [ebp - 8], ebx
jne 0x4c6c0d
cmp edi, ebx
jge 0x4c6b70
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x56af44]
call fcn.004b762b
cmp eax, ebx
pop ecx
pop ecx
je 0x4c6ac1
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x56af44], eax
cmp dword [ebp + 0xc], ebx
je 0x4c6bf7
push dword [ebp - 4]
call fcn.004b75a0
inc eax
inc eax
push eax
call fcn.004b6355
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4c6bf7
push dword [ebp - 4]
push esi
call fcn.004bacc0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c6bf0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004b3a90
pop ecx
cmp dword [ebp - 8], ebx
je 0x4c6c05
push dword [ebp - 4]
call fcn.004b3a90
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4c6ac4
push dword [ebp - 4]
call fcn.004b3a90
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4c6ace
Function at 0x4ca7b0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x518306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x17]
xor ebx, ebx
lea edi, [ebp + 0xc]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], ebp
mov dword [ebp], 0x52da98
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
call fcn.004ca040
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x17]
lea esi, [ebp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x38], ebx
mov dword [ebp + 0x34], ebx
call fcn.004ca0c0
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov byte [esp + 0x34], 1
mov dword [esp + 0x18], 0xffffffff
call fcn.004ca6f0
or edi, 0xffffffff
lea edx, [esp + 0x14]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.004c96a0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 8]
jne 0x4ca870
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call fcn.004ca390
mov eax, dword [eax]
mov dword [eax + 0xc], ebx
cmp byte [0x566db8], bl
je 0x4ca8b8
xor eax, eax
mov ecx, 0x36323837
xor dword [eax + str._gxcore_lib__zcpro_hotmail.com_all_rights_reserved_], ecx
add eax, 4
cmp eax, 0x34
jb 0x4ca882
mov ecx, 0xd
mov edi, str.l_JUXJW
mov esi, str._gxcore_lib__zcpro_hotmail.com_all_rights_reserved_
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4ca8b2
push 0xa00000
call fcn.004fa771
add esp, 4
mov byte [0x566db8], bl
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4ccd60
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5183b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
call fcn.004ca7b0
lea eax, [esp + 7]
push eax
lea ecx, [esp + 0xb]
push ecx
lea ecx, [ebp + 0xf8]
mov dword [esp + 0x1c], 0
mov dword [ebp], 0x52db80
mov dword [ebp + 0xf4], 0
call fcn.004cca90
lea eax, [ebp + 0x60]
push eax
mov dword [eax], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov al, byte [0x566df4]
test al, al
je 0x4cce11
push esi
xor eax, eax
mov ecx, 0x36323837
push edi
xor dword [eax*4 + str._gdigx_lib__zcpro_hotmail.com_all_rights_reserved_], ecx
inc eax
cmp eax, 0xc
jb 0x4ccdd4
xor dword [eax*4 + str._gdigx_lib__zcpro_hotmail.com_all_rights_reserved_], 0x323837
mov ecx, 0x33
mov edi, str.l_V_P_
mov esi, str._gdigx_lib__zcpro_hotmail.com_all_rights_reserved_
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x4cce0a
mov dword [ebp + 0x64], 4
mov byte [0x566df4], 0
push 0
call fcn.004cec10
mov ecx, dword [esp + 0x10]
add esp, 4
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4cdaa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0x52dbdc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4cdac7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4cdacb
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor cl, cl
mov edx, eax
pop esi
jmp fcn.004cd630
Function at 0x4cec10
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, dword [0x56b578]
mov ecx, eax
add eax, 1
sub esp, 0x6fc
test ecx, ecx
mov dword [0x56b578], eax
jne 0x4cee4b
push esi
push 0x10
call fcn.004fa746
xor esi, esi
add esp, 4
cmp eax, esi
je 0x4cec47
mov ecx, eax
call fcn.004ceb10
jmp 0x4cec49
xor eax, eax
cmp eax, esi
mov dword [0x56b574], eax
je 0x4cee4a
push esi
push esi
push esi
push esi
push esi
push 0x4e0f80
mov ecx, eax
call fcn.004ceb40
mov ecx, dword [0x56b574]
push esi
push esi
push esi
push esi
push esi
push 0x4df650
call fcn.004ceb40
mov ecx, dword [0x56b574]
push esi
push esi
push esi
push esi
push esi
push 0x4de790
call fcn.004ceb40
mov ecx, dword [0x56b574]
push esi
push esi
push esi
push esi
push esi
push 0x4dd780
call fcn.004ceb40
cmp dword [esp + 0x704], esi
jne 0x4cee4a
lea edx, [esp + 0x4f8]
push edx
push 0x208
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4ced15
push 0x208
lea eax, [esp + 0x2f4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4ced15
lea ecx, [esp + 0x2f0]
push 0x5c
push ecx
call fcn.004bb940
add esp, 8
cmp eax, esi
je 0x4ced15
lea edx, [esp + 0x2f0]
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esp + 4], eax
cmp dword [0x566e1c], esi
jle 0x4cee35
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, 0x566e14
nop
mov eax, dword [ebx]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4ced38
lea edi, [esp + 0x18]
add edi, 0xffffffff
jmp 0x4ced50
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4ced50
mov eax, dword [str..fip]
mov cx, word [0x52dbf8]
mov dword [edi], eax
lea edx, [esp + 0x1e4]
push edx
lea eax, [esp + 0x1c]
push eax
mov word [edi + 4], cx
call fcn.004f110d
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4cee18
lea esp, [esp]
mov eax, dword [ebx]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4ced98
push 0x1cc
lea ecx, [esp + 0x1fc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004f12d0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4cedf9
push str._Init_8
push esi
call ebp
test eax, eax
je 0x4cedf2
mov ecx, dword [0x56b574]
push 0
push 0
push 0
push 0
push esi
push eax
call fcn.004ceb40
jmp 0x4cedf9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x1e4]
push ecx
push edi
call fcn.004f11ea
add esp, 8
cmp eax, 0xffffffff
jne 0x4ced90
push edi
call fcn.004f1089
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
add ebx, 4
cmp eax, dword [0x566e1c]
mov dword [esp + 0x14], eax
jl 0x4ced30
pop edi
pop ebp
pop ebx
cmp dword [esp + 4], 0
je 0x4cee4a
lea edx, [esp + 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
add esp, 0x6fc
ret
Function at 0x4ea6d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 8
cmp eax, 3
jne 0x4ea71d
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0xc]
jle 0x4ea70b
movzx edx, word [ecx + 0x118]
cmp eax, edx
jg 0x4ea70b
push eax
mov eax, dword [esp + 0x14]
push eax
push str.tRNS
push ecx
call fcn.004e9820
add esp, 0x10
add esp, 8
ret
push str.Invalid_number_of_transparent_colors_specified
push ecx
call fcn.004e2c00
add esp, 8
add esp, 8
ret
test eax, eax
push esi
jne 0x4ea779
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
mov edx, dword [esp + 0x10]
mov cl, byte [edx + 0x127]
mov esi, 1
shl esi, cl
cmp eax, esi
jl 0x4ea752
push str.Ignoring_attempt_to_write_tRNS_chunk_out_of_range_for_bit_depth
push edx
call fcn.004e2c00
add esp, 8
pop esi
add esp, 8
ret
mov ecx, eax
mov byte [esp + 5], al
push 2
lea eax, [esp + 8]
push eax
shr ecx, 8
push str.tRNS
push edx
mov byte [esp + 0x14], cl
call fcn.004e9820
add esp, 0x10
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x4ea7f7
mov esi, dword [esp + 0x18]
movzx eax, word [esi + 2]
mov ecx, eax
mov byte [esp + 5], al
movzx eax, word [esi + 4]
push ebx
movzx ebx, word [esi + 6]
mov esi, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0xb], al
mov eax, ebx
shr ecx, 8
shr edx, 8
shr eax, 8
cmp byte [esi + 0x127], 8
mov byte [esp + 0xd], bl
mov byte [esp + 8], cl
mov byte [esp + 0xa], dl
mov byte [esp + 0xc], al
pop ebx
jne 0x4ea7dd
or al, dl
or al, cl
je 0x4ea7dd
push str.Ignoring_attempt_to_write_16_bit_tRNS_chunk_when_bit_depth_is_8
push esi
call fcn.004e2c00
add esp, 8
pop esi
add esp, 8
ret
push 6
lea ecx, [esp + 8]
push ecx
push str.tRNS
push esi
call fcn.004e9820
add esp, 0x10
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x10]
push 0x535ac0
push edx
call fcn.004e2c00
add esp, 8
pop esi
add esp, 8
ret
Function at 0x4f42d1
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x517998
call fcn.004b71a0
sub esp, 0x9c
mov eax, dword [0x565e78]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.004fb8f6
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00402010
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x4f4362
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004b7200
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x4f435b
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x4f4362
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004b6355
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x4f4377
call fcn.004f3b98
push dword [ebp + 0x20]
push ebx
push eax
call fcn.004b7200
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x4f43f4
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0050ac7d
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x4f4703
je 0x4f4420
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x4f4456
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00401ec0
push ebx
mov ecx, edi
call fcn.00401ce0
jmp 0x4f443f
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.004b5b6c
cmp eax, ebx
pop ecx
pop ecx
jne 0x4f443c
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004b6cac
leave
ret 0x1c

Function at 0x4f90dc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4f9115
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040f240
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040f200
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]