joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ebdf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000b20d
xor ebx, ebx
cmp dword [0x10016c70], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1000ecb4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000ec1f
xor eax, eax
jmp 0x1000ed78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000ec18
push eax
call fcn.1000b1aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10016c70], eax
call esi
push eax
call fcn.1000b1aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10016c74], eax
call esi
push eax
call fcn.1000b1aa
mov dword [0x10016c78], eax
lea eax, [ebp - 8]
push eax
call fcn.1000c79f
test eax, eax
pop ecx
pop ecx
je 0x1000ec82
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10009d6f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1000ecb4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000b1aa
cmp eax, ebx
pop ecx
mov dword [0x10016c80], eax
je 0x1000ecb4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000b1aa
pop ecx
mov dword [0x10016c7c], eax
mov eax, dword [0x10016c7c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1000ed2d
cmp dword [0x10016c80], esi
je 0x1000ed2d
push eax
call fcn.1000b216
pop ecx
call eax
cmp eax, ebx
je 0x1000ecfa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10016c80]
call fcn.1000b216
pop ecx
call eax
test eax, eax
je 0x1000ecfa
test byte [ebp - 0x18], 1
jne 0x1000ed2d
lea eax, [ebp - 0xc]
push eax
call fcn.1000c7d6
test eax, eax
pop ecx
je 0x1000ed15
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10009d6f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1000ed24
or dword [ebp + 0x10], 0x200000
jmp 0x1000ed5e
or dword [ebp + 0x10], 0x40000
jmp 0x1000ed5e
mov eax, dword [0x10016c74]
cmp eax, esi
je 0x1000ed5e
push eax
call fcn.1000b216
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000ed5e
mov eax, dword [0x10016c78]
cmp eax, esi
je 0x1000ed5e
push dword [ebp - 4]
push eax
call fcn.1000b216
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10016c70]
call fcn.1000b216
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4fe024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ee0
xor eax, eax
push ebp
push 0x403ed9
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 0x403f38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ee0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4fe024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4fe024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x501054], 0
je 0x405055
cmp word [0x501330], 0xd7b2
jne 0x40501d
cmp dword [0x501338], 0
jbe 0x40501d
mov eax, 0x50132c
call dword [0x501348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fe030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4fe034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x4fe034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x501055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x406f40
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f82
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fa2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406630
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40c2a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c34d
test eax, edx
je 0x40c350
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c2cd
push edx
mov edx, eax
mov eax, esp
call fcn.0040664c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c2e3
push eax
lea eax, [esp + 8]
call fcn.0040664c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c2f2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c319
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c333
add ecx, 4
js 0x40c30a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c330
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c317
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c319
xor eax, eax
ret
test eax, eax
je 0x40c360
test edx, edx
jne 0x40c2b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41351f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040565c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040975c
mov edi, eax
cmp edi, 0x104
jbe 0x413542
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x413544
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040975c
push edi
push esi
call fcn.00409b5c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41357d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x413567
mov eax, esp
cmp esi, eax
je 0x41358a
mov eax, esi
call fcn.00403034
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4135c4
cmp bl, 0
je 0x4135c0
cmp bl, 0x41
jl 0x4135bb
cmp bl, 0x5a
jg 0x4135bb
or bl, 0x20
xor al, bl
inc esi
jmp 0x41359f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413504

Function at 0x42f5e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42f5e6
ret
Function at 0x470500
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call fcn.00409de4
mov edi, eax
test bl, bl
je 0x470521
test edi, 0x40000
je 0x47053b
test bl, bl
jne 0x4705bc
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4705bc
push esi
call fcn.00409e6c
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call fcn.00409e94
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x47056e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x470583
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x470592
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4705a3
cmp byte [esp + 2], 0
je 0x4705bc
cmp byte [esp + 2], 0
je 0x4705b4
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4705bc
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x479ff4
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x506178]
cmp byte [eax + 0xa9], 0
jne 0x47a066
cmp dword [0x506190], 0
jne 0x47a026
call fcn.00409568
push eax
push 0
mov eax, dword [0x4ffd94]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x506190], eax
cmp dword [0x50618c], 0
jne 0x47a041
push 0
push 0
push 0
push 0
call fcn.00409420
mov dword [0x50618c], eax
cmp dword [0x506194], 0
jne 0x47a066
push esp
push 0
push 0
mov eax, dword [0x4ffd90]
push eax
push 0x3e8
push 0
call fcn.00409468
mov dword [0x506194], eax
pop edx
ret

Function at 0x47abd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x506178]
cmp dword [eax + 0x170], 0
je 0x47ad3d
test bl, bl
jne 0x47ac8b
cmp dword [esi + 0x98], 0
jne 0x47ac80
mov eax, esi
call fcn.0047d7b8
push eax
push 0x47aae4
call fcn.00409c64
cmp dword [esi + 0x40], 0
je 0x47ac51
mov eax, dword [0x506178]
cmp byte [eax + 0xcf], 0
je 0x47ac51
mov eax, dword [esi + 0xd4]
call fcn.00407e54
mov edi, eax
cmp edi, 0
jl 0x47ac51
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47ac3a
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x47ac80
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0042333c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x47ac60
inc dword [esi + 0x98]
jmp 0x47ad3d
cmp dword [esi + 0x98], 0
jle 0x47ad3d
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x47ad3d
cmp dword [esi + 0x40], 0
je 0x47ace8
mov eax, dword [0x506178]
cmp byte [eax + 0xcf], 0
je 0x47ace8
mov eax, dword [esi + 0xd4]
call fcn.00407e54
mov edi, eax
cmp edi, 0
jl 0x47ace8
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47acd1
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x47ad17
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0042333c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x47acf7
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x470350]
call fcn.00408014
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x47cf78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x47cfe6
mov eax, esi
call fcn.00463810
test al, al
je 0x47cfe6
mov eax, dword [ebx + 0x80]
call fcn.00463464
push eax
call fcn.00409e94
test eax, eax
je 0x47cfe6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x47cfda
push 0
mov eax, dword [ebx + 0x80]
call fcn.00463464
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0045aa64
jmp 0x47cfe6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0047cdc4
pop esi
pop ebx
ret
Function at 0x4814fc
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x488a74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x488c24
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.004876c4
pop ecx
test al, al
jne 0x488abb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00488d58
xor ebx, ebx
jmp 0x488c24
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x488ad9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00488d58
xor ebx, ebx
jmp 0x488c24
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.0049e6fc
test eax, eax
jne 0x488b10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00488d58
xor ebx, ebx
jmp 0x488c24
test byte [edi + 4], 1
je 0x488c1d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.004876c4
pop ecx
test al, al
jne 0x488b44
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00488d58
xor ebx, ebx
jmp 0x488c24
mov edx, dword [0x484d4c]
mov eax, 0xc
call fcn.0040765c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x488bef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00405d30
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00405ac4
mov edx, dword [ebp - 4]
call fcn.004876c4
pop ecx
test al, al
jne 0x488bb2
mov edx, dword [0x484d4c]
mov eax, dword [ebp - 8]
call fcn.00407670
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00488d58
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488c24
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00482420
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.00482838
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488c1d
dec esi
jne 0x488a92
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a96bc
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x506438
mov eax, esi
mov edx, 8
test al, 1
je 0x4a96d8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a96da
shr eax, 1
dec edx
jne 0x4a96cb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a96c4
pop esi
ret

Function at 0x4a96f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x506434], 0
jne 0x4a9713
call fcn.004a96bc
push 1
push 0x506434
call fcn.00409510
mov eax, edi
test esi, esi
je 0x4a973e
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x506438]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4a9719
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4aa2a8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret
Function at 0x4b6710
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
lea edi, [ebp - 0x11d0]
xor eax, eax
push ebp
push 0x4b693d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call fcn.004b33a0
cmp dword [ebp - 0x1084], 0x418
jle 0x4b67d2
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xc2
call fcn.004a9df8
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x40aca8]
call fcn.00411a64
call fcn.00404a74
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b606c
mov edx, dword [ebp - 0x11ec]
mov eax, dword [edi]
add eax, 0x14
call fcn.00406448
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.004055f4
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [edi]
mov eax, dword [eax]
call fcn.004b606c
mov edx, dword [ebp - 0x11f4]
mov eax, dword [edi]
add eax, 0x18
call fcn.00406448
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x4b68fe
push ebp
mov eax, esi
mov edx, 0xa
call fcn.004b6698
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.004b3b54
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x4b689f
push ebp
call fcn.004b64f0
pop ecx
xor eax, eax
push ebp
push 0x4b68d0
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.004b6698
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b68ea
mov edx, dword [ebp - 0x11e4]
mov eax, dword [edi]
call fcn.004b3b90
dec ebx
jne 0x4b6868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6944
lea eax, [ebp - 0x11f8]
call fcn.0040527c
lea eax, [ebp - 0x11f4]
call fcn.00406438
lea eax, [ebp - 0x11f0]
call fcn.0040527c
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.00406440
ret
Function at 0x4ddc14
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x507085], 1
call fcn.004ae334
test al, al
jne 0x4ddc66
push 5
mov eax, dword [0x500dc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x500dc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call fcn.00409ff4
push 0
push 1
push 1
mov eax, dword [0x500dd4]
mov eax, dword [eax + 0x120]
mov cl, 2
xor edx, edx
call fcn.004ddaf8
ret

Function at 0x4e0d20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x4e0d45
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e2fbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x500974]
cmp dword [eax], 0
je 0x4e3067
mov eax, dword [0x500974]
mov eax, dword [eax]
call fcn.00463810
test al, al
je 0x4e3067
mov eax, dword [0x500974]
mov eax, dword [eax]
cmp byte [eax + 0x1e2], 0
je 0x4e3011
cmp byte [ebx + 0x389], 0
jne 0x4e3011
mov eax, dword [0x500dc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call fcn.00409e6c
test eax, eax
je 0x4e3015
xor eax, eax
jmp 0x4e3017
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x500974]
mov eax, dword [eax]
call fcn.00463464
push eax
call fcn.00409de4
test eax, 0x10000000
setne al
cmp bl, al
je 0x4e3067
test bl, bl
je 0x4e3053
push 5
mov eax, dword [0x500974]
mov eax, dword [eax]
call fcn.00463464
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e3067
push 0
mov eax, dword [0x500974]
mov eax, dword [eax]
call fcn.00463464
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4f9a8c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f9d46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x500dc4]
mov eax, dword [eax]
mov edx, 0x4f9d60
call fcn.0047b97c
push 5
mov eax, dword [0x500dc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x4f9d0d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004ddea0
lea eax, [ebp - 0x10]
call fcn.0047f194
mov eax, dword [ebp - 0x10]
call fcn.0040de38
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0047ecf0
mov edx, dword [ebp - 0x14]
mov eax, 0x507140
call fcn.00406448
call fcn.004f7e2c
lea ecx, [ebp - 0x18]
mov edx, 0x4f9d80
mov eax, dword [0x507140]
call fcn.0047ddd4
mov edx, dword [ebp - 0x18]
mov eax, 0x507144
call fcn.00406448
lea ecx, [ebp - 0x1c]
mov edx, 0x4f9d98
mov eax, dword [0x507140]
call fcn.0047ddd4
mov edx, dword [ebp - 0x1c]
mov eax, 0x507148
call fcn.00406448
push 2
push 0
push 1
mov ecx, dword [0x507140]
mov dl, 1
mov eax, dword [0x4a89e4]
call fcn.004a8d24
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f9be4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.004a8ce4
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.004a8cbc
cmp dword [ebp - 0xc], 0x67734d49
je 0x4f9bbf
mov cl, 1
xor edx, edx
mov eax, dword [0x507148]
call fcn.004a9fa8
jmp 0x4f9bce
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x507140]
call fcn.004a9fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9beb
mov eax, dword [ebp - 4]
call fcn.00404098
ret