joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403045
Capabilities:
Parse pe header

Disassembly:
push 0x74
mov eax, 0x41fd83
call fcn.0041f918
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
push edx
push 6
call dword [0x421028]
test eax, eax
jne 0x40307f
call dword [0x42102c]
mov ecx, eax
call fcn.00401040
jmp 0x4031c1
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
and dword [edi + 0x44], 0
mov ebx, 0x104
push edi
push ebx
mov edx, eax
mov dword [ebp - 0x40], eax
mov dword [edi + 0x40], eax
call fcn.00402fad
pop ecx
pop ecx
jmp 0x4030b2
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
add ebx, ebx
push edi
push ebx
call fcn.00402fad
pop ecx
pop ecx
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00401040
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0x4030a1
test esi, esi
je 0x4030cd
mov ecx, esi
jmp 0x403075
mov edx, dword [ebp - 0x34]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4031bc
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x4031bc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4031bc
mov eax, dword [ecx + 0x50]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0x4031b1
cmp dword [ecx + 0xac], 0x1c
jb 0x4031b5
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0x4031b5
mov ebx, dword [eax + edx + 0x14]
add ebx, edx
cmp dword [ebx], 0x53445352
jne 0x4031bc
lea eax, [edi + 0x20]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], eax
call fcn.004016f7
push 7
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 4]
lea ecx, [ebp - 0x4c]
call fcn.004026f0
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00402edb
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
js 0x403182
cmp edx, ecx
jb 0x403182
mov edx, ecx
mov ecx, dword [ebp - 0x30]
push 0
push 0
push edx
push eax
lea edx, [ebp - 0x2c]
call fcn.00409390
lea ecx, [ebp - 0x30]
call fcn.0040718a
add esp, 8
mov ecx, dword [eax]
lea edx, [eax + 4]
push dword [edx + 4]
push dword [ebx + 0x14]
call fcn.0040944d
add esp, 0x10
xor eax, eax
jmp 0x4031c1
mov eax, 0x8000005c
jmp 0x4031c1
mov eax, 0x8000005a
call fcn.0041f8c7
ret
Function at 0x404980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 8], edi
mov esi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4049da
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x427acc
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 8]
test esi, esi
je 0x4049e8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040d6f2
leave
ret

Function at 0x404c78
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x4203fa
call fcn.0041f918
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ebx, 0x427eb4
mov dword [ebp - 0x34], eax
mov eax, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
cmp word [edi], si
je 0x404ca6
mov eax, edi
lea edx, [ebp - 0x18]
push edx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404cca
mov ecx, eax
call fcn.00401040
jmp 0x404d62
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x404cdb
mov eax, 0x8000005c
jmp 0x404d62
cmp dword [ebp - 0x14], 1
je 0x404cee
cmp dword [ebp - 0x14], 2
je 0x404cee
mov eax, 0x8000005d
jmp 0x404d62
mov dword [ebp - 0x2c], esi
shr eax, 1
lea ecx, [ebp - 0x2c]
push ecx
add eax, 2
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0040563b
mov byte [ebp - 4], 2
cmp word [edi], si
je 0x404d11
mov ebx, edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push esi
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404d39
mov ecx, eax
call fcn.00401040
mov esi, eax
jmp 0x404d58
mov edi, dword [ebp - 0x28]
mov edx, esi
mov eax, edi
cmp word [edi], si
je 0x404d4e
lea eax, [eax + 2]
inc edx
cmp word [eax], si
jne 0x404d45
mov ecx, dword [ebp - 0x34]
push edx
push edi
call fcn.00405c38
lea ecx, [ebp - 0x28]
call fcn.0040561c
mov eax, esi
call fcn.0041f8c7
ret 0xc
Function at 0x407480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4206fc
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], edx
mov esi, ecx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [ebp + 8]
xor edi, edi
and dword [ebp - 0xa4], edi
mov dword [ebp - 0xac], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebx + 8]
mov dword [ebp - 0xa0], eax
cmp eax, 0x40
jb 0x4074f2
cmp eax, 0x7ffffffe
jbe 0x4074ee
mov eax, 0x7ffffffe
mov edi, dword [ebx]
jmp 0x4074fb
push 0x40
lea edi, [ebp - 0x94]
pop eax
add eax, eax
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push edi
lea eax, [ebp - 0x9c]
push eax
push 0
push ecx
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4075e8
cmp eax, 0xea
jne 0x407623
mov edi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa4]
shr edi, 1
cmp ecx, 5
jb 0x407554
cmp edi, 0x3fffffff
jae 0x40754f
add edi, edi
jmp 0x407554
mov edi, 0x7ffffffe
mov eax, dword [ebx]
xor edx, edx
and dword [ebx + 4], 0
mov word [eax], dx
cmp edi, 0x7ffffffe
ja 0x407654
mov eax, dword [ebx + 8]
mov dword [ebp - 0xa0], eax
cmp edi, eax
jbe 0x4075d0
push 2
lea eax, [edi*2 + 2]
push eax
lea ecx, [ebx + 0xc]
call fcn.0040145b
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x407654
mov ecx, dword [ebx + 4]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebx]
push eax
call fcn.004104f0
add esp, 0xc
mov ecx, ebx
push 0
call fcn.00405b1e
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov dword [ebx], eax
mov eax, edi
mov dword [ebx + 8], edi
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa8]
inc ecx
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xac]
jmp 0x4074dd
cmp dword [ebp - 0x9c], 1
je 0x4075f9
mov dword [esi], 0x65d
jmp 0x407625
mov ecx, dword [ebp - 0x98]
shr ecx, 1
je 0x40760d
xor eax, eax
cmp word [edi + ecx*2 - 2], ax
jne 0x40760d
dec ecx
cmp dword [ebp - 0xa0], 0x40
jb 0x407641
mov eax, dword [ebx]
xor edx, edx
mov dword [ebx + 4], ecx
mov word [eax + ecx*2], dx
xor eax, eax
mov dword [esi], eax
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 - 0x14]
xor ecx, ebp
call fcn.0040d6f2
leave
ret
push ecx
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.00408d73
test al, al
jne 0x407621
mov dword [esi], 8
jmp 0x407625
Function at 0x40b110
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call fcn.0040c921
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x40b130
push str.EEC3:_failed_to_initialize_EEC3_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, byte [ebp - 1]
test eax, eax
je 0x40b15a
call fcn.0040cfd7
movzx eax, al
test eax, eax
jne 0x40b15a
push str.EEC3:_startup_checks_failed__bailing_out_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x2ae
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040ae13
movzx eax, al
test eax, eax
jne 0x40b17c
push str.EEC3:_failed_to_reconstruct_original_imports__bailing_out_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x45a
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x42f030]
add eax, 0x400000
mov dword [ebp - 8], eax
call dword [ebp - 8]
leave
ret
Function at 0x40cfd7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42c898]
and eax, 2
je 0x40cfff
call fcn.0040be6c
movzx eax, al
test eax, eax
jne 0x40cfff
push str.EEC3:_failed_to_pass_name_check_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40d026
mov eax, dword [0x42c898]
and eax, 1
je 0x40d024
call fcn.0040c228
movzx eax, al
test eax, eax
jne 0x40d024
push str.EEC3:_failed_to_pass_path_check_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40d026
mov al, 1
pop ebp
ret
Function at 0x44f3b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x48]
movzx eax, word [edi + 2]
lea ecx, [edx + eax*8]
movzx eax, word [ecx]
lea eax, [edx + eax*8]
mov dword [esp + 0x18], eax
movzx eax, word [ecx + 2]
lea ebp, [eax + eax*2]
shl ebp, 3
cmp byte [edi + 6], 0
jge 0x44f3ed
cmp byte [edi + 7], 0
jne 0x44f3ed
mov ebx, 0x80
jmp 0x44f401
push 0xef
push edi
push esi
call fcn.00455b90
mov edx, dword [esi + 0x48]
add esp, 0xc
mov ebx, eax
movzx ecx, word [edi]
movzx eax, byte [edx + ecx*8 + 6]
mov dword [esp + 0x14], eax
test al, al
jns 0x44f424
push 0xef
push ecx
push esi
call fcn.00455ad0
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x60]
btr ecx, eax
mov dword [esi + 0x60], ecx
test bl, bl
js 0x44f480
test ebp, ebp
je 0x44f45d
push ebp
cmp ebx, eax
jne 0x44f44b
push ebx
push 0x838100
push esi
call fcn.00454940
add esp, 0x10
jmp 0x44f480
push eax
push ebx
push 0x8d0000fe
push esi
call fcn.00454d60
add esp, 0x14
jmp 0x44f480
cmp ebx, eax
je 0x44f480
mov ecx, dword [esi + 0x40]
and al, 7
and bl, 7
sub al, 0x40
shl bl, 3
add bl, al
mov byte [ecx - 1], bl
lea eax, [ecx - 2]
mov dword [ecx - 5], 0x8b0000fe
mov dword [esi + 0x40], eax
push 5
push esi
call fcn.0044e100
mov ecx, dword [esp + 0x20]
add esp, 8
mov ebx, dword [esi + 0x40]
mov al, byte [ecx + 4]
and al, 0x1f
cmp al, 0xe
jne 0x44f50d
mov ecx, dword [ecx + 8]
movsx eax, cl
cmp ecx, eax
jne 0x44f4b4
lea eax, [ebx - 1]
mov dword [esi + 0x40], eax
mov byte [eax], cl
mov ecx, 0x830000fe
jmp 0x44f4c0
mov dword [ebx - 4], ecx
mov ecx, 0x810000fe
add dword [esi + 0x40], 0xfffffffc
mov edi, dword [esp + 0x14]
lea eax, [ebp + 8]
push eax
push edi
push 7
push ecx
push esi
call fcn.00454d60
mov ecx, dword [esi + 0x40]
add esp, 0x14
sub bl, cl
mov byte [ecx - 2], 0x75
lea eax, [ecx - 2]
mov byte [ecx - 1], bl
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
movsx eax, dl
cmp edx, eax
jne 0x44f4ff
lea eax, [ecx - 3]
mov dword [esi + 0x40], eax
mov byte [eax], dl
jmp 0x44f54c
mov dword [ecx - 6], edx
mov ecx, 0x810000fe
add dword [esi + 0x40], 0xfffffffc
jmp 0x44f551
mov edi, dword [esp + 0x14]
cmp al, 2
jbe 0x44f539
push dword [ecx]
lea eax, [ebp + 8]
push eax
push edi
push 0x838107
push esi
call fcn.004548e0
mov eax, dword [esi + 0x40]
add esp, 0x14
sub bl, al
mov byte [eax - 2], 0x75
mov byte [eax - 1], bl
lea ebx, [eax - 2]
mov eax, dword [esp + 0x18]
lea ecx, [ebx - 1]
mov dword [esi + 0x40], ecx
mov al, byte [eax + 4]
and al, 0x1f
not al
mov byte [ecx], al
mov ecx, 0x830000fe
lea eax, [ebp + 0xc]
push eax
push edi
push 7
push ecx
push esi
call fcn.00454d60
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4543f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0xef
push ebp
push edi
call fcn.00455b90
mov ebx, eax
mov ecx, 0x8000
movzx eax, word [ebp]
add esp, 0xc
cmp ax, cx
jae 0x454452
movzx ecx, byte [ebp + 3]
mov edx, eax
mov eax, dword [edi + 0x48]
and bl, 7
mov esi, dword [edi + 0x40]
shl bl, 3
mov eax, dword [eax + edx*8]
mov eax, dword [eax + ecx*4 + 0x14]
add eax, 0x10
add bl, 5
mov dword [esi - 4], eax
lea eax, [esi - 6]
mov byte [esi - 5], bl
mov dword [esi - 9], 0x8b0000fe
mov dword [edi + 0x40], eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x58]
and eax, 0xef
jne 0x4544f0
mov eax, dword [edi + 4]
or ecx, 0xffffffff
cmp dword [edi], 0xffffffff
mov esi, dword [edi + 0x18]
cmovb ecx, dword [edi]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 8]
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [edi + 0xc]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 0x14]
cmp ecx, eax
cmovae ecx, eax
cmp esi, ecx
cmovae esi, ecx
mov ecx, dword [edi + 0x1c]
cmp ecx, esi
movzx edx, cx
movzx eax, si
cmovae edx, eax
movzx ecx, dx
mov dword [esp + 0x18], ecx
cmp ecx, 0x8000
jb 0x4544e2
mov edx, dword [edi + 0x60]
mov esi, edx
and esi, 0xef
je 0x4544e2
mov eax, dword [edi + 0x48]
mov cl, byte [eax + ecx*8 + 6]
shr edx, cl
test dl, 1
jne 0x4544de
bsf eax, esi
movzx ecx, word [edi + eax*4]
push ecx
push edi
call fcn.004564d0
add esp, 8
mov esi, eax
jmp 0x4544f3
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.004564d0
add esp, 8
mov esi, eax
jmp 0x4544f3
bsr esi, eax
mov eax, dword [edi + 0x5c]
bts eax, esi
mov dword [edi + 0x5c], eax
movzx ecx, word [ebp]
mov eax, dword [edi + 0x48]
movzx eax, byte [eax + ecx*8 + 6]
mov dword [esp + 0x18], eax
test al, al
jns 0x454523
push 0xef
push ecx
push edi
call fcn.00455ad0
add esp, 0xc
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x60]
btr ecx, eax
mov dword [edi + 0x60], ecx
cmp byte [ebp + 5], 0x3d
jne 0x454564
push 8
push esi
push ebx
push 0x8d0000fe
push edi
call fcn.00454d60
push 5
push edi
call fcn.0044e100
add esp, 0x1c
mov ebx, 7
dec dword [edi + 0x40]
mov eax, dword [edi + 0x40]
lea ecx, [ebx - 1]
mov byte [eax], 1
mov eax, 0x800000fe
jmp 0x45456e
mov eax, 0x8b0000fe
mov ecx, 0x10
push ecx
push esi
push ebx
push eax
push edi
call fcn.00454d60
movzx eax, byte [ebp + 3]
lea eax, [eax*4 + 0x14]
push eax
push dword [esp + 0x30]
push esi
push 0x8b0000fe
push edi
call fcn.00454d60
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x459560
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
dec esi
mov eax, dword [edi + 0x10]
lea esi, [eax + esi*8]
cmp esi, dword [edi + 0x14]
jae 0x4596aa
mov eax, dword [esi + 4]
cmp eax, 0xfffffff2
jbe 0x45968c
cmp eax, 0xfffffff5
jne 0x45967a
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xfc]
mov dword [esp + 0xc], ecx
mov dword [ecx + 0xc], edi
mov eax, dword [esi]
mov esi, dword [ecx]
movzx edx, word [eax + 6]
lea edi, [eax + 8]
mov eax, edx
add eax, eax
mov ecx, dword [esi + eax*8]
mov eax, ecx
and eax, 0xf0800000
cmp eax, 0x20800000
jne 0x4595c8
mov edi, dword [edi]
movzx ecx, cx
cmovne ecx, edx
shl ecx, 4
add ecx, esi
mov edx, dword [ecx]
mov eax, edx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x4595fb
movzx ecx, dx
shl ecx, 4
add ecx, esi
mov edx, dword [ecx]
mov eax, edx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x4595e3
mov eax, edx
and eax, 0xf0000000
cmp eax, 0x50000000
jne 0x459613
movzx ecx, dx
shl ecx, 4
add ecx, esi
mov edx, dword [ecx]
and edx, 0xfc800000
cmp edx, 0x800000
jne 0x459637
cmp dword [ecx + 4], 8
jne 0x459637
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xc
mov eax, 0xc
jmp 0x45964b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
test eax, eax
jne 0x45964b
mov dword [edx], 0xb
mov eax, 0xb
mov edx, dword [ebp + 0xc]
shl edx, 8
push edx
push edi
lea edx, [esp + 0x18]
shl eax, 4
push edx
push ecx
mov ecx, dword [esp + 0x1c]
add eax, dword [ecx]
push eax
push ecx
call fcn.0045bd90
mov eax, dword [esp + 0x28]
add esp, 0x18
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffb
jne 0x4596aa
mov ecx, dword [esi]
mov edx, esi
call fcn.00495cc0
test eax, eax
je 0x4596aa
movsd xmm0, qword [esi]
xor edx, edx
addsd xmm0, qword [0x5076d0]
pop edi
pop esi
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
push 3
push dword [ebp + 0xc]
push edi
call fcn.0046c0b0
int3
Function at 0x459730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x24]
push edi
cmp dword [eax + 4], 0xfffffff5
jne 0x4597a7
mov eax, dword [eax]
mov edx, dword [ebp]
movzx edi, word [eax + 6]
mov eax, edi
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x459786
nop word [eax + eax]
movzx eax, cx
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x459770
mov eax, ecx
movzx ecx, cx
and eax, 0xf0000000
cmp eax, 0x20000000
push esi
cmovne ecx, edi
push ecx
push ebp
call fcn.004693a0
add esp, 0xc
test eax, eax
jne 0x45980d
mov eax, dword [ebx + 0x10]
lea ecx, [eax + 8]
cmp ecx, dword [ebx + 0x14]
jae 0x45981f
cmp dword [eax + 0xc], 0xfffffff5
jne 0x45981f
mov eax, dword [ecx]
mov edx, dword [ebp]
movzx edi, word [eax + 6]
mov eax, edi
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x4597ec
movzx eax, cx
add eax, eax
mov ecx, dword [edx + eax*8]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x4597d6
mov eax, ecx
movzx ecx, cx
and eax, 0xf0000000
cmp eax, 0x20000000
push esi
cmovne ecx, edi
push ecx
push ebp
call fcn.004693a0
add esp, 0xc
test eax, eax
je 0x45981f
push eax
push ebx
call fcn.00478400
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or edx, 0xffffffff
or ebp, edx
cmp esi, 4
jne 0x459854
mov ecx, dword [esp + 0x24]
xor edx, edx
pop edi
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
mov eax, dword [ebx + 0x14]
setne dl
add edx, 0xfffffffd
mov dword [eax - 4], edx
mov eax, dword [ebx + 8]
mov dword [eax + 0x9c], edx
lea eax, [esi - 3]
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
xor edi, edi
nop word [eax + eax]
mov ecx, dword [eax + edi*4 + 8]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x4598a5
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], 0xfffffff5
jne 0x4598a5
mov eax, dword [esp + 0x20]
mov esi, dword [ecx]
push 0
sub ecx, dword [eax]
sar ecx, 4
push ecx
push ebx
call fcn.004694f0
and esi, 0xf0000000
add esp, 0xc
add eax, 0x14
mov edx, edi
cmp esi, 0x50000000
cmovne edx, dword [esp + 0x1c]
jmp 0x4598cb
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + edi*8 + 4]
cmp ecx, 0xfffffffb
mov eax, edi
cmovne eax, ebp
mov ebp, eax
cmp ecx, 0xfffffff2
ja 0x4598c2
mov ecx, 0xd
jmp 0x4598c4
not ecx
mov eax, dword [ecx*4 + 0x5096a0]
mov dword [esp + edi*4 + 0x10], eax
inc edi
mov eax, dword [esp + 0x24]
cmp edi, 2
jl 0x459860
mov eax, ebp
xor eax, edx
cmp eax, 1
je 0x45991d
mov ecx, dword [esp + 0x28]
cmp ecx, 5
jne 0x4598f2
mov eax, 0xcd7
jmp 0x45990e
cmp ecx, 8
jne 0x4598fe
mov eax, 0xcf5
jmp 0x45990e
cmp ecx, 0xa
mov eax, 0xd1a
mov edx, 0xd49
cmovl eax, edx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
push ebx
call fcn.0046c250
push dword [esp + edx*4 + 0x10]
push dword [esp + ebp*4 + 0x14]
push 0xcbb
push ebx
call fcn.0046c250
int3
Function at 0x4647e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x64]
mov eax, edi
and eax, 0x1f000000
cmp eax, 0x4000000
jne 0x464881
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x64]
push 4
mov esi, dword [eax]
push esi
push ebx
call fcn.00473ad0
mov ecx, 0x884
movzx eax, ax
add esp, 0xc
mov word [ebx + 0x7c], cx
mov ecx, ebx
mov word [ebx + 0x78], di
mov word [ebx + 0x7a], ax
call fcn.0047ba80
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x38], eax
mov eax, dword [ebx - 0xbc]
mov dword [esp + 0x3c], eax
mov edi, dword [eax + 4]
lea eax, [esi + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0x12
call fcn.00462ad0
add esp, 4
test eax, eax
jne 0x4648b5
mov eax, dword [esp + 0x3c]
cmp dword [eax + 4], edi
ja 0x4648b5
mov eax, dword [esp + 0x18]
pop ebx
pop edi
pop esi
add esp, 0x54
ret
push dword [esp + 0x68]
mov esi, dword [esp + 0x64]
push edi
push esi
call fcn.00464770
add esp, 0xc
movzx ecx, word [eax + 6]
cmp ecx, 0x15
jne 0x4648ad
push edi
push eax
push esi
call fcn.00465ea0
add esp, 0xc
pop edi
pop esi
add esp, 0x54
ret
pop edi
mov eax, ecx
pop esi
add esp, 0x54
ret
push 0xb
push ebx
call fcn.00498e20
int3
Function at 0x46a810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
push edi
mov edi, dword [esp + 0x1c]
sub eax, 0x40
push edi
sar eax, 2
push eax
push ebx
call fcn.00469cc0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x46a8c7
lea ebp, [ebx + 0x40]
sub esi, 4
cmp esi, ebp
jbe case.0x46a898.19
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ebx, cl
mov cx, word [edx*2 + 0x507440]
and cx, 7
cmp cx, 2
jne 0x46a87f
cmp edi, ebx
jb 0x46a842
cmp edx, 0x2c
jne case.0x46a898.19
shr eax, 0x10
cmp edi, eax
ja 0x46a842
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp cx, 1
jne 0x46a842
cmp ebx, edi
jne 0x46a842
add edx, 0xffffffee
cmp edx, 0x27
ja case.0x46a898.19
movzx ecx, byte [edx + 0x46a9a4]
jmp dword [ecx*4 + 0x46a990]
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, esi
shr edi, 0x10
sub eax, ecx
sub eax, 0x40
push edi
sar eax, 2
push eax
push ecx
call fcn.00469cc0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x46a842
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, 0x507dd4
pop ebx
ret
mov ecx, dword [esp + 0x14]
shr eax, 0x10
not eax
pop edi
mov ecx, dword [ecx + 0x10]
pop esi
pop ebp
pop ebx
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x10]
add ecx, 0x14
mov dword [eax], ecx
mov eax, 0x507ddc
ret
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x14]
not edx
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x20]
add edx, 0x14
mov dword [ecx], edx
mov ecx, dword [esi - 4]
cmp cl, 0x12
jne 0x46a942
shr ecx, 8
movzx edx, cl
lea ecx, [ebx + 1]
cmp edx, ecx
jne 0x46a942
shr eax, 8
xor eax, dword [esi - 4]
test eax, 0xffff0000
jne 0x46a942
pop edi
pop esi
pop ebp
mov eax, 0x507de4
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x507dec
pop ebx
ret
mov ecx, dword [esp + 0x14]
shr eax, 0x10
mov edx, dword [ecx + 0x38]
test edx, edx
jne 0x46a96f
mov eax, dword [esp + 0x20]
mov edx, 0x507dd1
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, 0x507df4
pop ebx
ret
test eax, eax
je 0x46a97f
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x46a973
sub eax, 1
jne 0x46a973
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, 0x507df4
pop ebx
ret