joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401bd7
pop dword [ebp - 0x34]
mov eax, 0x86e99afa
sub eax, 0x86a97f23
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd303db93
add dword [ebp - 0x44], 0x7b4e69b8
mov dword [ebp - 0x40], 0x8fb8b348
add dword [ebp - 0x40], 0xa27a98fd
mov dword [ebp - 0x3c], 0x1df83909
sub dword [ebp - 0x3c], 0xd1abf4db
mov dword [ebp - 0x38], 0x4291c7c5
add dword [ebp - 0x38], 0xbd6e383b
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xda30d9b1
sub dword [ebp - 0x44], 0x65be705b
mov dword [ebp - 0x40], 0xafdfb749
add dword [ebp - 0x40], 0x918caa2c
mov dword [ebp - 0x3c], 0x1d7525bd
sub dword [ebp - 0x3c], 0xba05b951
mov dword [ebp - 0x38], 0xde65bdc1
sub dword [ebp - 0x38], 0xde65bdc1
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37287
push 0
call eax
mov ecx, 0x4a55
mov edi, eax
mov esi, 0x410000
add esi, dword [ebp - 0x34]
mov ebx, 0x65f4efe
add ebx, 0x71e400c6
add dword [ebp - 4], ecx
mov edx, dword [esi]
add dword [ebp - 0x28], 0xe7ff8f66
xor edx, ebx
xor dword [ebp - 0x18], esi
mov dword [edi], edx
add dword [ebp - 0x1c], 0x783025f6
add edi, 0xf1aabd2c
sub edi, 0xf1aabd28
add esi, 4
loop 0x401ce3
add eax, 0x11c27
mov ebx, eax
add eax, 0x695d2422
add eax, 0x96a2dbe3
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x405800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov esi, ecx
and esi, 7
mov eax, esi
cmp eax, 7
mov edx, ecx
jne 0x4057f2
mov eax, ecx
and eax, 0xfffffff8
mov edx, dword [eax + 4]
mov eax, edx
and eax, esi
cmp eax, 2
jne 0x4057fc
and edx, 0x1f
mov eax, edx
test eax, eax
jne 0x405815
cmp esi, 7
mov eax, ecx
jne 0x40580d
and ecx, 0xfffffff8
mov eax, dword [ecx + 4]
pop edi
sar eax, 3
pop esi
ret 4
push 0
push ecx
mov ecx, edi
call fcn.00405770
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.004977a0
pop edi
pop esi
ret 4
Function at 0x421670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [ecx + 0xc]
xor eax, eax
test esi, esi
mov edx, 1
jbe 0x42166a
nop
test edx, edx
je 0x42165f
mov edx, dword [ecx + 0x10]
cmp word [edx + eax*2], 0
jne 0x42165f
mov edx, dword [ecx + 0x14]
cmp word [edx + eax*2], 0
jne 0x42165f
mov edx, 1
jmp 0x421661
xor edx, edx
inc eax
cmp eax, esi
jb 0x421640
test edx, edx
je 0x42169b
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x42169b
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x42169b
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x42169b
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x42169b
mov eax, dword [ecx + 0x24]
test eax, eax
jne 0x42169b
mov eax, dword [ecx + 4]
test eax, eax
jne 0x42169b
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x435ff0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
push esi
lea esi, [ebp + 4]
mov dword [esp + 0xc], esi
je 0x4360e3
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov eax, ebp
and eax, 0xfffff000
mov ecx, dword [eax]
push 3
push 0
lea eax, [edx + edx + 2]
push eax
call fcn.005299d0
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov word [ebx + ecx*2], 0
cmp dword [esi], 0
mov eax, ebp
je 0x43606c
mov edx, esi
lea esp, [esp]
mov ecx, dword [edx]
mov edi, dword [ecx + 0x10]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x1c]
sub ecx, edi
shl ecx, 1
mov eax, ecx
shr ecx, 2
lea edi, [ebx + edi*2]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
test ecx, ecx
lea edx, [eax + 4]
jne 0x436040
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x1c]
shl ecx, 1
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, 0x1c
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4360d4
mov eax, ebp
and eax, 0xfffff000
mov edi, dword [eax]
mov al, byte [edi + 0x2d]
test al, al
je 0x4360d4
push ebp
mov ecx, edi
call fcn.004225f0
mov esi, ebx
and esi, 0xfffffff8
mov dword [esp + 0x10], eax
je 0x4360d4
push eax
call fcn.00422590
add esp, 4
test al, al
je 0x4360d4
push esi
mov ecx, edi
call fcn.0052a060
test al, al
je 0x4360d4
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov ecx, edi
call fcn.0052a750
mov edx, dword [esp + 0x14]
mov dword [ebp], ebx
pop edi
mov dword [edx], 0
pop ebx
pop esi
pop ebp
add esp, 8
ret

Function at 0x43a660
Capabilities:
Enumerate pe sections

Disassembly:
fild dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push esi
mov esi, ecx
mov cl, byte [esp + 0x14]
fstp qword [esi + 8]
push edi
mov edi, dword [esp + 0x24]
mov dword [esi], 0x5402a0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], edi
mov byte [esi + 0x19], cl
mov byte [esi + 0x18], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0xc]
and eax, 0x7fffffff
mov dword [esi + 0x14], eax
mov dword [esi], 0x5402c0
mov dword [esi + 0x20], 2
call fcn.0048eb90
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43a62e
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0049f2a0
mov eax, dword [eax]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esi + 0x24], eax
je 0x43a670
push eax
mov ecx, edi
call fcn.0049c0b0
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
xor edi, edi
test eax, eax
jbe 0x43a670
push ebx
mov ebx, dword [esp + 0x24]
lea eax, [edi*4]
lea ecx, [eax + ebx]
push ecx
mov ecx, dword [esi + 0x28]
add ecx, eax
call fcn.00463510
mov eax, dword [esi + 0x24]
inc edi
cmp edi, eax
jb 0x43a652
pop ebx
pop edi
mov eax, esi
pop esi
ret 0x20
Function at 0x446380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [esp + 0x210]
push ebp
mov ebp, dword [esp + 0x210]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [esp + 0x58]
push eax
mov eax, dword [ebx + 0x14]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x10]
shl ecx, 2
push ecx
lea edx, [eax + eax*4]
shl edx, 2
push edx
push 0
push 0
call fcn.00436f30
mov eax, dword [esi + 0x3dc]
mov ecx, dword [eax]
mov edx, dword [esi + 0x18]
lea edi, [esi + 0x24]
add esp, 0x14
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1c], edi
call fcn.0045a1d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x224]
push eax
push ecx
push ebp
lea ecx, [esp + 0x94]
mov dword [esp + 0x114], esi
call fcn.0045a310
lea ecx, [esp + 0x88]
call fcn.00453ed0
mov byte [esp + 0x9c], 1
mov edx, dword [edi + 0x3b8]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x88]
push ecx
mov ecx, edi
mov dword [esp + 0x90], eax
call fcn.00463f20
mov dword [esp + 0x14], eax
xor ebp, ebp
lea edi, [esp + 0x68]
push edi
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.00437030
mov eax, dword [esp + 0x22c]
push edi
push edi
push eax
call fcn.004376e0
add esp, 0x18
inc ebp
add edi, 8
cmp ebp, 4
jl 0x446321
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x20]
call fcn.00452770
push 1
lea ecx, [esp + 0x20]
call fcn.00452870
mov cl, byte [esp + 0x228]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x220]
xor eax, eax
test cl, cl
setne al
mov dword [edx + 4], ebx
mov ecx, dword [esp + 0x54]
lea edx, [edi + 0x1c]
dec eax
and eax, 2
or eax, 0x41
mov word [ecx], ax
mov ecx, dword [edx]
mov eax, dword [esp + 0x54]
add eax, 0x40
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [esp + 0x54]
add eax, 8
push eax
push 0x140000
push 0x140000
call fcn.004381e0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x1c]
push esi
lea ecx, [eax + 0x24]
push ecx
push edx
add eax, 8
push eax
push edi
call fcn.00475e00
mov eax, dword [ebx + 0x20]
add esp, 0x20
test eax, eax
jne 0x44640e
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x446407
cmp word [eax + 0x44], 0x100
jl 0x44640e
cmp word [eax + 0x46], 0
jl 0x44640e
mov byte [esp + 0x40], 0
jmp 0x446413
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x1c]
call fcn.0045d3c0
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.00442f80
add esp, 0xc
test eax, eax
je 0x446462
mov cl, byte [edi + 0x30]
lea eax, [edi + 0x30]
neg cl
lea edx, [esp + 0x1c]
sbb ecx, ecx
and eax, ecx
push eax
push 0
push edx
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x98]
call fcn.0045e6c0
lea ecx, [esp + 0x88]
call fcn.0045e550
lea ecx, [esp + 0x1c]
call fcn.0045a090
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00463f20
lea ecx, [esp + 0x1c]
call fcn.0045d3b0
lea ecx, [esp + 0x88]
call fcn.00453e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x44eab0
Capabilities:
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x44eac4
mov eax, dword [esp + 8]
test eax, eax
je 0x44eac4
cmp byte [eax + 0x26], 1
jne 0x44eac4
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x44eac4
cmp dword [eax + 0xc], 3
jg 0x44eac4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x44eac4
cmp dword [ecx], 2
push ebx
push esi
jne 0x44eaab
xor eax, eax
lea esi, [ecx + 7]
mov dl, 0xff
lea esp, [esp]
cmp byte [esi], 0
jne 0x44eaa2
xor ebx, ebx
test eax, eax
sete bl
cmp byte [ecx + ebx*4 + 7], dl
je 0x44eab1
inc eax
add esi, 4
cmp eax, 1
jle 0x44ea90
pop esi
pop ebx
xor al, al
pop edi
ret
xor edx, edx
test eax, eax
sete dl
pop esi
pop ebx
mov eax, dword [ecx + edx*4 + 4]
mov dword [edi], eax
mov al, 1
pop edi
ret
xor al, al
pop edi
ret
Function at 0x44ebe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x414
push ebp
mov ebp, dword [esp + 0x420]
test ebp, ebp
je 0x44eca8
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x44eca8
mov eax, dword [ebp + 4]
cmp eax, 7
je 0x44eb06
cmp eax, 8
jne 0x44eca8
push ebx
mov bl, byte [esp + 0x428]
test bl, bl
setne cl
mov dword [esp + 0x18], 2
movzx eax, cl
lea eax, [esp + eax*4 + 0x1c]
mov byte [eax + 2], 0
mov byte [eax + 1], 0
mov byte [eax], 0
mov byte [eax + 3], 0xff
test cl, cl
sete al
movzx eax, al
lea eax, [esp + eax*4 + 0x1c]
push esi
push 0x2c
mov byte [eax + 2], 0xff
mov byte [eax + 1], 0xff
mov byte [eax], 0xff
mov byte [eax + 3], 0xff
call fcn.0052b380
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x44ec9e
push edi
mov ecx, 0xb
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.00462510
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push 0
push 0
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.00462540
test eax, eax
je 0x44ec81
mov al, byte [esi + 0x29]
test al, al
jne 0x44ebae
cmp dword [esi], 0
je 0x44ec81
mov ecx, ebp
call fcn.004ca8e0
test eax, eax
je 0x44ec81
mov ecx, esi
call fcn.004624d0
mov ecx, dword [ebp + 0x28]
test ecx, ecx
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
jle 0x44ec64
mov ecx, dword [esp + 0x42c]
mov edx, dword [ecx + 0x24]
xor esi, esi
test edx, edx
mov ebp, eax
jle 0x44ec37
movzx di, byte [ebp + 3]
mov ecx, esi
and ecx, 7
mov eax, esi
sar eax, 3
mov edx, 0x80
sar edx, cl
mov cl, byte [eax + ebx]
add eax, ebx
add ebp, 4
cmp di, 0xff
jne 0x44ec1c
or cl, dl
jmp 0x44ec20
not dl
and cl, dl
mov byte [eax], cl
mov eax, dword [esp + 0x42c]
mov ecx, dword [eax + 0x24]
inc esi
cmp esi, ecx
jl 0x44ebf3
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
mov esi, dword [ecx + 0x28]
add eax, edx
mov edx, dword [esp + 0x10]
mov ebp, dword [edx + 0x18]
mov edx, dword [esp + 0x1c]
add ebx, ebp
inc edx
cmp edx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jl 0x44ebe1
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x42c]
mov ecx, esi
call fcn.004624f0
mov ecx, ebp
call fcn.004ca900
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x414
ret
mov ecx, esi
call fcn.00462640
push esi
call fcn.00439d00
add esp, 4
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x414
ret
xor eax, eax
pop ebp
add esp, 0x414
ret
Function at 0x44fdb0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov eax, esi
imul eax, ecx
lea eax, [eax + eax*2]
cmp eax, 0x800000
jae 0x44fd16
cmp ecx, 0xb40
jg 0x44fd16
cmp esi, 0xb40
jle 0x44fd2a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x44fcf7
cmp ecx, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
jl 0x44fe40
cmp esi, 1
jl 0x44fe40
mov esi, dword [esp + 0x64]
mov ecx, esi
mov dword [esi + 0x124], 1
call fcn.00495100
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
xor ebp, ebp
push ebp
push 7
push ebp
push 6
push ecx
push edx
mov ecx, esi
call dword [eax + 0x3c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004caf40
cmp dword [esp + 0x3c], ebp
je 0x44fe37
lea ecx, [esp + 0x20]
call fcn.004ca8e0
test eax, eax
je 0x44fe37
lea ecx, [esp + 0x20]
lea edi, [esi + 0x24]
push ecx
mov ecx, edi
call fcn.004656c0
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov ecx, dword [ebx + 0x54]
push 2
lea edx, [esp + 0x14]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00465fb0
mov dword [esi + 0x110], ebp
mov dword [esi + 0x114], ebp
mov edx, dword [ebx + 0x54]
mov ecx, edi
mov dword [esi + 0x128], edx
call fcn.00465790
mov eax, dword [esi + 0x424]
push eax
mov ecx, edi
mov dword [esi + 0x128], ebp
call fcn.004656c0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.004d8490
lea ecx, [esp + 0x20]
call fcn.004ca900
mov dword [esi + 0x124], ebp
lea ecx, [esp + 0x20]
call fcn.004caf90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4598b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [ecx], 0
je 0x4598e3
mov eax, dword [esp + 4]
push ebx
cmp byte [eax], 0x10
lea edx, [eax + 0x14]
jbe 0x459809
mov byte [eax], 0x10
movzx eax, byte [eax]
test eax, eax
je 0x4598e2
push esi
push edi
mov esi, eax
jmp 0x459820
movsx edi, word [ecx + 4]
movzx eax, byte [edx + 3]
imul eax, edi
movsx edi, word [ecx + 6]
sar eax, 8
add eax, edi
test ah, 0xff
jne 0x45983d
mov ebx, eax
jmp 0x45984b
xor ebx, ebx
test eax, eax
setle bl
dec ebx
and ebx, 0xff
movzx eax, byte [edx]
mov byte [edx + 3], bl
movsx edi, word [ecx + 8]
imul eax, edi
movsx edi, word [ecx + 0xa]
sar eax, 8
add eax, edi
test ah, 0xff
jne 0x45986a
mov ebx, eax
jmp 0x459878
xor ebx, ebx
test eax, eax
setle bl
dec ebx
and ebx, 0xff
movzx eax, byte [edx + 1]
mov byte [edx], bl
movsx edi, word [ecx + 0xc]
imul eax, edi
movsx edi, word [ecx + 0xe]
sar eax, 8
add eax, edi
test ah, 0xff
jne 0x459897
mov ebx, eax
jmp 0x4598a5
xor ebx, ebx
test eax, eax
setle bl
dec ebx
and ebx, 0xff
movzx eax, byte [edx + 2]
mov byte [edx + 1], bl
movsx edi, word [ecx + 0x10]
imul eax, edi
movsx edi, word [ecx + 0x12]
sar eax, 8
add eax, edi
test ah, 0xff
jne 0x4598c5
mov ebx, eax
jmp 0x4598d3
xor ebx, ebx
test eax, eax
setle bl
dec ebx
and ebx, 0xff
mov byte [edx + 2], bl
add edx, 4
dec esi
jne 0x459820
pop edi
pop esi
pop ebx
ret 4

Function at 0x4599b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0
je 0x4599f8
cmp dword [ecx], 0
jne 0x459971
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
ret 4
movsx edx, word [ecx + 4]
push esi
movsx esi, word [eax + 6]
imul esi, edx
sar esi, 8
add word [ecx + 6], si
movsx esi, word [eax + 4]
imul esi, edx
movsx edx, word [ecx + 8]
sar esi, 8
mov word [ecx + 4], si
movsx esi, word [eax + 0xa]
imul esi, edx
sar esi, 8
add word [ecx + 0xa], si
movsx esi, word [eax + 8]
imul esi, edx
movsx edx, word [ecx + 0xc]
sar esi, 8
mov word [ecx + 8], si
movsx esi, word [eax + 0xe]
imul esi, edx
sar esi, 8
add word [ecx + 0xe], si
movsx esi, word [eax + 0xc]
imul esi, edx
movsx edx, word [ecx + 0x10]
sar esi, 8
mov word [ecx + 0xc], si
movsx esi, word [eax + 0x12]
imul esi, edx
sar esi, 8
add word [ecx + 0x12], si
movsx eax, word [eax + 0x10]
imul eax, edx
sar eax, 8
mov word [ecx + 0x10], ax
call fcn.004598f0
pop esi
ret 4
Function at 0x45f870
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x18]
mov ebp, dword [edi + 0x810]
push ebp
call dword [0x53d2c8]
mov eax, dword [edi + 0x87c]
test eax, eax
jne 0x45f88b
push ebx
push 0x7c
call fcn.0052b380
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45f882
mov ecx, dword [esi + 0x420]
mov eax, dword [ecx + 0x1ac]
test eax, eax
jne 0x45f877
call fcn.00486cc0
push eax
push esi
mov ecx, ebx
call fcn.0045f710
jmp 0x45f884
xor eax, eax
mov dword [edi + 0x87c], eax
pop ebx
mov edi, dword [edi + 0x87c]
push ebp
call dword [0x53d2c4]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4626d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 4
push esi
jne 0x4626e1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
je 0x46271c
mov esi, eax
mov al, byte [ecx]
mov dl, byte [ecx + 1]
mov byte [ecx], dl
mov byte [ecx + 1], al
mov al, byte [ecx + 2]
mov dl, byte [ecx + 3]
add ecx, 2
mov byte [ecx], dl
mov byte [ecx + 1], al
add ecx, 2
dec esi
jne 0x4626c1
pop esi
ret
cmp eax, 5
jne 0x46271c
mov eax, dword [esp + 0xc]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
je 0x46271c
mov ecx, dword [esp + 8]
inc ecx
mov esi, eax
mov edi, edi
mov al, byte [ecx - 1]
mov dl, byte [ecx + 2]
mov byte [ecx - 1], dl
mov dl, byte [ecx + 1]
mov byte [ecx + 2], al
mov al, byte [ecx]
mov byte [ecx], dl
mov byte [ecx + 1], al
add ecx, 4
dec esi
jne 0x462700
pop esi
ret
Function at 0x479f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push 0x3c
mov ebx, ecx
call fcn.0052b380
mov esi, eax
add esp, 4
test esi, esi
je 0x479ed6
mov ecx, ebx
call fcn.00442f50
test eax, eax
je 0x479eaf
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1c]
mov cl, byte [eax + 0x109]
test cl, cl
jne 0x479ec5
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 0x3bc]
jne 0x479ec5
mov eax, dword [ecx + 0x3b8]
jmp 0x479ec8
add eax, 0xc
push eax
mov ecx, esi
call fcn.00452770
mov esi, eax
test esi, esi
jne 0x479edd
pop esi
xor eax, eax
pop ebx
ret 0xc
mov ecx, dword [ebx + 0x48]
mov eax, dword [esp + 0xc]
mov dword [esi + 0x18], ecx
mov dword [ebx + 0x48], esi
push ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp]
mov dword [esi + 0x1c], edx
movzx cx, byte [eax + 3]
mov word [esi + 0xa], cx
movzx dx, byte [eax]
mov word [esi + 8], dx
movzx cx, byte [eax + 1]
mov word [esi + 6], cx
movzx dx, byte [eax + 2]
mov eax, dword [esp + 0x14]
test eax, eax
push edi
lea edi, [esi + 4]
mov word [edi], dx
je 0x479f33
lea ecx, [eax + 0x1c]
cmp dword [ecx], 0
je 0x479f33
push 1
push edi
call fcn.00459650
movzx eax, word [edi + 6]
cmp eax, 0xff
jge 0x479f6e
movzx ecx, word [edi + 4]
movzx edx, word [edi + 2]
inc eax
imul ecx, eax
imul edx, eax
sar ecx, 8
mov word [edi + 4], cx
movzx ecx, word [edi]
imul ecx, eax
sar edx, 8
sar ecx, 8
mov word [edi + 2], dx
mov word [edi], cx
mov eax, 1
jmp 0x479f70
xor eax, eax
mov ecx, ebx
mov byte [esi + 0x24], al
call fcn.00442f50
test eax, eax
je 0x479f93
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x1c]
mov cl, byte [eax + 0x109]
test cl, cl
je 0x479f93
add eax, 0xc
jmp 0x479fac
mov ebx, dword [ebx + 0x24]
mov eax, dword [ebx + 4]
cmp ebx, dword [eax + 0x3bc]
jne 0x479fa9
mov eax, dword [eax + 0x3b8]
jmp 0x479fac
lea eax, [ebx + 0xc]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x479fba
mov ecx, esi
call fcn.0045d3c0
mov eax, dword [ebp]
inc eax
pop edi
mov dword [ebp], eax
pop ebp
mov eax, esi
pop esi
pop ebx
ret 0xc