joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c5d
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x134]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
jmp 0x401c8e
nop
jmp 0x401c9c
nop
jmp 0x401caa
mov dword [esp + 0x14], 0x128
jmp 0x401cc0
jmp 0x401cce
jmp 0x401cdc
push 0
push 2
call 0x4039a9
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401df0
nop
jmp 0x401cfe
nop
jmp 0x401d0c
nop
jmp 0x401d1a
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x401d33
mov ecx, dword [eax]
lea eax, [esp + 0x38]
push eax
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x401db7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x401d59
jmp 0x401d67
jmp 0x401d75
mov eax, dword [esp + 0x1c]
jmp 0x401df2
nop
jmp 0x401d89
jmp 0x401d97
nop
jmp 0x401da5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
call fcn.00402240
test eax, eax
je 0x401e0b
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401d7b
jmp 0x401dd4
jmp 0x401de2
nop
jmp 0x401df0
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403a25
add esp, 0x130
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x401e20
jmp 0x401e2e
nop
jmp 0x401e3c
jmp 0x401d75

Function at 0x401e41
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x230
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x238]
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
push edi
mov dword [esp + 0x14], eax
jmp 0x401e79
nop
jmp 0x401e87
jmp 0x401e95
and dword [esp + 0x10], 0
jmp 0x401ea8
jmp 0x401eb6
nop
jmp 0x401ec4
push ebp
push 0x18
call 0x4039a9
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401fc7
nop
jmp 0x401ee5
jmp 0x401ef3
jmp 0x401f01
mov dword [esp + 0x18], 0x224
nop
jmp 0x401f17
jmp 0x401f25
nop
jmp 0x401f33
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x401fc7
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x401f95
nop
jmp 0x401f68
jmp 0x401f76
nop
jmp 0x401f84
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x401f46
jmp 0x401f9d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
nop
jmp 0x401fab
jmp 0x401fb9
nop
jmp 0x401fc7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401fdc
jmp 0x401fea
nop
jmp 0x401ff8
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403a25
add esp, 0x230
ret
Function at 0x4051e0
Capabilities:
Create pipe

Disassembly:
mov eax, 0x100c
call fcn.0040d780
mov eax, dword [0x6192cc]
mov ecx, dword [0x618d5c]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
je 0x4052ed
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov ebp, dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x6192cc], 0x959
jne 0x4052d4
push 0
lea eax, [esp + 0x81c]
push eax
push 0
push 0
push 0
push 0
call esi
push 0x404d04
push 0
call edi
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
push 0
push 0
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
lea edx, [esp + 0x41c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esp + 0x10]
push eax
call fcn.00404f50
add dword [esp + 0x10], 8
dec dword [esp + 0x14]
jne 0x405224
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret
Function at 0x409db6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x473af0]
jne 0x409dc0
repz ret
jmp fcn.0040c8b8

Function at 0x40c4e2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x473af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040771e
and dword [ebp - 0x14], 0
cmp dword [0x48b060], 0
mov dword [ebp - 0x18], eax
jne 0x40c595
push 0x40451c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c63d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404510
push ebx
call edi
test eax, eax
je 0x40c63d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404500
push ebx
mov dword [0x48b060], eax
call edi
push eax
call esi
push 0x4044ec
push ebx
mov dword [0x48b064], eax
call edi
push eax
call esi
push 0x4044d0
push ebx
mov dword [0x48b068], eax
call edi
push eax
call esi
mov dword [0x48b070], eax
test eax, eax
je 0x40c595
push 0x4044b8
push ebx
call edi
push eax
call esi
mov dword [0x48b06c], eax
mov eax, dword [0x48b06c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c5ee
cmp dword [0x48b070], ecx
je 0x40c5ee
push eax
call esi
push dword [0x48b070]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c5ee
test ebx, ebx
je 0x40c5ee
call edi
test eax, eax
je 0x40c5e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c5e5
test byte [ebp - 8], 1
jne 0x40c5ee
or dword [ebp + 0x10], 0x200000
jmp 0x40c621
mov eax, dword [0x48b064]
cmp eax, dword [ebp - 0x18]
je 0x40c621
push eax
call esi
test eax, eax
je 0x40c621
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c621
mov eax, dword [0x48b068]
cmp eax, dword [ebp - 0x18]
je 0x40c621
push eax
call esi
test eax, eax
je 0x40c621
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48b060]
call esi
test eax, eax
je 0x40c63d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c63f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409db6
leave
ret
Function at 0x402b0e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42f4b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ba2
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b5f
cmp dword [ebp + 0x10], ebx
jne 0x402b96
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b0e
test eax, eax
jne 0x402b71
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040615c
cmp eax, ebx
je 0x402ba9
push ebx
push dword [0x42f4b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42f4b0], ebx
jne 0x402b9f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b9f
jmp 0x402ba2

Function at 0x4055b9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.00404a7d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404a32
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.00404a7d

Function at 0x405665
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404a32
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00404a6d
invalid

Function at 0x4059f1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
invalid
push dword [esi]
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x779b7712
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1d4066c1
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4016b0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4e1ff2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x124], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
mov bl, 2
push 0x100
push eax
mov byte [esp + 0x12c], bl
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 8]
test eax, eax
je 0x401756
mov eax, dword [eax + 8]
test eax, eax
je 0x401756
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.004543c0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 3
call fcn.0047d35a
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], bl
call fcn.0047d354
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4017e2
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 4
call fcn.0047d35a
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], bl
call fcn.0047d354
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4017e2
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 5
call fcn.0047d35a
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], bl
call fcn.0047d354
mov eax, dword [esp + 8]
mov eax, dword [eax - 8]
cmp eax, 0x80
jle 0x401825
lea ecx, [esp + 0xc]
push 0x80
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 6
call fcn.0047d35a
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], bl
call fcn.0047d354
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x522034
push eax
call sub.MFC42.DLL_operator_1
push 0x522030
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x130], 7
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 8
call fcn.0047d35a
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 7
call fcn.0047d354
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call fcn.0047d354
lea edx, [esp + 8]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x124], 1
call fcn.0047d354
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0
call fcn.0047d354
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 4
Function at 0x4042d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e25e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4ec388
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [ebx], 0x4ec674
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
or eax, 0xffffffff
push 0x52e6a0
mov dword [ebx], 0x4ec638
push edi
mov dword [esi], 0x4ec64c
mov dword [esi + 0x4c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0xc0c0c0
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e281b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4ec6f0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x406690
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x406657
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x406681
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x406696
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x406696
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4ec688
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4ec1a0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0047d630
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4077e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e2988
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x50], ebp
jne 0x407816
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
or ebx, 0xffffffff
push ecx
mov byte [esp + 0x34], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, ebp
mov dword [esp + 0x24], eax
jle 0x407920
push esi
cmp ebx, 0xffffffff
jne 0x407909
push 0x400
push 0x100
push 0x100
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [edi + 4]
push eax
push ebp
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4078fc
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x4078fc
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + esi*4]
call fcn.00404170
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.0047d35a
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 1
call fcn.0047d354
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4078f6
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4078a7
jmp 0x4078fc
mov ebx, ebp
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x40785b
test ebx, ebx
pop esi
jl 0x407920
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x407920
cmp ebx, eax
jl 0x407920
sub ebx, eax
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0047d354
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047d354
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x408110
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4e2ad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], 0x4ec6b0
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], edi
push eax
push edi
push edi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x40817d
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x20]
mov ecx, esi
lea eax, [ebp + 2]
push eax
push edi
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x10]
mov ebx, ebp
sub ebx, edx
mov ecx, esi
lea eax, [ebx + 5]
push eax
push edi
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp + 3]
lea ecx, [edi + 1]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [ebx + 6]
mov ecx, esi
mov dword [esp + 0x44], eax
push eax
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [ebp + 4]
lea eax, [edi + 2]
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [ebx + 7]
mov ecx, esi
push eax
lea eax, [edi + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp + 3]
lea ecx, [edi + 3]
push eax
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x44]
lea eax, [edi + 3]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp + 2]
lea ecx, [edi + 4]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x38]
lea eax, [edi + 4]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea edx, [ebp + 1]
lea eax, [edi + 5]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea ecx, [ebx + 4]
lea eax, [edi + 5]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
add edi, 6
push ebp
lea edx, [esp + 0x24]
push edi
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
add ebx, 3
mov ecx, esi
push ebx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x18], 0x4ec688
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14