joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bb40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43bb73
push esi
call fcn.0043ec30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43bb6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43bbf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43bbe2
mov eax, dword [esi + 8]
test eax, eax
je 0x43bb97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43bbde
cmp eax, 2
je 0x43bbe2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43bb8a
cmp eax, 3
je 0x43bbbd
cmp eax, 1
jne 0x43bb8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43bb8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43bb8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043bc20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43bc08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043bc20
add esp, 4
pop esi
ret

Function at 0x45a469
Capabilities:
Get graphical window text

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

Function at 0x45bb5b
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 0x45bb9d
call fcn.004614dc
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45bb9d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45bb94
xor eax, eax
jmp 0x45bba5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045bbab
pop edi
pop esi
pop ebx
ret 4

Function at 0x461a0c
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 0x461a3a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x461a58
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00461972
jmp 0x461a58
mov eax, dword [esi + 0x14]
test eax, eax
je 0x461a58
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00461972
test edi, edi
mov eax, edi
jne 0x461a42
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4195c0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x4195e8
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4195f7
mov eax, 1
ret 4

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401285
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40ed28
call fcn.0040ea50
sub esp, 0x24
lea eax, [ebp - 0x28]
push esi
mov dword [ebp - 0x24], ecx
push eax
call fcn.00403e0c
mov dword [esp], str.Config.ini
push eax
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040e5c2
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
push esi
push str.AccountCount
push str.Parameters
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or dword [ebp - 0x14], 0xffffffff
cmp eax, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], esi
jle 0x4013f8
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push edi
mov edi, 0x41a638
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push str.Account_d
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x1c]
push 0x46
push 0x46
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push edi
push str.Username
push ebx
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 8], 0
je 0x4013e7
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x14]
lea ebx, [eax + 0x60]
xor eax, eax
push eax
push eax
push eax
push eax
push ecx
mov ecx, ebx
push dword [ebp - 0x14]
push 1
call sub.MFC42u.DLL_CListCtrl::InsertItem
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push 0x46
push 0x46
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push edi
push str.Password
push dword [ebp - 0x2c]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp - 0x10]
mov ecx, ebx
push 1
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CListCtrl::SetItemText
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push 0x46
push 0x46
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push str.0.0.0.0
push 0x41a030
push dword [ebp - 0x2c]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp - 0x10]
mov ecx, ebx
push 2
push dword [ebp - 0x14]
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jl 0x40130c
pop edi
pop ebx
mov ecx, dword [ebp - 0x24]
push 0
call sub.MFC42u.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040e5c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040e5c2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040e5c2
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402532
Capabilities:
Create process on windows

Disassembly:
push dword [esp + 8]
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40267b
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x403f1e
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push edi
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_strlen
mov esi, str._:____qw2e5o7i8x12c6m67s98w43d2l45we82q3iuu1z4xle23rt4oxclle34e54u6r8m
mov ebx, eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
cmp eax, ebx
pop ecx
jge 0x403f50
xor eax, eax
jmp 0x404036
xor ecx, ecx
test ebx, ebx
jle 0x40402d
sub edi, esi
mov dl, byte [edi + ecx + str._:____qw2e5o7i8x12c6m67s98w43d2l45we82q3iuu1z4xle23rt4oxclle34e54u6r8m]
lea eax, [ecx + str._:____qw2e5o7i8x12c6m67s98w43d2l45we82q3iuu1z4xle23rt4oxclle34e54u6r8m]
xor dl, byte [eax]
inc ecx
cmp ecx, ebx
mov byte [ebp + ecx - 0x51], dl
jl 0x403f5c
test ebx, ebx
jle 0x40402d
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 4]
and dword [ebp + 0xc], 0
lea eax, [ebp + 8]
xor esi, esi
sub edi, eax
test ebx, ebx
jle 0x403f9f
inc dword [ebp + 0xc]
lea eax, [ebp + esi + 8]
mov cl, byte [edi + eax]
mov byte [eax], cl
jmp 0x403fa4
and byte [ebp + esi + 8], 0
inc esi
dec ebx
cmp esi, 3
jl 0x403f8d
add dword [ebp - 4], 3
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], ebx
je 0x404023
movzx eax, byte [ebp + 8]
mov ecx, eax
and eax, 3
shr ecx, 2
mov bl, byte [ebp + 0xa]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
movzx ecx, byte [ebp + 9]
mov esi, ecx
shr esi, 4
shl eax, 4
or esi, eax
cmp dword [ebp + 0xc], 1
mov al, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
jle 0x404002
movzx eax, bl
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x404004
mov al, 0x3d
cmp dword [ebp + 0xc], 2
mov byte [edx + 2], al
jle 0x404018
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40401a
mov bl, 0x3d
mov byte [edx + 3], bl
mov ebx, dword [ebp - 8]
add edx, 4
test ebx, ebx
jg 0x403f7f
jmp 0x404030
mov edx, dword [ebp + 8]
and byte [edx], 0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40403b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor ecx, ecx
xor edi, edi
cmp byte [eax], 0
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
je 0x4040fb
mov al, byte [edi + eax]
cmp al, 0x3d
jne 0x404075
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jg 0x404133
jmp 0x4040b0
mov dl, byte [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and dword [ebp + 8], 0
test dl, dl
je 0x4040ad
movsx eax, al
mov dword [ebp - 0xc], eax
mov al, dl
movzx eax, al
cmp eax, dword [ebp - 0xc]
je 0x4040a3
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
test al, al
jne 0x40408b
cmp dword [ebp + 8], 0x40
je 0x404133
add ecx, dword [ebp + 8]
mov eax, edi
push 4
cdq
pop edi
idiv edi
cmp edx, 3
jne 0x4040e4
mov eax, ecx
shr eax, 0x10
mov byte [esi + ebx], al
inc esi
cmp dword [ebp - 4], 2
jge 0x4040d5
mov eax, ecx
shr eax, 8
mov byte [esi + ebx], al
inc esi
cmp dword [ebp - 4], 1
jge 0x4040df
mov byte [esi + ebx], cl
inc esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
shl ecx, 6
inc edi
mov dword [ebp - 8], edi
cmp byte [edi + eax], 0
jne 0x40405f
mov eax, edi
push 4
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x404133
mov edi, str._:____qw2e5o7i8x12c6m67s98w43d2l45we82q3iuu1z4xle23rt4oxclle34e54u6r8m
push edi
call sub.MSVCRT.dll_strlen
cmp eax, esi
pop ecx
jl 0x404133
test esi, esi
jle 0x40412a
mov eax, ebx
sub edi, ebx
mov ecx, esi
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x404121
and byte [esi + ebx], 0
push 1
pop eax
jmp 0x404135
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053f8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40f31a
call fcn.0040ea50
sub esp, 0x114
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [esi + 0xca0]
cmp ecx, ebx
je 0x405437
mov eax, dword [ecx]
push 1
call dword [eax]
push ebx
push ebx
push 0x14b
mov dword [esi + 0xca0], ebx
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
push eax
call sub.wpcap.dll_pcap_findalldevs
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x4055a1
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4054e6
push dword [edi + 4]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_2
push dword [edi + 8]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator_2
test byte [edi + 0x10], 1
jne 0x4054e2
push 0xc
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x4054af
push dword [ebp - 0x10]
call fcn.0040c5e8
jmp 0x4054b1
xor eax, eax
mov ecx, dword [esi + 0xca0]
mov byte [ebp - 4], 1
cmp ecx, ebx
jne 0x4054c7
mov dword [esi + 0xca0], eax
jmp 0x4054cd
push eax
call fcn.0040c68b
push dword [ebp - 0x14]
push ebx
push 0x143
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [edi]
jmp 0x405470
push dword [ebp - 0x18]
call sub.wpcap.dll_pcap_freealldevs
cmp dword [esi + 0xca0], ebx
pop ecx
pop edi
je 0x40558a
lea eax, [ebp - 0x1c]
push eax
call fcn.00403e0c
mov dword [esp], str.Config.ini
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0040e5c2
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push 0x3c
push 0x3c
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x41a638
push str.DefaultAdapter
push str.Parameters
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [esi + 0xca0]
push ebx
push dword [ebp - 0x10]
call fcn.0040c6e3
cmp eax, 0xffffffff
jne 0x40556b
xor eax, eax
push ebx
push eax
push 0x14e
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e5c2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040e5c2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e5c2
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4055af
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40f33c
call fcn.0040ea50
sub esp, 0x1dc
mov eax, 0x8c
push ebx
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x28]
push 0x8b
push eax
mov dword [ebp - 0x1c], 1
call fcn.00403db7
mov eax, dword [eax]
pop ecx
pop ecx
xor edi, edi
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.0040e5c2
test bl, bl
jne 0x405772
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x41a38c
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405769
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.Password
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x405769
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
mov ecx, esi
call sub.MFC42u.DLL_CString::Empty
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x1e8]
push 0x46
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll_wcstombs]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0040403b
add esp, 0x14
test eax, eax
je 0x4056ba
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esi]
cmp dword [eax - 8], edi
je 0x405765
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], edi
je 0x405765
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e0c
mov dword [esp], str.Config.ini
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040e5c2
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, str.Parameters
push 0x41a388
push str.AccountCount
push ebx
call esi
push dword [ebp - 0x10]
mov edi, str.Account0
push edi
push str.DefaultAccount
push ebx
call esi
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
mov eax, dword [eax]
push eax
push str.Username
push edi
call esi
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push str.Password
push edi
call esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040e5c2
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e5c2
mov eax, esi
jmp 0x405774
xor esi, esi
jmp 0x405755
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x406255
Capabilities:
Read file on windows

Disassembly:
push ebx
push 0x41a3bc
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x406272
or eax, 0xffffffff
pop ebx
ret
push esi
push edi
push 2
push 0
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, dword [esp + 0x28]
push ebx
push 1
push esi
mov dword [edi], eax
and byte [eax + esi], 0
push dword [edi]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
cmp eax, 1
jae 0x4062c3
push dword [edi]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or esi, 0xffffffff
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4066da
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x41a3bc
push dword [esp + 0x18]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x406751
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
mov esi, 0x1000
push esi
call ebp
push ebx
mov edi, eax
push 1
push esi
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
jb 0x40673d
mov eax, dword [edi + 0x3c]
xor ecx, ecx
add eax, edi
movzx edx, word [eax + 6]
test edx, edx
jle 0x40673d
lea esi, [eax + 0x11c]
test dword [esi], 0x20000020
jne 0x406758
inc ecx
add esi, 0x28
cmp ecx, edx
jl 0x40672d
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
test edi, edi
pop ecx
je 0x406751
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
lea ecx, [ecx + ecx*4]
push 0
push dword [eax + ecx*8 + 0x10c]
lea esi, [eax + ecx*8]
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi + 0x108]
mov esi, dword [esp + 0x24]
push edi
mov dword [esi], eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esi]
add eax, 0x400
push eax
call ebp
push ebx
push 1
push dword [esi]
mov edi, eax
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x24
cmp eax, 1
jb 0x40673d
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
jmp 0x406753
Function at 0x4067ad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x41a3bc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x406827
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push eax
push 1
lea eax, [ebp - 0x10]
push 0x10
push eax
call esi
add esp, 0x10
cmp eax, 1
jb 0x40681d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
xor eax, dword [ebp - 0xc]
mov dword [edi], eax
jle 0x40681d
add eax, 0x100
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push 1
push dword [edi]
push eax
call esi
add esp, 0x14
cmp eax, 1
jae 0x40682d
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 0xc]
pop ecx
jmp 0x406829
Function at 0x407143
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40f480
call fcn.0040ea50
sub esp, 0x28
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, ecx
push eax
call fcn.00403e0c
and dword [ebp - 4], 0
mov dword [esp], str.Config.ini
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_operator
push 2
lea ecx, [ebp - 0x14]
pop ebx
mov byte [ebp - 4], bl
call fcn.0040e5c2
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push 0x10
push eax
push str.001110080300000
push str.CertFlag
push str.Parameters
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xf
lea eax, [ebp - 0x34]
pop edx
push 0x30
pop ecx
cmp word [eax], cx
jae 0x4071b0
mov word [eax], cx
add eax, ebx
dec edx
jne 0x4071a8
movzx eax, word [ebp - 0x34]
sub eax, ecx
mov edi, ebx
cdq
idiv edi
movzx eax, word [ebp - 0x32]
sub eax, ecx
push 4
mov dword [esi + 0x60], edx
cdq
idiv edi
movzx eax, word [ebp - 0x30]
sub eax, ecx
mov dword [esi + 0x64], edx
cdq
idiv edi
movzx eax, word [ebp - 0x2e]
sub eax, ecx
mov dword [esi + 0x68], edx
cdq
idiv edi
movzx eax, word [ebp - 0x2c]
sub eax, ecx
pop edi
push 0x64
mov dword [esi + 0x6c], edx
cdq
idiv ebx
movzx eax, word [ebp - 0x2a]
sub eax, ecx
mov dword [esi + 0x74], edx
cdq
idiv edi
movzx eax, word [ebp - 0x28]
pop edi
lea eax, [eax + eax*4]
push 2
mov dword [esi + 0x78], edx
movzx edx, word [ebp - 0x26]
lea eax, [edx + eax*2 - 0x210]
cdq
idiv edi
movzx eax, word [ebp - 0x24]
mov edi, 0x3e8
lea eax, [eax + eax*4]
mov ebx, edi
mov dword [esi + 0x7c], edx
movzx edx, word [ebp - 0x22]
lea eax, [edx + eax*2]
movzx edx, word [ebp - 0x20]
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x14d0]
cdq
idiv ebx
movzx eax, word [ebp - 0x1e]
lea eax, [eax + eax*4]
mov dword [esi + 0x80], edx
movzx edx, word [ebp - 0x1c]
lea eax, [edx + eax*2]
movzx edx, word [ebp - 0x1a]
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x14d0]
cdq
idiv edi
movzx eax, word [ebp - 0x18]
sub eax, ecx
pop ecx
push dword [ebp - 0x10]
lea edi, [esi + 0x84]
mov dword [esi + 0x88], edx
cdq
idiv ecx
mov eax, 0x104
mov ecx, edi
push eax
push eax
mov dword [esi + 0x70], edx
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x41a638
push str.PackagePath
push str.Parameters
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::UpdateData
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e5c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret