joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afe20
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
test edi, edi
je 0x4affab
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 [0x51c084]
je 0x4afe59
mov esi, edi
call fcn.004b0ee0
test al, al
jne 0x4affab
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x4afe7c
push eax
push 0x4ee690
call fcn.004a4b10
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 0x4afe90
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, esi
jne 0x4afe9e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x51aff2], 0
jne 0x4afeb8
push esi
call fcn.004afdc0
add esp, 4
test eax, eax
jne 0x4affad
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x4aff13
push 0
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4aff17
cmp dword [0x51c084], ebx
je 0x4afef8
call fcn.004b0ee0
test al, al
jne 0x4afef8
mov eax, dword [0x51c084]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x4aff17
cmp ebx, ebp
je 0x4aff17
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x4aff17
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
nop
push esi
call fcn.004afdc0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4aff6a
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x4aff20
push 0xffc3d44d
push ebp
push ebp
push ebp
push 0x12
push 2
call fcn.004102e0
push 0xffc3d44d
push ebp
push ebp
push ebp
push 0x12
push 2
call fcn.004102e0
push esi
call fcn.004afdc0
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x4aff81
mov ecx, dword [0x51c084]
push 0
push ebx
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x4aff96
mov edx, dword [esp + 0x18]
push 0
push edx
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x4affab
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 0x4b00b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4b00c0
mov eax, esi
call fcn.004536e0
jmp 0x4b00cd
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x4b0128
je 0x4b0128
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 0x4b0125
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4b0125
push 1
push 0x8000012f
call fcn.00401930
add esp, 8
push esi
call ebx
test eax, eax
jne 0x4b0104
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x4b0310
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004d5830
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 0x4b033c
cmp ecx, 0x61
jne 0x4b0391
cmp word [edx + 2], bx
jne 0x4b0391
cmp word [edi], bx
jne 0x4b0391
cmp word [eax], bx
jne 0x4b0391
cmp word [esi], bx
jne 0x4b0391
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4b0372
cmp byte [ebp + 0xea], bl
jne 0x4b0372
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4b0372
xor esi, esi
cmp byte [esp + 0x11c84], bl
je 0x4b0385
cmp esi, ebx
je 0x4b0385
mov dword [ebp + 0xc4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
cmp cx, bx
jne 0x4b03b6
cmp word [edi], bx
jne 0x4b03b6
cmp word [eax], bx
jne 0x4b03b6
cmp word [esi], bx
jne 0x4b03b6
mov eax, ebp
call fcn.004b0510
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], 0x4f5ac4
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.004b1070
test eax, eax
je 0x4b04c7
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 0x4b04d3
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4b049f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b04c7
cmp byte [ebp + 0xea], bl
jne 0x4b0498
mov eax, dword [esp + 0x102c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4b0498
mov ecx, dword [esp + 0x102c]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4b04c7
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x4b04b8
lea esi, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.004b1470
push ebx
lea edx, [esp + 0x14]
push edx
call fcn.004b1530
test eax, eax
jne 0x4b04e3
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
lea eax, [esp + 0x10]
push eax
push 0x4b0580
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
cmp byte [esp + 0x11c84], bl
je 0x4b04fd
cmp eax, ebx
je 0x4b04fd
mov dword [ebp + 0xc4], eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
Function at 0x4b1470
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x4b152e
mov eax, dword [esi]
test eax, eax
je 0x4b152e
push edi
test al, 1
jne 0x4b149a
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4b14b6
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b14b6
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4b14d1
mov eax, dword [esi + 0x1850]
lea edx, [esi + 0x1854]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x4b150f
mov edx, dword [esi + 0x1850]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x4b150f
movzx eax, byte [esi + 0x1828]
mov edx, dword [esp + 4]
push eax
lea ecx, [esi + 0x11a58]
call fcn.0044f300
add esp, 4
test eax, eax
jne 0x4b150f
xor ecx, ecx
mov word [esi + 0x11a58], cx
test byte [esi], 8
pop edi
je 0x4b152e
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 0x4b1d70
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c64
call fcn.004d5830
mov eax, dword [esp + 0x11c68]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4b1e1e
mov dword [esp + 0x1848], eax
lea eax, [esp + 8]
push eax
push 0x4b24c0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4f5ac4
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 0x4b1e1e
mov ecx, dword [0x5165ec]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x4b1e1e
push 1
push eax
call fcn.00401930
add esp, 8
mov eax, 1
pop ebx
add esp, 0x11c64
ret 4
Function at 0x4b1e30
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 0x4b1e4c
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 [0x5165ec]
push eax
push esi
mov ecx, edi
call fcn.004b22f0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x4b1e83
test eax, eax
jne 0x4b1e87
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.004b1f40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x4b1f06
test esi, esi
je 0x4b1f06
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 0x4b1ee5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4b1ee5
push 1
push 0x8000012f
call fcn.00401930
add esp, 8
push esi
call edi
test eax, eax
jne 0x4b1ec0
mov edx, dword [0x5165ec]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4b1efe
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 0x4b1f20
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.004b1f40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004b20c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4b20c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.004d5830
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4b2240
xor cl, cl
mov eax, edi
call fcn.004b2260
test eax, eax
jne 0x4b20f5
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 [0x5165ec]
push eax
push ebp
mov ecx, edi
call fcn.004b22f0
test eax, eax
je 0x4b2118
xor eax, eax
mov dword [0x51c078], eax
jmp 0x4b211d
mov eax, dword [0x51c078]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4f5ac4
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 0x4b2163
mov byte [esp + 0x1841], bl
cmp eax, ebx
je 0x4b216b
mov byte [esp + 0x1841], 1
mov ecx, dword [0x51c074]
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 0x4b23c0
mov dword [esp + 0x1858], ecx
mov dword [esp + 0x1860], edx
call esi
mov eax, dword [esp + 0x1848]
cmp eax, ebx
je 0x4b2218
lea ecx, [esp + 0x10]
push ecx
push 0x4b0e30
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4b21d5
mov edx, dword [esp + 0x1848]
call fcn.004b1a40
mov dword [esp + 0x1848], esi
mov eax, dword [esp + 0x1848]
call fcn.004afe20
mov edx, dword [esp + 0x1848]
call fcn.004b1a40
mov edx, dword [0x5165ec]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4b2240
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 [0x51c078]
cmp eax, ebx
je 0x4b2240
cmp eax, 1
setg al
mov dword [0x51c078], ebx
cmp al, bl
je 0x4b2240
mov edx, ebp
call fcn.004b1a40
push ebx
mov ecx, edi
call fcn.004b20c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c68
ret 4
Function at 0x4b5020
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4b5027
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4b50fd
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 + 0x5064f0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5064f0]
add ecx, 8
sub edx, 8
dec esi
jne 0x4b5040
pop edi
test edx, edx
je 0x4b511a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5064f0]
inc ecx
dec edx
jne 0x4b5101
not eax
pop esi
ret

Function at 0x4b5120
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 + 0x5064f0]
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 + 0x5064f0]
mov dword [edx + 8], ecx
ret
Function at 0x4b52c0
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 0x4b52ea
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 0x4b5303
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
test al, 2
je 0x4b530a
or edi, 2
test al, 4
je 0x4b5311
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x4b531b
or edi, 0x10
test al, 0x20
je 0x4b5322
or edi, 0x20
test ecx, ecx
je 0x4b532e
or edi, 0x40000000
jmp 0x4b5334
or edi, 0x80000000
or edi, 0x1000000
mov dword [esp + 0x14], edi
test edx, edx
jne 0x4b534c
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 0x4b5400
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 0x4b53fc
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x1c], ecx
jbe 0x4b53fc
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 0x4b53f4
cmp eax, 0x454e
je 0x4b53f4
cmp eax, 0x454c
je 0x4b53f4
cmp eax, 0x4550
jne 0x4b53fc
or dword [esp + 0x14], 0x400000
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4b540a
mov dword [eax], edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4b5418
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x4b5496
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.004d8a10
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.004d8a10
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.004d8a10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x4b54c3
push esi
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004b5250
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
Function at 0x4b5680
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x4b575b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x4b56b4
cmp dword [esi + 0x40], edi
jae 0x4b56b4
push eax
call fcn.004cad7b
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x4b56cb
lea eax, [edi + edi]
push eax
call fcn.004caa52
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004d23c0
add esp, 0xc
cmp edi, ebp
jbe 0x4b5757
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5064f0]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5064f0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x4b56e0
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4b5794
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x4b577c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004d23c0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4b57b5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x4b5c10
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x4b5c5e
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x4b5c9b
sub edi, eax
cmp edi, edx
jbe 0x4b5c34
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.004d23c0
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.004b5020
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4b5c94
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5c9b
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.004b5020
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4d0c06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x515dd0]
jne 0x4d0c10
repz ret
jmp fcn.004d525d

Function at 0x4d3670
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x515dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004cdb12
and dword [ebp - 0x14], 0
cmp dword [0x51965c], 0
mov dword [ebp - 0x18], eax
jne 0x4d3723
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4d37cb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e60b0
push ebx
call edi
test eax, eax
je 0x4d37cb
mov esi, dword [fcn.004c9880]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x51965c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x519660], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x519664], eax
call edi
push eax
call esi
mov dword [0x51966c], eax
test eax, eax
je 0x4d3723
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x519668], eax
mov eax, dword [0x519668]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.004c9884]
cmp eax, ecx
je 0x4d377c
cmp dword [0x51966c], ecx
je 0x4d377c
push eax
call esi
push dword [0x51966c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4d377c
test ebx, ebx
je 0x4d377c
call edi
test eax, eax
je 0x4d3773
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4d3773
test byte [ebp - 8], 1
jne 0x4d377c
or dword [ebp + 0x10], 0x200000
jmp 0x4d37af
mov eax, dword [0x519660]
cmp eax, dword [ebp - 0x18]
je 0x4d37af
push eax
call esi
test eax, eax
je 0x4d37af
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4d37af
mov eax, dword [0x519664]
cmp eax, dword [ebp - 0x18]
je 0x4d37af
push eax
call esi
test eax, eax
je 0x4d37af
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51965c]
call esi
test eax, eax
je 0x4d37cb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4d37cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0c06
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2cf545b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x71ab405b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219