joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3c80
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f3cb8
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.004f1d27
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f1cff
jmp 0x4f3cc4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f5375
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f53b7
call fcn.004facf3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f53b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f53ae
xor eax, eax
jmp 0x4f53bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f53c5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fb223
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4fb251
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fb26f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fb189
jmp 0x4fb26f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fb26f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fb189
test edi, edi
mov eax, edi
jne 0x4fb259
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x31d77199
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, str.KeW
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x65cf394b
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40717c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ceb4e
call fcn.004ca3a0
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x10], ebx
call fcn.00407b77
xor esi, esi
lea ecx, [ebx + 0x30]
mov dword [ebp - 4], esi
call fcn.00407b77
mov dword [ebx + 4], esi
mov dword [ebx + 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea edi, [ebx + 0xc]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
and byte [ebx + 9], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push edi
mov byte [ebp - 4], 1
mov byte [ebx + 8], 1
mov dword [ebx + 0x20], eax
mov byte [ebx + 0xa], 1
mov dword [ebx], esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebx + 0x24]
call fcn.00407829
call fcn.004884a6
push esi
push edi
mov ecx, eax
call fcn.0048857c
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebx + 0x30]
call fcn.00407829
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x420dde
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d09d9
call fcn.004ca3a0
sub esp, 0x134
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
mov esi, ecx
push eax
call sub.MFC42.DLL_AfxVariantInit
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
je 0x420f1c
mov ecx, dword [esi + 0x60]
cmp ecx, ebx
je 0x420e24
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [esi + 0x60]
cmp ecx, ebx
je 0x420e24
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 0x40
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
mov dword [ebp - 0x40], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x420e4a
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x4dfb98
mov eax, edi
jmp 0x420e4c
xor eax, eax
mov dword [esi + 0x60], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x24]
push 0xa
sub ecx, dword [ebp - 0x2c]
pop eax
push ebx
push ebx
sub ecx, 0xf
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
push ebx
push 0x64
push esi
sub ecx, eax
lea eax, [ebp - 0x3c]
push eax
push 0x50000000
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x60]
push ebx
push 0x4dfb88
mov dword [ebp - 0x38], 0x50
call sub.MFC42.DLL_CWnd::CreateControl
test eax, eax
je 0x420f1c
mov al, byte [0x508900]
push 0x3f
mov byte [ebp - 0x140], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x140]
push str.Help_
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x1c]
mov ecx, dword [esi + 0x60]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.0046535b
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4277f9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp ebx, 1
push edi
mov esi, ecx
jl 0x4279f8
cmp ebx, dword [esi + 0x130]
jg 0x4279f8
mov eax, dword [esi + 0x12c]
add eax, 4
cmp ebx, eax
jge 0x4279f8
call fcn.00427f73
lea edi, [esi + 0xc4]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push str.Group_d
push edi
call ebx
add esp, 0xc
push dword [esi + 0x134]
push 0
push str.ServerAmount
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [ebp - 8], eax
jne 0x42789e
mov edi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
call edi
mov ebx, eax
call edi
mov edi, eax
mov eax, dword [ebx]
push 0x10
push 0x2721
mov ecx, ebx
call dword [eax + 0x3c]
push eax
mov eax, dword [edi]
push 0x271c
mov ecx, edi
call dword [eax + 0x3c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x4279f8
lea ecx, [esi + 0x138]
call fcn.0046513b
mov al, byte [0x508900]
push 7
mov byte [ebp - 0x28], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], eax
jl 0x4279e1
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push str.Pic_d
push eax
call ebx
mov al, byte [0x508900]
add esp, 0xc
mov byte [ebp - 0x48], al
xor eax, eax
push 7
lea edi, [ebp - 0x47]
pop ecx
rep stosd dword es:[edi], eax
push dword [esi + 0x134]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x48]
push 0x20
push eax
lea eax, [ebp - 0x28]
push 0x508900
push eax
lea eax, [esi + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push str.ServerName_d
push eax
call ebx
mov al, byte [0x508900]
add esp, 0xc
mov byte [ebp - 0x68], al
xor eax, eax
push 7
lea edi, [ebp - 0x67]
pop ecx
rep stosd dword es:[edi], eax
push dword [esi + 0x134]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x68]
push 0x20
push eax
lea eax, [ebp - 0x28]
push 0x508900
push eax
lea eax, [esi + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push str.Server_d
push eax
call ebx
mov al, byte [0x508900]
add esp, 0xc
mov byte [ebp - 0x168], al
xor eax, eax
push 0x3f
lea edi, [ebp - 0x167]
pop ecx
rep stosd dword es:[edi], eax
push dword [esi + 0x134]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x168]
push 0x20
push eax
lea eax, [ebp - 0x28]
push 0x508900
push eax
lea eax, [esi + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x168]
lea ecx, [esi + 0x138]
push eax
call fcn.004650f0
push eax
lea eax, [ebp - 0x68]
mov edi, dword [ebp - 4]
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
push edi
call fcn.0042812f
inc edi
cmp edi, dword [ebp - 8]
mov dword [ebp - 4], edi
jle 0x4278cd
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x128], eax
call fcn.00427c7f
mov ecx, esi
call fcn.00427a38
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x427a38
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov al, byte [0x508900]
push ebx
push esi
push edi
mov esi, ecx
push 0x3f
mov byte [ebp - 0x100], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
push dword [esi + 0x128]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push str.Group_d
push eax
call ebx
mov al, byte [0x508900]
add esp, 0xc
mov byte [ebp - 0x200], al
xor eax, eax
push 0x3f
lea edi, [ebp - 0x1ff]
pop ecx
rep stosd dword es:[edi], eax
push dword [esi + 0x124]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x200]
push str.Server_d
push eax
call ebx
mov al, byte [0x508900]
add esp, 0xc
mov byte [ebp - 0x300], al
xor eax, eax
push 0x3f
lea edi, [ebp - 0x2ff]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.._Server.dat
lea eax, [ebp - 0x300]
push 0x100
push eax
lea eax, [ebp - 0x200]
push 0x508900
push eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x427b12
lea eax, [esi + 0x158]
lea ecx, [esi + 0x148]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00464d80
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427b17
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
mov eax, dword [esi + 0x12c]
mov edx, dword [esi + 0x130]
lea ecx, [eax + 3]
cmp edx, ecx
mov dword [ebp - 8], ecx
jg 0x427b39
mov dword [ebp - 8], edx
cmp eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jg 0x427bf9
push ebx
push edi
xor ebx, ebx
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push str.Group_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [0x508900]
add esp, 0xc
mov byte [ebp - 0x38], al
xor eax, eax
push 7
lea edi, [ebp - 0x37]
pop ecx
rep stosd dword es:[edi], eax
push dword [esi + 0x134]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x38]
push 0x20
push eax
lea eax, [ebp - 0x18]
push 0x508900
push eax
push str.Header
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x427be8
mov eax, dword [ebp - 4]
sub eax, dword [esi + 0x12c]
sub eax, ebx
je 0x427bd7
dec eax
je 0x427bc9
dec eax
je 0x427bbb
dec eax
jne 0x427be8
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [esi + 0x1ef4]
jmp 0x427be3
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [esi + 0x1dd0]
jmp 0x427be3
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [esi + 0x1cac]
jmp 0x427be3
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [esi + 0x1b88]
call fcn.0044d497
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jle 0x427b49
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4282dd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push dword [esi + 0x128]
lea eax, [ebp - 0x10]
push str.Group_d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [esi + 0x124]
push str.HintWord_d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x120]
push dword [esi + 0x134]
push 0x100
push eax
lea eax, [ebp - 0x20]
push 0x508900
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x120]
lea ecx, [esi + 0x164]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
pop edi
pop esi
leave
ret

Function at 0x4283ce
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x4d10dc
call fcn.004ca3a0
sub esp, 0x2a4
mov eax, dword [ecx + 0x2f34]
push esi
lea esi, [ecx + 0x2f30]
push eax
mov ecx, dword [esi]
push ecx
mov ecx, esi
call fcn.00428520
lea eax, [ebp - 0x2b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42849d
push ebx
push edi
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x428495
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x428495
xor edi, edi
mov eax, dword [ebx + 0xc]
add eax, edi
cmp dword [eax], 0
je 0x428495
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407ad0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.0040ac3e
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
sub eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0
je 0x42848c
push eax
push dword [ebp - 0x1c]
call fcn.00407aab
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
add edi, 4
jmp 0x42843d
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42d366
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x4d17c6
call fcn.004ca3a0
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xe9
call sub.MFC42.DLL_CDialog::CDialog
xor edi, edi
lea ecx, [esi + 0x94]
mov dword [ebp - 4], edi
call fcn.00463ddf
lea ecx, [esi + 0x1dc]
mov byte [ebp - 4], 1
call fcn.00463ddf
lea ecx, [esi + 0x324]
mov byte [ebp - 4], 2
call fcn.00463ddf
lea ecx, [esi + 0x46c]
mov byte [ebp - 4], 3
call fcn.00463ddf
lea ecx, [esi + 0x5b4]
mov byte [ebp - 4], 4
call fcn.00463ddf
lea ecx, [esi + 0x6fc]
mov byte [ebp - 4], 5
call fcn.00463ddf
lea ecx, [esi + 0x844]
mov byte [ebp - 4], 6
call fcn.00463ddf
lea ecx, [esi + 0x98c]
mov byte [ebp - 4], 7
call fcn.00463ddf
lea ecx, [esi + 0xad4]
mov byte [ebp - 4], 8
call fcn.00463ddf
lea ecx, [esi + 0xc1c]
mov byte [ebp - 4], 9
call fcn.00463ddf
lea ecx, [esi + 0xd64]
mov byte [ebp - 4], 0xa
call fcn.00463ddf
lea ecx, [esi + 0xeac]
mov byte [ebp - 4], 0xb
call fcn.00463ddf
lea ecx, [esi + 0xff4]
mov byte [ebp - 4], 0xc
call fcn.0044d1ab
lea ecx, [esi + 0x1118]
mov byte [ebp - 4], 0xd
call fcn.0044d1ab
lea ecx, [esi + 0x123c]
mov byte [ebp - 4], 0xe
call fcn.0044d1ab
lea ecx, [esi + 0x1360]
mov byte [ebp - 4], 0xf
call fcn.0044d1ab
lea ecx, [esi + 0x1484]
mov byte [ebp - 4], 0x10
call fcn.0044d1ab
lea ecx, [esi + 0x15a8]
mov byte [ebp - 4], 0x11
call fcn.0044d1ab
lea ecx, [esi + 0x16cc]
mov byte [ebp - 4], 0x12
call fcn.00449177
lea ecx, [esi + 0x1780]
mov byte [ebp - 4], 0x13
call fcn.00449177
lea ecx, [esi + 0x1834]
mov byte [ebp - 4], 0x14
call fcn.00449177
lea ecx, [esi + 0x18e8]
mov byte [ebp - 4], 0x15
call fcn.00449177
lea ecx, [esi + 0x199c]
mov byte [ebp - 4], 0x16
call fcn.00449177
lea ecx, [esi + 0x1a50]
mov byte [ebp - 4], 0x17
call fcn.00449177
lea ecx, [esi + 0x1b04]
mov byte [ebp - 4], 0x18
call fcn.00449177
lea ecx, [esi + 0x1bb8]
mov byte [ebp - 4], 0x19
call fcn.00449177
lea ecx, [esi + 0x1c6c]
mov byte [ebp - 4], 0x1a
call fcn.00449177
lea ecx, [esi + 0x1d20]
mov byte [ebp - 4], 0x1b
call fcn.00449177
lea ecx, [esi + 0x1dd4]
mov byte [ebp - 4], 0x1c
call fcn.00449177
lea ecx, [esi + 0x1e88]
mov byte [ebp - 4], 0x1d
call fcn.00449177
lea ecx, [esi + 0x1f3c]
mov byte [ebp - 4], 0x1e
call fcn.00449177
lea ecx, [esi + 0x1ff0]
mov byte [ebp - 4], 0x1f
call fcn.00449177
lea ecx, [esi + 0x20a4]
mov byte [ebp - 4], 0x20
call fcn.00449177
lea ecx, [esi + 0x2158]
mov byte [ebp - 4], 0x21
call fcn.00449177
lea ecx, [esi + 0x220c]
mov byte [ebp - 4], 0x22
call fcn.00449177
lea ecx, [esi + 0x22c0]
mov byte [ebp - 4], 0x23
call fcn.00449177
push 0x2132b
mov dword [esi], 0x4e1b80
mov dword [esi + 0x60], edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
fldz
mov dword [esi + 0x6c], eax
mov dword [esi + 0x90], edi
fstp dword [esi + 0x8c]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x449e2c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address
Get number of processors

Disassembly:
mov ecx, 0x5089b0
jmp 0x449e20
mov eax, 0x4d34dd
call fcn.004ca3a0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x50]
call fcn.0044ade9
xor ebx, ebx
lea ecx, [esi + 0x70]
mov dword [ebp - 4], ebx
call fcn.00407b77
lea eax, [esi + 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
push 6
mov edi, 0x508900
pop eax
mov byte [ebp - 4], 2
push 0xb
mov dword [esi + 4], eax
fldz
pop ecx
mov dword [esi + 0xc], eax
fstp dword [esi + 0x44]
push 8
mov dword [esi], 0x4e60d4
pop eax
mov dword [esi + 8], ecx
fldz
push edi
mov dword [esi + 0x10], 0xc
fstp dword [esi + 0x48]
mov dword [esi + 0x14], 7
mov dword [esi + 0x18], 0xd
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 0xa
mov dword [esi + 0x30], 0x13
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], 0x15
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x68], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.00407829
lea eax, [esi + 0x5c]
push ebx
push eax
push str.State
mov edi, str.GuiSetup.ini
push str.AutoWrite
push edi
call fcn.004c62bb
lea eax, [esi + 0x64]
push ebx
push eax
push str.Status
push str.ExtraWrite
push edi
call fcn.004c62bb
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x44fa62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x44fb00
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x10
push 1
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x44fb00
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push esi
push dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44fb00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x44fb00
add eax, 0x30
push 8
push eax
lea eax, [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
movzx eax, word [ebp - 4]
add esp, 0xc
push eax
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 6]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push str._d._d._d._d
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov al, 1
jmp 0x44fb02
xor al, al
pop esi
leave
ret
Function at 0x45f0b6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov esi, dword [sym.imp.MSVCRT.dll_localtime]
lea eax, [ebp - 8]
push eax
call esi
mov ebx, dword [eax + 0xc]
pop ecx
pop ecx
lea edi, [ebp - 0x113]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
mov al, byte [0x508900]
push 0x3f
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push 0x40
and dword [ebp - 0xc], 0
push eax
push 0x508900
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov edi, str._ld__d
je 0x45f17f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x45f17f
lea eax, [ebp - 0xc]
push eax
call esi
cmp ebx, dword [eax + 0xc]
pop ecx
jne 0x45f178
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jne 0x45f178
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x45f178
inc dword [ebp - 4]
jmp 0x45f17f
mov dword [ebp - 4], 1
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push dword [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x114]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
cmp dword [ebp - 4], 2
pop edi
pop esi
setle al
pop ebx
leave
ret 0xc