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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5869a3
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x6606f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0046ef71
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421da2
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 1
test esi, esi
jne 0x421dc0
xor eax, eax
jmp 0x421dce
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421dc5
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x158]
call fcn.004016b0
push 3
push 0x59add4
lea ecx, [ebp - 0x158]
call fcn.00401f80
mov edi, dword [ebp - 0x158]
lea ecx, [ebp - 0x150]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov byte [ebp - 0x151], 0
cmp esi, 0xffffffff
je 0x421e5a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [ebp - 0x150], 0x10
je 0x421e43
cmp byte [ebp - 0x124], 0x2e
je 0x421e43
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x124]
push edx
push eax
call fcn.0056c95a
add esp, 8
test eax, eax
sete al
test al, al
jne 0x421e53
lea ecx, [ebp - 0x150]
push ecx
push esi
call ebx
test eax, eax
jne 0x421e15
jmp 0x421e5a
mov byte [ebp - 0x151], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ea7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x151]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056c19b
mov esp, ebp
pop ebp
ret
Function at 0x421ed0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5869f1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6606f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0046ef71
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421f17
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x34], eax
mov dword [ebp - 4], ebx
call fcn.0046ef71
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421f43
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 1
call fcn.0046ef71
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421f70
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x3c], eax
xor ecx, ecx
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x28], ebx
mov word [esi + 0x1c], cx
lea ebx, [esi + 0x34]
push 0x598ff8
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x1e], 0x100
mov dword [esi + 0x2c], 0x7f000000
mov byte [esi + 0x30], 1
call fcn.004016b0
push ebx
lea ecx, [esi + 0x38]
call fcn.00402290
push 7
push str.Unknown
lea ecx, [esi + 0x3c]
call fcn.004016b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422000
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586a47
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6606f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0046ef71
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x422047
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x64], eax
mov dword [ebp - 4], edi
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x422073
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 1
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4220a0
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x6c], eax
mov byte [ebp - 4], 2
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4220cd
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x70], eax
mov byte [ebp - 4], 3
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4220fa
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
fld dword [0x59ace0]
mov eax, 1
fstp dword [esi + 0x60]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x34], eax
mov eax, 0x64
mov ecx, 0x3e8
mov edx, 0x32
mov dword [esi + 0x40], eax
mov dword [esi + 0x50], eax
mov eax, 0x320
push edi
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x48], ecx
push 0x598ff8
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], 0xa
mov dword [esi + 0x24], edi
mov byte [esi + 0x5c], 0x51
mov dword [esi + 4], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edx
mov dword [esi + 0x4c], 0xc8
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x44], edx
call fcn.004016b0
push 4
push str.NULL
lea ecx, [esi + 0x68]
call fcn.004016b0
push edi
push 0x598ff8
lea ecx, [esi + 0x6c]
call fcn.004016b0
push edi
push 0x598ff8
lea ecx, [esi + 0x70]
call fcn.004016b0
push edi
push 0x598ff8
lea ecx, [esi + 0x74]
call fcn.004016b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423d60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x423def
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push edx
push eax
push 0
push ecx
call fcn.0056ed90
push 0
push 0x3e8
push edx
push eax
call fcn.0056ece0
push 0
push 0x3e8
push edx
push eax
call fcn.0056ece0
mov esi, edx
mov edx, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test esi, esi
jl 0x423dec
jg 0x423dd0
test ebx, ebx
je 0x423dec
lea esp, [esp]
lea ecx, [ebp - 8]
push ecx
call edi
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
cmp eax, esi
jl 0x423dd0
jg 0x423dec
cmp ecx, ebx
jb 0x423dd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586eb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6606f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004268d0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CGridCell.0
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x425f45
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [esi + 0x20], edi
call fcn.004266a0
lea ecx, [esi + 8]
call fcn.004012c0
mov ecx, 0xff000000
or eax, 0xffffffff
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
call fcn.0046dd9e
add esp, 4
mov dword [esi + 0x20], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4281c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6606f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x11c], 3
mov dword [ebp - 0x118], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x428231
cmp dword [ebp - 0x108], 1
jne 0x42820a
cmp dword [ebp - 0x110], 0
je 0x428231
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056c19b
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x120]
push edx
push 1
push 0
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4282ac
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x128]
push edx
push 0
push str.WheelScrollLines
push eax
mov dword [ebp - 0x124], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42829f
push 0xa
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.0056e8e8
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
call fcn.0056c19b
mov esp, ebp
pop ebp
ret
Function at 0x42de80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5871f3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6606f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00479de9
xor ecx, ecx
mov dword [esi], vtable.XCMemDC.0
mov dword [ebp - 4], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [ebp - 4], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x42df6b
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0047a3de
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0x10]
call fcn.0047a6b2
lea eax, [esi + 0x10]
test eax, eax
je 0x42df37
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.0047a743
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00479f6b
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call fcn.0047b18a
jmp 0x42df7d
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x445a30
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x14
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x445aaf
cmp esi, 0xffffffff
je 0x445aaf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
neg eax
lea ecx, [ebp - 8]
push ecx
push 0
sbb eax, eax
lea edx, [ebp - 0x14]
and eax, edx
push eax
push 0
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x4459e0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6606f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x59f568
push 0x59f558
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x445bfd
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 5
push esi
mov dword [ebp - 0x14], 0x4c2c033
mov byte [ebp - 0x10], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
test eax, eax
je 0x445bfb
push 0
push 5
lea ecx, [ebp - 0x14]
push ecx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
push 5
push esi
call edi
push eax
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056c19b
mov esp, ebp
pop ebp
ret
Function at 0x44f4b0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58900e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6606f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0044bd70
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CICTypeHYN150.0
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44f505
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x70], eax
mov ebx, 1
mov byte [ebp - 4], bl
call fcn.0046ef71
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44f536
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
mov ecx, 0x80
mov eax, 0x400
mov edx, 0x6000
push 7
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ecx
push str.CST_1XX
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esi + 4], 0x1a
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], 4
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0x18
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0x380
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], ebx
call fcn.004016b0
push 0x13
push str.CST_1XX_description
lea ecx, [esi + 0x74]
call fcn.004016b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push edi
xor edi, edi
cmp dword [0x65bdfc], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jne 0x46b7e0
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x46b921
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x46b921
push ebx
mov ebx, 0x5ec512
mov dword [ebp + 8], esi
jg 0x46b813
mov eax, dword [ebp - 8]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov byte [ebx], 0
cmp eax, 0x40
jle 0x46b88d
push 0x662250
lea eax, [ebp - 4]
push eax
push 0x41
lea edi, [ebx + 1]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x65bdfc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46b878
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46b878
mov edx, dword [0x65bdfc]
push 0x320
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x65bdfc]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, 0x40
add dword [ebp + 8], eax
sub dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
add ebx, 0x41
xor edi, edi
jmp 0x46b8ee
push eax
lea eax, [ebx + 1]
push esi
push eax
call fcn.0056e920
mov edx, dword [0x65bdfc]
add esp, 0xc
push 0x662250
lea ecx, [ebp - 4]
push ecx
push 0x41
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46b8eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46b8eb
mov eax, dword [0x65bdfc]
push 0x320
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x65bdfc]
push edi
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp + 0xc], edi
cmp dword [0x65bdfc], 0xffffffff
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [edx + ecx - 1]
mov dword [ebp - 8], eax
je 0x46b916
cmp dword [ebp + 0xc], edi
jg 0x46b810
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x46c040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [0x662264], eax
mov dword [0x662268], eax
mov dword [0x66226c], eax
mov dword [0x662270], eax
mov dword [0x662274], eax
mov dword [0x662250], eax
mov dword [0x662254], eax
mov dword [0x662258], eax
mov dword [0x66225c], eax
mov dword [0x662260], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x662274], eax
cmp eax, 0xffffffff
je 0x46c094
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x46bd50
push 0
push 0
call esi
lea edx, [ebp - 4]
push edx
push 0
mov dword [0x65bdf4], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x46bc30
push 0
push 0
call esi
push 0
push eax
mov dword [0x65bdf8], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [0x65bdf4], 0xffffffff
pop esi
jne 0x46c0f0
push 0
push 0
push 0x5a22ec
call fcn.0047b0cf
cmp dword [0x65bdf8], 0xffffffff
jne 0x46c107
push 0
push 0
push 0x5a22d8
call fcn.0047b0cf
mov esp, ebp
pop ebp
ret 8
Function at 0x46f4f2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0046f1b1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46f53c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042d110
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00429e30
jmp 0x46f547
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00488b07
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46f54d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0047720f
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46f58a
call fcn.0046f1b1
mov dword [esi + 0xc], 1
jmp 0x46f58f
call fcn.0046f1b1
cmp dword [esi], 0
je 0x46f5d8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x46f5b0
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042d110
jmp 0x46f5c2
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401400
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00429e30
jmp 0x46f5fc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x46f5fc
push dword [esi]
push dword [ebp + 8]
call fcn.00488b07
pop esi
pop ebp
ret 0xc

Function at 0x470075
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0047dc6f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4700ae
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046fcb7
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8