joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472871
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4afec8
je 0x47292d
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x472915
mov esi, dword [ebx + 4]
jmp 0x47290f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4728ff
cmp dword [ebp - 0xc], 4
jne 0x4728ff
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4728f7
or dword [eax + 0x9c], ecx
jmp 0x4728ff
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4728c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4728a6
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x472f66
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x47dce4
call fcn.0045378c
sub esp, 0x124
mov eax, dword [0x4b0b90]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x473074
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x473048
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0041cca0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00472f66
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00411480
test bl, bl
jne 0x473048
or dword [ebp - 4], 0xffffffff
jmp 0x472fb3
cmp esi, 0x103
je 0x473058
cmp esi, 0x3f2
jne 0x473068
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045040c
leave
ret 8
Function at 0x475edf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x475f14
cmp edi, dword [esi + 0xc]
jge 0x475f14
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475f14
cmp edi, dword [eax + 8]
jge 0x475f14
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x475f16
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x47601a
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x47604e
jmp fcn.00468c2c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4760bf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4761b8
cmp eax, dword [edi + 0xc]
jge 0x4761b8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x476110
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4761a1
cmp dword [ebp + 0xc], ebx
je 0x4761a1
jmp 0x47613a
push 0x10
call fcn.00475dab
cmp eax, ebx
je 0x476126
mov ecx, eax
call fcn.00476011
mov esi, eax
jmp 0x476128
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x476151
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x476161
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x476173
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00468c2c
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0044ffa0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4761b3
cmp ecx, dword [esi + 8]
jge 0x4761b3
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4761b9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x476277
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4762a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4762c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004761e1
jmp 0x4762c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4762c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004761e1
test edi, edi
mov eax, edi
jne 0x4762ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4b640c]
test ecx, ecx
je 0x476376
jmp 0x476276
ret 8

Function at 0x4879f3
Capabilities:
Encode data using xor

Disassembly:
inc edx
je 0x487a19
hlt
pop edi
xchg esi, eax
or dword [ecx + 0x422a05c], edx
pushal
sbb al, 0x81
pop eax
fnstsw word [ebp - 0x6c68ad50]
xor eax, 0x5b7f029
mov cl, 0xfc
push 0x1a
add eax, 0x1a6afcb1
or eax, 0x5fd778a6
cmp eax, dword [ecx]
nop
jbe 0x487a03
fidivr word [edi - 0x463d84fd]
cmp byte es:[ebx], dh
inc ebx
jb 0x487a9d
inc ebx
aad 0x57
jo 0x487a85
adc eax, 0xef846c26
imul edx, ebx, 0xffffffa0
sal byte [0x7a0fb225], 9
mov dword [ebp + 0x3d], ecx
fadd dword [eax + 0x183cc012]
div dword [eax]
pop eax
push 0x61cd34
adc bh, byte [ebp + 0x32]
mov dword [0x53d0b431], eax
salc
pushal
retf 0x70f8
iretd
ljmp 0x93c0:0x32501b25
Function at 0x4f7700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9000]
push edi
or ebp, 0xffffffff
jmp 0x4f7722
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f7729
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f7718
mov eax, 1
add ebx, ebx
jne 0x4f773b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f774c
jne 0x4f776b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f776b
dec eax
add ebx, ebx
jne 0x4f7758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f7730
add ebx, ebx
jne 0x4f7767
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f77bd
xor ecx, ecx
sub eax, 3
jb 0x4f7783
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f77f2
sar eax, 1
mov ebp, eax
jmp 0x4f778e
add ebx, ebx
jne 0x4f778e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f775c
inc ecx
add ebx, ebx
jne 0x4f779c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f775c
add ebx, ebx
jne 0x4f77a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f779e
jne 0x4f77ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f779e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f77dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f77ce
jmp 0x4f771e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f77dc
add edi, ecx
jmp 0x4f771e
pop esi
mov edi, esi
mov ecx, 0x4d24
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f77fa
cmp byte [edi], 0x13
jne 0x4f77fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f77ff
lea edi, [esi + 0xf3000]
mov eax, dword [edi]
or eax, eax
je 0x4f786e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x139aec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x139ca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f782c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x139ca8]
or eax, eax
je 0x4f7868
mov dword [ebx], eax
add ebx, 4
jmp 0x4f7849
call dword [esi + 0x139cb8]
mov ebp, dword [esi + 0x139cac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f78a2
sub esp, 0xffffff80
jmp 0x48f888
Function at 0x4055b3
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441e68], 2
jl 0x4055d8
movaps xmm0, xmmword [0x430460]
movaps xmmword [0x43ab80], xmm0
movaps xmm0, xmmword [0x430450]
movaps xmmword [0x43ab90], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405984
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x430428]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4055e6
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405d04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405d36
test dl, 7
je 0x405d36
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405d16
cmp esi, 8
jb 0x405dc6
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x43aba0]
xor ecx, dword [eax*4 + 0x43afa0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3a0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43bba0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43bfa0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43c3a0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43b7a0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43c7a0]
mov ebx, ecx
sub edi, 1
jne 0x405d45
pop edi
test esi, esi
je 0x405de2
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
sub esi, 1
jne 0x405dca
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405f4f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x405fa6
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x58]
call fcn.00406641
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x10]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x405f8c
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405fd2
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x54]
call fcn.00406641
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041dd50
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4063ea
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x4065e6
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x40644e
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040dbba
test al, al
je 0x40644e
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041e69a
add esp, 0xc
test eax, eax
je 0x4065f0
inc edi
add esi, 0x178
cmp edi, 4
jb 0x406414
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004106e3
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00421ee0
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040684c
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040dde8
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041dd50
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041dd50
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041dd50
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041dd50
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040dcf3
cmp dword [esp + 0x290], ebp
je 0x406574
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041dd50
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4065a7
push 8
push ebp
push esi
call fcn.0041dbf0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x40658b
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040dde8
cmp dword [esp + 0x288], 0
je 0x4065d8
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040d28e
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040dde8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041dd50
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040dcf3
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041dd50
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041dd50
add esp, 0x18
jmp 0x406556
Function at 0x406641
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x406696
lea eax, [esp + 0x164]
push eax
call fcn.0040e9b5
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040e9fb
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040e8c6
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x40669d
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4066c8
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x4066c8
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x406729
xor edx, edx
test ebx, ebx
je 0x4066e8
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4066d6
cmp ebx, edi
jae 0x406702
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041dbf0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040e9b5
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040e9fb
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x406743
cmp byte [edx], 0
jne 0x406743
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040e9fb
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e8c6
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x406797
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x406797
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x4067fd
test ebx, ebx
je 0x4067b9
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x4067a7
cmp ebx, 0x40
jae 0x4067d5
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041dbf0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040e9b5
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e9fb
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x406817
cmp byte [eax], 0
jne 0x406817
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e9fb
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040e8c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x40684c
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406866
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041dd50
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406641
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041dd50
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x4c], eax
xor esi, esi
mov byte [ebp + 0x6f], 0
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
mov edi, dword [ebp + esi + 0x4c]
test edi, edi
je 0x406932
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x6b]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406641
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041dd50
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406920
sub edi, 1
jne 0x4068e3
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041dd50
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x4068db
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040dde8
push ebx
lea eax, [ebp]
push eax
call fcn.0040dde8
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040dde8
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040dde8
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x40906e
Capabilities:
Move file

Disassembly:
mov eax, 0x42f4e1
call fcn.0041cb28
mov eax, 0x5024
call fcn.0041cc00
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4030]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40922d
cmp eax, ebx
jae 0x40922d
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40922d
cmp eax, ebx
jae 0x40922d
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b65a
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b65a
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40922d
push edi
push dword [ebp + 8]
call fcn.00410882
test eax, eax
je 0x40922d
push edi
push esi
call fcn.0040b65a
push eax
call fcn.00410882
test eax, eax
jne 0x40922d
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x40918f
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040eed1
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b65a
push eax
call fcn.00403dcd
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.00409c40
test al, al
je 0x409174
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x40917b
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x409122
test ax, ax
je 0x40922d
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040eed1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b6d0
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x3030]
push eax
call edi
test eax, eax
je 0x40922d
lea ecx, [ebp - 0x2030]
call fcn.00409242
push esi
mov dword [ebp - 4], ebx
call fcn.00409c40
test al, al
jne 0x4091f4
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.00409332
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x40921e
lea ecx, [ebp - 0x2030]
call fcn.004092e4
lea ecx, [ebp - 0x2030]
call fcn.0040942b
lea ecx, [ebp - 0x2030]
call fcn.00409278
mov al, 1
jmp 0x40922f
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4