joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c1e
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0040f940
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x42b570]
je 0x420d25
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x420c8e
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x420c95
cmp ebx, ebx
jne 0x420c95
xor eax, eax
jmp 0x420d28
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x420ca2
mov byte [esi + 0x20], bl
jmp 0x420cb6
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040dae4
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040dae4
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040dae4
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x420d11
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x420d25
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421d9a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x435170]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x421de9
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x421de9
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x421df5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040e8ce
leave
ret 8
Function at 0x422a02
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x435170]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x422a4f
push dword [ebp + 8]
call fcn.00423ed4
mov esi, eax
test esi, esi
je 0x422a77
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x422a77
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42a1d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040e8ce
leave
ret 0xc

Function at 0x4232b3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x435170]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x423311
push 0x429b24
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040f267
add esp, 0x10
cmp eax, 0xffffffff
je 0x423325
cmp eax, esi
jae 0x423325
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x423327
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4232dc
jmp 0x423328
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040e8ce
leave
ret
Function at 0x423348
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x435170]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4233ea
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4234ec
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42349a
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4234ed
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42348f
cmp dword [ebp - 0x24], 1
jne 0x42348f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x429b34
push eax
call fcn.0040f2be
add esp, 0xc
cmp eax, 1
jne 0x42348f
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4234ed
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4234ed
lea ecx, [ebp - 0x18]
push ecx
push 0x423332
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4234ed
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x423513
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004232b3
cmp eax, ebx
pop ecx
pop ecx
jne 0x423515
inc edi
cmp edi, esi
jl 0x4234fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040e8ce
leave
ret 4
Function at 0x423524
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x434150
je 0x4235e0
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4235c8
mov esi, dword [ebx + 4]
jmp 0x4235c2
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4235b2
cmp dword [ebp - 0xc], 4
jne 0x4235b2
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4235aa
or dword [eax + 0x9c], ecx
jmp 0x4235b2
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x423576
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x423559
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4239cd
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x427e10
call fcn.0040f2f4
sub esp, 0x11c
mov eax, dword [0x435170]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x423ac6
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x423a9a
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00404847
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004239cd
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401190
test bl, bl
jne 0x423a9a
or dword [ebp - 4], 0xffffffff
jmp 0x423a0b
cmp esi, 0x103
je 0x423aaa
cmp esi, 0x3f2
jne 0x423aba
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040e8ce
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x424cfb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x424d30
cmp edi, dword [esi + 0xc]
jge 0x424d30
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424d30
cmp edi, dword [eax + 8]
jge 0x424d30
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x424d32
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x424e36
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x424e6a
jmp fcn.0041a097
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x424edb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x424fd4
cmp eax, dword [edi + 0xc]
jge 0x424fd4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x424f2c
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x424fbd
cmp dword [ebp + 0xc], ebx
je 0x424fbd
jmp 0x424f56
push 0x10
call fcn.00424bc7
cmp eax, ebx
je 0x424f42
mov ecx, eax
call fcn.00424e2d
mov esi, eax
jmp 0x424f44
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x424f6d
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x424f7d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x424f8f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041a097
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040f940
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x424fcf
cmp ecx, dword [esi + 8]
jge 0x424fcf
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x424fd5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425094
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 0x4250c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4250e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424ffe
jmp 0x4250e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4250e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00424ffe
test edi, edi
mov eax, edi
jne 0x4250ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43b1e4]
test ecx, ecx
je 0x425193
jmp 0x425093
ret 8

Function at 0x4276d7
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x4276f4
cmp dword [ebp + 0xc], edi
je 0x4277e9
push 1
push ebx
call fcn.004272ea
test eax, eax
jne 0x4277e9
push esi
push edi
push ebx
call fcn.004272ea
mov esi, eax
cmp esi, edi
jne 0x427740
call fcn.00424b84
mov ecx, dword [eax + 0x30]
push 0xffffffffffffffff
call fcn.0041a788
mov esi, eax
cmp esi, edi
je 0x4277e8
push edi
push 0xffffffffffffffff
mov dword [esi + 4], ebx
call fcn.004275f7
push edi
push esi
push dword [esi + 4]
call fcn.00427530
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
dec eax
je 0x427799
dec eax
je 0x42778f
dec eax
dec eax
je 0x427785
sub eax, 4
je 0x42777b
sub eax, 8
je 0x427771
sub eax, 0x10
jne 0x4277e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x4277e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x4277e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x4277e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x4277e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x4277e8
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x4277d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp dword [ebp + 0xc], 1
je 0x4277e0
cmp ebx, edi
je 0x4277e8
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x427a3b
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x427f35
call fcn.0040f2f4
sub esp, 0x198
mov eax, dword [0x435170]
push ebx
push esi
push edi
push 0x423f29
mov ecx, 0x439544
mov dword [ebp - 0x10], eax
call fcn.00424d5b
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x427a9d
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x427a7b
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x427acf
cmp byte [esi], 1
jne 0x427ac9
cmp byte [esi + 1], 1
jne 0x427ac9
mov dword [edi + 0xc], 0x427a08
call fcn.00424b84
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x427adc
push 0x1c
call fcn.0041c011
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x427ad3
push 0xa
call fcn.0041a8a3
jmp 0x427ad5
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x427b3f
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x427b0e
push 0x1c
call fcn.0041c011
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x427b05
push 0xa
call fcn.0041a8a3
jmp 0x427b07
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x427b3c
push 0x1c
call fcn.0041c011
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x427b37
push 0xa
call fcn.0041a384
jmp 0x427b39
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040e8ce
leave
ret 4
Function at 0x402fc0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4b0290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x34]
push esi
push edi
push eax
push 1
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CPen::CPen
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 8], 0x4bd504
lea ecx, [esp + 8]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x18
Function at 0x404850
Capabilities:
Capture webcam image

Disassembly:
push 0xffffffffffffffff
push 0x4b04a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x41d
call sub.MFC42.DLL_CWnd::GetDlgItem
push eax
call fcn.00405910
add esp, 4
mov ecx, esi
mov edi, eax
push 0x419
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
mov ebp, eax
call fcn.00405560
test eax, eax
je 0x404957
test edi, edi
je 0x404957
test ebp, ebp
jl 0x4048d6
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4048d6
mov ecx, dword [esi + 0xd8]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x4048f0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x404957
mov edx, dword [esi + 0xd8]
sub edx, eax
and edx, 0xfffffffc
cmp edx, 4
jne 0x404957
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40492e
mov ecx, dword [esi + 0xd8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 4
jne 0x40492e
push 0
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_time]
mov edi, eax
mov eax, dword [ebx]
add esp, 4
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
shl edx, 7
add edi, edx
jmp 0x404959
mov ebx, dword [esi + 0xd4]
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov edi, eax
mov eax, dword [ebx + ebp*4]
add esp, 4
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
shl eax, 7
add edi, eax
jmp 0x404959
xor edi, edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
push edi
lea ecx, [esp + 0x14]
push 0x4d6364
push ecx
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esi + 0xec]
mov edx, dword [esp + 0x1c]
mov esi, dword [esi + 0xc0]
add esp, 0xc
push eax
push edx
push str.NextTime
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404a60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0xec]
mov ecx, dword [ecx + 0xc0]
push esi
push eax
push 0
push str.NextTime
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
mov esi, eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
xor ecx, ecx
cmp eax, esi
setge cl
mov eax, ecx
pop esi
ret
Function at 0x4055e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b05cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xcc]
push ecx
lea ecx, [esp + 8]
mov edx, dword [eax]
mov eax, dword [esi + 0xc8]
push edx
push eax
push str._s_d_s
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format_1
mov esi, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x405680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b05e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_5
mov edi, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
mov ecx, edi
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov esi, eax
test esi, esi
jne 0x4056f3
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [edi + 0x20]
push ebx
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esi]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
mov ecx, esi
call dword [ebx + 0x30]
mov ebx, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 6
push edx
push eax
push 0
push 0
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowPos
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret