joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c553
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
sub eax, ebx
je 0x100c590
dec eax
je 0x100c584
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x10018b0
push 0x10039a8
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x14
jmp 0x100c5c5
mov eax, 0x8102
mov ecx, 0x180
jmp 0x100c597
mov eax, 0x8000
xor ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100c5cc
push dword [ebp + 8]
push 0x1001850
push 0x1003990
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x10
xor eax, eax
jmp 0x100c6cb
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x428
call edi
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x100c5ff
push dword [ebp + 8]
push 0x1001850
push 0x1003970
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x10
jmp 0x100c70b
push dword [ebp + 0x10]
call edi
cmp eax, ebx
pop ecx
mov dword [esi + 0xc], eax
jne 0x100c630
push esi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp + 8]
push 0x1001850
push 0x1003970
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x14
jmp 0x100c70b
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strdup]
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100c66b
push dword [esi + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1001850
push 0x1003970
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x18
jmp 0x100c70b
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov dword [esi + 4], edi
sete al
cmp dword [ebp + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], eax
jne 0x100c6c7
push 3
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 3
jne 0x100c6d0
cmp byte [ebp - 4], 0xef
jne 0x100c6d0
cmp byte [ebp - 3], 0xbb
jne 0x100c6d0
cmp byte [ebp - 2], 0xbf
jne 0x100c6d0
mov dword [esi + 0x24], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push ebx
push edi
call dword [sym.imp.msvcrt.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100c6c7
push dword [esi]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + 0xc]
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1001850
push 0x1003990
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x1c
xor eax, eax
jmp 0x100c6c9
Function at 0x100c714
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x100c745
push dword [esi]
push 0x1001850
push 0x10039cc
push dword [ebp + 0x14]
call fcn.01008b55
add esp, 0x10
xor eax, eax
jmp 0x100c7f8
cmp dword [ebp + 0x10], 0
push ebx
jle 0x100c7f5
xor ebx, ebx
inc ebx
jmp 0x100c77a
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0xa
je 0x100c7dc
cmp al, 0xd
je 0x100c776
cmp al, 0x1a
je 0x100c7bc
cmp dword [ebp + 0x10], ebx
jle 0x100c7b7
dec dword [ebp + 0x10]
mov byte [edi], al
inc edi
inc dword [esi + 0x10]
jmp 0x100c77a
inc ecx
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jbe 0x100c755
cmp dword [esi + 0x18], 0
jne 0x100c7ea
push dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, dword [esi + 8]
je 0x100c7a2
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax - 1]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jg 0x100c77a
jmp 0x100c7f5
mov byte [edi], 0
jmp 0x100c7f5
mov eax, dword [esi + 0xc]
and dword [esi + 0x14], 0
cmp edi, dword [ebp + 0xc]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], eax
mov byte [edi], 0
ja 0x100c7d4
mov dword [esi + 0x1c], ebx
inc edi
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x100c7f7
inc dword [esi + 0x10]
mov byte [edi], 0
mov eax, edi
sub eax, dword [ebp + 0xc]
inc eax
jmp 0x100c7f7
cmp edi, dword [ebp + 0xc]
mov byte [edi], 0
ja 0x100c7e2
mov dword [esi + 0x1c], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x100d23d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1003b20
call fcn.0100d408
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100d278
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d278
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100d290
cmp eax, 0x20b
je 0x100d27d
mov dword [ebp - 0x1c], edi
jmp 0x100d2a4
cmp dword [ecx + 0x84], 0xe
jbe 0x100d278
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100d29e
cmp dword [ecx + 0x74], 0xe
jbe 0x100d278
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1015ed8], 0xffffffff
or dword [0x1015edc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1015ed4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1015ed0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1015ee0], eax
call fcn.0100d400
cmp dword [0x1015ac0], edi
jne 0x100d2ff
push fcn.0100d400
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100d3e9
push 0x1015010
push 0x101500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1015ecc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1015ec8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1015008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01008933
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100d376
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100d3ab
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100d443
ret

Function at 0x100f9e1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x100fa1e
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100f9fb
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100fa3a
dec esi
je 0x100fa33
dec esi
jne 0x100fa3f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1010eb0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x1010efa
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.010108fd
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x1010f1e
cmp byte [ebp + 0x24], 0
je 0x1010f45
mov edi, ebx
call fcn.01010751
jmp 0x1010f54
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x1010f47
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0100fb64
push 0x4b
pop edx
call fcn.0100fb64
call fcn.01010c2f
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x1010f8e
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x401433
Capabilities:
Read file via mapping

Disassembly:
jmp 0x420402
mov eax, 0x429dde
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
push ebx
push esi
mov esi, ecx
call fcn.004012ad
test eax, eax
jne 0x42044f
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x14]
push dword [eax]
xor ebx, ebx
push 4
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
lea ecx, [ebp - 0x10]
mov dword [0x442230], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x442230]
cmp eax, ebx
jne 0x420453
xor eax, eax
jmp 0x42049b
push edi
push 4
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
lea eax, [esi + 4]
push 1
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x18]
push edi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, esi
call fcn.004016db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CSingleLock::Unlock
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40149c
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x40eb87
mov eax, 0x428c9b
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x270
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.0040227f
lea eax, [ebp - 0x178]
push 0x104
push eax
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x178]
lea ecx, [ebp - 0x3c]
push eax
call fcn.004261a4
push 0x442184
lea ecx, [ebp - 0x34]
call fcn.004261a4
push 0x442188
lea ecx, [ebp - 0x1c]
call fcn.004261a4
push 0x8085
lea ecx, [ebp - 0x14]
call fcn.00425fb8
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00426054
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x178]
lea ecx, [ebp - 0x28]
push eax
call fcn.004261a4
cmp esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
jne 0x40ec37
xor esi, esi
jmp 0x40ec3a
mov esi, dword [esi + 0x20]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40ec5c
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0xe000
lea ecx, [ebp + 0xc]
call fcn.00425fb8
push dword [eax]
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push str._s_s.lnk
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 8], ebx
je 0x40ecce
lea ecx, [ebp - 0x74]
call fcn.00401d02
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x74]
push eax
mov byte [ebp - 4], 4
call fcn.004013f2
test eax, eax
je 0x40ecc0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x74]
push eax
call fcn.00401cf3
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00401cc6
jmp 0x40ecd7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401889
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40169f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x407273
mov eax, 0x427c73
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x44
mov al, byte [ebp + 0xf]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, str.CZ5gi3jH
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x50], 0x56
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x72
mov byte [ebp - 0x4d], 0x74
mov byte [ebp - 0x4c], 0x75
mov byte [ebp - 0x4b], 0x61
mov byte [ebp - 0x4a], 0x6c
mov byte [ebp - 0x49], 0x41
mov byte [ebp - 0x48], 0x6c
mov byte [ebp - 0x47], 0x6c
mov byte [ebp - 0x46], 0x6f
mov byte [ebp - 0x45], 0x63
mov byte [ebp - 0x44], 0x45
mov byte [ebp - 0x43], 0x78
mov byte [ebp - 0x42], 0x4e
mov byte [ebp - 0x41], 0x75
mov byte [ebp - 0x40], 0x6d
mov byte [ebp - 0x3f], 0x61
mov byte [ebp - 0x3e], bl
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], bl
call esi
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
mov byte [ebp - 0x1c], 0x74
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x6b
mov byte [ebp - 0x18], 0x6d
mov byte [ebp - 0x17], 0x67
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x2e
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], bl
push eax
call esi
cmp eax, ebx
je 0x4073d8
push ebx
push 0x43e4bc
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
push eax
push 0x3000
push 0x8944
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4073d8
push 0x8944
push eax
push dword [ebp + 0xc]
mov ecx, 0x2251
mov esi, 0x434640
mov edi, eax
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
call fcn.0040133e
add esp, 0x10
call dword [ebp - 0x10]
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40189d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
jmp 0x41ec00
mov eax, 0x429be0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x20]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ecx + ecx]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 0x24]
xor edi, edi
sub eax, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
lea ecx, [ecx + eax + 2]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
push edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebx + 0x28]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x2c]
mov ecx, esi
inc eax
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x18]
push edi
push eax
call sub.MFC42.DLL_CDC::MoveTo
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebx + 0x28]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [ebp - 0x2c]
mov ecx, esi
add eax, 2
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MFC42.DLL_CDC::MoveTo
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebx + 0x28]
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebx + 0x30]
mov dword [ebp - 4], edi
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x60]
movzx ecx, word [ecx + 0x1e]
push ecx
push dword [eax + 0x14]
lea eax, [ebp + 8]
push str.Page__d____d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push 0x926
push ecx
push 0xffffffffffffffff
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x70]
mov ebx, dword [ebx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push 0x924
push ecx
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [ebp - 0x30], edi
call dword [eax + 0x70]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x401a91
Capabilities:
Check os version

Disassembly:
jmp 0x41249b
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x412501
push 1
mov ebp, 0x94
pop ebx
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x412558
push 0x25
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x4124e4
push 5
jmp 0x41254f
cmp eax, 5
jne 0x412550
cmp dword [esi + 8], 0
jne 0x4124f3
push 6
jmp 0x41254f
cmp eax, 5
jne 0x412550
cmp dword [esi + 8], ebx
jne 0x412550
push 7
jmp 0x41254f
cmp al, 4
jae 0x412509
xor ebx, ebx
jmp 0x412558
push 2
mov ebp, 0x94
pop ebx
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x412558
push 0x25
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x412550
cmp dword [esi + 8], 0xa
jne 0x412543
push 3
jmp 0x41254f
cmp eax, 4
jne 0x412550
cmp dword [esi + 8], 0x5a
jne 0x412550
push eax
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x401dfc
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x40f8ed
mov eax, 0x428d40
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
add eax, 0xb
add ecx, 0xb
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
je 0x40f938
push 0x14
call edi
push eax
push 0x10
jmp 0x40f945
cmp dword [ebx + 4], 0
je 0x40f953
push 0x10
call edi
push eax
push 0x14
call edi
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x12
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], edx
call edi
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0x42dce0
push 0x58
mov dword [ebp - 4], edi
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x60
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
push edi
push str.Marlett
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFont::CreatePointFont
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x30]
push 0x440b98
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00425fb8
mov eax, dword [eax]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
inc ecx
mov ebx, dword [eax - 8]
inc ecx
mov dword [ebp + 8], ebx
mov ebx, dword [esi]
push dword [ebp + 8]
inc edx
inc edx
mov byte [ebp - 4], 1
push eax
push ecx
push edx
mov ecx, esi
call dword [ebx + 0x64]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x30]
push dword [ebp - 0x14]
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esi]
push dword [ebp - 0x18]
mov ecx, esi
call dword [eax + 0x38]
mov dword [ebp - 0x20], 0x42c514
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402072
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x41e60e
mov eax, 0x429b97
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esi + 8]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_4
mov eax, 0x42dce0
push edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
push edi
push edi
lea eax, [esi + 0x20]
push edi
mov dword [esi + 0x14], edi
push eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
mov dword [esi], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402239
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x417d84
push ebx
push ebp
push esi
push edi
movzx esi, word [esp + 0x14]
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
push 2
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x417db7
xor ebp, ebp
push 2
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x417def
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417def
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x417def
cmp dword [eax + 0x20], 0
je 0x417dda
mov ax, word [eax + 0x20]
jmp 0x417de9
movzx eax, word [eax + 0xe]
dec eax
je 0x417de6
sub eax, 3
jmp 0x417ded
push 2
pop eax
cmp ax, 0x10
je 0x417df3
xor eax, eax
jmp 0x417dfc
push 0
push edi
push ebp
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret