joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ea60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov dword [esp], edx
mov esi, eax
imul edi, esi, 0x45
cmp dword [edi*4 + 0x47cd08], 0
jne 0x46ea86
mov eax, dword [0x47a828]
mov dword [esp + 4], eax
jmp 0x46eb17
call fcn.00402908
mov eax, 0xff
call fcn.00402bac
mov ebx, eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 0x19
call fcn.00402b8c
mov al, byte [0x47a7f4]
mov byte [esp + 9], al
mov byte [esp + 0xa], bl
mov eax, ebx
xor al, 0
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
lea eax, [esp + 8]
call fcn.0046e688
mov byte [esp + 0x20], al
push 0xffffffffffffffff
mov eax, dword [edi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [esp + 0x21]
lea edx, [esp + 8]
mov eax, esi
call fcn.0046e320
mov dword [esp + 4], eax
mov eax, dword [edi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_ReleaseMutex
xor edx, edx
lea eax, [esp + 0x27]
mov cl, byte [eax]
xor cl, bl
mov esi, dword [esp]
mov byte [esi + edx], cl
inc edx
inc eax
cmp edx, 4
jne 0x46eb06
mov eax, dword [esp + 4]
add esp, 0x3c
pop edi
pop esi
pop ebx
ret

Function at 0x46eb24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x45
cmp dword [eax*4 + 0x47cd08], 0
cmp esi, 0x1f2
mov eax, esi
and eax, 0x8000000f
jns 0x46eb54
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
je 0x46eb63
mov esi, dword [0x47a864]
jmp 0x46ec02
call fcn.00402908
mov eax, 0xff
call fcn.00402bac
mov ebx, eax
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x19
call fcn.00402b8c
mov al, byte [0x47a804]
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], bl
mov al, byte [ebp - 5]
xor al, bl
mov byte [ebp - 0x1b], al
mov eax, esi
shr eax, 8
xor al, bl
mov byte [ebp - 0x1a], al
mov eax, esi
and al, 0xff
xor al, bl
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x18]
mov ecx, 0x10
mov edx, dword [ebp + 8]
call fcn.00406894
mov edx, 0x10
lea eax, [ebp - 0x18]
xor byte [eax], bl
inc eax
dec edx
jne 0x46ebc1
lea eax, [ebp - 0x1e]
call fcn.0046e688
mov byte [ebp - 6], al
push 0xffffffffffffffff
imul ebx, dword [ebp - 4], 0x45
mov eax, dword [ebx*4 + 0x47cd18]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [ebp - 0x37]
lea edx, [ebp - 0x1e]
mov eax, dword [ebp - 4]
call fcn.0046e320
mov esi, eax
mov eax, dword [ebx*4 + 0x47cd18]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46ec0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x45
cmp dword [eax*4 + 0x47cd08], 0
cmp esi, 0x1f2
mov eax, esi
and eax, 0x8000000f
jns 0x46ec3d
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
je 0x46ec4c
mov esi, dword [0x47a864]
jmp 0x46ecf5
call fcn.00402908
mov eax, 0xff
call fcn.00402bac
mov ebx, eax
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x19
call fcn.00402b8c
mov al, byte [0x47a800]
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], bl
mov al, byte [ebp - 5]
xor al, bl
mov byte [ebp - 0x1b], al
mov eax, esi
shr eax, 8
xor al, bl
mov byte [ebp - 0x1a], al
mov eax, esi
and al, 0xff
xor al, bl
mov byte [ebp - 0x19], al
mov eax, 0x12
lea edx, [ebp - 0x18]
xor byte [edx], bl
inc edx
dec eax
jne 0x46ec9a
lea eax, [ebp - 0x1e]
call fcn.0046e688
mov byte [ebp - 6], al
push 0xffffffffffffffff
imul eax, dword [ebp - 4], 0x45
mov eax, dword [eax*4 + 0x47cd18]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [ebp - 0x37]
lea edx, [ebp - 0x1e]
mov eax, dword [ebp - 4]
call fcn.0046e320
mov esi, eax
imul eax, dword [ebp - 4], 0x45
mov eax, dword [eax*4 + 0x47cd18]
push eax
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
lea edx, [ebp - 0x31]
mov cl, byte [edx]
xor cl, bl
mov edi, dword [ebp + 8]
mov byte [edi + eax], cl
inc eax
inc edx
cmp eax, 0x10
jne 0x46ece4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46ed00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov dword [esp], edx
mov esi, eax
imul edi, esi, 0x45
cmp dword [edi*4 + 0x47cd08], 0
jne 0x46ed26
mov eax, dword [0x47a828]
mov dword [esp + 4], eax
jmp 0x46edb7
call fcn.00402908
mov eax, 0xff
call fcn.00402bac
mov ebx, eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 0x19
call fcn.00402b8c
mov al, byte [0x47a7d8]
mov byte [esp + 9], al
mov byte [esp + 0xa], bl
mov eax, ebx
xor al, 0
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
lea eax, [esp + 8]
call fcn.0046e688
mov byte [esp + 0x20], al
push 0xffffffffffffffff
mov eax, dword [edi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [esp + 0x21]
lea edx, [esp + 8]
mov eax, esi
call fcn.0046e320
mov dword [esp + 4], eax
mov eax, dword [edi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_ReleaseMutex
xor edx, edx
lea eax, [esp + 0x27]
mov cl, byte [eax]
xor cl, bl
mov esi, dword [esp]
mov byte [esi + edx], cl
inc edx
inc eax
cmp edx, 8
jne 0x46eda6
mov eax, dword [esp + 4]
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x46f13c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov dword [esp], edx
mov esi, eax
imul edi, esi, 0x45
cmp dword [edi*4 + 0x47cd08], 0
jne 0x46f162
mov eax, dword [0x47a828]
mov dword [esp + 4], eax
jmp 0x46f1f3
call fcn.00402908
mov eax, 0xff
call fcn.00402bac
mov ebx, eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 0x19
call fcn.00402b8c
mov al, byte [0x47a7fc]
mov byte [esp + 9], al
mov byte [esp + 0xa], bl
mov eax, ebx
xor al, 0
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
lea eax, [esp + 8]
call fcn.0046e688
mov byte [esp + 0x20], al
push 0xffffffffffffffff
mov eax, dword [edi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [esp + 0x21]
lea edx, [esp + 8]
mov eax, esi
call fcn.0046e320
mov dword [esp + 4], eax
mov eax, dword [edi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_ReleaseMutex
xor edx, edx
lea eax, [esp + 0x27]
mov cl, byte [eax]
xor cl, bl
mov esi, dword [esp]
mov byte [esi + edx], cl
inc edx
inc eax
cmp edx, 0x10
jne 0x46f1e2
mov eax, dword [esp + 4]
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x470938
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x45
cmp dword [eax*4 + 0x47cd08], 0
jne 0x470962
mov edi, dword [0x47a828]
jmp 0x470a11
call fcn.00402908
mov eax, 0xff
call fcn.00402bac
mov ebx, eax
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x19
call fcn.00402b8c
mov al, byte [0x47a7d0]
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], bl
mov al, byte [ebp - 5]
xor al, bl
mov byte [ebp - 0x1b], al
mov eax, esi
shr eax, 8
xor al, bl
mov byte [ebp - 0x1a], al
mov eax, esi
and al, 0xff
xor al, bl
mov byte [ebp - 0x19], al
mov edx, 0x12
lea eax, [ebp - 0x18]
xor byte [eax], bl
inc eax
dec edx
jne 0x4709b0
lea eax, [ebp - 0x1e]
call fcn.0046e688
mov byte [ebp - 6], al
push 0xffffffffffffffff
imul esi, dword [ebp - 4], 0x45
mov eax, dword [esi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [ebp - 0x37]
lea edx, [ebp - 0x1e]
mov eax, dword [ebp - 4]
call fcn.0046e320
mov edi, eax
mov eax, dword [esi*4 + 0x47cd18]
push eax
call sub.kernel32.dll_ReleaseMutex
mov al, byte [ebp - 0x30]
xor al, bl
and eax, 0xff
shl eax, 8
mov edx, dword [ebp + 8]
mov word [edx], ax
xor bl, byte [ebp - 0x31]
xor eax, eax
mov al, bl
mov edx, dword [ebp + 8]
or word [edx], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47119c
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x47a9e4]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x4711d8
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4711f0
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4711e9
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402b8c
xor edx, edx
mov eax, 0x47abe4
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x47125a
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x47120e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x471498
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4714b1
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4714aa
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4714c3
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4714bc
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0047108c
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4714dd
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0047119c
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x471562
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x47157f
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0047111c
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4715a8
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4715c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4715d9
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4715d2
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4715ed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00470f84
test bl, bl
jne 0x4716c0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4821c8
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x471624
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x471638
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00471498
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x47166a
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x471619
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x47168d
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x47169e
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4716b2
jmp 0x47177b
cmp bl, 1
jne 0x47177b
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x482222
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4716e0
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4716f4
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00471498
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x471726
sub ebx, 6
inc dword [ebp - 8]
jne 0x4716d5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x47174d
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x47175e
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x471772
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00471008
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x401850
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x401861
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40187f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4018b6
test ecx, ecx
je 0x4018af
test esi, esi
ja 0x401870
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x4043e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
xor edx, edx
lea esp, [esp]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41ce40], ecx
inc edx
cmp edx, 0x100
jb 0x4043f0
cmp edx, 0x800
jae 0x4044c9
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x41ca40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41ce40]
inc edx
mov dword [edx*4 + 0x41ce3c], eax
cmp edx, 0x800
jb 0x4044a0
lea esi, [esp + 0x18]
mov dword [0x41bc68], 0x405010
call fcn.004050d0
test eax, eax
je 0x404594
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, eax
shr eax, 4
and eax, 0xf00f
shr esi, 8
and esi, 0xff00f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
mov ecx, 0x41b008
xor edx, edx
cmp dword [ecx - 8], eax
jne 0x404522
cmp dword [ecx - 4], ebp
jne 0x404522
cmp dword [ecx], ebx
je 0x404560
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x404514
or ecx, 0xffffffff
sub ecx, 0
je 0x404579
sub ecx, 1
je 0x404564
sub ecx, 1
jne 0x404594
cmp esi, 6
jb 0x404594
jne 0x40458a
cmp dword [esp + 0x14], 0xf
jb 0x404594
mov dword [0x41bc68], 0x4050c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, edi
jmp 0x404531
cmp esi, 5
jb 0x404594
jne 0x40458a
mov eax, dword [esp + 0x14]
cmp eax, 6
jb 0x404594
cmp eax, 0xa
jmp 0x404588
cmp esi, 6
jb 0x404594
jne 0x40458a
cmp dword [esp + 0x14], 0x100c
je 0x404594
mov dword [0x41bc68], 0x4050c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x405640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x40565d
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x40568d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40568d
inc edi
cmp edi, ebx
jb 0x405680
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x405795
cmp eax, 3
jbe 0x4056c0
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x4056fb
cmp al, 0xff
je 0x4056fb
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x405673
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4056a6
movzx ecx, byte [esi + 0x41828c]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x418284], 0
mov al, byte [eax + 4]
je 0x4056e9
test al, al
je 0x4056e9
cmp al, 0xff
jne 0x4056a6
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x405673
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x405767
movzx edx, byte [esi + 0x41828c]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x40574c
cmp bl, 0xff
jne 0x405763
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x405720
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x405673
pop edi
pop ebx
cmp eax, 3
jbe 0x4057ac
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x407a10
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407a39
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x407a39
mov eax, dword [esp + 0xc]
mov dword [eax], 1
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
xor eax, eax
pop esi
ret
Function at 0x407a70
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jg 0x407a92
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
lea eax, [edi + 4]
push esi
push eax
call fcn.0040b2a4
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407ad8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x416248
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x407af1
test esi, esi
je 0x407ae5
push esi
call fcn.0040ba4a
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x20]
and ecx, 0xffff
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
and eax, 0xffff
mov dword [ecx], eax
test esi, esi
je 0x407b33
push esi
call fcn.0040ba4a
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x407c80
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx]
push esi
push edi
mov dword [esp + 0xc], ebx
test eax, eax
je 0x407d86
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x407d86
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [ebx]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 0x10]
jbe 0x407cd3
call fcn.0040bbb2
push ebp
mov ebp, dword [esi]
mov esi, dword [ebx]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x407ce5
call fcn.0040bbb2
mov esi, dword [esi]
test ebp, ebp
je 0x407cef
cmp ebp, esi
je 0x407cf4
call fcn.0040bbb2
cmp edi, ebx
je 0x407d50
test ebp, ebp
jne 0x407d46
call fcn.0040bbb2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x407d0d
call fcn.0040bbb2
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x407d18
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x407d7c
test ebp, ebp
jne 0x407d4b
call fcn.0040bbb2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x407d3d
call fcn.0040bbb2
mov ebx, dword [esp + 0x10]
add edi, 0x1c
jmp 0x407cd6
mov eax, dword [ebp]
jmp 0x407d03
mov eax, dword [ebp]
jmp 0x407d33
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov esi, dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x407d7c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407d7c
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x407d7d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407d7d
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebx
add esp, 8
ret 4