joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0bd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5138b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
mov al, byte [0x54aebc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esp + 0x2c], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ebx, [esi + 0x20]
push 0xffffffffffffffff
push 0
mov ecx, ebx
stosb byte es:[edi], al
call fcn.004f17e0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x834], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x834], 1
call sub.MFC42.DLL_CString::CString_3
mov edi, 1
lea ecx, [esp + 0x10]
push edi
push str.ID_d
push ecx
mov byte [esp + 0x840], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0
push edx
push str.Device
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4f0dc3
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea eax, [esp + 0x14]
push str.Key_d
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x2c]
push eax
push 0x7ff
push ecx
push 0x54aebc
push edx
push str.Device
call ebp
mov al, byte [esp + 0x2c]
test al, al
je 0x4f0dc3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
call fcn.004c8322
push 0x54aebc
push 0x542a24
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1a]
push 1
push ecx
push edx
mov ecx, esi
call fcn.004f0a20
test eax, eax
je 0x4f0d8d
mov ax, word [esp + 0x1a]
mov cl, byte [esp + 0x1c]
cmp al, cl
jne 0x4f0d8d
xor ecx, ecx
push edi
mov cl, ah
lea edx, [esp + 0x14]
and ecx, 0xff
push str.Name_d
push edx
mov dword [esp + 0x2c], ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
lea eax, [esp + 0x30]
push 0x7ff
push eax
push 0x54aebc
push ecx
push str.Device
call ebp
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x24]
push edx
call fcn.004c8322
mov ecx, dword [esp + 0x1c]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov dword [eax + 4], edx
push ecx
lea ecx, [eax + 8]
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.004f14e0
inc edi
lea edx, [esp + 0x10]
push edi
push str.ID_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xc]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
push 0
push eax
push str.Device
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4f0c8e
lea ecx, [esp + 0x14]
mov byte [esp + 0x834], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x834], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x834], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x828
ret
Function at 0x4f10b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5138d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
mov al, byte [0x54aebc]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0x18], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x19]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov dword [esi + 0x1c], ebx
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x820], ebx
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [esp + 0x14]
push str.Key_d
push ecx
mov byte [esp + 0x82c], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0x7ff
push edx
push 0x54aebc
push eax
push str.Soft
call edi
cmp byte [esp + 0x18], bl
je 0x4f1208
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.004c8322
push 0x54aebc
push 0x542a24
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 2
push edx
push eax
mov ecx, esi
call fcn.004f0a20
test eax, eax
je 0x4f1208
mov ecx, dword [esp + 0x14]
push 2
lea edx, [esp + 0x14]
and ecx, 0xffff
push str.Key_d
push edx
mov dword [esi + 0x1c], ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
lea eax, [esp + 0x1c]
push 0x7ff
push eax
push 0x54aebc
push ecx
push str.Soft
call edi
cmp byte [esp + 0x18], bl
je 0x4f1208
lea edx, [esp + 0x18]
lea ecx, [esp + 0xc]
push edx
call fcn.004c8322
push 0x54aebc
push 0x542a24
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push 3
push eax
push ecx
mov ecx, esi
call fcn.004f0a20
test eax, eax
jne 0x4f1230
lea ecx, [esp + 0xc]
mov byte [esp + 0x820], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x820], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4f126d
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x14]
shl edx, 0x10
and eax, 0xffff
lea ecx, [esp + 0xc]
or edx, eax
mov byte [esp + 0x820], bl
mov dword [esi + 0x1c], edx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x820], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x818
ret
Function at 0x4f12a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x800
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push eax
push 0
push str.StationID
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esi + 0x48], eax
jne 0x4f12ce
pop esi
add esp, 0x800
ret
push edi
push eax
mov ecx, esi
call fcn.004f0650
mov al, byte [0x54aebc]
mov ecx, 0x1ff
mov byte [esp + 8], al
xor eax, eax
lea edi, [esp + 9]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
stosw word es:[edi], ax
push ecx
push 0x7ff
push edx
push 0x54aebc
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.DBPwd
push str.System
call edi
mov al, byte [esp + 8]
test al, al
jne 0x4f1324
push str.4s3c2a1p
jmp 0x4f133a
mov eax, dword [esi + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004f0570
add esp, 8
lea edx, [esp + 8]
push edx
lea ecx, [esi + 0x18]
call fcn.004c8322
mov eax, dword [esi + 0xc]
lea ecx, [esp + 8]
push eax
push 0x7ff
push ecx
push 0x54aebc
push str.DateBefore
push str.TimeLimit
call edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x10
je 0x4f137c
push str.00000000
jmp 0x4f1392
mov edx, dword [esi + 0x10]
lea eax, [esp + 4]
push edx
push eax
call fcn.004f0570
add esp, 8
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c8322
mov ecx, esi
call fcn.004f0bd0
test eax, eax
jne 0x4f13ad
pop esi
add esp, 0x800
ret
mov ecx, esi
call fcn.004f10b0
mov eax, 1
pop esi
add esp, 0x800
ret

Function at 0x4f14e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5138e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 8]
sub esp, 0xc
mov dword [esp + 0x20], 0
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov dword [eax + 4], edx
push ecx
lea ecx, [eax + 8]
call sub.MFC42.DLL_CString::CString_2
push edi
mov ecx, esi
call fcn.004f1960
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x4f1c80
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x78
push esi
mov esi, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x88]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.004f2430
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
movsx edx, byte [eax + str.91__]
inc eax
mov cl, byte [esp + edx + 0x3f]
cmp eax, 0x38
mov byte [esp + eax + 7], cl
jl 0x4f1cc9
mov edx, dword [esp + 0x88]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004f1d00
pop edi
pop esi
add esp, 0x78
ret 8
Function at 0x4f1d00
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc4]
mov ecx, 7
mov esi, eax
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1c]
mov ecx, 7
lea edi, [esp + 0x6c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x10], eax
lea ecx, [ecx + ecx*2]
shl ecx, 8
add ecx, edx
mov dword [esp + 0x14], ecx
movsx eax, byte [eax + 0x51db54]
mov edx, eax
lea edi, [esp + 0x34]
neg edx
lea esi, [esp + eax + 0x50]
lea ebp, [edx + 0x1c]
mov ecx, ebp
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [esp + 0x50]
mov ebx, ecx
lea edi, [esp + edx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
lea esi, [esp + eax + 0x6c]
mov ebx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [esp + 0x6c]
lea edi, [esp + edx + 0x34]
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xd
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
lea esi, [esp + 0x34]
lea edi, [esp + 0x88]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x18]
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
movsx ecx, byte [eax + 0x51db24]
inc eax
mov cl, byte [esp + ecx + 0x87]
cmp eax, 0x30
mov byte [edx + eax - 1], cl
jl 0x4f1e1a
mov eax, dword [esp + 0x10]
mov ecx, 7
lea esi, [esp + 0x34]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [esp + 0x18]
lea edi, [esp + 0x6c]
add edx, 0x30
cmp eax, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x4f1d71
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8
Function at 0x4f1e80
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd1]
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x94]
push eax
push ecx
mov ecx, ebp
call fcn.004f2430
lea edx, [esp + 0x50]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, ebp
call fcn.004f22b0
mov ecx, 8
lea esi, [esp + 0x50]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x70]
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x118]
xor esi, esi
push edi
lea ecx, [esp + 0x14]
push esi
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebp
call fcn.004f2170
inc esi
cmp esi, 0x10
jl 0x4f1f4b
mov ecx, 8
lea esi, [esp + 0x10]
lea edi, [esp + 0xd0]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x600]
movsx edx, byte [eax + 0x51ddf4]
inc eax
mov dl, byte [esp + edx + 0xcf]
cmp eax, 0x40
mov byte [ecx + eax - 1], dl
jl 0x4f1f90
push 0x40
lea eax, [ebp + 0x680]
push ecx
push eax
mov ecx, ebp
call fcn.004f2470
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8
Function at 0x4f2020
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd1]
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x94]
push eax
push ecx
mov ecx, ebp
call fcn.004f2430
lea edx, [esp + 0x50]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, ebp
call fcn.004f22b0
mov ecx, 8
lea esi, [esp + 0x50]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x70]
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x118]
xor esi, esi
mov ecx, 0xf
push edi
sub ecx, esi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, ebp
call fcn.004f2170
inc esi
cmp esi, 0x10
jl 0x4f20eb
mov ecx, 8
lea esi, [esp + 0x10]
lea edi, [esp + 0xd0]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x640]
movsx edx, byte [eax + 0x51ddf4]
inc eax
mov dl, byte [esp + edx + 0xcf]
cmp eax, 0x40
mov byte [ecx + eax - 1], dl
jl 0x4f2137
push 0x40
lea eax, [ebp + 0x688]
push ecx
push eax
mov ecx, ebp
call fcn.004f2470
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8

Function at 0x4f22b0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, str.:2_
push edi
mov edi, dword [esp + 0xc]
sub ecx, eax
mov esi, 0x40
movsx edx, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + edi - 1]
mov byte [eax - 1], dl
jne 0x4f22c6
pop edi
pop esi
ret 8

Function at 0x4f22e0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, 0x51dba4
push edi
mov edi, dword [esp + 0xc]
sub ecx, eax
mov esi, 0x30
movsx edx, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + edi - 1]
mov byte [eax - 1], dl
jne 0x4f22f6
pop edi
pop esi
ret 8

Function at 0x4f2310
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x4f233b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x4f232b
pop esi
pop ebx
pop edi
ret 0x10
Function at 0x4f2400
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, 0x51ddd4
push edi
mov edi, dword [esp + 0xc]
sub ecx, eax
mov esi, 0x20
movsx edx, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + edi - 1]
mov byte [eax - 1], dl
jne 0x4f2416
pop edi
pop esi
ret 8

Function at 0x4f4350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0xc]
push 3
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Right
mov bl, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0xc]
push 0x54169c
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4f43d0
mov eax, dword [esp + 0x28]
mov edi, dword [eax - 8]
add edi, 0xfffffffd
test edi, edi
jge 0x4f442b
lea ecx, [esp + 0x28]
push 0x54169c
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x24], 2
call fcn.004c830a
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x28]
push str..mem
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 3
call fcn.004c830a
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x10]
jmp 0x4f4480
lea edx, [esp + 0x28]
lea ecx, [esi + 0x14]
push edx
call fcn.004c830a
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push str..mem
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 5
call fcn.004c830a
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4f5920
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, ebx
neg edi
sbb edi, edi
push 0
mov esi, ecx
and edi, 0xc0000000
push 0x80
push 3
mov eax, dword [esi + 0x20]
add edi, 0xc0000000
push 0
push 3
push edi
push eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4f5967
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
test ebx, ebx
je 0x4f596f
xor eax, eax
jmp 0x4f597d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, 0x100000
mov ebp, ebx
push 0
neg ebp
sbb ebp, ebp
push eax
mov eax, dword [esi + 8]
and ebp, 0xfffffffe
add ebp, 4
push 0
push ebp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4f59b5
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
neg ebx
sbb ebx, ebx
push 0
and ebx, 2
push 0
add ebx, 2
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x4f59ef
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 8]
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov ecx, dword [eax + 0x30]
push 0
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 0x3c]
mov eax, dword [esi + 8]
mov dword [esi + 0x38], edx
push eax
mov dword [esi + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, 0x80
xor edx, edx
div dword [esi + 0x28]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x34], eax
mov edx, dword [ecx + 0x38]
mov ecx, esi
mov dword [esi + 0x30], edx
call fcn.004f61d0
mov eax, dword [esi + 0x18]
mov cl, byte [eax + 0x20]
test cl, cl
je 0x4f5af1
mov eax, dword [esi + 0x24]
push 0
push 0x80
push 3
push 0
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x4f5a69
mov ecx, esi
call fcn.004f6080
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4f5a75
xor eax, eax
jmp 0x4f5a83
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, 0x100000
mov ecx, dword [esi + 0x10]
push 0
push eax
push 0
push ebp
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x4f5aac
mov ecx, esi
call fcn.004f6080
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x4f5ad1
mov ecx, esi
call fcn.004f6080
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
mov edx, dword [eax + 0x3c]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x3c], edx
mov eax, dword [eax + 0x34]
push 0
push ecx
mov dword [esi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, 0x80
mov dword [esi + 0x44], eax
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret 4
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4010f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45c2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push edi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x130]
mov ebp, dword [esp + 0x12c]
mov edi, ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
call fcn.004021a0
push 0x103
lea edx, [esp + 0x1d]
push 0
mov dword [esp + 0x130], 0
push edx
mov byte [esp + 0x24], 0
call fcn.00445f90
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0x10
push eax
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004013b0
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00443100
add esp, 0x11c
ret