joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
mov eax, dword [0x424030]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov dword [esp + 0x10], 0
pushal
rdtsc
mov dword [esp + 0x30], eax
popal
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x40dc55
mov dword [ebp + 8], eax
jmp 0x40dc5c
mov dword [ebp + 8], 0x30e958a7
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x40dc6f
push eax
call fcn.0040ee0c
add esp, 4
mov dword [ebp + 0x10], edi
push 0x4c0
call fcn.0040f431
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x40de0a
push 0x4c0
push edi
push eax
call fcn.00411760
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, edi
je 0x40dca9
push eax
call fcn.0040ee0c
add esp, 4
mov dword [ebp + 0x14], edi
push 0xc00
call fcn.0040f431
add esp, 4
mov dword [ebp + 0x14], eax
cmp eax, edi
je 0x40de0a
push 0xc00
push edi
push eax
call fcn.00411760
add esp, 0xc
lea eax, [esp + 0x14]
mov bl, 0x65
push eax
mov byte [esp + 0x18], 0x6b
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x72
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x6c
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], 0x6c
mov byte [esp + 0x23], 0x6c
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, edi
je 0x40de0a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x34]
push ecx
push esi
mov byte [esp + 0x3c], 0x47
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x74
mov byte [esp + 0x3f], 0x4d
mov byte [esp + 0x40], 0x6f
mov byte [esp + 0x41], 0x64
mov byte [esp + 0x42], 0x75
mov byte [esp + 0x43], 0x6c
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 0x48
mov byte [esp + 0x46], 0x61
mov byte [esp + 0x47], 0x6e
mov byte [esp + 0x48], 0x64
mov byte [esp + 0x49], 0x6c
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0x41
mov byte [esp + 0x4c], 0
call edi
mov dword [ebp + 0x18], eax
test eax, eax
je 0x40de0a
lea edx, [esp + 0x24]
mov al, 0x73
push edx
push esi
mov byte [esp + 0x2c], 0x47
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x2f], 0x50
mov byte [esp + 0x30], 0x72
mov byte [esp + 0x31], 0x6f
mov byte [esp + 0x32], 0x63
mov byte [esp + 0x33], 0x41
mov byte [esp + 0x34], 0x64
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], al
mov byte [esp + 0x39], al
mov byte [esp + 0x3a], 0
call edi
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x40de0a
mov ecx, dword [ebp + 8]
xor dword [ebp + 0x18], ecx
xor ecx, eax
mov dword [ebp + 0x1c], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040ee17
add esp, 0x3c
ret 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040ee17
add esp, 0x3c
ret 4
Function at 0x40ee17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424030]
jne 0x40ee21
repz ret
jmp fcn.004104f8

Function at 0x417e32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410b7e
and dword [ebp - 4], 0
cmp dword [0x425d74], 0
mov ebx, eax
jne 0x417ee3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417f94
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417f94
push eax
call fcn.00410b0c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425d74], eax
call esi
push eax
call fcn.00410b0c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425d78], eax
call esi
push eax
call fcn.00410b0c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x425d7c], eax
call esi
push eax
call fcn.00410b0c
pop ecx
mov dword [0x425d84], eax
test eax, eax
je 0x417ee3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410b0c
pop ecx
mov dword [0x425d80], eax
mov eax, dword [0x425d80]
cmp eax, ebx
je 0x417f3b
cmp dword [0x425d84], ebx
je 0x417f3b
push eax
call fcn.00410b87
push dword [0x425d84]
mov esi, eax
call fcn.00410b87
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417f3b
test edi, edi
je 0x417f3b
call esi
test eax, eax
je 0x417f32
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417f32
test byte [ebp - 0xc], 1
jne 0x417f3b
or dword [ebp + 0x10], 0x200000
jmp 0x417f74
mov eax, dword [0x425d78]
cmp eax, ebx
je 0x417f74
push eax
call fcn.00410b87
pop ecx
test eax, eax
je 0x417f74
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417f74
mov eax, dword [0x425d7c]
cmp eax, ebx
je 0x417f74
push eax
call fcn.00410b87
pop ecx
test eax, eax
je 0x417f74
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425d74]
call fcn.00410b87
pop ecx
test eax, eax
je 0x417f94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417f96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.Software_vp_eye
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 3]
push ecx
push edx
push 0
push 0
push str.VideoDriver
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [esp + 3]
add esp, 0xc
ret

Function at 0x401e70
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [esp + 8]
lea ecx, [esp]
push ecx
push 0xf003f
push 0
push str.Software_vp_eye
push closesocket
mov byte [esp + 0x1c], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp]
lea edx, [esp + 8]
push 1
push edx
push 3
push 0
push str.VideoDriver
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x403520
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x429588]
sub esp, 0x14c
cmp eax, 1
je 0x403650
push esi
push edi
lea eax, [esp + 0x2c]
push 0xa0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push str.TWAIN_32.DLL
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x2b], 0x5c
je 0x40357d
lea edx, [esp + 0x2c]
push 0x4212bc
push edx
call esi
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
lea edx, [esp + 0xcc]
push 0x4000
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
pop edi
cmp eax, 0xffffffff
pop esi
je 0x403633
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42958c], eax
je 0x403633
cmp eax, 0x20
jb 0x403633
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x436b9c], eax
je 0x403633
push 0x430840
push 0x301
push 4
push 1
push 0
push 0x436a60
call eax
test ax, ax
je 0x403622
mov edx, dword [0x430840]
push 0
push str.Warnning
push str.Error_in_Open__LoadLibrary__or_GetProcAddress._nTwain_DLL_may_not_exist.
push edx
mov dword [0x429588], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x429588]
add esp, 0x14c
ret
mov eax, 1
mov dword [0x429588], eax
add esp, 0x14c
ret
mov eax, dword [0x430840]
push 0
push str.Warnning
push str.Error_in_Open__LoadLibrary__or_GetProcAddress._nTwain_DLL_may_not_exist.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x429588]
add esp, 0x14c
ret
Function at 0x403970
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0x30
push 0x40
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 0
push 0xe
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x30
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
xor edx, edx
mov dx, word [esi + 0xe]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov ax, word [esi + 0xc]
imul edx, eax
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
lea eax, [edx - 1]
mov dword [esp + 0x14], ecx
cmp eax, 0x17
ja case.0x403a00.3
xor edx, edx
mov dl, byte [eax + 0x403af8]
jmp dword [edx*4 + 0x403aec]
lea eax, [ecx + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
and eax, 0xfffc
mov dword [esp + 0x2c], eax
jmp 0x403a44
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
mov edi, eax
imul edi, ebx
push edi
push 0x40
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov ebp, eax
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
push 0
push 1
push 1
push ebx
push edx
call dword [sym.imp.GDI32.dll_CreateBitmap]
xor edi, edi
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x403ab4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push 0
push esi
push ebp
push 1
push edi
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetDIBits]
mov edx, dword [esp + 0x2c]
add ebp, edx
inc edi
cmp edi, ebx
jl 0x403a92
mov edi, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
mov ebx, dword [esp + 0x20]
push ebx
call esi
push ebx
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4043e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404415
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0xe
push edx
push ebx
call edi
cmp word [esp + 0x14], 0x4d42
je 0x404447
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push 0
push 0xe
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x2c]
push 0
push eax
push 0x28
push esi
push ebx
call edi
xor eax, eax
xor edi, edi
mov di, word [esi + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov ax, word [esi + 0xe]
imul eax, edi
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, 0x18
jge 0x4044d6
mov ecx, dword [0x422828]
push 0
push 0x4210b4
mov edx, dword [ecx + 0x110]
push edx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
lea edi, [eax - 1]
cmp edi, 0x17
ja case.0x4044e6.5
xor eax, eax
mov al, byte [edi + 0x4045d8]
jmp dword [eax*4 + 0x4045c4]
lea eax, [edx + 7]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
add edi, 3
and edi, 0xfffc
imul edi, ecx
jmp 0x404542
lea eax, [edx + 1]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, 3
and edi, 0xfffc
imul edi, ecx
jmp 0x404542
lea edi, [edx + 3]
and edi, 0xfffc
imul edi, ecx
jmp 0x404542
lea edi, [edx + edx*2 + 3]
and edi, 0xfffc
imul edi, ecx
jmp 0x404542
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x14], edi
mov eax, dword [ecx]
test eax, eax
je 0x404556
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x30]
push eax
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push 0
push esi
push edx
push 4
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
mov edx, dword [ecx]
push edx
call edi
push ebp
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x406420
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push esi
call edi
cmp eax, 0xffffffff
je 0x4064b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4307f0]
cmp eax, 8
je 0x40646e
cmp eax, 3
je 0x40646e
mov eax, dword [0x422828]
push esi
mov ecx, dword [eax + 0x118]
push ecx
jmp 0x40647b
mov eax, dword [0x422828]
mov ecx, dword [eax + 0x118]
push ecx
push esi
lea edx, [esp + 0x20]
push str._s__s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x18]
push 1
push 0x4210b4
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4064b4
pop edi
xor eax, eax
pop esi
add esp, 0x60
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4064d8
pop edi
xor eax, eax
pop esi
add esp, 0x60
ret
push ebx
mov ebx, dword [esp + 0x74]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
inc eax
lea edx, [esp + 0x74]
push 0
push edx
lea esi, [eax + eax*2]
lea eax, [esp + 0x18]
push 0xe
add ecx, 0x36
push eax
push edi
mov word [esp + 0x24], 0x4d42
mov dword [esp + 0x2e], 0x36
and esi, 0xfffc
mov dword [esp + 0x26], ecx
call ebp
lea ecx, [esp + 0x74]
push 0
push ecx
push 0x28
push ebx
push edi
call ebp
mov ebx, dword [ebx + 8]
test ebx, ebx
jle 0x406550
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x7c]
lea edx, [esp + 0x74]
push 0
push edx
push esi
push ebx
push edi
call ebp
mov eax, dword [esp + 0x78]
add ebx, esi
dec eax
mov dword [esp + 0x78], eax
jne 0x406537
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x60
ret
Function at 0x406c60
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ecx, 0xa
mov edi, 0x4363e0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4363e4]
mov ax, word [0x4363ee]
lea ebx, [ecx + ecx*2 + 3]
and ebx, 0xfffc
cmp ax, 8
jne 0x406c94
mov ebx, ecx
jmp 0x406ca8
cmp ax, 0x10
jne 0x406c9f
lea ebx, [ecx + ecx]
jmp 0x406ca8
cmp ax, 0x18
jne 0x406ca8
lea ebx, [ecx + ecx*2]
mov eax, ebx
and eax, reloc.WSOCK32.dll_closesocket
jns 0x406cb6
dec eax
or eax, 0xfffffffc
inc eax
je 0x406cca
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ebx, [eax*4 + 4]
xor edx, edx
mov ebp, dword [esp + 0x14]
mov dword [0x4364a0], edx
mov ax, word [0x4363e8]
mov dword [0x4364a4], edx
mov byte [0x4364a2], 2
mov dword [0x4364a8], edx
mov dword [0x4364ac], edx
mov word [0x4364ac], cx
lea ecx, [esp + 0x18]
push edx
push ecx
push 0x12
push 0x4364a0
mov word [0x4364b0], dx
push ebp
mov word [0x4364ae], ax
mov byte [0x4364b0], 0x18
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x4363e8]
mov esi, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x406d57
mov eax, dword [0x4363e4]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [eax + eax*2]
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x4363e8]
add esi, ebx
inc edi
cmp edi, eax
jl 0x406d33
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4073c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4073e9
xor eax, eax
pop esi
ret
lea ecx, [esp + 8]
push 0
push ecx
push 0x600c
push 0x42a5b0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str.MMEDIA.
push 0x42a5b0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x407420
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x407430
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x42a5b8]
push ebx
push ebp
push esi
xor esi, esi
push edi
test eax, eax
jle 0x407474
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, 0x42a5c0
push edi
push ebx
call ebp
test eax, eax
je 0x40746c
mov eax, dword [0x42a5b8]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x40744f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp esi, dword [0x42a5b8]
jl 0x40747c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x1c]
lea eax, [esi + esi*2]
push 0
push 0
mov ecx, dword [eax*8 + 0x42a5bc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x28
push 0x40
call ebp
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edx, [esp + 0x20]
push 0
mov esi, eax
push edx
push 0x28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
inc eax
lea edi, [eax + eax*2]
and edi, 0xfffc
imul edi, dword [esi + 8]
push edi
push 0x40
mov dword [esi + 0x14], edi
call ebp
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push 0
push ecx
push edi
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 0
push esi
push eax
push 4
push esi
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
mov esi, eax
call edi
push ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call edi
push ebp
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407540
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x42a5b8]
push ebx
push ebp
push esi
xor esi, esi
push edi
test eax, eax
jle 0x407583
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, 0x42a5c0
push edi
push ebx
call ebp
test eax, eax
je 0x40757a
mov eax, dword [0x42a5b8]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x40755e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [0x42a5b8]
cmp esi, eax
jl 0x40758a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
dec eax
cmp esi, eax
lea eax, [esi + esi*2]
je 0x4075a3
shl eax, 3
lea esi, [eax + 0x42a5bc]
mov eax, dword [eax + 0x42a5d4]
jmp 0x4075b7
mov edx, dword [esp + 0x14]
push 0
push edx
lea esi, [eax*8 + 0x42a5bc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi]
pop edi
sub eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
pop esi
mov dword [eax], edx
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x408490
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4306a4]
push esi
test eax, eax
jne 0x4084a1
mov eax, 6
pop esi
ret
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [0x435e88], eax
jae 0x4084bd
mov eax, 2
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogon
push eax
call esi
test eax, eax
mov dword [0x435e90], eax
jne 0x4084db
mov eax, 4
pop esi
ret
mov eax, dword [0x435e88]
push str.MAPILogoff
push eax
call esi
test eax, eax
mov dword [0x435eb0], eax
jne 0x4084f8
mov eax, 4
pop esi
ret
mov ecx, dword [0x435e88]
push str.MAPISendMail
push ecx
call esi
test eax, eax
mov dword [0x435e84], eax
jne 0x408516
mov eax, 4
pop esi
ret
mov edx, dword [0x435e88]
push str.MAPISendDocuments
push edx
call esi
test eax, eax
mov dword [0x435e9c], eax
jne 0x408534
mov eax, 4
pop esi
ret
mov eax, dword [0x435e88]
push str.MAPIFindNext
push eax
call esi
test eax, eax
mov dword [0x435eac], eax
jne 0x408551
mov eax, 4
pop esi
ret
mov ecx, dword [0x435e88]
push str.MAPIReadMail
push ecx
call esi
test eax, eax
mov dword [0x435eb4], eax
jne 0x40856f
mov eax, 4
pop esi
ret
mov edx, dword [0x435e88]
push str.MAPISaveMail
push edx
call esi
test eax, eax
mov dword [0x435eb8], eax
jne 0x40858d
mov eax, 4
pop esi
ret
mov eax, dword [0x435e88]
push str.MAPIDeleteMail
push eax
call esi
test eax, eax
mov dword [0x435e98], eax
jne 0x4085aa
mov eax, 4
pop esi
ret
mov ecx, dword [0x435e88]
push str.MAPIFreeBuffer
push ecx
call esi
test eax, eax
mov dword [0x435e94], eax
jne 0x4085c8
mov eax, 4
pop esi
ret
mov edx, dword [0x435e88]
push str.MAPIAddress
push edx
call esi
test eax, eax
mov dword [0x435ea8], eax
jne 0x4085e6
mov eax, 4
pop esi
ret
mov eax, dword [0x435e88]
push str.MAPIDetails
push eax
call esi
test eax, eax
mov dword [0x435ea4], eax
jne 0x408603
mov eax, 4
pop esi
ret
mov ecx, dword [0x435e88]
push str.MAPIResolveName
push ecx
call esi
mov dword [0x435ea0], eax
pop esi
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
ret
Function at 0x409840
Capabilities:
Get disk information
Read .ini file

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x10], eax
mov edi, 1
xor ebx, ebx
mov eax, dword [esp + 0x10]
test eax, edi
je 0x4098a9
mov cl, bl
lea edx, [esp + 0x14]
add cl, 0x41
push edx
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0
call ebp
cmp eax, 5
jne 0x4098a9
movsx eax, byte [esp + 0x14]
push eax
call fcn.00409780
add esp, 4
test eax, eax
je 0x40992c
shl edi, 1
inc ebx
cmp ebx, 0x20
jl 0x409867
mov ecx, dword [0x422828]
lea eax, [esp + 0x64]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.pc_eye.ini
lea ecx, [esp + 0xb8]
push 0x50
push ecx
push 0
push str.group
push str.settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xb4]
lea eax, [esp + 0x64]
push edx
push eax
call esi
mov ecx, dword [0x422828]
lea eax, [esp + 0x64]
mov edx, dword [ecx + 0x120]
push edx
push eax
call esi
mov edx, dword [0x435740]
push 5
lea ecx, [esp + 0x68]
push 0x4210b4
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x409939
jmp 0x409860
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf4
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xf4
ret