joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420110
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_3
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42014d
push 0
push 0x47c9d0
push str.Couldnt_open_file_with_CreateFile__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
ret
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x420182
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x47c9d0
push str.Couldnt_open_file_mapping_with_CreateFileMapping__
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
ret
push ebx
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4201bb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push ebx
push 0x47c9d0
push str.Couldnt_map_view_of_file_with_MapViewOfFile__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x18]
push 0x47fc68
push eax
call fcn.0045c402
add esp, 8
mov dword [0x4a65e8], eax
test eax, eax
jne 0x4201ed
push eax
push 0x47c9d0
push str.Couldnt_open_text_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebp
push str.Dump_of_file__s_n
push eax
call fcn.0045eacb
mov ecx, 0x5a4d
add esp, 0xc
cmp word [ebx], cx
jne 0x420211
push ebx
call fcn.004200e0
add esp, 4
jmp 0x420225
push 0
push 0x47c9d0
push str.Unsupported_file_format
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov edx, dword [0x4a65e8]
push edx
call fcn.0045bfcf
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x421a33
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x8c], 0
je 0x421a72
call fcn.004215a0
test eax, eax
je 0x421a79
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x4217c0
push 0
push 0
call fcn.0045ef5a
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x421a72
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x421a72
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x421a72
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x422d20
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x20058
call fcn.0045d560
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x20054], eax
mov eax, dword [esp + 0x2005c]
push esi
push 0x481984
push eax
call fcn.0045c402
mov esi, eax
add esp, 8
test esi, esi
je 0x422e07
push edi
push esi
push 0x20000
lea eax, [esp + 0x64]
push 1
push eax
call fcn.0045dfac
push esi
mov edi, eax
call fcn.0045bfcf
add esp, 0x14
cmp edi, 0x2c
jl 0x422e06
push ebx
lea eax, [esp + 0x60]
mov esi, 0x2126302e
mov edx, 0x59202021
mov ecx, 0x3e79
push ebp
cmp dword [eax], 0x5f476f42
jne 0x422db4
cmp dword [eax + 4], 0x30392a20
jne 0x422db4
cmp dword [eax + 8], esi
jne 0x422db4
cmp dword [eax + 0xc], edx
jne 0x422db4
cmp dword [eax + 0x10], ecx
je 0x422dc2
inc eax
lea ebx, [esp + edi + 0x64]
lea ebp, [eax + 0x2c]
cmp ebp, ebx
jbe 0x422d94
jmp 0x422e04
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
test ecx, ecx
jne 0x422dd8
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
push esi
push edx
push ecx
lea ecx, [esp + 0x1c]
push str.Safedisk_version__d._d._d_detected
push ecx
call fcn.0045a121
add esp, 0x14
push 0x40030
push str.DxWnd_hint
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x20058]
pop esi
xor ecx, esp
call fcn.0045a1dd
add esp, 0x20058
ret

Function at 0x422e20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov dx, word [esp + 0x10]
xor eax, eax
push eax
mov word [esp + 4], ax
lea eax, [esp + 0x14]
push eax
mov ecx, 1
mov word [esp + 0xa], cx
push 6
lea ecx, [esp + 0xc]
mov word [esp + 0x10], dx
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
add esp, 8
ret

Function at 0x422e80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov edx, dword [eax + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 4]
add edx, edx
mov dword [esp + 8], ecx
mov cx, word [eax + 0x10]
mov dword [esp + 0xc], edx
mov dx, word [eax + 0x12]
mov dword [esp + 4], 0x28
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
call fcn.00422e60
mov edx, eax
mov eax, dword [esp + 0x34]
call fcn.00422e60
add edx, eax
push 0
lea eax, [esp + 4]
push eax
push 0x28
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
add esp, 0x2c
ret
Function at 0x422f50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x58
push esi
push edi
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x24]
call fcn.00422f10
add esp, 8
lea eax, [esp + 0x30]
call fcn.00422e60
mov edx, eax
lea eax, [esp + 0x48]
call fcn.00422e60
mov esi, dword [esp + 0x42]
mov edi, dword [esp + 0x40]
add edx, eax
cmp si, 8
jb 0x422f97
xor eax, eax
jmp 0x422fa3
mov ecx, edi
imul ecx, esi
mov eax, 1
shl eax, cl
movzx ecx, byte [esp + 0x34]
mov byte [esp + 0xc], cl
movzx ecx, byte [esp + 0x38]
push 0
add edx, 0x28
mov byte [esp + 0x12], al
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x74]
mov byte [esp + 0x15], cl
push 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x70]
push ecx
push edx
mov byte [esp + 0x23], 0
mov word [esp + 0x24], di
mov word [esp + 0x26], si
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x58
ret

Function at 0x423010
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x1c]
call fcn.00422e60
mov edi, eax
push edi
mov dword [esp + 0x1c], edi
call fcn.0045be8e
add esp, 4
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov esi, dword [esp + 0x24]
add esi, 0xffffffff
js 0x4230a6
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
imul eax, esi
add eax, ebx
push eax
push ebp
call edi
mov eax, dword [esp + 0x28]
test al, 3
je 0x42309d
push 0
lea edx, [esp + 0x14]
push edx
mov ecx, 4
sub ecx, eax
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x28], 0
call edi
mov eax, dword [esp + 0x28]
sub esi, 1
jns 0x423061
mov edi, dword [esp + 0x18]
push ebx
call fcn.0045d47c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x424a30
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov esi, ecx
push 0x1fc
xor edi, edi
lea eax, [esi + 0x54]
push edi
push eax
call fcn.0045af40
push 0x90
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], 1
mov dword [esi + 0x258], 1
mov dword [esi + 0x298], edi
mov dword [esi + 0x29c], 1
mov dword [esi + 0x25c], edi
mov dword [esi + 0x27c], edi
mov dword [esi + 0x294], edi
mov dword [esi + 0x264], edi
mov dword [esi + 0x2a0], edi
mov dword [esp + 0x20], 0x94
call fcn.0045af40
add esp, 0x18
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x424af7
cmp dword [esp + 0xc], 5
jb 0x424af7
mov eax, 1
pop edi
mov dword [esi + 0x260], eax
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045a1dd
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x260], edi
pop edi
pop esi
xor ecx, esp
call fcn.0045a1dd
add esp, 0x98
ret

Function at 0x425760
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x425797
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x4256a0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x42580c
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x4257b9
jmp dword [eax*4 + 0x425838]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 8], edx
pop esi
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
pop esi
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret

Function at 0x4292a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.0045af40
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x94]
xor eax, eax
cmp dword [esp + 4], 5
sete al
xor ecx, esp
call fcn.0045a1dd
add esp, 0x98
ret
Function at 0x42a640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a653
xor eax, eax
ret
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x4327d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4327f4
cmp dword [edi + 0x54], 0
jne 0x4327f4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044374d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00432791
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4382a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4382e8
call fcn.0044374d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4382e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x438304
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00437e1b
mov esi, eax
test edi, edi
je 0x438302
test ebx, ebx
je 0x438302
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43921b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x478f37
call fcn.0045f8c8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x439240
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x439286
lea ecx, [ebp - 0x10]
call fcn.00401bd0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004389db
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004018b0
mov eax, esi
call fcn.0045f9a0
ret 8
Function at 0x43b5da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43b622
call fcn.0044374d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43b622
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43b665
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43b64e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43b64e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43b662
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x443d30
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x443d54
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x443d62
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x443d4e
xor eax, eax
inc eax
pop esi
ret

Function at 0x44bbbf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4799ca
call fcn.0045f8c8
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004022f0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44bc21
call fcn.00443027
cmp eax, 1
jne 0x44bc21
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004071f0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407090
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004018b0
mov dword [ebp + 8], reloc.dxwnd.dll_Ordinal_1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004018b0
mov eax, esi
call fcn.0045f9a0
ret 0x10
Function at 0x44bc4a
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4799ca
call fcn.0045f8c8
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004022f0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44bcac
call fcn.00443027
cmp eax, 1
jne 0x44bcac
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004071f0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407090
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004018b0
mov dword [ebp + 8], reloc.dxwnd.dll_Ordinal_1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004018b0
mov eax, esi
call fcn.0045f9a0
ret 0x14

Function at 0x45a1dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a3f4c]
jne 0x45a1e7
repz ret
jmp fcn.0046206c

Function at 0x4719ae
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.00465db9
and dword [ebp - 4], 0
cmp dword [0x4ac0a8], 0
mov ebx, eax
jne 0x471a5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x471b10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x492c30
push edi
call esi
test eax, eax
je 0x471b10
push eax
call fcn.00465d47
mov dword [esp], 0x492c20
push edi
mov dword [0x4ac0a8], eax
call esi
push eax
call fcn.00465d47
mov dword [esp], 0x492c0c
push edi
mov dword [0x4ac0ac], eax
call esi
push eax
call fcn.00465d47
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ac0b0], eax
call esi
push eax
call fcn.00465d47
pop ecx
mov dword [0x4ac0b8], eax
test eax, eax
je 0x471a5f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00465d47
pop ecx
mov dword [0x4ac0b4], eax
mov eax, dword [0x4ac0b4]
cmp eax, ebx
je 0x471ab7
cmp dword [0x4ac0b8], ebx
je 0x471ab7
push eax
call fcn.00465dc2
push dword [0x4ac0b8]
mov esi, eax
call fcn.00465dc2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x471ab7
test edi, edi
je 0x471ab7
call esi
test eax, eax
je 0x471aae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x471aae
test byte [ebp - 0xc], 1
jne 0x471ab7
or dword [ebp + 0x10], 0x200000
jmp 0x471af0
mov eax, dword [0x4ac0ac]
cmp eax, ebx
je 0x471af0
push eax
call fcn.00465dc2
pop ecx
test eax, eax
je 0x471af0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x471af0
mov eax, dword [0x4ac0b0]
cmp eax, ebx
je 0x471af0
push eax
call fcn.00465dc2
pop ecx
test eax, eax
je 0x471af0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ac0a8]
call fcn.00465dc2
pop ecx
test eax, eax
je 0x471b10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x471b12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10058cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10058cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10058cdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219