joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f7e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c12c1
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.004bb1a0
mov eax, dword [0x503298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
push 0xffe
mov word [ebp - 0x1010], ax
xor edi, edi
lea eax, [ebp - 0x100e]
push edi
push eax
call fcn.004a4f60
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x1020]
lea esi, [ebp - 0x1010]
call fcn.0040cf86
mov dword [ebp - 4], edi
cmp word [ebp - 0x1010], di
je 0x416034
push esi
lea ecx, [ebp - 0x1014]
call fcn.0040b529
push eax
lea ecx, [ebp - 0x1020]
call fcn.0040d01e
lea ecx, [ebp - 0x1014]
call fcn.0040b44b
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x416024
cmp word [esi], di
jne 0x416001
push ecx
lea ecx, [ebp - 0x1020]
call fcn.0040d1a4
cmp dword [ebp - 0x1018], 0
jle 0x416083
push edi
lea ecx, [ebp - 0x1020]
call fcn.0040d003
push eax
lea ecx, [ebp - 0x1014]
call fcn.00405a14
lea eax, [ebp - 0x1014]
push eax
mov ecx, ebx
call fcn.00417049
lea ecx, [ebp - 0x1014]
call fcn.0040b44b
inc edi
cmp edi, dword [ebp - 0x1018]
jl 0x416049
lea ecx, [ebp - 0x1020]
call fcn.0040cfc7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a40c7
leave
ret
Function at 0x41634f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x503298]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ecx + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], ecx
push eax
jne 0x4163c6
call fcn.0040ce8d
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x260]
cmp eax, 0xffffffff
mov dword [ecx + 4], eax
jne 0x4163d3
xor al, al
jmp 0x4164a0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jmp 0x4163bd
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040b529
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
call fcn.0040b4c1
lea ecx, [ebp - 0x260]
call fcn.0040b44b
mov edx, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x25c]
test edx, edx
je 0x41641b
mov eax, ecx
shr eax, 4
and al, 1
mov byte [edx], al
test ebx, ebx
je 0x416427
mov eax, ecx
shr eax, 1
and al, 1
mov byte [ebx], al
test edi, edi
je 0x416430
and cl, 1
mov byte [edi], cl
test esi, esi
je 0x41644a
mov ecx, dword [ebp - 0x240]
xor eax, eax
add eax, dword [ebp - 0x23c]
adc ecx, 0
mov dword [esi], eax
mov dword [esi + 4], ecx
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x416474
lea ecx, [ebp - 0x248]
call fcn.0041592c
push edx
push eax
lea ecx, [ebp - 0x27c]
call fcn.0040e1aa
push eax
mov ecx, esi
call fcn.0040e194
mov esi, dword [ebp - 0x270]
test esi, esi
je 0x41649e
lea ecx, [ebp - 0x258]
call fcn.0041592c
push edx
push eax
lea ecx, [ebp - 0x274]
call fcn.0040e1aa
push eax
mov ecx, esi
call fcn.0040e194
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a40c7
leave
ret 0x1c

Function at 0x416527
Capabilities:
Create process on windows

Disassembly:
push esi
push 0xa
mov esi, ecx
push 0
mov ecx, 0x508c2c
call fcn.0040ce8d
push eax
mov ecx, esi
call fcn.0040ce8d
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop esi
ret

Function at 0x41659a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x503298]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x416615
cmp dword [ebp - 0x114], 5
jne 0x4165e8
xor eax, eax
cmp dword [ebp - 0x110], eax
setne al
add eax, 0x4105
jmp 0x416617
cmp dword [ebp - 0x114], 6
jne 0x416615
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x41660e
dec eax
je 0x416607
dec eax
mov eax, 0x4109
jmp 0x416617
mov eax, 0x4108
jmp 0x416617
mov eax, 0x4107
jmp 0x416617
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a40c7
leave
ret
Function at 0x416786
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
mov esi, ecx
push esi
push 0x41673e
push eax
push eax
call fcn.004a82e9
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 0xc], eax
pop esi
leave
ret

Function at 0x4167c9
Capabilities:
Terminate thread

Disassembly:
cmp dword [ecx + 8], 0
je 0x4167da
push 0
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret

Function at 0x41690d
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x4c0b00
call fcn.004ab9ba
mov esi, ecx
push 0x2f
xor ebx, ebx
push 0x5c
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], 1
call fcn.0040c423
push eax
lea ecx, [ebp + 8]
call fcn.0040b4c1
lea ecx, [ebp - 0x10]
call fcn.0040b44b
lea eax, [ebp + 8]
push eax
mov edx, str.Global_
lea ecx, [ebp - 0x10]
call fcn.0040bd1a
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ce8d
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [ebp - 0x10]
mov dword [esi], eax
mov byte [ebp - 4], bl
call fcn.0040b44b
cmp dword [esi], ebx
jne 0x4169b5
lea eax, [ebp + 8]
push eax
mov edx, str.Local_
lea ecx, [ebp - 0x10]
call fcn.0040bd1a
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040ce8d
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.0040b44b
cmp dword [esi], ebx
je 0x4169ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4169ec
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4169e5
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4169ec
cmp eax, 0x80
je 0x4169ec
mov ecx, esi
call fcn.004169fe
lea ecx, [ebp + 8]
call fcn.0040b44b
mov eax, esi
call fcn.004ab988
ret 8
Function at 0x41fb25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 0x14]
push edi
lea eax, [ebp - 0xc]
push eax
add ecx, 8
mov dword [ebp - 0x18], ebx
call fcn.0041f3c5
xor esi, esi
inc esi
xor edi, edi
cmp dword [ebx + 0x1c], esi
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], esi
jle 0x41fc49
mov eax, dword [ebp + 0xc]
dec eax
push 0x10
movd xmm1, eax
mov eax, dword [ebp - 0x18]
pop edx
cvtdq2pd xmm1, xmm1
mov dword [ebp - 0x14], edx
mov ecx, dword [eax + 0x14]
add ecx, edx
movsd xmm0, qword [ecx]
mulsd xmm0, xmm1
add ecx, 8
addsd xmm0, qword [0x4ee650]
movsd qword [ebp - 0x30], xmm0
mov eax, dword [ebp - 0x30]
sub eax, edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.0041f3c5
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], edx
jle 0x41fc2d
mov ecx, dword [ebp - 8]
mov eax, ebx
mov esi, 0xff00ff
shr ebx, 8
and ebx, esi
shr ecx, 8
and eax, esi
and ecx, esi
mov esi, dword [ebp - 8]
sub ecx, ebx
and esi, 0xff00ff
shl ebx, 8
sub esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov eax, edx
shl eax, 8
cdq
idiv dword [ebp - 4]
mov edx, eax
imul esi, edx
imul ecx, edx
shr esi, 8
add esi, dword [ebp - 0x1c]
and ecx, 0xffffff00
add ecx, ebx
xor esi, ecx
mov ecx, dword [ebp - 0x20]
mov eax, ecx
imul eax, edx
mov edx, dword [ebp - 0xc]
and eax, 0xffffff00
and esi, 0xff00ff
add eax, ebx
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax + edi*4], esi
mov esi, dword [ebp - 0x24]
inc edi
inc edx
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp - 4]
jl 0x41fbd9
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
inc esi
add edx, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
cmp esi, dword [eax + 0x1c]
jl 0x41fb6e
mov eax, dword [ebp + 0xc]
cmp edi, eax
jge 0x41fc5f
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x1c]
lea edi, [ecx + edi*4]
mov ecx, eax
mov eax, ebx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4269f6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c60b3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x503298]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00421909
and dword [esp + 0x38], 0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
fstp dword [esp]
push dword [ebp + 0x10]
lea eax, [esp + 0x14]
push dword [ebp + 8]
push eax
call fcn.00425af2
push 0x508cc4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004269cb
lea ecx, [esp + 0xc]
call fcn.0040971a
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4275a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c60b3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x503298]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00421909
and dword [esp + 0x38], 0
push dword [ebp + 8]
movss xmm2, dword [0x4ee3f4]
lea ecx, [esp + 0x10]
call fcn.00422957
mov eax, dword [esi]
push 0x508cc4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x58]
lea ecx, [esp + 0xc]
call fcn.0040971a
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42e7ec
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xca
mov edi, 0xcb
jne 0x42e818
call fcn.00433513
cmp byte [esi + 0x40], 0
je 0x42e815
mov dword [esi + 0x14], 0xcf
mov al, 1
pop edi
pop esi
ret
mov dword [esi + 0x14], edi
cmp dword [esi + 0x14], edi
jne 0x42e882
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x42e877
mov eax, dword [esi + 8]
test eax, eax
je 0x42e834
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x42e873
cmp eax, 2
je 0x42e877
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42e829
cmp eax, 3
je 0x42e858
cmp eax, 1
jne 0x42e829
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x42e829
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x42e829
xor al, al
jmp 0x42e812
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x42e8a2
cmp dword [esi + 0x14], 0xcc
je 0x42e8a2
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
call dword [eax]
pop ecx
pop edi
mov ecx, esi
pop esi
jmp 0x42e8ab
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0xcc
cmp dword [edi + 0x14], esi
je 0x42e8cb
mov eax, dword [edi + 0x180]
push edi
call dword [eax]
and dword [edi + 0x78], 0
pop ecx
mov dword [edi + 0x14], esi
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
je 0x42e93b
lea ebx, [edi + 0x78]
mov eax, dword [ebx]
jmp 0x42e912
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x42e8f8
mov dword [ecx + 4], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
push edi
call dword [eax]
pop ecx
mov eax, dword [edi + 0x184]
mov esi, dword [ebx]
push 0
push ebx
push 0
push edi
call dword [eax + 4]
mov eax, dword [ebx]
add esp, 0x10
cmp eax, esi
je 0x42e951
cmp eax, dword [edi + 0x60]
jb 0x42e8de
mov eax, dword [edi + 0x180]
push edi
call dword [eax + 4]
mov eax, dword [edi + 0x180]
push edi
call dword [eax]
and dword [ebx], 0
mov eax, dword [edi + 0x180]
pop ecx
cmp byte [eax + 8], 0
pop ecx
jne 0x42e8da
xor eax, eax
cmp byte [edi + 0x41], al
setne al
add eax, 0xcd
mov dword [edi + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebx
ret
xor al, al
jmp 0x42e94d
Function at 0x43c3bf
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x503298]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov edx, ecx
mov dword [ebp - 0x28], edx
mov cl, byte [edx + 8]
mov byte [ebp - 0x15], cl
cmp cl, 3
je 0x43c557
mov eax, dword [edx]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
test cl, 2
je 0x43c424
mov edi, dword [ebp + 8]
movzx edx, byte [edx + 9]
movzx eax, byte [edi]
mov ecx, edx
sub ecx, eax
movzx eax, byte [edi + 1]
mov dword [ebp - 0x14], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [edi + 2]
sub edx, eax
push 3
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
pop edi
jmp 0x43c437
mov eax, dword [ebp + 8]
movzx ecx, byte [edx + 9]
movzx eax, byte [eax + 3]
sub ecx, eax
xor edi, edi
mov dword [ebp - 0x14], ecx
inc edi
test byte [ebp - 0x15], 4
mov dword [ebp - 0x20], edi
je 0x43c455
mov eax, dword [ebp + 8]
movzx ecx, byte [edx + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [ebp + edi*4 - 0x14], ecx
inc edi
mov dword [ebp - 0x20], edi
mov eax, esi
test edi, edi
jle 0x43c555
mov edx, esi
cmp dword [ebp + eax*4 - 0x14], esi
jg 0x43c46d
mov dword [ebp + eax*4 - 0x14], esi
jmp 0x43c470
xor edx, edx
inc edx
inc eax
cmp eax, edi
jl 0x43c461
test dx, dx
mov edx, dword [ebp - 0x28]
je 0x43c555
movzx eax, byte [edx + 9]
dec eax
dec eax
je 0x43c542
dec eax
dec eax
je 0x43c516
sub eax, 4
je 0x43c4f4
sub eax, 8
jne 0x43c555
mov eax, dword [ebp - 0x1c]
imul eax, edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x43c555
mov eax, esi
movzx esi, byte [ebx]
xor edx, edx
div dword [ebp - 0x20]
mov eax, 0x100
imul si, ax
movzx eax, byte [ebx + 1]
add si, ax
mov cx, word [ebp + edx*4 - 0x14]
shr si, cl
movzx ecx, si
mov esi, dword [ebp - 0x24]
mov eax, ecx
shr eax, 8
inc esi
mov byte [ebx], al
mov byte [ebx + 1], cl
lea ebx, [ebx + 2]
mov dword [ebp - 0x24], esi
cmp esi, dword [ebp - 0x1c]
jb 0x43c4b4
jmp 0x43c555
mov eax, dword [ebp - 0x1c]
imul eax, edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x43c555
xor edx, edx
mov eax, esi
div edi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [ebx], cl
inc ebx
inc esi
cmp esi, dword [ebp - 0x1c]
jb 0x43c501
jmp 0x43c555
mov esi, dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, 0xf0
sar edx, cl
push 0xf
pop eax
sar eax, cl
and dl, 0xf0
or dl, al
test esi, esi
je 0x43c555
mov al, byte [ebx]
mov cl, byte [ebp - 0x14]
shr al, cl
and al, dl
mov byte [ebx], al
inc ebx
dec esi
jne 0x43c531
jmp 0x43c555
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x43c555
mov al, byte [ebx]
shr al, 1
and al, 0x55
mov byte [ebx], al
inc ebx
dec ecx
jne 0x43c549
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a40c7
leave
ret
Function at 0x44f63a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
push esi
push edi
mov edi, edx
dec eax
je 0x44f689
dec eax
je 0x44f68c
dec eax
jne 0x44f689
xor esi, esi
cmp dword [ecx + 0x14], esi
jle 0x44f689
mov eax, dword [ecx + 0x10]
push ebx
mov edx, dword [ecx + 8]
imul edx, esi
add edx, dword [ecx]
xor ebx, ebx
test eax, eax
jle 0x44f682
movzx eax, byte [edx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [edi]
cvttss2si eax, xmm0
mov byte [edx], al
add edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
inc ebx
cmp ebx, eax
jl 0x44f663
inc esi
cmp esi, dword [ecx + 0x14]
jl 0x44f655
pop ebx
pop edi
pop esi
ret
pop edi
pop esi
jmp fcn.0045aee8
Function at 0x45949f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ecx + 8]
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.00425b64
jmp 0x45959f
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
cmp ebx, eax
jge 0x45959f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 8]
movd xmm0, ebx
imul eax, ebx
mov ebx, dword [ebp + 8]
add eax, dword [edx]
cvtdq2pd xmm0, xmm0
mov dword [ecx + 0x34], eax
subsd xmm0, qword [ebx + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, edi
mov dword [ebp - 0xc], edi
mulsd xmm0, xmm0
movsd qword [ebx + 0x28], xmm0
mov esi, dword [edx + 0xc]
imul esi, edi
add esi, dword [ebx + 0x34]
mov dword [ebp - 8], esi
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0041d104
mov edi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
and esi, 0xff00ff
shr ecx, 8
mov eax, edi
shr eax, 0x18
mov edx, 0x100
sub edx, eax
imul esi, edx
mov eax, ecx
and eax, 0xffff00ff
imul eax, edx
shr esi, 8
xor esi, eax
mov eax, 0xff00ff
and ecx, eax
imul ecx, edx
and esi, eax
mov eax, dword [ebp - 8]
xor esi, ecx
mov ecx, dword [ebp - 0xc]
add esi, edi
mov dword [eax], esi
mov edx, dword [ebx + 0x30]
mov esi, eax
add esi, dword [edx + 0xc]
mov eax, dword [ebp - 0x10]
inc ecx
dec eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x45951b
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x18]
jl 0x4594e3
lea ecx, [ebp - 0x30]
call fcn.00425b7c
test al, al
jne 0x4594b9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4595b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ecx + 8]
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.00425b64
jmp 0x4596dd
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
cmp ebx, eax
jge 0x4596dd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + 8]
movd xmm1, ebx
imul eax, ebx
mov ebx, dword [ebp + 8]
add eax, dword [edx]
movss xmm0, dword [ebx + 0x54]
cvtdq2ps xmm1, xmm1
mov dword [ecx + 0x6c], eax
mulss xmm0, xmm1
mov dword [ebp - 0x10], esi
mov ecx, edi
addss xmm0, dword [ebx + 0x58]
mov dword [ebp - 0xc], edi
cvtps2pd xmm0, xmm0
subsd xmm0, qword [ebx + 8]
movsd qword [ebx + 0x40], xmm0
movss xmm0, dword [ebx + 0x60]
mulss xmm0, xmm1
addss xmm0, dword [ebx + 0x64]
cvtps2pd xmm0, xmm0
subsd xmm0, qword [ebx + 0x10]
movsd qword [ebx + 0x48], xmm0
mov esi, dword [edx + 0xc]
imul esi, edi
add esi, dword [ebx + 0x6c]
mov dword [ebp - 8], esi
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.0041d16a
mov edi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
and esi, 0xff00ff
shr ecx, 8
mov eax, edi
shr eax, 0x18
mov edx, 0x100
sub edx, eax
imul esi, edx
mov eax, ecx
and eax, 0xffff00ff
imul eax, edx
shr esi, 8
xor esi, eax
mov eax, 0xff00ff
and ecx, eax
imul ecx, edx
and esi, eax
mov eax, dword [ebp - 8]
xor esi, ecx
mov ecx, dword [ebp - 0xc]
add esi, edi
mov dword [eax], esi
mov edx, dword [ebx + 0x68]
mov esi, eax
add esi, dword [edx + 0xc]
mov eax, dword [ebp - 0x10]
inc ecx
dec eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x459659
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x18]
jl 0x4595fa
lea ecx, [ebp - 0x30]
call fcn.00425b7c
test al, al
jne 0x4595d0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4596f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ecx + 8]
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.00425b64
call fcn.00425b7c
test al, al
je 0x45984a
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp ecx, eax
jge 0x45983a
mov edx, dword [ebx + 0x30]
mov eax, dword [edx + 8]
imul eax, ecx
add eax, dword [edx]
cmp byte [ebx + 0x28], 0
mov dword [ebx + 0x34], eax
je 0x45977a
mov eax, dword [ebx + 0x10]
imul eax, ecx
sub eax, dword [ebx + 0xc]
sar eax, 0xc
cmp dword [ebx + 4], eax
mov ecx, eax
cmovl ecx, dword [ebx + 4]
and dword [ebp + 8], 0
test eax, eax
cmovs ecx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4]
mov dword [ebx + 8], eax
jmp 0x4597a5
cmp byte [ebx + 0x29], 0
jne 0x4597a5
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [ebx + 0x20]
mulsd xmm0, qword [ebx + 0x18]
addsd xmm0, qword [0x4ee650]
movsd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0xc], eax
mov dword [ebp - 0xc], esi
mov esi, dword [edx + 0xc]
imul esi, edi
add esi, dword [ebx + 0x34]
mov ecx, edi
mov dword [ebp - 8], edi
mov dword [ebp + 8], esi
push ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0041d03e
mov edi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
and esi, 0xff00ff
shr ecx, 8
mov eax, edi
shr eax, 0x18
mov edx, 0x100
sub edx, eax
imul esi, edx
mov eax, ecx
and eax, 0xffff00ff
imul eax, edx
shr esi, 8
xor esi, eax
mov eax, 0xff00ff
and ecx, eax
imul ecx, edx
and esi, eax
mov eax, dword [ebp + 8]
xor esi, ecx
mov ecx, dword [ebp - 8]
add esi, edi
mov dword [eax], esi
mov edx, dword [ebx + 0x30]
mov esi, eax
add esi, dword [edx + 0xc]
mov eax, dword [ebp - 0xc]
inc ecx
dec eax
mov dword [ebp - 8], ecx
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x4597b9
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x459740
lea ecx, [ebp - 0x38]
call fcn.00425b7c
test al, al
jne 0x459719
pop edi
pop esi
pop ebx
leave
ret 4