joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440c09
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6a8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov byte [ebp - 0x18], 1
push 0x32
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.0048a490
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0047ef9e
add esp, 8
push 0x521a80
lea ecx, [ebp - 0x10]
call fcn.004a3312
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x10]
call fcn.0049f64e
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x10]
call fcn.004a33dd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004a32a4
lea ecx, [ebp - 0x1c]
call fcn.00406f30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x521864]
push ecx
push 0x4f5da4
lea edx, [ebp - 0x1c]
push edx
call fcn.0049faa5
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x1c]
call fcn.00406f50
push eax
push reloc.RtlICS.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x440cf7
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 0x54], 0
je 0x440d07
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004a32a4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a32a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x440d30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6acf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push str._Set_Soft_AP_Profile_
call fcn.0040e045
add esp, 4
lea eax, [ebp + 8]
push eax
push 1
lea ecx, [ebp + 8]
push ecx
call fcn.0043a000
add esp, 0xc
push 0x4f5ddc
lea ecx, [ebp - 0x14]
call fcn.004a3364
mov dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0042c922
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004a34d3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004a32a4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004a32a4
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f50
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x4f5df4
lea ecx, [ebp - 0x1c]
call fcn.004a3364
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0042c922
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004a34d3
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004a33dd
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call fcn.004a32a4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.004a32a4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004a32a4
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f50
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a32a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x443e60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe88
push 0x48b6fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x443eb6
jmp 0x443f28
push 0x128
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.0048a490
add esp, 0xc
mov dword [ebp - 0x150], 0x128
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x443f28
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea edx, [ebp - 0x12c]
cmp edx, eax
jne 0x443f13
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x28], eax
jmp 0x443ee9
mov dword [ebp - 4], 0xffffffff
call fcn.00443f36
jmp 0x443f47
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4452f4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 8], 0
push 0x5218ac
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x445326
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44532a
mov byte [ebp - 8], 1
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x454686
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c784a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x4d0d70
mov dword [ebp - 4], 1
xor ecx, ecx
mov cl, byte [0x505ef0]
test ecx, ecx
je 0x454801
xor edx, edx
mov dl, byte [0x521db2]
test edx, edx
je 0x454801
xor eax, eax
mov al, byte [0x505fc1]
test eax, eax
jne 0x454801
cmp dword [0x521a00], 0x6d
jl 0x454801
push 0x4f8afc
call fcn.0040e045
add esp, 4
push 0x4f8b10
lea ecx, [ebp - 0x14]
call fcn.004a3364
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0042c922
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004a34d3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004a32a4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004a32a4
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f50
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [0x5787cc], 0
push 0x578804
push 0x5787d0
push 0x5787cc
call dword [sym.imp.RtlICS.dll_Ordinal_3]
add esp, 0xc
cmp dword [0x5787cc], 0
jne 0x45479d
push 0x5787d0
call fcn.0048a4f0
add esp, 4
test eax, eax
je 0x4547ce
mov dword [0x5787cc], 0
push 0x578804
push 0x5787d0
mov eax, dword [0x5787cc]
push eax
call dword [sym.imp.RtlICS.dll_Ordinal_2]
add esp, 0xc
push 0x522144
call dword [sym.imp.RtlICS.dll_Ordinal_5]
add esp, 4
call dword [sym.imp.RtlLib.dll_RT_ACM_SoftAP_GetStatus]
mov dword [0x521dbc], eax
cmp dword [0x521dbc], 2
jne 0x4547f5
push 0x4f8b28
call fcn.0040e045
add esp, 4
call dword [sym.imp.RtlLib.dll_RT_ACM_SoftAP_Stop]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004a32a4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xb1c
call fcn.004a0688
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
call fcn.00443a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45a54d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea ecx, [ebp - 0x114]
push ecx
call fcn.0048a750
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x114]
push eax
push reloc.RtlICS.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45a5e7
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 0x118], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push 0x4f974c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x45a5f1
mov al, 1
jmp 0x45a5f3
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x45c1e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov byte [ebp - 0x14], 1
mov eax, dword [ebp + 8]
push eax
push 0x4f9a8c
lea ecx, [ebp - 0x148]
push ecx
call fcn.0048a750
add esp, 0xc
mov edx, dword [0x521864]
push edx
push 0x4f9aa0
lea eax, [ebp - 0x114]
push eax
call fcn.0048a750
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x114]
push edx
push reloc.RtlICS.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0xc], eax
push 6
push 0
lea eax, [ebp - 8]
push eax
call fcn.0048a490
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x45c290
push 6
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.0048a150
add esp, 0xc
push 6
lea eax, [ebp - 8]
push eax
push 3
push 0
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x45c294
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov byte [ebp - 0x14], 1
mov eax, dword [ebp + 8]
push eax
push str.WDS_AP_ADDRESS_d
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0048a750
add esp, 0xc
push 6
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048a490
add esp, 0xc
mov eax, dword [0x521864]
push eax
push str.SoftwareRtWLan_s
lea ecx, [ebp - 0x114]
push ecx
call fcn.0048a750
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x114]
push eax
push reloc.RtlICS.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 6
push 0
lea ecx, [ebp - 8]
push ecx
call fcn.0048a490
add esp, 0xc
mov dword [ebp - 0x118], 6
mov dword [ebp - 0xc], 3
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c358
push 6
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048a150
add esp, 0xc
mov byte [ebp - 0x14], 1
jmp 0x45c35c
mov byte [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x45ec64
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8229
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x4d1278
mov dword [ebp - 4], 4
push 0
mov ecx, dword [0x5056ec]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45ed2c
push 0x64
mov ecx, 0x5056e8
call fcn.0044bb10
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45ed2c
cmp dword [0x505ee8], 0
je 0x45ed2c
push 0
mov edx, dword [0x505ee8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x505ee8]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x505ee8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x45ed11
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
call dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x45ed18
mov dword [ebp - 0x1c], 0
mov dword [0x505ee8], 0
mov ecx, 0x5056e8
call fcn.0042e0e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0x10184
call fcn.004a0688
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0x10148
call fcn.004b74b9
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x1010c
call fcn.004b755a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xa4
call fcn.004a0cf9
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.00443a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x460ff1
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
xor eax, eax
mov al, byte [0x5217ac]
test eax, eax
je 0x46108e
call fcn.0048b5c5
cmp eax, dword [0x52231c]
jge 0x46101b
jmp 0x4610c5
cmp dword [0x505ee8], 0
je 0x461087
push 0
mov ecx, dword [0x505ee8]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x505ee8]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x505ee8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46106c
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
call dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x461073
mov dword [ebp - 0x10], 0
mov dword [0x505ee8], 0
mov ecx, 0x5056e8
call fcn.0042e0e0
mov byte [0x5217ac], 0
push 0
mov eax, dword [0x5056ec]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4610c5
mov ecx, 0x5056e8
call fcn.0042e130
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x45fc47
call fcn.004a2811
mov dword [0x505ee8], eax
mov esp, ebp
pop ebp
ret

Function at 0x47ef9e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x35
mov byte [ebp - 0xa], 0x36
mov byte [ebp - 9], 0x37
mov byte [ebp - 8], 0x38
mov byte [ebp - 7], 0x39
mov byte [ebp - 6], 0x41
mov byte [ebp - 5], 0x42
mov byte [ebp - 4], 0x43
mov byte [ebp - 3], 0x44
mov byte [ebp - 2], 0x45
mov byte [ebp - 1], 0x46
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x47effd
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jge 0x47f07e
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
and edx, 0xf0
sar edx, 4
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
mov cl, byte [ebp + edx - 0x10]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0xf
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov al, byte [ebp + ecx - 0x10]
mov byte [edx], al
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14], 5
je 0x47f067
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], 0x3a
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x47f079
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x47eff4
mov esp, ebp
pop ebp
ret
Function at 0x481758
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a14
call fcn.0048af50
mov dword [ebp - 0x1a14], ecx
mov dword [ebp - 0x1a10], 0x1900
lea eax, [ebp - 0x1a10]
push eax
lea ecx, [ebp - 0x1a0c]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
je 0x48179c
jmp 0x481958
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.00413390
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.00462510
mov dword [ebp - 0x10c], 0
mov dword [0x578920], 0
lea edx, [ebp - 0x1a0c]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x1a0], 6
jne 0x48193d
push 0x100
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.0048a490
add esp, 0xc
mov edx, dword [ebp - 0x108]
add edx, 8
push edx
push 0x50100c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.0040d490
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call fcn.0048a490
add esp, 0xc
mov ecx, dword [ebp - 0x108]
add ecx, 0x10c
push ecx
push 0x501010
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push 1
mov ecx, dword [ebp - 0x10c]
push ecx
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.004a07d8
push 0x100
push 0
lea edx, [ebp - 0x100]
push edx
call fcn.0048a490
add esp, 0xc
mov eax, dword [ebp - 0x108]
add eax, 0x1b0
push eax
push 0x501014
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x100]
push edx
push 2
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x1a14]
add ecx, 0x13a8
call fcn.004a07d8
push 0x280
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [0x578920]
imul edx, edx, 0x280
add edx, 0x578928
push edx
call fcn.0048a150
add esp, 0xc
mov eax, dword [0x578920]
add eax, 1
mov dword [0x578920], eax
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x4817e0
mov esp, ebp
pop ebp
ret
Function at 0x4935ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x502f80
cmp edx, dword [eax]
je 0x4935d0
add eax, 8
inc ecx
cmp eax, 0x503010
jl 0x4935c1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x502f80]
jne 0x4936fe
mov eax, dword [0x57c328]
cmp eax, 1
je 0x4936d8
test eax, eax
jne 0x493601
cmp dword [0x502440], 1
je 0x4936d8
cmp edx, 0xfc
je 0x4936fe
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x493638
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0048a660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0048a4f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x49367b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0048a4f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d9434
push edi
call fcn.0048bb20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0048a660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0048a670
lea eax, [ebp - 0xa0]
push 0x4d9414
push eax
call fcn.0048a670
push dword [esi + 0x502f84]
lea eax, [ebp - 0xa0]
push eax
call fcn.0048a670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0049707d
add esp, 0x2c
pop edi
jmp 0x4936fe
lea eax, [ebp + 8]
lea esi, [esi + 0x502f84]
push 0
push eax
push dword [esi]
call fcn.0048a4f0
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 0x49e230
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.0048af50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x49e2fb
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 0x49e2fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x49e2ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x49e2b9
or bh, 8
and edi, 0x8000000
je 0x49e2d4
mov eax, dword [0x57df5c]
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 0x49e2fb
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
Function at 0x49e6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49e6fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49e71f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49e73a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4a4713
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a474b
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.004a36d7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a36af
jmp 0x4a4757
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4