joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4134f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x455cdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x174]
push 0x465418
lea ecx, [esp + 0x1c]
mov bl, 3
push eax
push ecx
mov byte [esp + 0x178], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 4
call fcn.004149b6
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.004149b6
push 0x465174
lea ecx, [esp + 0x178]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x174]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413606
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x174]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x178]
mov dword [esp + 0x16c], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x413743
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x50]
push 0x465170
push edx
call edi
test eax, eax
je 0x4136d5
lea eax, [esp + 0x50]
push 0x46516c
push eax
call edi
test eax, eax
je 0x4136d5
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x50]
push 0x46543c
push edx
call edi
test eax, eax
je 0x4136c0
mov eax, dword [0x469268]
test eax, eax
je 0x4136a4
push ecx
lea eax, [esp + 0x17c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x178], 5
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x174], bl
call fcn.004132c0
add esp, 8
lea edx, [esp + 0x14]
push edx
jmp 0x4136c5
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00412990
add esp, 8
lea edx, [esp + 0x14]
push edx
jmp 0x4136c5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004149b6
lea ecx, [esp + 0x24]
push ecx
jmp 0x4136da
lea edx, [esp + 0x24]
push edx
push esi
call ebp
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x413612
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x174]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x178]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x160
ret
Function at 0x413bb0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x413be6
xor eax, eax
add esp, 8
ret 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push 0x14
push edx
push 1
push 0
push str.RegSerial
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x413c0d
xor eax, eax
add esp, 8
ret 4
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret 4

Function at 0x414180
Capabilities:
Create shortcut via ishelllink
Resolve path using msvcrt

Disassembly:
sub esp, 0x314
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x45a0d8
push 1
push 0
push 0x45a0c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4141b6
xor eax, eax
add esp, 0x314
ret 8
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x45a0e8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4141e2
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
add esp, 0x314
ret 8
mov ecx, dword [esp + 0x318]
test ecx, ecx
jne 0x414208
mov edx, dword [esp]
push esi
mov esi, dword [edx]
call dword [sym.imp.MSVCRT.dll___p__pgmptr]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [esi + 0x50]
pop esi
jmp 0x414213
mov eax, dword [esp]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x31c]
test eax, eax
je 0x41423e
push eax
lea edx, [esp + 0xc]
push 0x46637c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x10c]
push 0x104
push eax
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10c]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add esp, 0x314
ret 8
Function at 0x415b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x455e4a
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
cmp dword [0x4696a8], 0
push esi
jne 0x415b96
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x469698
call fcn.00415e07
mov dword [eax], 0x13
jmp 0x415bf5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x415bca
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x469698
call fcn.00415e07
mov dword [eax], 0x10
jmp 0x415bf5
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415bfc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, 0x469698
call fcn.00415e07
mov dword [eax], 0xf
xor eax, eax
jmp 0x415c82
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x2800
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.00424ff4
and dword [ebp - 4], 0
push 0x11c
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 1
pop edi
je 0x415c45
call fcn.0042256a
mov esi, eax
jmp 0x415c47
xor esi, esi
and byte [ebp - 4], 0
test esi, esi
je 0x415c72
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00422a4b
test eax, eax
je 0x415c72
push esi
mov ecx, 0x469870
call fcn.0041d060
mov esi, eax
call fcn.004159ac
jmp 0x415c74
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00425038
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x419dc6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jle 0x419e3b
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x14]
jne 0x419e33
mov al, byte [eax]
and al, 4
cmp al, 4
jne 0x419dff
push 0x10
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x419e33
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 8
cmp al, 8
jne 0x419e19
push 0x11
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x419e33
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 0x10
cmp al, 0x10
jne 0x419e44
push 0x12
call ebp
and ax, 0x8000
cmp ax, 0x8000
je 0x419e44
inc ebx
add edi, 6
cmp ebx, dword [esi]
jl 0x419dda
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 4]
lea eax, [ebx + ebx*2]
push 6
lea eax, [ecx + eax*2]
push eax
push dword [esp + 0x20]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 1
pop eax
jmp 0x419e3d
Function at 0x41f602
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41f66a
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x41f6c4
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x41f64d
push 5
jmp 0x41f6bb
cmp eax, 5
jne 0x41f6bc
cmp dword [edi + 8], 0
jne 0x41f65c
push 6
jmp 0x41f6bb
cmp eax, 5
jne 0x41f6bc
cmp dword [edi + 8], ebx
jne 0x41f6bc
push 7
jmp 0x41f6bb
cmp al, 4
jae 0x41f672
xor ebx, ebx
jmp 0x41f6c4
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x41f6c4
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x41f6bc
cmp dword [edi + 8], 0xa
jne 0x41f6af
push 3
jmp 0x41f6bb
cmp eax, 4
jne 0x41f6bc
cmp dword [edi + 8], 0x5a
jne 0x41f6bc
push eax
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41fd1f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41fd8d
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41fd8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x466938
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x41fd8d
push esi
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push 1
pop eax
jmp 0x41fd8f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41fd94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41fdc3
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x46694c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x41fe2a
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x105], 0x5c
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
je 0x41fe23
push str._s_s
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x41fe3b
push 0x46693c
jmp 0x41fe15
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp + 0x14], 0
je 0x41fe5c
push 0x465170
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x14]
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
add esp, 0x10
leave
ret
Function at 0x421668
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0xac]
lea esi, [edi + 0xac]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push 0x3e8
push dword [esi]
call ebx
push 0x3f2
push dword [esi]
call ebx
and dword [edi + 0x11c], 0
pop edi
pop esi
pop ebx
ret

Function at 0x421ad0
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x421ae8
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x42524e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x456815
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x24
mov al, byte [ebp + 0xb]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
and byte [ebx + 0xc], 0
lea ecx, [ebx + 4]
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.0042444b
mov al, byte [ebp + 0xb]
and byte [ebx + 0xac], 0
lea ecx, [ebx + 0xa4]
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.004265b9
mov eax, dword [ebp + 8]
push 0x33
mov dword [ebx + 0xa0], eax
lea eax, [ebx + 0x6c]
push edi
push eax
mov byte [ebp - 4], 1
mov dword [ebx], 0x45a254
call sub.MSVCRT.dll_memset
push 0x33
lea eax, [ebx + 0x34]
push edi
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
add esp, 0x18
push 0xf
call esi
push 8
mov dword [ebx + 0x14], eax
call esi
push 0x1e
mov dword [ebx + 0x18], eax
push 0x3c
push edi
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebx + 0x1c], 0xff
mov dword [ebx + 0x68], edi
call fcn.0041de7b
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x14
and dword [ebx + 0x30], 0
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x6c]
push 0x33
mov esi, 0x4690f8
push eax
lea edi, [ebx + 0x30]
push esi
push str.NAME
push 1
mov ecx, ebx
call fcn.00425353
push 4
push edi
push esi
push str.AUTOPLACE
push 6
mov ecx, ebx
call fcn.00425353
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42b6c6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x42b6eb
push 0xfffffffffffffffa
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 8], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x42b709
mov ecx, esi
call fcn.0042b8bc
lea ecx, [esi + 0x138]
call fcn.0044dc42
jmp 0x42b839
test ebx, 0xffff0000
jne 0x42b768
mov edi, 0x466d04
lea eax, [ebp - 0x104]
push edi
push 0x465a74
push str.SM__TEMP.AVI
push eax
call fcn.0041fd94
movzx eax, bx
push edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041fd1f
add esp, 0x20
test eax, eax
je 0x42b7d0
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x138]
push eax
call fcn.0044dbf6
test eax, eax
lea eax, [ebp - 0x104]
jmp 0x42b7c6
lea ecx, [esi + 0x138]
push ebx
call fcn.0044dbf6
test eax, eax
jne 0x42b7db
mov edi, 0x466d04
lea eax, [ebp - 0x104]
push edi
push 0x465a74
push str.SM__TEMP.AVI
push eax
call fcn.0041fd94
push edi
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041fd1f
add esp, 0x20
test eax, eax
je 0x42b7d0
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x138]
push eax
call fcn.0044dbf6
test eax, eax
lea eax, [ebp - 0x104]
push eax
jne 0x42b7d4
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
xor eax, eax
jmp 0x42b83c
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
mov ecx, dword [esi + 0x1f0]
or word [esi + 0x132], 0xffff
or dword [esi + 0x12c], 0xffffffff
and ecx, 1
xor eax, eax
cmp cl, 1
mov word [esi + 0x130], ax
mov word [esi + 0x134], ax
je 0x42b825
push 6
push dword [esi + 0x15c]
push dword [esi + 0x158]
push eax
push eax
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x1f0]
and eax, 4
cmp al, 4
jne 0x42b839
mov ecx, esi
call fcn.0042b92a
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42b92a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x128], eax
jne 0x42b989
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
push esi
push 0x42b98c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
movzx ecx, word [esi + 0x11c]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0xac]
or ecx, 0x10000
push eax
push ecx
push 0x111
push eax
mov dword [esi + 0x128], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret
Function at 0x43485f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
mov esi, ecx
push 0x400
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0x15c], 0
jne 0x4348c8
mov ebx, dword [ebp + 8]
push 1
push dword [eax + 0x14]
add eax, 0xf4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0041e17b
add esp, 0x14
jmp 0x4348e1
mov ecx, esi
call fcn.004191ef
push dword [esi + 0xac]
mov ebx, dword [ebp + 8]
push ebx
push 0x1795
push eax
call edi
push 0
push 0
push 0x31
push dword [esi + 0xac]
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
push dword [eax + 0xf0]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 0x18], eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp + 8], 0
push 2
mov edx, eax
pop ecx
and edx, ecx
mov dword [ebp - 0x20], eax
cmp dl, cl
jne 0x43493e
mov dword [ebp + 8], ecx
push 1
mov edx, eax
pop ecx
and edx, ecx
cmp dl, cl
jne 0x43494c
mov dword [ebp + 8], ecx
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x43495d
or dword [ebp + 8], 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x43496d
or dword [ebp + 8], 0x20
jmp 0x434971
or dword [ebp + 8], 0x10
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x434981
or byte [ebp + 9], 8
and eax, 0xb
cmp al, 0xb
jne 0x43498c
or dword [ebp + 8], 0x20
mov ecx, esi
call fcn.00419496
test eax, eax
je 0x43499b
or byte [ebp + 0xa], 2
push dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov eax, 0x2000
push dword [ebp - 8]
and ecx, eax
cmp ecx, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
jne 0x4349d0
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x14]
or ax, 0x2010
push eax
lea eax, [ebp - 0x420]
push eax
jmp 0x4349f3
call dword [sym.imp.GDI32.dll_IntersectClipRect]
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push dword [ebp + 8]
mov esi, dword [esi + 0x14]
test eax, eax
lea eax, [ebp - 0x420]
push eax
je 0x434a0d
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 0x160
jmp 0x434a25
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 0x170
push esi
push ebx
call fcn.0041fcd9
add esp, 0x18
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push ebx
call edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x438b79
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x456fb2
call sub.MSVCRT.dll__EH_prolog
push ecx
cmp dword [0x47a648], 0
jne 0x438d10
push ebx
push esi
push edi
call fcn.00438ab7
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, str.LoadLibraryA
push edi
push eax
mov dword [0x47a678], eax
call esi
mov ebx, str.LoadLibraryW
mov dword [0x47a648], eax
push ebx
push dword [0x47a678]
call esi
push str.LoadLibraryExA
mov dword [0x47a64c], eax
push dword [0x47a678]
call esi
push str.LoadLibraryExW
mov dword [0x47a650], eax
push dword [0x47a678]
call esi
push str.GetProcAddress
mov dword [0x47a654], eax
push dword [0x47a678]
call esi
push 0x18
mov dword [0x47a658], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov esi, str.Kernel32.dll
test eax, eax
je 0x438c30
push 0
push 0x43905d
push edi
push esi
mov ecx, eax
call fcn.00438de8
jmp 0x438c32
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x47a65c], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], 1
cmp eax, edi
je 0x438c64
push edi
push 0x439078
push ebx
push esi
mov ecx, eax
call fcn.00438de8
jmp 0x438c66
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x47a660], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 2
je 0x438c9a
push edi
push 0x439093
push str.LoadLibraryExA
push esi
mov ecx, eax
call fcn.00438de8
jmp 0x438c9c
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x47a664], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 3
je 0x438cd0
push edi
push 0x4390b8
push str.LoadLibraryExW
push esi
mov ecx, eax
call fcn.00438de8
jmp 0x438cd2
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x47a668], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 4
je 0x438d06
push edi
push 0x4390dd
push str.GetProcAddress
push esi
mov ecx, eax
call fcn.00438de8
jmp 0x438d08
xor eax, eax
pop edi
pop esi
mov dword [0x47a66c], eax
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret
Function at 0x438de8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x47a670], 0
push esi
mov esi, ecx
jne 0x438e0c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
mov dword [0x47a670], eax
mov eax, dword [0x47a674]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [0x47a674], esi
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
push ecx
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00438ea9
mov dword [esi + 0xc], eax
cmp eax, dword [0x47a670]
jbe 0x438e55
cmp byte [eax], 0x68
jne 0x438e55
mov eax, dword [eax + 1]
mov dword [esi + 0xc], eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 4]
call fcn.00438eba
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x4393f6
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x439442
cmp dword [esi + 8], 0
je 0x439442
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x439442
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8