joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a270
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f458]
jne 0x40a27a
repz ret
jmp fcn.0040cf9b

Function at 0x40c3b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f458]
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.00408529
and dword [ebp - 0x14], 0
cmp dword [0x441a00], 0
mov dword [ebp - 0x18], eax
jne 0x40c466
push 0x403e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c50e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e28
push ebx
call edi
test eax, eax
je 0x40c50e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e18
push ebx
mov dword [0x441a00], eax
call edi
push eax
call esi
push 0x403e04
push ebx
mov dword [0x441a04], eax
call edi
push eax
call esi
push 0x403de8
push ebx
mov dword [0x441a08], eax
call edi
push eax
call esi
mov dword [0x441a10], eax
test eax, eax
je 0x40c466
push 0x403dd0
push ebx
call edi
push eax
call esi
mov dword [0x441a0c], eax
mov eax, dword [0x441a0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c4bf
cmp dword [0x441a10], ecx
je 0x40c4bf
push eax
call esi
push dword [0x441a10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c4bf
test ebx, ebx
je 0x40c4bf
call edi
test eax, eax
je 0x40c4b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c4b6
test byte [ebp - 8], 1
jne 0x40c4bf
or dword [ebp + 0x10], 0x200000
jmp 0x40c4f2
mov eax, dword [0x441a04]
cmp eax, dword [ebp - 0x18]
je 0x40c4f2
push eax
call esi
test eax, eax
je 0x40c4f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c4f2
mov eax, dword [0x441a08]
cmp eax, dword [ebp - 0x18]
je 0x40c4f2
push eax
call esi
test eax, eax
je 0x40c4f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x441a00]
call esi
test eax, eax
je 0x40c50e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c510
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a270
leave
ret
Function at 0x43b4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x7c5a90], ax
mov word [0x7c5a94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x7c5a90
mov dword [0x7c5a9c], 0x320033
mov dword [0x7c5aa4], 0x6c006c
mov word [0x7c5a96], cx
mov dword [0x7c5a98], 0x6c0065
mov dword [0x7c5aa0], 0x64002e
mov word [0x7c5a92], dx
mov word [0x7c5aa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x7c5a8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x7c5a88], eax
mov eax, dword [0x446adc]
push edx
push eax
mov byte [0x441d53], 0x65
mov dword [0x441d49], 0x75747269
mov word [0x441d4d], 0x6c61
mov byte [0x441d48], 0x56
mov word [0x441d54], 0x7463
mov byte [0x441d56], 0
mov dword [0x441d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x43b5e0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1050
call fcn.0040cf70
cmp dword [0x7c5a8c], 0x37
jne 0x43b6b4
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046b4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x454]
push edx
push 0x4046bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 8]
push edx
push 0x4046d0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x4046e4
push 0x4046f4
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea eax, [esp + 0x854]
push eax
push 0
push 0x40471c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404748
push 0x404764
push 0x404774
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x7c6a80]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x446adc]
mov byte [ecx + esi], al
add esp, 0x1050
ret
Function at 0x43b840
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7c5a8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x446adc]
shr eax, 3
push edi
test eax, eax
je 0x43b9db
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x43b874
mov esi, dword [esp + 0x18]
cmp dword [0x7c5a8c], 0x1c
jne 0x43b891
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x440200]
mov eax, dword [0x440204]
mov ecx, dword [0x440208]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x44020c]
mov ebp, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x7c59fc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7c5a8c], 0x1be
jne 0x43b91d
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7c5a8c], 0x979
mov dword [0x7c5a00], 0xff6b3619
mov dword [0x7c5a04], 0xffffffff
jne 0x43b95a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x43b8ca
cmp dword [0x7c5a8c], 0x8d4
jne 0x43b992
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x7c5a8c], 0x17
jne 0x43b9ca
push 0
push 0
push 0
push 0x404690
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x43b870
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 3
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x66
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x28
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x83
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x44
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x32
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd3
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x57
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc5
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x39
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x40
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x75
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x1a
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x66
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x39
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x417310
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QCYiaatN
lea edi, [esi - 0xe000]
mov dword [edi + 0xe6f8], 0x58b40b67
push edi
or ebp, 0xffffffff
jmp 0x41733a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417330
mov eax, 1
add ebx, ebx
jne 0x417353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417348
jne 0x417364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417348
xor ecx, ecx
sub eax, 3
jb 0x417378
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4173ea
mov ebp, eax
add ebx, ebx
jne 0x417383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4173b4
inc ecx
add ebx, ebx
jne 0x4173a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417395
jne 0x4173b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417395
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4173d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4173c5
jmp 0x417336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4173d4
add edi, ecx
jmp 0x417336
pop esi
mov edi, esi
mov ecx, 0x446
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4173f2
cmp byte [edi], 5
jne 0x4173f2
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 0x4173f7
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17784]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1778c]
or eax, eax
je 0x417460
mov dword [ebx], eax
add ebx, 4
jmp 0x417441
call dword [esi + 0x17788]
mov ebp, dword [esi + 0x17790]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x41749a
sub esp, 0xffffff80
jmp 0x40d86c

Function at 0x408955
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
sub ebx, ebx
add edx, 0x83faa5b
call fcn.00408985
or edx, ebx
xor dword [esi], ecx
add ebx, edx
add ebx, 1
inc esi
and ebx, edx
cmp esi, edi
jne fcn.00408955
dec ebx
sub edx, edx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Log keystrokes via polling
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
movzx esi, ax
push 0x11
shr esi, 1
call edi
movzx eax, ax
or esi, eax
push 0x1d
shr esi, 1
call edi
movzx eax, ax
or esi, eax
push 0x73
shr esi, 1
call edi
movzx eax, ax
or esi, eax
push 9
shr esi, 1
call edi
movzx eax, ax
or esi, eax
push 0x71
shr esi, 1
call edi
movzx eax, ax
or esi, eax
push 0x72
shr esi, 1
call edi
movzx eax, ax
or esi, eax
push 0x74
shr esi, 1
call edi
movzx eax, ax
or esi, eax
shr esi, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
add eax, 0xf
mov cl, byte [eax]
test cl, cl
je 0x4010d0
cmp cl, 0x2f
jne 0x4010cd
mov cl, byte [eax + 1]
inc eax
and cl, 0xdf
cmp cl, 0x52
jne 0x401084
xor esi, 1
jmp 0x401073
cmp cl, 0x43
jne 0x40108e
xor esi, 2
jmp 0x401073
cmp cl, 0x44
jne 0x401098
xor esi, 4
jmp 0x401073
cmp cl, 0x4f
jne 0x4010a2
xor esi, 8
jmp 0x401073
cmp cl, 0x54
jne 0x4010ac
xor esi, 0x10
jmp 0x401073
cmp cl, 0x53
jne 0x4010b6
xor esi, 0x20
jmp 0x401073
cmp cl, 0x56
jne 0x4010c0
xor esi, 0x40
jmp 0x401073
cmp cl, 0x49
jne 0x401068
xor esi, 0x80
jmp 0x401073
inc eax
jmp 0x401068
mov eax, esi
shr eax, 1
and eax, 4
or eax, esi
push eax
call fcn.004010f5
pop edi
pop esi
test eax, eax
je 0x4010ed
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401419
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push 0xd
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40143a
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40143e
xor eax, eax
jmp 0x4014ab
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, ebx
je 0x4014a1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4014a1
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp + 8]
mov dword [edx], ebx
mov cx, word [eax]
cmp cx, bx
je 0x40148e
cmp cx, 0xa
jne 0x401482
inc dword [edx]
mov cx, word [eax]
mov word [esi], cx
inc esi
inc esi
inc eax
inc eax
jmp 0x401472
mov word [esi], bx
sub esi, dword [ebp - 4]
push edi
inc esi
inc esi
mov dword [edx + 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x401d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [0x5a1b5c], 0
push ebx
mov ebx, dword [0x5a12e8]
jne 0x401e2d
push esi
push 0xa
push 0x11
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401e2c
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.0043e200
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e24
push eax
call fcn.004017c0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404c00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x80]
sub esp, 0x1c
push ebp
push esi
add eax, ebx
cmp dword [eax + 0xc], 0
push edi
lea edi, [eax + 0xc]
je 0x404c58
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [edi]
add ecx, ebx
push ecx
push 0x457538
call ebp
test eax, eax
jne 0x404c50
mov esi, dword [edi + 4]
add esi, ebx
cmp dword [esi], eax
je 0x404c50
lea ebx, [ebx]
mov edx, dword [esp + 0x2c]
cmp dword [esi], edx
je 0x404c61
add esi, 4
cmp dword [esi], 0
jne 0x404c40
add edi, 0x14
cmp dword [edi], 0
jne 0x404c21
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
call edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x404c9b
mov dword [esi], 0x404e00
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x407030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push 1
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [edi]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 4], 0
lea edx, [esi + 4]
mov dword [esi + 8], esi
je 0x40708d
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x407089
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 4
mov dword [esp + 4], 7
call edx
add esp, 0x10
ret
cmp dword [ebx + 0x24], 4
jne 0x407089
mov ecx, dword [ebx + 0x20]
add esp, 0x10
jmp fcn.00405800

Function at 0x407120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44e6d7
mov eax, dword fs:[0]
push eax
mov eax, dword [0x46b070]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.autodlg::dialog_base.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0xc], 1
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov byte [esp + 0xc], 2
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [esp + 0xc], 3
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov byte [esp + 0xc], 4
mov dword [eax + 0x60], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x407ad0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push ebx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.004076c0
lea ebx, [esi + 0xc]
call fcn.00405ce0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 1
call edx
mov eax, dword [esi + 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x60], 0
pop ebx
setne al
add esp, 0x34
ret 4
Function at 0x408570
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x46b070]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x14]
push eax
push esi
push 0x135
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4085d7
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [edi + 0x10]
test bl, 1
mov dword [esp + 0x1c], ebx
push 0xf
je 0x4085ee
push 0xa
lea edx, [esp + 0x14]
push edx
jmp 0x4085f5
push 5
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi + 0x14]
push 0x100
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test bl, 4
je 0x408696
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf0f0f0
push esi
call ebx
lea eax, [esp + 0x20]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408630
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov eax, 1
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
push 0x787878
push esi
call ebx
lea eax, [esp + 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408675
push 0x25
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov ebx, dword [esp + 0x1c]
jmp 0x4086bf
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4086a0
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
test bl, 0x10
je 0x4086e5
mov eax, 3
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0043af86
mov esp, ebp
pop ebp
ret