joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x426b3d
mov edi, dword [esi + 0xc]
jmp 0x426b7d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x426b56
call fcn.0041b2fe
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x426b6b
call fcn.0041b2fe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x426b7d
call fcn.0041b2fe
call fcn.00425812
cmp dword [eax + 0x3c], 0
je 0x426b92
push edi
mov ecx, ebx
call fcn.0042594f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00426a3f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x426bb0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x426bbc
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4282f1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x428336
push 0x545828
push 4
push eax
call fcn.00519c3a
push eax
call fcn.00403271
add esp, 0x10
jmp 0x42834c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4283cc
push edi
call fcn.0051b1f9
mov edi, dword [eax]
call fcn.0051b1f9
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0051b196
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0051b1f9
cmp dword [eax], 0
je 0x4283a0
call fcn.0051b1f9
push dword [eax]
call fcn.0041a24e
pop ecx
jmp 0x4283a7
call fcn.0051b1f9
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4283cc
cmp dword [ebp - 0x234], esi
jae 0x4283cc
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4283ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005182a2
leave
ret
Function at 0x42890d
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0041eca7
pop ecx
cmp eax, esi
je 0x4289f7
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4289f7
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0051b3c0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4289f7
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4289f7
cmp esi, 0x14
jge 0x4289f7
push 0x10
push 0
push edi
call fcn.0051cc85
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4289e6
call fcn.0051b1f9
cmp dword [eax], 0x22
je 0x4289e6
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051a966
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4289bc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5964b4], 0
jne 0x428a82
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x428aab
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004282f1
pop ecx
pop ecx
test eax, eax
jne 0x428aad
inc edi
cmp edi, esi
jl 0x428a88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret 8
Function at 0x429c38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x429c80
call fcn.00425812
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429c80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x429cc3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x429cac
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x429cac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x429cc0
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42c0b2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42c0e7
xor eax, eax
jmp 0x42c13a
lea eax, [ebp - 0x210]
push eax
call fcn.0051a966
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42c118
push 0x56c3fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051cc9f
add esp, 0xc
test eax, eax
jne 0x42c0e3
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051cc9f
add esp, 0xc
test eax, eax
jne 0x42c0e3
lea eax, [ebp - 0x210]
push eax
call fcn.0041eca7
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005182a2
leave
ret

Function at 0x48231d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x482337
call fcn.00425812
mov esi, dword [eax + 0xc]
push dword [0x59825c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x482355
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48234d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x482382
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48234f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048224b
mov esi, eax
jmp 0x482374

Function at 0x5182a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x592bb0]
jne 0x5182ac
repz ret
jmp fcn.00520593
Function at 0x52ba98
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x592bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051ffbb
and dword [ebp - 0x14], 0
cmp dword [0x59ac58], 0
mov dword [ebp - 0x18], eax
jne 0x52bb4b
push 0x549b88
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52bbf3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56a068
push ebx
call edi
test eax, eax
je 0x52bbf3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56a058
push ebx
mov dword [0x59ac58], eax
call edi
push eax
call esi
push 0x56a044
push ebx
mov dword [0x59ac5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x59ac60], eax
call edi
push eax
call esi
mov dword [0x59ac68], eax
test eax, eax
je 0x52bb4b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x59ac64], eax
mov eax, dword [0x59ac64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52bba4
cmp dword [0x59ac68], ecx
je 0x52bba4
push eax
call esi
push dword [0x59ac68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52bba4
test ebx, ebx
je 0x52bba4
call edi
test eax, eax
je 0x52bb9b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52bb9b
test byte [ebp - 8], 1
jne 0x52bba4
or dword [ebp + 0x10], 0x200000
jmp 0x52bbd7
mov eax, dword [0x59ac5c]
cmp eax, dword [ebp - 0x18]
je 0x52bbd7
push eax
call esi
test eax, eax
je 0x52bbd7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52bbd7
mov eax, dword [0x59ac60]
cmp eax, dword [ebp - 0x18]
je 0x52bbd7
push eax
call esi
test eax, eax
je 0x52bbd7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x59ac58]
call esi
test eax, eax
je 0x52bbf3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52bbf5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005182a2
leave
ret
Function at 0x402400
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4081f4
call sym._EnterCriticalSection_4
mov ebx, dword [0x4081ec]
sub esp, 4
test ebx, ebx
je 0x40244b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402444
test esi, esi
je 0x402444
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402420
mov dword [esp], 0x4081f4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402630
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402680
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402754
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4026be
cmp eax, 4
jne 0x4026e0
test esi, esi
je 0x4026d2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4026c4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40271f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402711
cmp ecx, 0x40
je 0x4026d2
cmp ecx, 4
je 0x4026d2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402630
lea esi, [esi]
Function at 0x4054b2
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441494], 2
jl 0x4054d7
movaps xmm0, xmmword [0x42f400]
movaps xmmword [0x439bb0], xmm0
movaps xmm0, xmmword [0x42f3f0]
movaps xmmword [0x439bc0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040587d
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x42f3c8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4054e5
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 0x405c29
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 0x405c5b
test dl, 7
je 0x405c5b
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439bd8]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405c3b
cmp esi, 8
jb 0x405ceb
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 + 0x439bd8]
xor ecx, dword [eax*4 + 0x439fd8]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43a3d8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43abd8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43afd8]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3d8]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43a7d8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43b7d8]
mov ebx, ecx
sub edi, 1
jne 0x405c6a
pop edi
test esi, esi
je 0x405d07
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439bd8]
inc edx
sub esi, 1
jne 0x405cef
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405e74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x20
pop ebx
cmp dword [esi], 2
jne 0x405ec2
mov eax, dword [esi + 4]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.00406528
xor edx, edx
mov dword [esi + 4], edx
mov edi, edx
movzx eax, byte [ebp + edx - 0x20]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebx
jb 0x405ea8
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405ee7
lea eax, [ebp - 0x20]
add esi, 4
push eax
push ebx
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00406528
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041eeb0
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4062d2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x264
push edi
mov edi, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp edi, 0x18
ja 0x4064c7
push ebx
push ebp
xor ebp, ebp
lea ebx, [eax + 0x4b4]
push esi
mov esi, ebp
cmp dword [ebx + 0x134], edi
jne 0x406336
push dword [esp + 0x27c]
mov ecx, ebx
call fcn.0040d9b8
test al, al
je 0x406336
push 0x10
push dword [esp + 0x288]
lea eax, [ebx + 0x102]
push eax
call fcn.0041d730
add esp, 0xc
test eax, eax
je 0x4064d1
inc esi
add ebx, 0x178
cmp esi, 4
jb 0x4062fc
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.0040ff26
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00421740
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040669b
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040dbf1
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
pop ecx
push 0x10
push dword [esp + 0x288]
mov dword [ebx + 0x134], edi
lea eax, [ebx + 0x102]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.0041eeb0
push 0x20
pop edi
push edi
lea eax, [esp + 0x44]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041eeb0
push edi
lea eax, [esp + 0x30]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041eeb0
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041eeb0
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040daf5
cmp dword [esp + 0x290], ebp
je 0x406455
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041eeb0
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x406488
push 8
push ebp
push esi
call fcn.0041d200
add esp, 0xc
mov al, byte [esp + ebp + 0x14]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x40646c
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040dbf1
cmp dword [esp + 0x288], 0
pop esi
pop ebp
pop ebx
je 0x4064bc
push dword [esp + 0x27c]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push 0x100
push eax
push dword [esp + 0x278]
add ecx, 0xa9c
call fcn.0040d08c
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.0040dbf1
pop edi
add esp, 0x264
ret 0x20
push ebp
push ebp
push 0x20
pop edi
push edi
lea esi, [ebx + 0x112]
push esi
call fcn.0040daf5
push edi
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0041eeb0
add esp, 0xc
push ebp
push 1
push edi
push esi
call fcn.0040daf5
push edi
lea eax, [ebx + 0x138]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041eeb0
push edi
lea eax, [ebx + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041eeb0
add esp, 0x18
jmp 0x406437
Function at 0x406528
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1e4]
push edi
push 0x40
pop ebp
cmp esi, ebp
jbe 0x40657d
lea eax, [esp + 0x170]
push eax
call fcn.0040e207
push esi
push dword [esp + 0x1e8]
lea eax, [esp + 0x178]
push eax
call fcn.0040e24d
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x174]
push eax
call fcn.0040e160
push 0x20
lea ebx, [esp + 0x54]
pop esi
jmp 0x406584
mov ebx, dword [esp + 0x1e4]
xor edi, edi
mov edx, edi
test esi, esi
je 0x4065a9
mov ebp, ebx
lea eax, [esp + 0x10]
sub ebp, eax
lea ecx, [esp + 0x10]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, esi
jb 0x406594
push 0x40
pop ebp
cmp esi, ebp
jae 0x4065c3
mov eax, ebp
lea ecx, [esp + 0x10]
sub eax, esi
add ecx, esi
push eax
push 0x36
push ecx
call fcn.0041d200
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.0040e207
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e24d
push dword [esp + 0x1f0]
lea eax, [esp + 0x94]
push dword [esp + 0x1f0]
push eax
call fcn.0040e24d
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0040e160
lea eax, [esp + 0x100]
push eax
call fcn.0040e207
test esi, esi
je 0x406639
lea eax, [esp + 0x10]
sub ebx, eax
lea ecx, [esp + 0x10]
add ecx, edi
mov al, byte [ebx + ecx]
xor al, 0x5c
inc edi
mov byte [ecx], al
cmp edi, esi
jb 0x406627
cmp esi, ebp
jae 0x406653
mov eax, ebp
lea ecx, [esp + 0x10]
sub eax, esi
add ecx, esi
push eax
push 0x5c
push ecx
call fcn.0041d200
add esp, 0xc
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040e24d
push 0x20
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040e24d
push dword [esp + 0x1f4]
lea eax, [esp + 0x104]
push eax
call fcn.0040e160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 0x14
Function at 0x40669b
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x4066b5
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041eeb0
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
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.00406528
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041eeb0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
xor esi, esi
mov dword [ebp + 0x4c], eax
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 0x40675d
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406528
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041eeb0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x40674b
sub edi, 1
jne 0x406724
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041eeb0
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x40671c
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040dbf1
push ebx
lea eax, [ebp]
push eax
call fcn.0040dbf1
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040dbf1
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040dbf1
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x408c97
Capabilities:
Move file

Disassembly:
mov eax, 0x42ed83
call fcn.0041c188
mov eax, 0x5024
call fcn.0041c260
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 0x408e56
cmp eax, ebx
jae 0x408e56
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x408e56
cmp eax, ebx
jae 0x408e56
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b1f3
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b1f3
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x408e56
push edi
push dword [ebp + 8]
call fcn.004100c4
test eax, eax
je 0x408e56
push edi
push esi
call fcn.0040b1f3
push eax
call fcn.004100c4
test eax, eax
jne 0x408e56
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x408db8
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040e82c
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b1f3
push eax
call fcn.00403ccc
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.0040986e
test al, al
je 0x408d9d
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x408da4
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x408d4b
test ax, ax
je 0x408e56
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040e82c
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b262
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 0x408e56
lea ecx, [ebp - 0x2030]
call fcn.00408e6b
push esi
mov dword [ebp - 4], ebx
call fcn.0040986e
test al, al
jne 0x408e1d
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.00408f5b
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x408e47
lea ecx, [ebp - 0x2030]
call fcn.00408f0d
lea ecx, [ebp - 0x2030]
call fcn.00409057
lea ecx, [ebp - 0x2030]
call fcn.00408ea1
mov al, 1
jmp 0x408e58
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