joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102791e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
je 0x1027939
xor eax, eax
inc eax
jmp 0x1027a8d
push edi
mov edi, 0xf1
push edi
push 0xcd
mov dword [ebp - 0xc], ebx
call sub.MFC42u.DLL_AfxFindResourceHandle
push edi
push 0xcd
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
jne 0x1027968
xor eax, eax
jmp 0x1027a8c
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1027961
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x1027961
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
pop ecx
xor ecx, ecx
cmp word [edi + 6], bx
mov dword [ebp - 8], eax
jbe 0x10279d0
lea edx, [edi + 8]
add eax, 8
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
add dword [ebp - 4], 2
mov dword [eax - 8], ecx
movzx edx, word [edx]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx edx, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x10279a8
call sub.MFC42u.DLL_AfxGetModuleState
movzx ecx, word [edi + 6]
mov eax, dword [eax + 0xc]
push 0x14
mov edx, dword [esi + 0x20]
push ebx
push ebx
push 0xf
push 0x10
push ecx
push dword [ebp - 8]
push 0xcd
push eax
push ecx
push 1
push 0x50800b48
push edx
call dword [sym.imp.COMCTL32.dll_CreateToolbarEx]
push dword [ebp - 8]
mov dword [esi + 0x60], eax
call sub.MFC42u.DLL_operatordelete
cmp dword [esi + 0x60], ebx
pop ecx
je 0x1027a89
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x20]
call edi
push 5
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x20]
call edi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 4
pop ecx
cdq
idiv ecx
push 3
pop edi
movzx ecx, ax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
shl ecx, 0x10
cdq
idiv edi
movzx eax, ax
or ecx, eax
push ecx
push ebx
push 0x41f
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 0x14
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
xor edi, edi
push eax
inc edi
push edi
push edi
push ebx
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102910c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1034187
call fcn.0102edc8
sub esp, 0xc
push ebx
push edi
push dword [0x103c204]
lea ecx, [ebp - 0x10]
xor ebx, ebx
xor edi, edi
call sub.MFC42u.DLL_CString::CString_2
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
jne 0x1029140
push dword [0x103c208]
jmp 0x1029143
push dword [ebp + 0xc]
call fcn.0102e002
push esi
mov esi, 0x10021cc
push esi
lea ecx, [ebp - 0x10]
call fcn.0102e002
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0102e002
push esi
lea ecx, [ebp - 0x10]
call fcn.0102e002
push dword [0x103c20c]
lea ecx, [ebp - 0x10]
call fcn.0102e002
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop esi
jne 0x10291f8
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp + 8]
mov eax, 0x104
push ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10291e4
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WINMM.dll_sndPlaySoundW]
xor edi, edi
inc edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0102d8a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0102d8a6
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x102a7a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10342eb
call fcn.0102edc8
push ecx
push ebx
push esi
push edi
mov esi, 0xf1
push esi
push dword [ebp + 0xc]
call sub.MFC42u.DLL_AfxFindResourceHandle
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x102a873
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x102a873
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x102a873
cmp word [esi + 6], bx
jbe 0x102a873
lea edi, [esi + 8]
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
push 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0102ac77
push 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0102ac77
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
call sub.MFC42u.DLL_CToolBar::SetButtonText
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0102d8a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0102d8a6
movzx eax, word [esi + 6]
inc ebx
inc edi
inc edi
cmp ebx, eax
jl 0x102a802
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x102ad28
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp + 0x1c]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push 0x1001e40
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102adb6
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102adac
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
dec esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 0x18

Function at 0x102adc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, 0x1001e40
jbe 0x102ade3
push esi
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0x20019
push edi
push esi
push edi
push dword [ebp + 8]
mov dword [ebp + 0x14], edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102ae32
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ae29
xor edi, edi
inc edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x102ae40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20019
push esi
push 0x1001e40
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102aea5
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ae9c
cmp dword [ebp + 0x14], 4
jne 0x102ae9c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x102aeb1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x1001e40
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102af0f
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x102af06
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x102af1b
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp + 8]
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0xf003f
push eax
push 0x1001e40
push eax
push dword [ebp + 8]
xor esi, esi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102af68
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x102af5f
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x102b123
Capabilities:
Create directory
Get common file path
Get session user name

Disassembly:
mov eax, 0x103439f
call fcn.0102edc8
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0100bdab
test eax, eax
je 0x102b14a
call fcn.0100bdab
test eax, eax
je 0x102b14a
mov ebx, dword [eax + 0x20]
jmp 0x102b14c
xor ebx, ebx
mov edi, dword [ebp + 8]
push 0
push 0x1c
mov esi, 0x104
push esi
mov ecx, edi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0xc44b
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
mov ebx, 0x10021cc
push ebx
push edi
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0102d8a6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0102d8a6
push ebx
mov ecx, edi
call fcn.0102e002
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
sub eax, 0xc44e
mov byte [ebp - 4], 3
je 0x102b227
dec eax
jne 0x102b23b
push dword [ebp - 0x10]
push 0x1007958
jmp 0x102b22f
push dword [ebp - 0x10]
push 0x1007938
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0102dff6
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0102d8a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0102d8a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x102eb71
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1008180
call fcn.0102eec8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x102ebac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x102ebac
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x102ebc4
cmp eax, 0x20b
je 0x102ebb1
mov dword [ebp - 0x1c], edi
jmp 0x102ebd8
cmp dword [ecx + 0x84], 0xe
jbe 0x102ebac
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x102ebd2
cmp dword [ecx + 0x74], 0xe
jbe 0x102ebac
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103cae8], 0xffffffff
or dword [0x103caec], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103c9ec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103c9e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103cae4], eax
call fcn.0102eec0
cmp dword [0x103c3e0], edi
jne 0x102ec35
push fcn.0102eec0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0102eea9
push 0x103b030
push 0x103b02c
call sub.msvcrt.dll__initterm
mov eax, dword [0x103c9e4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103c9e0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x103b028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x102ec9b
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x102ed55
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x102ece9
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x102ecb7
cmp ax, 0x22
jne 0x102eca4
cmp word [esi], 0x22
jne 0x102ecc2
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x102ecd0
cmp ax, 0x20
jbe 0x102ecbd
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x102ecf6
movzx eax, word [ebp - 0x50]
jmp 0x102ecf9
cmp word [esi], 0x20
jbe 0x102ecc2
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x102ece9
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.01032055
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x102ed1a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x102ed4f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0102ef03
ret
Function at 0x102f01d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1008478
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102f075
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004f9c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102f068
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x102f077
xor eax, eax
pop esi
leave
ret 4

Function at 0x10310e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 2
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
jne 0x1031113
push 0x2ca
jmp 0x103113b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x1031128
push 0x2cd
jmp 0x103113b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x1031158
push 0x2d0
push 0x10085f8
push 0x10084f4
push 3
push ebx
call sym.dialer.exe_TracePrintf
add esp, 0x14
mov dword [ebp - 4], ebx
jmp 0x103123e
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [ebp + 8], eax
mov edi, 0x10085f8
mov esi, 0x10084f4
jne 0x1031179
push 0x2d3
jmp 0x10311db
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call sym.dialer.exe__CreateDIBPalette_8
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1031193
push 0x2d6
jmp 0x10311db
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp eax, 0xffffffff
jne 0x10311b3
push 0x2dc
jmp 0x10311db
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push ebx
push eax
lea ecx, [ecx + edx*4]
add ecx, eax
push ecx
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x10311eb
push 0x2e3
push edi
push esi
push 3
push ebx
call sym.dialer.exe_TracePrintf
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x10311fa
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], ebx
je 0x1031204
cmp dword [ebp + 0x10], ebx
jne 0x103122b
cmp dword [ebp - 8], ebx
je 0x103122b
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
jne 0x103122b
push 0x2f7
push edi
push esi
push 3
push ebx
call sym.dialer.exe_TracePrintf
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x103123e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x103123e
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x103135c
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103c3d0]
push ebx
push esi
push edi
mov edi, 0x100
xor esi, esi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
jne 0x103148b
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x103148b
cmp dword [0x103ca04], esi
jle 0x10313a3
mov esi, dword [0x103ca00]
test esi, esi
jne 0x10314f5
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x103148b
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, 0x100869c
push ebx
push 0
push 0x1008724
mov edi, 0x1008718
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or dword [esi + 0x18], 0xffffffff
push ebx
mov dword [esi + 0xc], eax
xor eax, eax
push 0x104
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001e40
push 0x1008704
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], 0
je 0x10314d7
push 0x10086f4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10314a8
mov dword [esi + 0x10], 8
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov word [ebp - 0x210], 0x50
mov word [ebp - 0x20e], 0x3e8
push dword [ebp - 0x210]
mov dword [esi + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0x800
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x10314f5
push esi
call fcn.010312f7
push eax
call sym.dialer.exe__TraceTerm_4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102d566
leave
ret 8
push 3
lea eax, [ebp - 0x20c]
push 0x10086ec
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10314e0
push 4
push dword [ebp - 0x206]
call dword [sym.imp.msvcrt.dll_iswctype]
test eax, eax
pop ecx
pop ecx
je 0x10314e0
mov dword [esi + 0x10], 1
jmp 0x1031470
lea eax, [ebp - 0x20c]
push eax
push 0x10086b0
call fcn.01031317
pop ecx
pop ecx
jmp 0x103148b
inc dword [0x103ca04]
cmp dword [0x103ca04], 1
jne 0x103150a
mov dword [0x103ca00], esi
push esi
call fcn.010312f7
jmp 0x1031499
Function at 0x103159f
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.01031517
mov esi, eax
test esi, esi
jne 0x10315bb
xor ebx, ebx
jmp 0x1031609
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x10315c7
xor ebx, ebx
jmp 0x1031608
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x1031608
cmp eax, dword [esi + 0xc]
jg 0x1031608
mov eax, dword [esi + 0x10]
dec eax
je 0x1031601
dec eax
je 0x1031601
sub eax, 6
jne 0x1031608
cmp dword [esi + 0x14], 0
je 0x1031608
push 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1031608
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
test ebx, ebx
setne al
pop esi
pop ebx
dec eax
pop ebp
ret 0xc
Function at 0x419110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4191e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov esi, eax
mov eax, edi
mov edx, esi
call fcn.004050bc
mov eax, dword [edi]
call fcn.00404f30
push eax
push esi
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4191c6
mov eax, dword [edi]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00404ae8
test bl, bl
je 0x4191cd
push dword [edi]
push 0x419200
lea eax, [ebp - 0x14]
mov edx, dword [0x41ccc8]
add edx, 0x187
mov ecx, 0xb
call fcn.00404d04
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040c2c8
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404ae8
jmp 0x4191cd
mov eax, edi
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4191ef
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404ab8
ret

Function at 0x4192fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x419398
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, edi
call fcn.00404f30
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004050bc
push esi
mov eax, dword [ebx]
call fcn.00404f30
push eax
mov eax, edi
call fcn.00404f30
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x419376
mov eax, dword [ebx]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c2c8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404ae8
jmp 0x41937d
mov eax, ebx
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41939f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
ret