joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x40f65c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x40a4ad
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x40a354
test ebp, ebp
je 0x40a40d
dec ebp
cmp dword [ebx + 4], 0
je 0x40a36d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040a050
mov dword [esp + 0x14], eax
jmp 0x40a387
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x40a40d
test ax, ax
je 0x40a3a1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x40a3e8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x40f65c]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x40a40d
cmp dword [esp + 0x30], 0
jne 0x40a346
cmp ax, 0xd
je 0x40a414
cmp ax, 0xa
jne 0x40a346
sub edi, 2
jmp 0x40a48c
cmp dword [esp + 0x30], 0
jne 0x40a48c
cmp ax, 0xa
jne 0x40a41f
sub edi, 2
jmp 0x40a48c
cmp ax, 0xd
jne 0x40a48c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x40a441
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0040a050
mov dword [esp + 0x14], eax
jmp 0x40a457
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x40a48c
cmp dword [ebx + 4], 0
je 0x40a46b
add dword [ebx + 0xc], 2
jmp 0x40a48c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x40a4c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x40f65c]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x40a610
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x40a50c
test edi, edi
je 0x40a57d
dec edi
push esi
push ebp
call fcn.0040a7a0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40a51f
xor cl, cl
jmp 0x40a521
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x40a564
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x40f65c]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x40a57d
test eax, eax
jne 0x40a502
cmp cl, 0xd
je 0x40a581
cmp cl, 0xa
jne 0x40a502
dec esi
jmp 0x40a5f3
test eax, eax
jne 0x40a5f3
cmp cl, 0xa
jne 0x40a589
dec esi
jmp 0x40a5f3
cmp cl, 0xd
jne 0x40a5f3
dec esi
cmp dword [ebp + 4], 0
je 0x40a5a8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0040a050
mov dword [esp + 0x20], eax
jmp 0x40a5bf
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40a5f3
cmp dword [ebp + 4], 0
je 0x40a5d1
inc dword [ebp + 0xc]
jmp 0x40a5f3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x40a620
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x40a727
cmp dword [esi + 0x14], 1
jne 0x40a66b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x40a6e8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x40a6d3
dec eax
je 0x40a6bc
sub eax, 2
je 0x40a6a7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00409910
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40a715
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x40a691
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x40a7a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x40a7c7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040a050
mov dword [esp + 4], eax
jmp 0x40a7e1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x40a7ed
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x40a809
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x40a819
mov esi, 2
jmp 0x40a835
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x40a828
mov esi, 3
jmp 0x40a835
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x40a892
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x40a864
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0040a050
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
Function at 0x40e083
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004094ef
mov dword [ebp - 0x14], eax
cmp dword [0x43093c], esi
jne 0x40e176
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e256
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e256
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e256
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43093c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430940], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430944], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43094c], eax
test eax, eax
je 0x40e173
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430948], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e19b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e18e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push 4
pop eax
jmp 0x40e258
cmp dword [ebp - 0x14], esi
je 0x40e1b0
push dword [0x43093c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e195
mov eax, dword [0x430948]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e20e
cmp dword [0x43094c], edi
je 0x40e20e
push eax
call ebx
push dword [0x43094c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e20e
test eax, eax
je 0x40e20e
call ecx
test eax, eax
je 0x40e203
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e203
test byte [ebp - 8], 1
jne 0x40e20e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e23e
mov eax, dword [0x430940]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
call eax
mov esi, eax
test esi, esi
je 0x40e23b
mov eax, dword [0x430944]
cmp eax, edi
je 0x40e23b
push eax
call ebx
test eax, eax
je 0x40e23b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43093c]
call ebx
test eax, eax
je 0x40e256
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040ec
mov esp, ebp
pop ebp
ret
Function at 0x10002220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xb4
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x98], edi
test byte [0x10004330], 8
jne 0x10002300
lea eax, [ebp - 0x94]
mov dword [esp], ebx
xor esi, esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.lz32.dll_LZOpenFileA]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x100022af
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100022c0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.lz32.dll_LZSeek]
mov eax, dword [ebp + 0x1c]
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.lz32.dll_LZRead]
sub esp, 0xc
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.lz32.dll_LZClose]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
lea eax, [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov eax, ebx
call dbg.find_resource
mov esi, eax
test eax, eax
je 0x100022a3
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + 0x14]
cmp edi, edx
cmova edi, edx
jmp 0x10002272
mov eax, ebx
mov esi, dword [ebp + 0x14]
call sym._wine_dbgstr_an.constprop.0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s_type_p_id_p_off_ld_len_ld_data_p__n
mov dword [esp + 8], str.GetFileResource16
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002245

Function at 0x100027b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002808
cmp byte [esi + ebx - 1], 0xa
je 0x100027dc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10008084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10008094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10002f20
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10008094]
movzx eax, al
bt eax, esi
jae 0x10002f80
mov ecx, dword [0x10008084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10002e25
test byte [0x10004348], 8
jne 0x10002ec0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004358], 8
jne 0x10002e70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002df4
cmp esi, 3
jbe 0x10002e30
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100062ec]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002df4
mov ecx, dword [0x10008094]
test ecx, ecx
je 0x10002f60
mov dword [esp], 0x10004358
call dword [0x10008094]
test al, 8
je 0x10002dcb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x10002dcb
mov ebx, dword [0x10008094]
test ebx, ebx
je 0x10002f40
mov dword [esp], 0x10004348
call dword [0x10008094]
test al, 8
je 0x10002db6
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x10002dbe
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10008094
call sym._load_func.part.0
jmp 0x10002d7d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10008094
call sym._load_func.part.0
jmp 0x10002eca
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10008094
call sym._load_func.part.0
jmp 0x10002e7e
mov eax, 0xffffffff
jmp 0x10002e25
Function at 0x501268e2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 8], 0x50242220
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.50126852
add esp, 8
push 0x104
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2]
test eax, eax
je 0x50126961
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x50126948
mov edx, dword [ebp - 0x20]

Function at 0x50126964
Capabilities:
Link many functions at runtime

Disassembly:
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x5012698e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x50126967
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x24]
movsx edx, byte [ecx]
test edx, edx
je 0x501269ca
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x24]
movsx cx, byte [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
add dword [ecx - 0x341423ab], ecx
Function at 0x501269c4
Capabilities:
Link many functions at runtime

Disassembly:
add dword [ecx - 0x341423ab], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x5c], eax
push 0
push 0x80
push 3
push 0
push 1
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jge 0x501269c6
push dword [ebp + 5]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x60], eax
inc ebp
mov al, byte [0x4d8b006a]
int3
push ecx
call dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x48]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [ebp - 0x68]
test eax, eax
jne 0x50126a6d
jmp 0x50126c6c
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x38], 0
jmp 0x50126ac5
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x6c]
jae 0x50126adc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
jmp 0x50126ab3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
Function at 0x50153a94
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x50153b18
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [ebx + 0xb2], 0
je 0x50153ac2
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
push 1
push 0x50153b24
push 0x50153b24
lea edx, [ebp - 4]
mov eax, ebx
call sym.vcl120.bpl__Extactns_TURLAction_GetURL_qqrv
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp word [ebx + 0xaa], 0
je 0x50153b02
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50153b1f
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret

Function at 0x5016f110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x5016f14c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5016f127
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5016f136
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5016f145
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x5016faac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x281], 0
jne 0x5016fb6e
mov eax, dword [ebp - 4]
mov byte [eax + 0x280], 1
xor eax, eax
push ebp
push 0x5016fb48
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
xor edx, edx
call sym.vcl120.bpl__Controls_TControl_SetAlign_qqr15Controls_TAlign
mov eax, dword [ebp - 4]
mov byte [eax + 0x281], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x290], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
mov edx, eax
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Controls_TControl_SetHeight_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5016fb4f
mov eax, dword [ebp - 4]
mov byte [eax + 0x280], 0
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x50170228
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x281], 0
je 0x50170300
mov eax, dword [ebp - 4]
mov byte [eax + 0x280], 1
xor eax, eax
push ebp
push 0x501702da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
mov dl, 5
call sym.vcl120.bpl__Controls_TControl_SetAlign_qqr15Controls_TAlign
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov byte [eax + 0x281], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x290]
mov eax, dword [ebp - 4]
call sym.vcl120.bpl__Controls_TControl_SetHeight_qqri
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b4]
mov eax, dword [eax + 0x264]
call sym.vcl120.bpl__Forms_TControlScrollBar_IsScrollBarVisible_qqrv
test al, al
je 0x501702c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b4]
mov edx, dword [ebp - 4]
call sym.vcl120.bpl__Forms_TScrollingWinControl_ScrollInView_qqrp17Controls_TControl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501702e1
mov eax, dword [ebp - 4]
mov byte [eax + 0x280], 0
ret
pop ebx
pop ecx
pop ebp
ret