joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc8d8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cca83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4cca64
mov dl, 1
mov eax, dword [0x43a148]
call fcn.00448200
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00406dd0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4cca53
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00498abc
test al, al
je 0x4cca46
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4cca94
lea eax, [ebp - 0x394]
call fcn.0041eed4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4cca46
xor eax, eax
push ebp
push 0x4cca3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4ccb04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4cca28
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407dcc
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4cca28
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cca46
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4cc949
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044813c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cca8a
lea eax, [ebp - 0x3a0]
call fcn.00406dd0
ret

Function at 0x4cd5e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5e92bc]
cmp byte [eax + 0xad], 0
jne 0x4cd652
cmp dword [0x5e92d4], 0
jne 0x4cd612
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5e06bc]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5e92d4], eax
cmp dword [0x5e92d0], 0
jne 0x4cd62d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5e92d0], eax
cmp dword [0x5e92d8], 0
jne 0x4cd652
push esp
push 0
push 0
mov eax, dword [0x5e06b8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5e92d8], eax
pop edx
ret
Function at 0x4cd968
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4cd97f
add esp, 0xfffffff0
call fcn.004057e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451cec
mov eax, dword [0x5e3260]
cmp byte [eax], 0
jne 0x4cd9ac
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5e37e4]
cmp word [eax + 2], 0
jne 0x4cd9c6
mov eax, dword [0x5e37e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004cfa30
mov eax, dword [0x5e39d8]
cmp word [eax + 2], 0
jne 0x4cd9e0
mov eax, dword [0x5e39d8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004cfc34
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x469950]
call fcn.0046ebe4
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4d01ac
mov dl, 1
mov eax, dword [0x436fd0]
call fcn.00405284
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x436fd0]
call fcn.00405284
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x46d248]
call fcn.00475a2c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4cdbc0
mov eax, dword [0x5e3588]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00475ec0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4d0494
mov dl, 1
mov eax, dword [0x436fd0]
call fcn.00405284
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5e3588]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041e89c
test eax, eax
je 0x4cdaf1
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041e650
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041e880
test eax, eax
je 0x4cdb09
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407dcc
push ebx
push 0x4cf41c
call fcn.004c3778
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x5e3260]
cmp byte [eax], 0
jne 0x4cdb5a
mov eax, ebx
call fcn.004cdd34
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004d06c0
mov eax, ebx
call fcn.004d12f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cdbb7
call fcn.0040583c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ce000
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4ce0a2
cmp dword [ebx + 0x94], 0
jne 0x4ce09c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4cdf4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4ce09c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4ce062
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ce09c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00443cb8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ce071
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4ce2c0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5e92bc]
cmp dword [eax + 0x170], 0
je 0x4ce425
test bl, bl
jne 0x4ce373
cmp dword [esi + 0x9c], 0
jne 0x4ce368
mov eax, esi
call fcn.004d1140
push eax
push 0x4ce1cc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4ce339
mov eax, dword [0x5e92bc]
cmp byte [eax + 0xd3], 0
je 0x4ce339
mov eax, dword [esi + 0xd8]
call fcn.004090e8
mov edi, eax
cmp edi, 0
jl 0x4ce339
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ce322
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ce368
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00443cb8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ce348
inc dword [esi + 0x9c]
jmp 0x4ce425
cmp dword [esi + 0x9c], 0
jle 0x4ce425
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4ce425
cmp dword [esi + 0x44], 0
je 0x4ce3d0
mov eax, dword [0x5e92bc]
cmp byte [eax + 0xd3], 0
je 0x4ce3d0
mov eax, dword [esi + 0xd8]
call fcn.004090e8
mov edi, eax
cmp edi, 0
jl 0x4ce3d0
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4ce3b9
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ce3ff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00443cb8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ce3df
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4c1650]
call fcn.004092a8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4cf068
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4cf0d3
cmp byte [ebx + 0xd3], 0
jne 0x4cf0d3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406f58
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4cf0c0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4cf0e0
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004071b0
jmp 0x4cf0e0
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004071b0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4d08a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4d0916
mov eax, esi
call fcn.00492a48
test al, al
je 0x4d0916
mov eax, dword [ebx + 0x84]
call fcn.0049269c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d0916
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4d090a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0049269c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00489618
jmp 0x4d0916
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004d06e0
pop esi
pop ebx
ret
Function at 0x4ecb5c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ecc84
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004eca48
mov eax, dword [esi]
call fcn.004090e0
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417e10]
call fcn.004092a8
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004048e0
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004048e0
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004090e0
mov dword [ebp - 0xc], eax
mov eax, dword [0x5e3bc4]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004dd01c
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00404c98
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004090e0
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004dcff8
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004dce00
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004dd014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecc8b
lea eax, [ebp - 4]
mov edx, dword [0x417e10]
call fcn.004093cc
ret
Function at 0x58c10c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58c232
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x58c1f8
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404c98
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 1
mov eax, esi
call fcn.00407d40
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlW
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffd
sub eax, 2
jb 0x58c1b3
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0x11
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x5e33f0]
call fcn.0040aef0
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x58a788]
call fcn.0058bc7c
call fcn.00406504
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x6c], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x68], eax
lea eax, [ebx + 0x60]
push eax
mov edx, dword [ebp - 0x2c]
sub edx, edi
sar edx, 1
jns 0x58c1d0
adc edx, 0
inc edx
mov ecx, dword [ebp - 0x28]
mov eax, esi
call fcn.004080ec
lea eax, [ebx + 0x64]
push eax
mov edx, dword [ebp - 0x10]
sub edx, edi
sar edx, 1
jns 0x58c1eb
adc edx, 0
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.004080ec
jmp 0x58c212
xor eax, eax
mov dword [ebx + 0x68], eax
lea eax, [ebx + 0x60]
call fcn.00406dd0
lea eax, [ebx + 0x64]
call fcn.00406dd0
xor eax, eax
mov dword [ebx + 0x6c], eax
lea eax, [ebx + 0x40]
mov edx, esi
call fcn.004071b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58c239
lea eax, [ebp - 0x48]
call fcn.00406dd0
ret
Function at 0x58c6dc
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
test dl, dl
je 0x58c80b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d], 0
jne 0x58c842
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x58c70a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x58c715
mov ebx, 3
jmp 0x58c717
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x58c727
call fcn.00422fb0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.00407d40
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
call fcn.00407d40
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00407d40
push eax
call sub.wininet.dll_InternetOpenW
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], esi
test esi, esi
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0058beac
xor eax, eax
push ebp
push 0x58c7e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00407d40
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00407d40
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
call fcn.00407d40
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
push eax
call sub.wininet.dll_InternetConnectW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], ebx
test ebx, ebx
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0058beac
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58c842
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x58c81b
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x58c833
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x78], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x401f0d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
push ebx
push esi
push edi
mov ebx, 0x3bc617b3
mov eax, ebx
add eax, ebx
mov ebx, eax
and dword [ebp - 0x1a0], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov byte [ebp - 0x197], 0
jmp 0x40208f
mov eax, ebx
mul ebx
mov dword [ebp - 0x1e8], eax
mov ebx, eax
movzx eax, byte [ebp - 0x197]
push eax
push 0x43042b
lea eax, [ebp - 0x196]
push eax
call 0x40e9f0
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x43041c
lea eax, [ebp - 0x196]
push eax
push 0x80000001
call fcn.0040818a
add esp, 0x20
mov dword [ebp - 0x19c], eax
or eax, eax
je 0x401fad
push 0x100
push dword [ebp + 8]
dec eax
push eax
lea eax, [ebp - 0x100]
add eax, 2
push eax
call fcn.00401e9c
add esp, 0x10
xor ebx, 0x12ed
lea edi, [ebp - 0x1c4]
lea esi, [0x42d0b8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x1e4]
lea esi, [0x42d0d8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x1a1], 0
jmp 0x40204d
mov eax, ebx
add eax, ebx
mov ebx, eax
push 0x100
lea eax, [ebp - 0x100]
push eax
movzx edi, byte [ebp - 0x1a1]
shl edi, 2
push dword [ebp + edi - 0x1c4]
lea edi, [ebp - 0x196]
push edi
push 0x80000001
call fcn.0040818a
lea eax, [ebp - 0x100]
push eax
movzx edi, byte [ebp - 0x1a1]
shl edi, 2
push dword [ebp + edi - 0x1e4]
mov edi, dword [ebp + 8]
push edi
push 0x430397
push edi
call 0x40e9f0
add esp, 0x28
mov eax, ebx
sub eax, ebx
mov ebx, eax
add byte [ebp - 0x1a1], 1
mov al, byte [ebp - 0x1a1]
cmp al, 8
jb 0x401fe2
inc dword [ebp - 0x1a0]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1ec], eax
push eax
call 0x40e78c
mov edi, dword [ebp - 0x1ec]
lea edi, [edi + eax + 1]
mov dword [ebp + 8], edi
mov eax, 0x1f78
mul ebx
mov dword [ebp - 0x1f0], eax
mov ebx, eax
add byte [ebp - 0x197], 1
mov al, byte [ebp - 0x197]
cmp al, 0x1e
jb 0x401f3d
mov eax, dword [ebp - 0x1a0]
and eax, 0xff
jmp 0x4020b0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404744
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, dword [ebp + 8]
mov ecx, 0xae60305
add ecx, 0xce4
mov esi, ebx
and dword [0x418600], 0
mov eax, ecx
add eax, ecx
mov ecx, eax
and dword [0x419f94], 0
and dword [0x41afa4], 0
and dword [0x418de0], 0
add ecx, 0x35ab
mov dword [0x419b78], 4
mov dword [0x4196d8], 4
mov eax, esi
inc esi
mov al, byte [eax]
mov byte [0x419600], al
movzx eax, byte [0x419600]
or eax, eax
jl 0x404a12
cmp eax, 0xff
jg 0x404a12
jmp dword [eax*4 + 0x42d1c8]
test byte [0x419f94], 0x40
je 0x404ae9
mov eax, esi
inc esi
mov al, byte [eax]
mov byte [0x42b0c4], al
mov eax, 0x7c27
mul ecx
mov dword [ebp - 0xc], eax
mov ecx, eax
movzx eax, byte [0x42b0c4]
and eax, 0xc0
mov byte [ebp - 5], al
movzx eax, byte [0x42b0c4]
and eax, 7
mov byte [ebp - 6], al
movzx eax, byte [ebp - 5]
cmp eax, 0xc0
je 0x404ae9
cmp byte [ebp - 5], 0x40
jne 0x404a6c
inc dword [0x418de0]
mov eax, ecx
sub eax, ecx
mov ecx, eax
movzx eax, byte [ebp - 5]
cmp eax, 0x80
jne 0x404a88
mov eax, dword [0x4196d8]
add dword [0x418de0], eax
cmp dword [0x4196d8], 2
jne 0x404aa6
cmp byte [ebp - 5], 0
jne 0x404ae9
cmp byte [ebp - 6], 6
jne 0x404ae9
add dword [0x418de0], 2
jmp 0x404ae9
cmp byte [ebp - 6], 4
jne 0x404ad0
or byte [0x419f94], 0x80
mov eax, ecx
sub eax, ecx
mov ecx, eax
mov eax, esi
inc esi
mov al, byte [eax]
mov byte [0x419b74], al
movzx eax, byte [0x419b74]
and eax, 7
mov byte [ebp - 6], al
cmp byte [ebp - 6], 5
jne 0x404ae3
cmp byte [ebp - 5], 0
jne 0x404ae3
add dword [0x418de0], 4
mov eax, ecx
sub eax, ecx
mov ecx, eax
and dword [0x418de8], 0
jmp 0x404b0a
mov eax, esi
inc esi
mov edx, dword [0x418de8]
mov al, byte [eax]
mov byte [edx + 0x4195f8], al
inc dword [0x418de8]
mov eax, dword [0x418de0]
cmp dword [0x418de8], eax
jb 0x404af2
mov eax, ecx
xor eax, ecx
mov ecx, eax
and dword [0x418de8], 0
jmp 0x404b3e
mov eax, esi
inc esi
mov edx, dword [0x418de8]
mov al, byte [eax]
mov byte [edx + 0x42c810], al
inc dword [0x418de8]
mov eax, dword [0x41afa4]
cmp dword [0x418de8], eax
jb 0x404b26
mov eax, esi
sub eax, ebx
mov dword [0x418600], eax
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x40644f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, 0x30b1265f
xor edi, 0x2d18
mov eax, dword [ebp + 8]
add eax, 5
push eax
lea eax, [ebp - 0x101]
push eax
call 0x40e9f0
add esp, 8
mov byte [ebp - 1], 0
jmp 0x4064a0
movzx eax, byte [ebp - 1]
cmp byte [ebp + eax - 0x101], 0x2c
jne 0x40649c
movzx eax, byte [ebp - 1]
mov byte [ebp + eax - 0x101], 0x2e
add byte [ebp - 1], 1
lea eax, [ebp - 0x101]
push eax
call 0x40e78c
movzx esi, byte [ebp - 1]
cmp esi, eax
jl 0x406482
mov eax, edi
xor eax, edi
mov edi, eax
push 4
push 0x430168
lea eax, [ebp - 0x101]
push eax
call fcn.0040374d
mov esi, eax
mov word [ebp - 0x104], si
push 5
push 0x430168
lea eax, [ebp - 0x101]
push eax
call fcn.0040374d
mov esi, eax
mov word [ebp - 0x106], si
movzx eax, word [ebp - 0x104]
mov byte [ebp + eax - 0x101], 0
mov eax, edi
sub eax, edi
mov edi, eax
movzx eax, word [ebp - 0x106]
mov byte [ebp + eax - 0x101], 0
lea eax, [ebp - 0x101]
push eax
push dword [ebp + 0xc]
call 0x40e9f0
mov eax, edi
mul edi
mov dword [ebp - 0x10c], eax
mov edi, eax
lea eax, [ebp - 0x101]
movzx edx, word [ebp - 0x104]
lea eax, [eax + edx + 1]
push eax
call 0x40e99c
mov ebx, eax
mov byte [ebp - 0x107], bl
lea eax, [ebp - 0x101]
movzx edx, word [ebp - 0x106]
lea eax, [eax + edx + 1]
push eax
call 0x40e99c
add esp, 0x28
mov ebx, eax
mov byte [ebp - 0x108], bl
mov eax, edi
add eax, edi
mov edi, eax
movzx edi, byte [ebp - 0x108]
movzx esi, byte [ebp - 0x107]
movzx esi, si
shl esi, 8
or edi, esi
movzx eax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ad5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40ae72
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405c66
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40adb3
mov byte [ebp - 2], 0
jmp 0x40addd
call 0x40e9d8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40adfc
cmp al, 0x7f
ja 0x40adfc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40ae1b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call 0x40e9c0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call 0x40e9b4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call 0x40e9b4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40ad90
pop edi
pop esi
pop ebx
leave
ret