joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b990
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a45d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004974f7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049cb8d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049e0ec
test eax, eax
je 0x45baac
mov ecx, dword [esp + 0x3c]
call fcn.0049cbba
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45ba70
push edi
mov ecx, esi
call fcn.0049a21e
mov ecx, esi
call fcn.0045bc50
cmp dword [esp + 0x38], 1
jne 0x45baa5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049a359
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45dc90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45dcc3
push esi
call fcn.0046c050
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45dcbc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45dd49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45dd32
mov eax, dword [esi + 8]
test eax, eax
je 0x45dce7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45dd2e
cmp eax, 2
je 0x45dd32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45dcda
cmp eax, 3
je 0x45dd0d
cmp eax, 1
jne 0x45dcda
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45dcda
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45dcda
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045dd70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45dd58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045dd70
add esp, 4
pop esi
ret

Function at 0x45e5e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45e601
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45e601
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45e601
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x479ac0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x479b63
test eax, eax
jbe 0x479b63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x479b63
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x479b0e
xor esi, esi
jmp 0x479b14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x479b3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047d400
add esi, eax
push esi
mov ebx, esi
call fcn.0047d400
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x479b20
pop ebp
test edi, edi
pop edi
jne 0x479b63
test ebx, ebx
je 0x479b63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00486410
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x479c85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x479d9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479d9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00497949
mov esi, eax
test esi, esi
je 0x479d9d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x479d9d
mov ecx, esi
call fcn.00479c10
cmp edi, eax
jge 0x479d9d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x479d23
mov dword [esp + 0x34], 1
jmp 0x479d7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x479d9d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004791b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47eaa0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47eaea
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x47eb19
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x47eb5b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4982ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x498325
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00496377
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049634f
jmp 0x498331
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4999db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499a1d
call fcn.0049f4dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499a1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499a14
xor eax, eax
jmp 0x499a25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499a2b
pop edi
pop esi
pop ebx
ret 4

Function at 0x49fa0c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49fa3a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49fa58
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f972
jmp 0x49fa58
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49fa58
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f972
test edi, edi
mov eax, edi
jne 0x49fa42
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401770
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x432e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401824
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40181d
xor edi, edi
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004158e6
add esp, 8
test eax, eax
jne 0x4017e4
inc edi
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4017ca
cmp edi, 2
jl 0x40181d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call fcn.0042bc79
mov eax, 1
jmp 0x40183d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call fcn.0042bc79
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x134
ret 4

Function at 0x401aa0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
call edi
lea edx, [esi + 0x18]
push edx
call edi
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x44]
push eax
push 0
push esi
push 0x401b50
push 0
push 0
call fcn.00415995
add esp, 0x18
mov dword [esi + 0x40], eax
test eax, eax
jne 0x401b0b
push eax
push eax
push 0x4401d4
call fcn.0042eb7d
pop edi
xor eax, eax
pop esi
ret 8
mov ecx, dword [esi + 0x38]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401b2f
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 8
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x401f70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x432ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x50]
mov ebp, dword [ebx + 0x4c]
cmp ebp, eax
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
je 0x401fed
mov edx, dword [esp + 0x3c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
dec ecx
mov ebx, ecx
mov ecx, eax
cmp eax, ebx
jb 0x401fbd
mov ecx, ebx
mov esi, dword [ebp + 4]
mov edi, edx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401fcd
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x401fde
cmp eax, ebx
jb 0x401fde
cmp eax, ebx
setne dl
test edx, edx
je 0x401fe9
mov eax, dword [esp + 0x14]
add ebp, 0x10
cmp ebp, eax
jne 0x401fa0
mov ebx, dword [esp + 0x10]
cmp ebp, dword [esp + 0x14]
jne 0x4020a1
mov al, byte [esp + 0x3c]
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x18], al
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00403d60
test al, al
je 0x40204f
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00403d40
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x50]
lea ecx, [ebx + 0x48]
lea edx, [esp + 0x18]
xor esi, esi
push edx
push 1
push eax
mov dword [esp + 0x3c], esi
call fcn.004042c0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, esi
je 0x402095
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40208c
cmp al, 0xff
je 0x40208c
dec al
mov byte [ecx], al
jmp 0x402095
push ecx
call fcn.004283ab
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
call fcn.00428382
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
push edx
push 0
push eax
push 0x402100
push 0
push 0
mov dword [eax], ebx
mov dword [eax + 4], ecx
call fcn.00415995
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x407940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.00407a50
test al, al
jne 0x4079d7
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x4079c2
mov al, byte [ecx - 1]
cmp al, bl
je 0x4079b8
cmp al, 0xff
je 0x4079b8
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.004283ab
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0040bb00
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.004087f0
mov ecx, eax
call fcn.0040bf90
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.0040bea0
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x407a2e
mov al, byte [ecx - 1]
cmp al, bl
je 0x407a24
cmp al, 0xff
je 0x407a24
dec al
mov byte [ecx - 1], al
jmp 0x407a2e
dec ecx
push ecx
call fcn.004283ab
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x4085d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4335fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [0x4358ac]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
push ebx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00404570
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x4086c5
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x4086c5
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x408685
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x408678
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.0040b200
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00409e00
jmp 0x4086f0
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x4086f0
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.00403a90
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
jmp 0x4086f0
mov ecx, esi
call fcn.00409e00
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea edx, [ecx + 0x20]
mov dword [esi + 0x1c], edx
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x4086f0
lea eax, [esp + 0xc]
push eax
call fcn.0040b200
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x40871c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x408713
cmp al, 0xff
je 0x408713
dec al
mov byte [ecx], al
jmp 0x40871c
push ecx
call fcn.004283ab
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x40c450
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433820
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c53a
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax]
cmp ebx, ecx
jne 0x40c4b3
lea eax, [ebx + 0x10]
mov ecx, edi
push eax
call fcn.0040b860
test al, al
je 0x40c53a
mov ecx, dword [esi + 4]
push edi
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, esi
call fcn.0040d0f0
jmp 0x40c547
cmp ebx, eax
jne 0x40c563
lea ecx, [esp + 0x30]
call fcn.004223f5
mov edx, dword [esi + 4]
push edi
mov dword [esp + 0x24], 0
mov ecx, dword [edx + 8]
add ecx, 0x10
call fcn.0040b860
test al, al
je 0x40c529
mov eax, dword [esi + 4]
mov edx, dword [0x442e30]
push edi
mov ecx, dword [eax + 8]
lea eax, [esp + 0x30]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040d0f0
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi], ecx
lea ecx, [esp + 0x30]
call fcn.00422491
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.00422491
lea edx, [esp + 0x10]
push edi
push edx
mov ecx, esi
call fcn.0040ce00
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.0040cc90
mov edx, dword [esp + 0x30]
push edi
lea ecx, [edx + 0x10]
call fcn.0040b860
test al, al
je 0x40c53a
lea eax, [ebx + 0x10]
mov ecx, edi
push eax
call fcn.0040b860
test al, al
je 0x40c53a
lea ecx, [esp + 0x2c]
call fcn.004223f5
mov ecx, dword [esp + 0x30]
mov eax, dword [0x442e30]
mov dword [esp + 0x20], 1
push edi
cmp dword [ecx + 8], eax
jne 0x40c5b8
push ecx
push eax
lea eax, [esp + 0x18]
jmp 0x40c5c1
mov edx, dword [esi + 4]
push ebx
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040d0f0
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi], ecx
lea ecx, [esp + 0x2c]
call fcn.00422491
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x41c55f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x441d90
cmp edx, dword [eax]
je 0x41c581
add eax, 8
inc ecx
cmp eax, 0x441e20
jl 0x41c572
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x441d90]
jne 0x41c6af
mov eax, dword [0x444e78]
cmp eax, 1
je 0x41c689
test eax, eax
jne 0x41c5b2
cmp dword [0x441894], 1
je 0x41c689
cmp edx, 0xfc
je 0x41c6af
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c5e9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041b1f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041acd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c62c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041acd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x437f5c
push edi
call fcn.0041ec10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041b1f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041b200
lea eax, [ebp - 0xa0]
push 0x437f3c
push eax
call fcn.0041b200
push dword [esi + 0x441d94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041b200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041eb86
add esp, 0x2c
pop edi
jmp 0x41c6af
lea eax, [ebp + 8]
lea esi, [esi + 0x441d94]
push 0
push eax
push dword [esi]
call fcn.0041acd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x425ab0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00415e60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x425b7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x425b7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x425b2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x425b39
or bh, 8
and edi, 0x8000000
je 0x425b54
mov eax, dword [0x446b1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x425b7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret