joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4157a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5f3fcc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x214], ecx
mov ecx, 5
movzx ebx, dl
cmp ebx, ecx
mov dword [ebp - 0x224], edx
push esi
cmova ebx, ecx
mov dword [ebp - 0x220], ecx
push edi
cmp dword [0x5fd834], ebx
jge 0x4157f7
cmp ebx, 1
jne 0x4159bf
mov ecx, dword [ebx*4 + 0x5ce918]
xor edi, edi
cmp ebx, 5
mov dword [ebp - 0x210], ecx
mov esi, eax
mov dword [ebp - 0x21c], edi
cmova ebx, dword [ebp - 0x220]
test edx, 0x100
je 0x41584f
push dword [ebp - 0x214]
mov edx, 0x1ff
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x20c]
call fcn.00413ba0
add esp, 0xc
test eax, eax
jle 0x41593a
mov edi, eax
jmp 0x415938
test eax, eax
je 0x4158a5
cmp dword [str.usb_registry_], 0
mov edi, 0x5f481c
je 0x415899
test esi, esi
je 0x41589f
cmp byte [esi], 0
je 0x415893
push dword [edi]
push esi
call fcn.005878d0
add esp, 8
cmp eax, esi
jne 0x41588b
mov ecx, dword [edi]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415880
sub ecx, edx
add esi, ecx
add edi, 4
cmp dword [edi], 0
jne 0x415861
mov ecx, dword [ebp - 0x210]
test esi, esi
jne 0x4158aa
jmp 0x4158a5
mov ecx, dword [ebp - 0x210]
mov esi, str.none
test ecx, ecx
je 0x4158e3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4158b1
sub ecx, edx
je 0x4158e3
push esi
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push str.libusb0
push str._s:_s___s_
push 0x1ff
push eax
call fcn.00413be0
add esp, 0x18
jmp 0x415902
push esi
push str.libusb0
push str._s:__s_
lea eax, [ebp - 0x20c]
push 0x1ff
push eax
call fcn.00413be0
add esp, 0x14
mov edi, eax
test edi, edi
js 0x41594a
push dword [ebp - 0x214]
mov edx, 0x1ff
mov dword [ebp - 0x21c], edi
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x20c]
sub edx, edi
add ecx, edi
call fcn.00413ba0
add esp, 0xc
test eax, eax
jle 0x41593a
add edi, eax
test eax, eax
js 0x41594a
cmp edi, 0x200
jae 0x4159d0
jmp 0x41594f
mov edi, 0x1ff
mov byte [ebp + edi - 0x20c], 0
cmp ebx, 1
jne 0x415978
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x5fd838
call fcn.00587b40
add esp, 0xc
mov byte [edi + 0x5fd838], 0
mov eax, dword [0x5fd830]
test eax, eax
je 0x4159aa
push edi
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x21c]
push esi
push dword [ebp - 0x210]
push str.libusb0
push dword [ebp - 0x224]
call eax
add esp, 0x1c
test eax, eax
jne 0x4159bf
cmp dword [0x5fd834], ebx
jl 0x4159bf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00567879
mov esp, ebp
pop ebp
ret
call fcn.00567ee6
int3
Function at 0x418610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588f8f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5f3fcc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
push 4
push esi
push 0x40d200
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esi], vtable.DirectXThread.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], vtable.FrameBuffer.0
mov dword [esi + 0x1c], vtable.Dimension.0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x3c], 0
movups xmmword [esi + 0x28], xmm0
mov word [esi + 0x38], 0
mov dword [esi + 0x40], vtable.FrameBuffer.0
mov dword [esi + 0x44], vtable.Dimension.0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x64], 0
movups xmmword [esi + 0x50], xmm0
mov word [esi + 0x60], 0
mov dword [esi + 0x68], vtable.Rect.0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], vtable.Rect.0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov ax, word [ebp + 0x18]
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 5
mov word [esi + 0xa8], ax
lea eax, [ebp + 0xc]
push eax
call fcn.004102a0
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xd0], 0
test edx, edx
je 0x4187bb
mov ecx, dword [ebp + 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x4187b1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4187cf
push ecx
push edx
call fcn.00567d94
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
call fcn.0056d4c2
int3
Function at 0x419200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589096
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5f3fcc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
push 4
push esi
push 0x40d200
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [esi], vtable.Win8DeskDuplicationThread.0
xorps xmm0, xmm0
mov dword [esi + 0x14], vtable.FrameBuffer.0
mov dword [esi + 0x18], vtable.Dimension.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x24], xmm0
mov word [esi + 0x34], 0
mov dword [esi + 0x3c], vtable.Rect.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov eax, dword [ebp + 8]
lea edi, [esi + 0x70]
mov byte [ebp - 4], 3
mov ecx, 0x17
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x6c], eax
lea esi, [ebp + 0x14]
mov eax, dword [ebp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
mov dword [esi + 0xcc], eax
lea ecx, [esi + 0xd4]
mov eax, dword [ebp + 0x74]
mov dword [esi + 0xd0], eax
lea eax, [ebp + 0x78]
push eax
call fcn.004102a0
mov eax, dword [ebp + 0x84]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x78]
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0x128], eax
mov eax, dword [0x5fda3c]
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
mov dword [esi + method.FrameBuffer.virtual_0], vtable.FrameBuffer.0
mov dword [esi + method.Dimension.virtual_0], vtable.Dimension.0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x15c], 0
movups xmmword [esi + 0x148], xmm0
mov word [esi + 0x158], 0
mov dword [esi + method.Region.virtual_0], vtable.Region.0
mov dword [esi + 0x168], eax
mov eax, dword [0x5fda40]
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], 0x5fda44
mov dword [esi + 0x174], 0x3c
test edx, edx
je 0x4193fe
mov ecx, dword [ebp + 0x80]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x4193f4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419413
push ecx
push edx
call fcn.00567d94
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x80
call fcn.0056d4c2
int3
Function at 0x41a640
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5891e4
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5f3fcc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea edi, [esi + 0x18]
mov ebx, dword [ebp + 0x14]
push 0x41a430
push fcn.00412a50
push 2
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esi], vtable.MSScreenImpl.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
call fcn.0056881c
push 0
push 0
mov dword [ebp - 4], 0
push 0
mov dword [esi + 0x30], 0
push 0
mov dword [esi + 0x3c], vtable.WindowsEvent.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x40], eax
test eax, eax
je 0x41a7bd
lea eax, [esi + 0x48]
mov dword [esi + 0x44], vtable.LocalMutex.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x38], vtable.Rect.0
sub dword [ecx + 4], eax
sub dword [ecx + 0xc], eax
sub dword [ecx + 8], edx
sub dword [ecx + 0x10], edx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x41a742
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], vtable.Rect.0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
add dword [edi + 4], 0x18
jmp 0x41a74e
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, edi
call fcn.0041ba00
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x38], vtable.Rect.0
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x28], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 5
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x41a79d
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x10]
mov dword [eax], vtable.Rect.0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edx
add dword [ecx + 4], 0x18
jmp 0x41a7a7
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.0041ba00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004213f0
push esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push str.Cannot_create_windows_event_with_error___d
push eax
call fcn.00421840
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00421910
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00421e40
add esp, 8
lea eax, [ebp - 0x34]
push 0x5ef4ac
push eax
call fcn.0056a50a
int3
Function at 0x42f94a
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x42f99d
push esi
push dword [ebp + 8]
call fcn.0042fb33
mov edi, eax
test edi, edi
je 0x42f998
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42f998
mov eax, dword [ebp - 8]
jmp 0x42f9af
mov eax, dword [ebp + 0x10]
jmp 0x42f9af
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x43190a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x431954
call fcn.004420cd
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x431951
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4319a4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x431981
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x598a6c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x431981
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4319a2
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x598a6c]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43773f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x437784
call fcn.004420cd
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x437784
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4377a0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043fd8c
mov ebx, eax
test edi, edi
je 0x43779e
test esi, esi
je 0x43779e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x438196
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x438254
cmp dword [esi + 0x20], 0
je 0x438254
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x438254
cmp dword [ebp + 8], 0
je 0x438254
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004420cd
push 0x59b218
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x438225
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x438254
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004d3d04
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x438245
test edi, edi
je 0x438245
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x438250
mov ecx, esi
call fcn.00437f38
mov eax, ebx
jmp 0x438256
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43cb56
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x58a2ba
call fcn.0056845e
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x43cb7c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43cbdc
call fcn.00430c57
push eax
lea ecx, [ebp - 0x10]
call fcn.004036d0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x598a6c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057277d
push eax
call fcn.00401c10
add esp, 0x14
test esi, esi
je 0x43cbcf
push esi
call fcn.0056cf20
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401db0
mov eax, ebx
call fcn.00568427
ret 8

Function at 0x43d499
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004420cd
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43d4d0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043d4ef
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x44911d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x449137
call fcn.004420cd
mov esi, dword [eax + 0xc]
push 0x59f050
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44918d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44918d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x44916c
xor esi, esi
jmp 0x449182
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00449196
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x44918f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4d5744
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4d579a
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d5773
call fcn.0043ef8c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d5788
call fcn.0043ef8c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d579a
call fcn.0043ef8c
call fcn.004420cd
cmp dword [eax + 0x3c], 0
je 0x4d57af
push edi
mov ecx, ebx
call fcn.004d4e74
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d5981
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4d57d8
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4d57e4
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4dd6d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0043c733
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004dd8f1
cmp esi, 3
je 0x4dd716
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4dd75f
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4dd739
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00430e9d
jmp 0x4dd74a
push 0xff
mov ecx, esi
call fcn.00403690
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042fc6f
jmp 0x4dd783
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4dd783
push dword [esi]
push dword [ebp - 4]
call fcn.004adae9
pop edi
pop esi
leave
ret 0xc

Function at 0x4dd848
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004dd8f1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4dd890
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00430e9d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042fc6f
jmp 0x4dd89b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004adae9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x52e2b4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005798fb
pop ecx
test eax, eax
jne 0x52e2f6
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040bbe0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x52e2bc
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x53da60
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00564b92
call fcn.00442121
cmp dword [eax + 0x14], 0
jne 0x53da7b
mov ecx, esi
pop esi
jmp fcn.0053cd8b
pop esi
ret

Function at 0x549832
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402f10
call fcn.00442121
cmp dword [eax + 0x14], 0
jne 0x54984d
mov ecx, esi
pop esi
jmp fcn.005490ae
pop esi
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46e008], 0x8088405
inc edx
mov dword [ebx + 0x46e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036f4
xor eax, eax
push ebp
push 0x4036ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403730
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x46e024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x500048], 0
je 0x404581
cmp word [0x50021c], 0xd7b2
jne 0x404549
cmp dword [0x500224], 0
jbe 0x404549
mov eax, 0x500218
call dword [0x500234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x40459d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret