joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c08
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x468]
sub esp, 0x468
push 0xffffffffffffffff
push 0x47ed86
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4a2074]
xor eax, ebp
mov dword [ebp + 0x464], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x5c
pop eax
mov word [ebp + 0x458], ax
xor eax, eax
mov dword [ebp + 0x45c], eax
mov dword [ebp + 0x460], eax
mov dword [ebp - 4], eax
call fcn.00401ebf
push eax
lea ecx, [ebp - 0x10]
call fcn.00401cf5
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
je 0x403ca5
mov esi, dword [edi]
push 0x104
call fcn.004022b3
push 0x48f92c
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00409d31
jmp 0x403cab
push edi
call fcn.00406d3d
mov esi, dword [ebp - 0x10]
lea ecx, [ebp]
push esi
call fcn.0040965d
test eax, eax
je 0x403d89
lea ecx, [ebp]
call fcn.0040962b
test eax, eax
jne 0x403d5e
mov edx, dword [ebp + 0x460]
mov ecx, dword [ebp]
test edx, edx
je 0x403ce6
mov eax, ecx
shr eax, 4
and eax, 1
jmp 0x403ce8
xor eax, eax
test eax, eax
je 0x403d0c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.00409578
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00403c08
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
jmp 0x403d56
test edx, edx
je 0x403d15
and ecx, 1
jmp 0x403d17
xor ecx, ecx
test ecx, ecx
je 0x403d3f
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
call fcn.00409578
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040219c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
call fcn.00409578
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040219c
lea ecx, [ebp]
call fcn.00409430
test eax, eax
jne 0x403cbf
lea ecx, [ebp]
call fcn.0040971a
test ebx, ebx
je 0x403d89
mov ecx, dword [edi]
call fcn.00403b7b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.0040219c
lea ecx, [ebp]
call fcn.0040971a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.004473b9
add ebp, 0x468
leave
ret
Function at 0x404be9
Capabilities:
Check if file exists
Delete file
Terminate process

Disassembly:
push 0x2c
mov eax, 0x47ef83
call fcn.00447de8
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
inc ebx
push esi
mov edx, ebx
mov ecx, edi
call fcn.00421590
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00409dcb
mov dword [ebp - 4], esi
call fcn.00406d88
lea eax, [ebp - 0x10]
push eax
call fcn.00402b09
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404c52
mov ecx, dword [edi + 8]
mov dword [ecx], ebx
mov dword [ecx + 4], 0x7ff7a501
mov ecx, dword [ebp - 0x10]
add dword [edi + 8], 8
add ecx, 0xfffffff0
call fcn.0040219c
mov eax, ebx
jmp 0x404d09
push esi
lea ecx, [ebp - 0x10]
call fcn.0040947b
push 0x14
pop eax
mov word [ebp - 0x28], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], esi
movlpd qword [ebp - 0x26], xmm0
mov dword [ebp - 0x1e], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x404ceb
call fcn.00401ebf
push eax
lea ecx, [ebp - 0x14]
call fcn.00401cf5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x48e9f0
push eax
call fcn.00408204
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
mov eax, esp
push ecx
mov dword [eax], 0x48ea50
mov eax, esp
mov dword [eax], esi
call fcn.00408fb9
pop ecx
pop ecx
sub eax, 3
je 0x404d37
sub eax, 1
je 0x404d0f
sub eax, 1
jne 0x404ce3
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.0040219c
mov eax, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 4], 0x7ff7a501
add dword [edi + 8], 8
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040219c
xor eax, eax
inc eax
call fcn.00447dc2
ret
push edi
call fcn.00404be9
mov edx, dword [edi + 8]
pop ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx + 4], 0x7ff7a501
mov dword [edx], ecx
lea ecx, [esi - 0x10]
add dword [edi + 8], 8
call fcn.0040219c
jmp 0x404cfb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406513
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push edi
mov edi, ecx
lea eax, [esp + 0x10]
mov ebp, edx
mov dword [esp + 0xc], edi
push eax
mov dword [esp + 0x10], edi
and dword [esp + 0x14], 0
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x104
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00449590
add esp, 0xc
test ebx, ebx
je 0x4065df
push esi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4065de
push esi
push ebx
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4065d7
and dword [esp + 0x10], 0
lea eax, [esp + 0x18]
and dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x14]
push eax
push 0x48e2c0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4065d7
cmp dword [esp + 0x18], 0
je 0x4065d7
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.00408f5a
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00406ad2
mov ecx, dword [esp + 0x11c]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004473b9
add esp, 0x114
ret

Function at 0x409256
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push edi
mov edi, ecx
jne 0x409265
push 0xd
pop eax
jmp 0x40928b
push dword [esp + 0xc]
call fcn.00452867
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
ret 0xc
Function at 0x41031f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x18
mov eax, 0x47f7e3
call fcn.00447de8
mov eax, ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [eax + 8], 2
lea ecx, [eax + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ecx
mov dword [ecx], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004097e4
test al, al
je 0x4103e2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4103e2
push dword [ebp - 0x20]
push dword [0x4a3868]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [ebp - 0x14]
push eax
call fcn.00448a90
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x24], 0
je 0x4103da
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
call fcn.00447dc2
ret 8
push 0x80004005
call fcn.004023b6
int3

Function at 0x414939
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x47fc36
call fcn.00447de8
mov edi, ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414a3c
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401c98
lea edx, [eax + 0x10]
mov dword [ebp - 0x18], edx
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00409748
push str.global_
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00406ad2
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.00406a5d
mov esi, str._url
push esi
call fcn.0045d990
pop ecx
push eax
push esi
lea ecx, [ebp + 0x10]
call fcn.004075a9
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00409c4d
call fcn.00412e60
mov ecx, eax
call fcn.00402199
mov edx, dword [ebp + 0x10]
mov esi, eax
mov ecx, esi
call fcn.00421a40
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00421590
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00409dcb
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.00420d00
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x414a02
push 1
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push 2
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040219c
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040219c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040219c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040219c
xor eax, eax
call fcn.00447dc2
ret 0x10
Function at 0x419147
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x820c]
mov eax, 0x820c
call fcn.00448570
push 0xffffffffffffffff
push 0x48046a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a2074]
xor eax, ebp
mov dword [ebp + 0x8208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
push 0x208
xor ebx, ebx
lea eax, [ebp + 0x8000]
xor edi, edi
push ebx
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.00449590
push 0x7ffe
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
call fcn.004473ca
add esp, 0x10
mov dword [ebp - 0x14], 0x3fff
mov edi, eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x8000]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4192c9
mov eax, 0x3fff
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ebp], ax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
jne 0x419318
push edi
lea ecx, [ebp - 0x10]
call fcn.00402497
cmp dword [ebp + 0x8228], 8
lea ecx, [ebp + 0x8214]
jb 0x419275
mov ecx, dword [ebp + 0x8214]
test ecx, ecx
je 0x41930d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x419310
push ecx
push eax
call fcn.00449853
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41930d
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x419310
cmp dword [ebp + 0x8240], 8
lea eax, [ebp + 0x822c]
push edi
cmovae eax, dword [ebp + 0x822c]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040219c
test edi, edi
je 0x4192d4
push edi
call fcn.004473d3
pop ecx
lea ecx, [ebp + 0x8214]
call fcn.0040183f
lea ecx, [ebp + 0x822c]
call fcn.0040183f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8208]
xor ecx, ebp
call fcn.004473b9
add ebp, 0x820c
leave
ret
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.0040219c
inc ebx
cmp ebx, dword [ebp - 0x1c]
jae 0x4192c9
mov esi, dword [ebp - 0x20]
jmp 0x419204
Function at 0x41c0bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4805ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a2074]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
xor esi, esi
mov ebx, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x41c15a
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x41c15a
call fcn.0041af9c
mov esi, eax
jmp 0x41c236
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x41c177
call fcn.0041af9c
jmp 0x41c229
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c16d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x41c1a4
mov esi, 0x8007000e
jmp 0x41c22b
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x41c26d
jb 0x41c1bf
cmp eax, 0xffffffff
ja 0x41c26d
cmp eax, 0x400
jbe 0x41c1d1
push eax
lea ecx, [ebp]
call fcn.004081e2
jmp 0x41c1e7
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x41c1e7
mov dword [ebp - 4], 1
cmp dword [ebp], 0
je 0x41c19a
push ebx
push dword [ebp]
push ebx
push dword [ebp - 0x14]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x41c16d
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.0041bf73
mov esi, eax
test edi, edi
je 0x41c236
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x41c246
lea ecx, [ebp]
call fcn.004081d9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004473b9
add ebp, 0x408
leave
ret 0x10
push 0x80070216
call fcn.004023b6
int3
Function at 0x41ea34
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x48095c
call fcn.00447de8
mov edi, ecx
call fcn.00412e60
mov ecx, eax
call fcn.00402199
mov esi, eax
mov edx, str.global_install_path
mov ecx, esi
call fcn.00421a40
xor ebx, ebx
or edx, 0xffffffff
push ebx
mov ecx, esi
call fcn.00421590
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00409dcb
push 0xfffffffffffffffe
pop edx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00420d00
call fcn.00406d88
lea eax, [ebp - 0x10]
push eax
call fcn.00402b09
mov edx, str.global_main_app_name
mov ecx, esi
call fcn.00421a40
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00421590
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00409dcb
push 0xfffffffffffffffe
pop edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00420d00
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0x490480
push eax
call fcn.00412f1c
mov edx, str.global_start_parameter
mov ecx, esi
call fcn.00421a40
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00421590
add esp, 0x14
lea ecx, [ebp - 0x14]
mov edx, eax
call fcn.00409dcb
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.00420d00
push 1
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push 2
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040219c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040219c
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040219c
xor eax, eax
call fcn.00447dc2
ret 0x10
Function at 0x424b60
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x180
push 8
push 0
push eax
mov dword [esp + 0x20], eax
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x424ba8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004473b9
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
lea esi, [edi + 0x70]
mov dword [edi], 0
mov byte [edi + 4], 8
mov byte [esi + 0x34], 0x21
mov byte [edi + 5], 1
mov byte [esi + 0x36], 0
mov dword [edi + 0xc], esi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x24], 1
mov dword [edi + 0x34], 0
mov word [edi + 0x28], 0x100
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov byte [edi + 6], 0
mov dword [edi + 0x44], 0
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push 0
mov dword [esi], ebx
mov dword [esi + 0x9c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x48ee48
mov dword [esp + 0x24], fcn.00424b60
call fcn.0046398c
mov edx, eax
add esp, 4
xor edx, 0x10
mov ebx, 0x10
movzx ecx, byte [esp + ebx + 0x13]
mov eax, edx
shl eax, 5
dec ebx
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
cmp ebx, 1
jae 0x424c53
mov dword [esi + 0x30], edx
lea eax, [esi + 0x68]
mov dword [esi + 0x78], eax
mov edx, 0x4248b0
mov dword [esi + 0x7c], eax
mov ecx, edi
mov byte [esi + 0x37], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0x7ff7a500
mov dword [esi + 0x80], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0x48edd0
mov byte [esi + 0x35], 5
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 8], 0x180
mov dword [esi + 0xc], 0
mov dword [esi + 0x8c], 0xc8
mov dword [esi + 0x90], 0xc8
mov dword [esi + 0x94], 0xc8
push 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
call fcn.004290c0
add esp, 4
test eax, eax
je 0x424db7
mov ecx, edi
call fcn.00424a20
xor edi, edi
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004473b9
mov esp, ebp
pop ebp
ret
Function at 0x4297e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0x48]
cmp esi, eax
je 0x4299ab
nop dword [eax]
mov al, byte [esi + 0x12]
test al, 1
jne 0x42985c
mov ecx, esi
test al, 0x10
je 0x42981b
and al, 0xef
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x20]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x44], eax
cmp word [esi + 0x10], 0xffff
jne 0x42982d
mov eax, dword [ebx + 8]
cmp dword [ecx + 4], eax
jae 0x42982d
mov dword [ecx + 4], eax
mov al, byte [esi + 0x12]
test al, 0x20
jne 0x429838
mov byte [esi + 0x25], 1
and al, 0xcf
or al, 8
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x1c]
push ebx
call eax
mov edx, dword [ebx + 8]
add esp, 4
shl eax, 3
mov ecx, ebx
sub edx, eax
call fcn.004296b0
jmp 0x42999d
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x10], edi
mov ecx, dword [eax - 4]
mov edx, ecx
and edx, 0x3f
mov dword [esp + 0x14], ecx
lea eax, [edx - 6]
cmp eax, 0x1c
ja case.0x429885.8
movzx eax, byte [eax + 0x4299cc]
jmp dword [eax*4 + 0x4299b4]
add dword [ebx + 8], 0xfffffff8
mov edx, dword [ebx + 8]
shr ecx, 6
movzx ecx, cl
mov eax, dword [edx]
mov dword [edi + ecx*8], eax
mov eax, dword [edx + 4]
mov dword [edi + ecx*8 + 4], eax
jmp case.0x429885.8
mov eax, dword [ebx + 8]
mov edi, dword [eax - 4]
cmp edi, 0x7ff7a500
je 0x4298cd
cmp edi, 0x7ff7a501
jne 0x4298c6
cmp dword [eax - 8], 0
je 0x4298cd
mov edi, 1
jmp 0x4298cf
xor edi, edi
add eax, 0xfffffff8
mov dword [ebx + 8], eax
cmp edx, 0x1a
jne 0x429902
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 0x17
push 0xe
lea edx, [ecx + eax*8]
mov ecx, ebx
call fcn.0042d8d0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp dword [eax + 4], 0x7ff7a500
jne 0x429902
xor edi, 1
shr ecx, 6
movzx eax, cl
cmp edi, eax
je case.0x429885.8
add dword [esi + 0x1c], 4
jmp case.0x429885.8
mov edx, dword [ebx + 8]
mov eax, ecx
shr eax, 0x17
sub edx, 8
mov dword [esp + 0x10], edx
lea eax, [eax*8 + 8]
sub dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub eax, edi
sar eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov edi, dword [esp + 0x10]
mov dword [edx - 0x10], eax
mov eax, dword [edx + 4]
mov dword [edx - 0xc], eax
cmp edi, 1
jle 0x429967
lea eax, [edx - 8]
mov ecx, ebx
mov edx, edi
mov dword [ebx + 8], eax
call fcn.004272f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x18]
shr ecx, 6
movzx edi, cl
mov ecx, dword [ebx + 8]
mov eax, dword [ecx - 8]
mov dword [edx + edi*8], eax
mov eax, dword [ecx - 4]
mov dword [edx + edi*8 + 4], eax
jmp case.0x429885.34
and ecx, 0x7fc000
cmp ecx, 0x4000
jb case.0x429885.8
mov eax, dword [esi + 4]
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.00427a90
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0x48]
cmp esi, eax
jne 0x429800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret