joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b460
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f093
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00462abb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00468151
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046966d
test eax, eax
je 0x43b57c
mov ecx, dword [esp + 0x3c]
call fcn.0046817e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b540
push edi
mov ecx, esi
call fcn.004657e2
mov ecx, esi
call fcn.0043b6e0
cmp dword [esp + 0x38], 1
jne 0x43b575
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046591d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43dfa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dfd3
push esi
call fcn.00441090
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dfcc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e059
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e042
mov eax, dword [esi + 8]
test eax, eax
je 0x43dff7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e03e
cmp eax, 2
je 0x43e042
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43dfea
cmp eax, 3
je 0x43e01d
cmp eax, 1
jne 0x43dfea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43dfea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43dfea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e080
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e068
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e080
add esp, 4
pop esi
ret

Function at 0x449bb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x449c53
test eax, eax
jbe 0x449c53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x449c53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x449bfe
xor esi, esi
jmp 0x449c04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x449c2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044bc70
add esi, eax
push esi
mov ebx, esi
call fcn.0044bc70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x449c10
pop ebp
test edi, edi
pop edi
jne 0x449c53
test ebx, ebx
je 0x449c53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00452570
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x449d95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x449ead
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x449ead
mov eax, dword [esi + 0x3c]
push eax
call fcn.00462f0d
mov esi, eax
test esi, esi
je 0x449ead
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x449ead
mov ecx, esi
call fcn.00449d00
cmp edi, eax
jge 0x449ead
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x449e33
mov dword [esp + 0x34], 1
jmp 0x449e8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x449ead
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004492f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x44d360
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44d3aa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44d3d9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44d41b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4638b1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4638e9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461965
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046193d
jmp 0x4638f5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464f9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464fe1
call fcn.0046aa53
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464fe1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464fd8
xor eax, eax
jmp 0x464fe9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464fef
pop edi
pop esi
pop ebx
ret 4

Function at 0x46af83
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 0x46afb1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46afcf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046aee9
jmp 0x46afcf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46afcf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046aee9
test edi, edi
mov eax, edi
jne 0x46afb9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4055c9
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441e68], 2
jl 0x4055ee
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.0040599a
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 0x4055fc
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 0x405d1a
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 0x405d4c
test dl, 7
je 0x405d4c
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 0x405d2c
cmp esi, 8
jb 0x405ddc
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 0x405d5b
pop edi
test esi, esi
je 0x405df8
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 0x405de0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405f65
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 0x405fbc
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.00406657
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 0x405fa2
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405fe8
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.00406657
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041ddf0
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x406400
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 0x4065fc
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406464
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040dbff
test al, al
je 0x406464
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041e73a
add esp, 0xc
test eax, eax
je 0x406606
inc edi
add esi, 0x178
cmp edi, 4
jb 0x40642a
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.00410745
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.00421f60
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00406862
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040de2d
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.0041ddf0
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041ddf0
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041ddf0
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041ddf0
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040dd38
cmp dword [esp + 0x290], ebp
je 0x40658a
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041ddf0
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4065bd
push 8
push ebp
push esi
call fcn.0041dc90
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 0x4065a1
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040de2d
cmp dword [esp + 0x288], 0
je 0x4065ee
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.0040d2d3
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040de2d
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.0041ddf0
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040dd38
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041ddf0
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041ddf0
add esp, 0x18
jmp 0x40656c
Function at 0x406657
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 0x4066ac
lea eax, [esp + 0x164]
push eax
call fcn.0040e9fa
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040ea40
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040e90b
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x4066b3
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4066de
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x4066de
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x40673f
xor edx, edx
test ebx, ebx
je 0x4066fe
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 0x4066ec
cmp ebx, edi
jae 0x406718
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041dc90
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040e9fa
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040ea40
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x406759
cmp byte [edx], 0
jne 0x406759
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.0040ea40
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e90b
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x4067ad
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x4067ad
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x406813
test ebx, ebx
je 0x4067cf
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 0x4067bd
cmp ebx, 0x40
jae 0x4067eb
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041dc90
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040e9fa
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040ea40
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x40682d
cmp byte [eax], 0
jne 0x40682d
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.0040ea40
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040e90b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x406862
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 0x40687c
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041ddf0
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.00406657
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041ddf0
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 0x406948
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.00406657
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041ddf0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406936
sub edi, 1
jne 0x4068f9
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041ddf0
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x4068f1
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040de2d
push ebx
lea eax, [ebp]
push eax
call fcn.0040de2d
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040de2d
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040de2d
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x4090b3
Capabilities:
Move file

Disassembly:
mov eax, 0x42f653
call fcn.0041cbb0
mov eax, 0x5024
call fcn.0041cc80
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 0x409272
cmp eax, ebx
jae 0x409272
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x409272
cmp eax, ebx
jae 0x409272
lea eax, [ebp - 0x4030]
push eax
call fcn.0040b69f
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040b69f
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x409272
push edi
push dword [ebp + 8]
call fcn.004108e4
test eax, eax
je 0x409272
push edi
push esi
call fcn.0040b69f
push eax
call fcn.004108e4
test eax, eax
jne 0x409272
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x4091d4
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040ef16
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040b69f
push eax
call fcn.00403de3
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.00409c85
test al, al
je 0x4091b9
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x4091c0
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x409167
test ax, ax
je 0x409272
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040ef16
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b715
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 0x409272
lea ecx, [ebp - 0x2030]
call fcn.00409287
push esi
mov dword [ebp - 4], ebx
call fcn.00409c85
test al, al
jne 0x409239
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.00409377
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x409263
lea ecx, [ebp - 0x2030]
call fcn.00409329
lea ecx, [ebp - 0x2030]
call fcn.00409470
lea ecx, [ebp - 0x2030]
call fcn.004092bd
mov al, 1
jmp 0x409274
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