joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4879f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.00463a73
push eax
lea ecx, [esp + 0x30]
call fcn.0046b402
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.00463a73
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0046b344
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x404e96
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call fcn.0046ab86
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0046b6aa
test edi, edi
je 0x404e42
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call fcn.0046acc7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x404eb7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0046b474
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x408c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00468d12
mov eax, dword [0x4acaa4]
mov dword [esp + 0x28], eax
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 3
mov dword [esp + 0x1c], vtable.CFileException.0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xffffffff
call fcn.0046755c
lea ecx, [esp + 8]
mov byte [esp + 0x34], 4
call fcn.00469195
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push 0x8042
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.004692a7
test eax, eax
jne 0x408d2f
lea ecx, [esp + 8]
mov byte [esp + 0x34], 4
call fcn.004691ea
mov dword [esp + 0x18], vtable.CFileException.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 6
call fcn.0046741f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0046741f
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0xffffffff
call fcn.0046741f
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x40]
push ebx
xor ebx, ebx
mov ecx, dword [eax - 8]
mov dword [esp + 8], ebx
test ecx, ecx
jle 0x408dc0
mov cl, byte [ebx + eax]
mov al, bl
add al, cl
push 0
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0xf], al
call fcn.00469449
lea eax, [esp + 6]
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.004693c4
test eax, eax
je 0x408db2
add bl, byte [esp + 7]
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00469449
mov dl, byte [esp + 6]
lea ecx, [esp + 6]
push 1
xor dl, bl
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0xe], dl
inc bl
call fcn.004693fe
lea edx, [esp + 6]
push 1
push edx
lea ecx, [esp + 0x14]
call fcn.004693c4
test eax, eax
jne 0x408d71
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x44]
inc ebx
mov dword [esp + 8], ebx
cmp ebx, dword [eax - 8]
jl 0x408d41
lea ecx, [esp + 0xc]
call fcn.004694c2
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call fcn.004691ea
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 7
call fcn.0046741f
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call fcn.0046741f
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046741f
mov ecx, dword [esp + 0x30]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x412b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
lea eax, [esp + 0x10]
mov dword [esp], 3
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x412bd0
cmp dword [esp + 0x20], 1
jne 0x412bb4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412bd0
lea ecx, [esp]
push 0
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp]
add esp, 0x124
ret
lea edx, [esp + 4]
push edx
push 1
push 0
push str.Control_PanelDesktop
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412c3f
lea eax, [esp + 8]
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.WheelScrollLines
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412c34
push 0xa
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.0044d1e1
add esp, 0xc
mov dword [esp], eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x124
ret
Function at 0x425580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4895fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call fcn.00463652
mov dword [esi], vtable.CEdit.0
mov eax, dword [0x4acaa4]
lea edi, [esi + 0x44]
mov dword [edi], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 2
push ecx
mov ecx, edi
mov dword [esi], method.CEdit.virtual_0
call fcn.0046750c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x40], eax
mov eax, ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], 1
mov ebx, dword [eax]
lea edx, [esi + 0x50]
mov dword [esi + 0x50], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov eax, dword [eax + 0xc]
mov ebx, dword [esp + 0x24]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50800080
push ebx
push ecx
push eax
mov ecx, esi
call fcn.00477fa0
test eax, eax
je 0x425746
mov eax, dword [ebx + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x31
push eax
call ebx
push eax
call fcn.0046b695
cmp eax, ebp
jne 0x42564c
xor eax, eax
jmp 0x42564f
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00466a56
mov ecx, esi
call fcn.00466c04
mov ebp, dword [esp + 0x40]
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x425685.4
xor ecx, ecx
mov cl, byte [eax + 0x425780]
jmp dword [ecx*4 + 0x425770]
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
jmp 0x425746
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x1c]
push 0xb1
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push edx
jmp 0x42571f
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push ecx
call ebx
jmp 0x425746
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
cmp ebp, 0x80
push 0
push ebp
jae 0x425737
mov ecx, dword [esi + 0x1c]
push 0x102
push ecx
jmp 0x425740
mov edx, dword [esi + 0x1c]
push 0x286
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0046741f
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x429230
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x429260
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret 4

Function at 0x42e7c0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x42e7f0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret 4

Function at 0x42ef30
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
mov ebx, ecx
push esi
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call edi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42efce
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x10]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42eff9
push str.CANNOT_CONNECT_SOCKET_TO_TARGET
push 0x441
mov ecx, ebx
call fcn.0046695e
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
add esp, 0x10
ret 0xc
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x42ef98
push str.CANNOT_RESOLVE_HOSTNAME
push 0x441
mov ecx, ebx
call fcn.0046695e
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x436950
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push closesocket
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4369c3
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4369b8
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0044d1e1
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x4418e0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x48b14b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ebx, ecx
xor esi, esi
push esi
push esi
mov eax, dword [ebx + 0x78]
push 0x1009
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.0042a3b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1a0], esi
call fcn.0042a540
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call fcn.0042a560
test eax, eax
jbe 0x441a9c
push edi
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042a570
mov esi, eax
push 0
mov ecx, esi
call fcn.0042b2d0
push 0x4200
lea edx, [esp + 0x40]
push 0x160
push edx
push 0
mov ecx, esi
call fcn.0042b180
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0
push 0
test eax, eax
push 0x1004
je 0x4419b8
mov eax, dword [ebx + 0x78]
push eax
call ebp
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov ecx, esi
call fcn.0042b190
mov edx, dword [esp + 0x24]
push 0
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
lea edi, [ebx + 0x5c]
push eax
jmp 0x4419da
mov ecx, dword [ebx + 0x78]
push ecx
call ebp
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0042b190
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push eax
lea edi, [ebx + 0x5c]
push edx
push 3
mov ecx, edi
call fcn.0046254b
lea eax, [esp + 0x28]
push 0x10
push eax
mov ecx, esi
call fcn.0042b2b0
push eax
call fcn.0044c738
lea ecx, [esp + 0x34]
push ecx
call fcn.0044ce13
mov edx, dword [ebx + 0x78]
add esp, 0x10
push 0
push 0
push 0x1004
push edx
call ebp
lea ecx, [esp + 0x28]
dec eax
push ecx
push 1
push eax
mov ecx, edi
call fcn.004625e5
mov edx, dword [ebx + 0x78]
push 0
push 0
push 0x1004
push edx
call ebp
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0042b180
push eax
mov eax, dword [esp + 0x14]
dec eax
push 2
push eax
mov ecx, edi
call fcn.004625e5
mov ecx, dword [ebx + 0x78]
push 0
push 0
push 0x1004
push ecx
call ebp
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0042b2b0
mov edx, dword [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 4
dec edx
push 0
push edx
mov ecx, edi
call fcn.00462597
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
inc esi
mov dword [esp + 0x14], esi
call fcn.0042a560
cmp esi, eax
jb 0x441944
pop edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0042a510
mov ecx, dword [esp + 0x198]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x198
ret
Function at 0x441ad0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x48b16d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push esi
mov esi, ecx
push 8
call fcn.00467914
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x170], 0
je 0x441b14
mov ecx, eax
call fcn.00462902
jmp 0x441b16
xor eax, eax
mov dword [esi + 0xa0c], eax
push 0x4010
lea eax, [esp + 0xc]
push 0x160
push eax
push 0x80
push str..txt
mov dword [esp + 0x184], 0xffffffff
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esi + 0xa0c]
push eax
call fcn.004629ef
mov ecx, dword [esi + 0xa0c]
push 0xffffffffffffffff
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov eax, dword [esi + 0xa0c]
test eax, eax
je 0x441b71
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x78]
push 0
push 0x1003
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00462994
mov ecx, dword [esp + 0x168]
pop esi
mov dword fs:[0], ecx
add esp, 0x170
ret

Function at 0x441ba0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x48b18d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push esi
mov esi, ecx
push 8
call fcn.00467914
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x170], 0
je 0x441be4
mov ecx, eax
call fcn.00462902
jmp 0x441be6
xor eax, eax
mov dword [esi + 0xa08], eax
push 0x4011
lea eax, [esp + 0xc]
push 0x160
push eax
push 0x80
push str..txt
mov dword [esp + 0x184], 0xffffffff
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esi + 0xa08]
push eax
call fcn.004629ef
mov ecx, dword [esi + 0xa08]
push 0xffffffffffffffff
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov eax, dword [esi + 0xa08]
test eax, eax
je 0x441c41
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x78]
push 1
push 0x1003
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00462994
mov ecx, dword [esp + 0x168]
pop esi
mov dword fs:[0], ecx
add esp, 0x170
ret

Function at 0x4432d0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x443300
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret 4
Function at 0x455e75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4b0180
cmp edx, dword [eax]
je 0x455e97
add eax, 8
inc ecx
cmp eax, 0x4b0210
jl 0x455e88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4b0180]
jne 0x455fc5
mov eax, dword [0x4d0aa8]
cmp eax, 1
je 0x455f9f
test eax, eax
jne 0x455ec8
cmp dword [0x4ad6c8], 1
je 0x455f9f
cmp edx, 0xfc
je 0x455fc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x455eff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00454520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0044e890
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x455f42
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044e890
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ac2f4
push edi
call fcn.00451ba0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00454520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00454530
lea eax, [ebp - 0xa0]
push 0x49bcb0
push eax
call fcn.00454530
push dword [esi + 0x4b0184]
lea eax, [ebp - 0xa0]
push eax
call fcn.00454530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00458708
add esp, 0x2c
pop edi
jmp 0x455fc5
lea eax, [ebp + 8]
lea esi, [esi + 0x4b0184]
push 0
push eax
push dword [esi]
call fcn.0044e890
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 0x45c560
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x24], 0
mov ecx, 0x45c730
sub ecx, 0x45c700
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
add edx, 0x20f
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x45c5d3
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.0044e310
add esp, 0xc
push 0x40
push 0x101000
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x45c5f8
jmp 0x45c6ed
cmp dword [ebp + 0x10], 0
jne 0x45c612
mov edx, 0x45c720
sub edx, 0x45c700
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x45c633
jmp 0x45c6eb
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x45c700
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45c657
jmp 0x45c6e9
mov ecx, dword [ebp - 0x1c]
add ecx, 4
and ecx, 0xfffffffc
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x20c
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45c68d
jmp 0x45c6e7
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0x10000
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45c6b7
jmp 0x45c6e5
cmp dword [ebp + 0x10], 0
je 0x45c6c9
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 8], 0
je 0x45c6e0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x45c6ef
jmp 0x45c6d0
jmp 0x45c6d0
jmp 0x45c6d0
jmp 0x45c6d0
jmp 0x45c6d0
mov esp, ebp
pop ebp
ret
Function at 0x45f860
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.0044d560
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45f92b
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 0x45f92b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45f8de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45f8e9
or bh, 8
and edi, 0x8000000
je 0x45f904
mov eax, dword [0x4d279c]
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 0x45f92b
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