joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa0d0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x5179e8
call fcn.00404f20
test eax, eax
jne 0x4aa106
push 0x4e1a4c
push 0x4e1df8
call fcn.0049fc00
add esp, 4
push eax
mov ecx, 0x516ea8
call fcn.004768b0
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x4aa174
xor esi, esi
cmp dword [0x517a00], esi
je 0x4aa159
cmp dword [0x5179f0], esi
je 0x4aa147
mov edx, dword [0x5179e8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5179f0], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x517a00], esi
mov dword [0x5179e8], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4aa122
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x4aa122
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x4aa122
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4aa1eb
test ebx, ebx
je 0x4aa1d1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4aa241
push ebx
push ebp
push eax
call fcn.004cd6c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x4aa170
jmp 0x4aa122
cmp dword [0x517a00], 0
je 0x4aa225
cmp dword [0x5179f0], 0
je 0x4aa213
mov eax, dword [0x5179e8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5179f0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x517a00], eax
mov dword [0x5179e8], eax
push 0x4e1a4c
push str.Out_of_memory.
mov ecx, 0x516ea8
call fcn.004768b0
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x517a00], esi
je 0x4aa27f
cmp dword [0x5179f0], esi
je 0x4aa26d
mov ecx, dword [0x5179e8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5179f0], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x517a00], esi
mov dword [0x5179e8], esi
push 0x4e1a4c
push 0x509a8c
mov ecx, 0x516ea8
call fcn.004768b0
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x4aa680
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x4aa693
jmp dword [eax*4 + 0x4aa864]
mov eax, esi
call fcn.00401610
cmp dword [0x516044], 0
jne 0x4aa770
cmp dword [esi + 0xc], 0
jne 0x4aa770
mov edi, dword [esp + 0x14]
cmp dword [0x519f94], esi
jne 0x4aa6c8
test edi, edi
jne 0x4aa733
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4aa72f
mov dword [0x519f94], 0
test edi, edi
je 0x4aa727
cmp dword [0x516024], 0
je 0x4aa718
mov edx, dword [esi + 0x18]
push edx
push 0x509ac0
call fcn.0049fc00
add esp, 4
push eax
mov eax, dword [0x516024]
push eax
push 0x516ea8
xor ecx, ecx
call fcn.0042f8d0
mov ecx, dword [esi + 0x18]
call fcn.004a8690
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x4aa761
cmp byte [esi + 0x17], 0
jne 0x4aa73e
mov eax, dword [esi + 0xc]
jmp 0x4aa740
mov eax, esi
test byte [eax + 0x15], 4
je 0x4aa74d
mov eax, esi
call fcn.0042fa10
xor ecx, ecx
mov word [edi], cx
mov dword [0x519f94], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x519f94], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x4aa7f0
test eax, eax
jne 0x4aa7a8
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x4aa79a
mov eax, esi
call fcn.0042fa10
xor edx, edx
mov word [edi], dx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x4aa7f0
cmp eax, 0x186a0
jae 0x4aa7df
movzx eax, word [ecx]
test ax, ax
je 0x4aa7d1
mov edi, edi
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x4aa7c0
xor eax, eax
mov word [edi], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.004cd6c0
add esp, 0xc
xor ecx, ecx
mov word [edi + ebx*2], cx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push edx
call fcn.004aa680
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x5179e8
call fcn.00404920
cmp eax, 0xffffffff
jne 0x4aa823
xor eax, eax
test esi, esi
je 0x4aa85b
xor ecx, ecx
mov word [esi + eax*2], cx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aa841
xor edx, edx
mov word [eax], dx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push eax
push ecx
call edx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4aafe0
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
movzx eax, word [esi]
cmp eax, 0x41
je 0x4aaff1
cmp eax, 0x61
jne 0x4ab04b
cmp word [esi + 2], 0
jne 0x4ab04b
mov eax, dword [esp + 0x10]
cmp word [eax], 0
jne 0x4ab04b
cmp word [ebx], 0
jne 0x4ab04b
cmp word [edi], 0
jne 0x4ab04b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x4ab04b
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xea], 0
jne 0x4ab032
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ab04b
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4ab046
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
test al, al
jne 0x4ab07f
cmp word [esi], 0
jne 0x4ab07f
mov edx, dword [esp + 0x10]
cmp word [edx], 0
jne 0x4ab07f
cmp word [ebx], 0
jne 0x4ab07f
cmp word [edi], 0
jne 0x4ab07f
mov eax, dword [esp + 0xc]
call fcn.004ab800
test eax, eax
jne 0x4ab0a4
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
mov edi, dword [esp + 0x24]
push eax
mov edx, esi
call fcn.004ab600
add esp, 0x18
jmp 0x4ab078
pop edi
pop ebp
jmp fcn.004ab110
Function at 0x4ab110
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
test edi, edi
je 0x4ab29b
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, dword [0x516e90]
je 0x4ab149
mov esi, edi
call fcn.004ac1d0
test al, al
jne 0x4ab29b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x4ab16c
push eax
push 0x4e9994
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4ab180
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, esi
jne 0x4ab18e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x515eff], 0
jne 0x4ab1a8
push esi
call fcn.004ab0b0
add esp, 4
test eax, eax
jne 0x4ab29d
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x4ab203
push 0
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4ab207
cmp dword [0x516e90], ebx
je 0x4ab1e8
call fcn.004ac1d0
test al, al
jne 0x4ab1e8
mov eax, dword [0x516e90]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x4ab207
cmp ebx, ebp
je 0x4ab207
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x4ab207
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
nop
push esi
call fcn.004ab0b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4ab25a
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x4ab210
push 0xffc3d44d
push ebp
push ebp
push ebp
push 0x12
push 2
call fcn.00411200
push 0xffc3d44d
push ebp
push ebp
push ebp
push 0x12
push 2
call fcn.00411200
push esi
call fcn.004ab0b0
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x4ab271
mov ecx, dword [0x516e90]
push 0
push ebx
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x4ab286
mov edx, dword [esp + 0x18]
push 0
push edx
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x4ab29b
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4ab3a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4ab3b0
mov eax, esi
call fcn.00454ed0
jmp 0x4ab3bd
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x4ab418
je 0x4ab418
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401930
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x4ab415
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4ab415
push 1
push 0x8000012f
call fcn.00401930
add esp, 8
push esi
call ebx
test eax, eax
jne 0x4ab3f4
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x4ab600
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004d0b30
mov eax, dword [esp + 0x11c70]
push ebx
push ebp
mov ebp, dword [esp + 0x11c74]
push esi
mov esi, ecx
movzx ecx, word [edx]
xor ebx, ebx
cmp ecx, 0x41
je 0x4ab62c
cmp ecx, 0x61
jne 0x4ab681
cmp word [edx + 2], bx
jne 0x4ab681
cmp word [edi], bx
jne 0x4ab681
cmp word [eax], bx
jne 0x4ab681
cmp word [esi], bx
jne 0x4ab681
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4ab662
cmp byte [ebp + 0xea], bl
jne 0x4ab662
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4ab662
xor esi, esi
cmp byte [esp + 0x11c84], bl
je 0x4ab675
cmp esi, ebx
je 0x4ab675
mov dword [ebp + 0xc4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
cmp cx, bx
jne 0x4ab6a6
cmp word [edi], bx
jne 0x4ab6a6
cmp word [eax], bx
jne 0x4ab6a6
cmp word [esi], bx
jne 0x4ab6a6
mov eax, ebp
call fcn.004ab800
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x102c], 0x4e1a4c
mov byte [esp + 0x1849], bl
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1854], ebx
mov dword [esp + 0x1858], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov dword [esp + 0x186c], ebx
mov dword [esp + 0x1870], ebx
call fcn.004ac360
test eax, eax
je 0x4ab7b7
test byte [esp + 0x10], 2
mov al, byte [esp + 0x11c80]
mov ecx, dword [esp + 0x11c88]
mov edx, dword [esp + 0x11c8c]
mov byte [esp + 0x1839], al
mov dword [esp + 0x1848], ecx
mov dword [esp + 0x184c], edx
je 0x4ab7c3
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4ab78f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ab7b7
cmp byte [ebp + 0xea], bl
jne 0x4ab788
mov eax, dword [esp + 0x102c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4ab788
mov ecx, dword [esp + 0x102c]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4ab7b7
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x4ab7a8
lea esi, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.004ac760
push ebx
lea edx, [esp + 0x14]
push edx
call fcn.004ac820
test eax, eax
jne 0x4ab7d3
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
lea eax, [esp + 0x10]
push eax
push 0x4ab870
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
cmp byte [esp + 0x11c84], bl
je 0x4ab7ed
cmp eax, ebx
je 0x4ab7ed
mov dword [ebp + 0xc4], eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
Function at 0x4ac760
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x4ac81e
mov eax, dword [esi]
test eax, eax
je 0x4ac81e
push edi
test al, 1
jne 0x4ac78a
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4ac7a6
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4ac7a6
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4ac7c1
mov eax, dword [esi + 0x1850]
lea edx, [esi + 0x1854]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x4ac7ff
mov edx, dword [esi + 0x1850]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x4ac7ff
movzx eax, byte [esi + 0x1828]
mov edx, dword [esp + 4]
push eax
lea ecx, [esi + 0x11a58]
call fcn.00450e00
add esp, 4
test eax, eax
jne 0x4ac7ff
xor ecx, ecx
mov word [esi + 0x11a58], cx
test byte [esi], 8
pop edi
je 0x4ac81e
mov eax, dword [esi + 0x1850]
push 0x101
lea edx, [esi + 0x11856]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
pop ecx
ret

Function at 0x4ad060
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.004d0b30
mov eax, dword [esp + 0x11c68]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4ad10e
mov dword [esp + 0x1848], eax
lea eax, [esp + 8]
push eax
push 0x4ad7b0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4e1a4c
mov byte [esp + 0x1839], bl
mov dword [esp + 0x183c], ebx
mov dword [esp + 0x1840], ebx
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov word [esp + 0x1854], cx
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1838], ebx
je 0x4ad10e
mov ecx, dword [0x51161c]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x4ad10e
push 1
push eax
call fcn.00401930
add esp, 8
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
Function at 0x4ad120
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x4ad13c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x51161c]
push eax
push esi
mov ecx, edi
call fcn.004ad5e0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x4ad173
test eax, eax
jne 0x4ad177
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.004ad230
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x4ad1f6
test esi, esi
je 0x4ad1f6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401930
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x4ad1d5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4ad1d5
push 1
push 0x8000012f
call fcn.00401930
add esp, 8
push esi
call edi
test eax, eax
jne 0x4ad1b0
mov edx, dword [0x51161c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4ad1ee
push 1
push eax
call fcn.00401930
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x4ad210
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.004ad230
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004ad3b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4ad3b0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004d0b30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4ad530
xor cl, cl
mov eax, edi
call fcn.004ad550
test eax, eax
jne 0x4ad3e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x51161c]
push eax
push ebp
mov ecx, edi
call fcn.004ad5e0
test eax, eax
je 0x4ad408
xor eax, eax
mov dword [0x516e84], eax
jmp 0x4ad40d
mov eax, dword [0x516e84]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4e1a4c
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1868], ebx
cmp byte [esp + 0x11c7c], bl
je 0x4ad453
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x4ad45b
mov byte [esp + 0x1841], 1
mov ecx, dword [0x516e80]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x18]
push eax
push 0x4ad6b0
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x4ad508
lea ecx, [esp + 0x10]
push ecx
push 0x4ac120
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4ad4c5
mov edx, dword [esp + 0x1848]
call fcn.004acd30
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.004ab110
mov edx, dword [esp + 0x1848]
call fcn.004acd30
mov edx, dword [0x51161c]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4ad530
push 1
push eax
call fcn.00401930
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret 4
mov eax, dword [0x516e84]
cmp eax, ebx
je 0x4ad530
cmp eax, 1
setg al
mov dword [0x516e84], ebx
cmp al, bl
je 0x4ad530
mov edx, ebp
call fcn.004acd30
push ebx
mov ecx, edi
call fcn.004ad3b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x4b0310
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4b0317
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4b03ed
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x501a20]
add ecx, 8
sub edx, 8
dec esi
jne 0x4b0330
pop edi
test edx, edx
je 0x4b040a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x501a20]
inc ecx
dec edx
jne 0x4b03f1
not eax
pop esi
ret

Function at 0x4b0410
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x501a20]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x501a20]
mov dword [edx + 8], ecx
ret
Function at 0x4b05b0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, eax
push edi
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4b05da
mov eax, 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov edx, eax
xor edi, edi
and edx, 1
je 0x4b05f3
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
test al, 2
je 0x4b05fa
or edi, 2
test al, 4
je 0x4b0601
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x4b060b
or edi, 0x10
test al, 0x20
je 0x4b0612
or edi, 0x20
test ecx, ecx
je 0x4b061e
or edi, 0x40000000
jmp 0x4b0624
or edi, 0x80000000
or edi, 0x1000000
mov dword [esp + 0x14], edi
test edx, edx
jne 0x4b063c
or edi, 0x800000
mov dword [esp + 0x14], edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp eax, 0x28
jbe 0x4b06f0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x4b06ec
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x1c], ecx
jbe 0x4b06ec
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x4b06e4
cmp eax, 0x454e
je 0x4b06e4
cmp eax, 0x454c
je 0x4b06e4
cmp eax, 0x4550
jne 0x4b06ec
or dword [esp + 0x14], 0x400000
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4b06fa
mov dword [eax], edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4b0708
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x4b0786
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.004d3d10
mov dword [ebp + 4], edx
push 0
mov ecx, edi
sub ecx, 0xd53e8000
mov edx, esi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [ebp], eax
call fcn.004d3d10
mov ecx, dword [esp + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [ebp + 0xc], edx
call fcn.004d3d10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x4b07b3
push esi
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004b0540
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x24]
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [ebx], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret