joyce8/EMBER2024-capa huggingface dataset:
Function at 0x869250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x87d808
push 0x86d288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x869329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x869329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0086c1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x869329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x869329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x86932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00869351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x869d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x869d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x869d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x869d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x869d94
push eax
push esi
call fcn.0086c20b
add esp, 8
pop esi
ret 0x10

Function at 0x869da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x869e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x869e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x882320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0086bdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x869dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x869e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x869ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x869eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x882320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0086bdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x869eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x869e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x86a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x86a131
push esi
call fcn.0086d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0085c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x86a131
push 0
push ebp
call fcn.0085c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0085c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x86a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0085c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x86a121
push 0x882918
push edi
call fcn.0086b3f0
push eax
push ebx
push esi
call fcn.00869f60
push 0x8828f8
push edi
call fcn.0086b3f0
push eax
push ebx
push esi
call fcn.00869f60
push 0x8828d8
push edi
call fcn.0086b3f0
push eax
push ebx
push esi
call fcn.00869f60
push 0x8828c0
push edi
call fcn.0086b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00869f60
push 0x8828a0
push edi
call fcn.0086b3f0
push eax
push ebx
push esi
call fcn.00869f60
push 0x882888
push edi
call fcn.0086b3f0
push eax
push ebx
push esi
call fcn.00869f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x86b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0086b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0086b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0086b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0086b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x86bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x86bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x87d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x86bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x86bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x408a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x408a60
pop dword [ebp - 0x18]
mov eax, 0xebdbbffe
add eax, 0x1464ca62
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xb54b1b9e
add dword [ebp - 0x28], 0x990729ad
mov dword [ebp - 0x24], 0xb215cdb1
sub dword [ebp - 0x24], 0x7fe2816c
mov dword [ebp - 0x20], 0x8717c4f6
sub dword [ebp - 0x20], 0x3acb80c8
mov dword [ebp - 0x1c], 0x25706a2b
add dword [ebp - 0x1c], 0xda8f95d5
lea eax, [ebp - 0x28]
push eax
mov eax, 0xd6db25f2
add eax, 0x2965aa62
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xc6ece458
sub dword [ebp - 0x28], 0x527a7b02
mov dword [ebp - 0x24], 0xb3072b12
add dword [ebp - 0x24], 0x8e653663
mov dword [ebp - 0x20], 0x2a09e0d1
add dword [ebp - 0x20], 0x39658b9b
mov dword [ebp - 0x1c], 0x1488102a
add dword [ebp - 0x1c], 0xeb77efd6
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x10c04362
add eax, 0xef808cea
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x358d7
push 0
call eax
mov ecx, 0x5908ac3e
sub ecx, 0x59087417
mov edi, eax
mov ebx, 0x1b5c2673
add ebx, 0xe4e5898d
add ebx, dword [ebp - 0x18]
mov edx, 0xb7e7ade8
add edx, 0x1e351f5b
mov dword [ebp - 0x14], 0x4196e5a0
mov esi, dword [ebx]
xor dword [ebp - 4], 0xe4f7fd36
add esi, edx
add dword [ebp - 4], ebx
mov dword [edi], esi
mov dword [ebp - 8], 0xd6ba4780
add edi, 0xcfb98d46
sub edi, 0xcfb98d42
add ebx, 4
loop 0x408b82
add eax, 0x91ef53b2
sub eax, 0x91ee8043
mov ebx, eax
add eax, 0xfffc9055
add eax, 0x36fb0
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4052c9
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441484], 2
jl 0x4052ee
movaps xmm0, xmmword [0x42f400]
movaps xmmword [0x439ba0], xmm0
movaps xmm0, xmmword [0x42f3f0]
movaps xmmword [0x439bb0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405694
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 0x4052fc
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 0x405a40
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 0x405a72
test dl, 7
je 0x405a72
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439bc8]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405a52
cmp esi, 8
jb 0x405b02
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 + 0x439bc8]
xor ecx, dword [eax*4 + 0x439fc8]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43a3c8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43abc8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43afc8]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3c8]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43a7c8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43b7c8]
mov ebx, ecx
sub edi, 1
jne 0x405a81
pop edi
test esi, esi
je 0x405b1e
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439bc8]
inc edx
sub esi, 1
jne 0x405b06
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405c8b
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 0x405cd9
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.0040633f
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 0x405cbf
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405cfe
lea eax, [ebp - 0x20]
add esi, 4
push eax
push ebx
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040633f
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041e7e0
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4060e9
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 0x4062de
push ebx
push ebp
xor ebp, ebp
lea ebx, [eax + 0x4b4]
push esi
mov esi, ebp
cmp dword [ebx + 0x134], edi
jne 0x40614d
push dword [esp + 0x27c]
mov ecx, ebx
call fcn.0040d73c
test al, al
je 0x40614d
push 0x10
push dword [esp + 0x288]
lea eax, [ebx + 0x102]
push eax
call fcn.0041d060
add esp, 0xc
test eax, eax
je 0x4062e8
inc esi
add ebx, 0x178
cmp esi, 4
jb 0x406113
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.0040fca5
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.00421080
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004064b2
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040d975
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.0041e7e0
push 0x20
pop edi
push edi
lea eax, [esp + 0x44]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041e7e0
push edi
lea eax, [esp + 0x30]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041e7e0
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041e7e0
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040d879
cmp dword [esp + 0x290], ebp
je 0x40626c
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041e7e0
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x40629f
push 8
push ebp
push esi
call fcn.0041cb30
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 0x406283
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040d975
cmp dword [esp + 0x288], 0
pop esi
pop ebp
pop ebx
je 0x4062d3
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.0040ce10
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.0040d975
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.0040d879
push edi
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0041e7e0
add esp, 0xc
push ebp
push 1
push edi
push esi
call fcn.0040d879
push edi
lea eax, [ebx + 0x138]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041e7e0
push edi
lea eax, [ebx + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041e7e0
add esp, 0x18
jmp 0x40624e
Function at 0x40633f
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 0x406394
lea eax, [esp + 0x170]
push eax
call fcn.0040df8b
push esi
push dword [esp + 0x1e8]
lea eax, [esp + 0x178]
push eax
call fcn.0040dfd1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x174]
push eax
call fcn.0040dee4
push 0x20
lea ebx, [esp + 0x54]
pop esi
jmp 0x40639b
mov ebx, dword [esp + 0x1e4]
xor edi, edi
mov edx, edi
test esi, esi
je 0x4063c0
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 0x4063ab
push 0x40
pop ebp
cmp esi, ebp
jae 0x4063da
mov eax, ebp
lea ecx, [esp + 0x10]
sub eax, esi
add ecx, esi
push eax
push 0x36
push ecx
call fcn.0041cb30
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.0040df8b
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040dfd1
push dword [esp + 0x1f0]
lea eax, [esp + 0x94]
push dword [esp + 0x1f0]
push eax
call fcn.0040dfd1
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.0040dee4
lea eax, [esp + 0x100]
push eax
call fcn.0040df8b
test esi, esi
je 0x406450
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 0x40643e
cmp esi, ebp
jae 0x40646a
mov eax, ebp
lea ecx, [esp + 0x10]
sub eax, esi
add ecx, esi
push eax
push 0x5c
push ecx
call fcn.0041cb30
add esp, 0xc
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040dfd1
push 0x20
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0040dfd1
push dword [esp + 0x1f4]
lea eax, [esp + 0x104]
push eax
call fcn.0040dee4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 0x14
Function at 0x4064b2
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 0x4064cc
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041e7e0
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.0040633f
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041e7e0
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 0x406574
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.0040633f
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041e7e0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406562
sub edi, 1
jne 0x40653b
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041e7e0
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406533
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040d975
push ebx
lea eax, [ebp]
push eax
call fcn.0040d975
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040d975
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040d975
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x408a18
Capabilities:
Move file

Disassembly:
mov eax, 0x42e6f1
call fcn.0041bafc
mov eax, 0x5024
call fcn.0041bbd0
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 0x408bd7
cmp eax, ebx
jae 0x408bd7
push ebx
lea eax, [ebp - 0x5030]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x408bd7
cmp eax, ebx
jae 0x408bd7
lea eax, [ebp - 0x4030]
push eax
call fcn.0040af91
mov dword [ebp + 8], eax
lea eax, [ebp - 0x5030]
push eax
call fcn.0040af91
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x408bd7
push edi
push dword [ebp + 8]
call fcn.0040fe43
test eax, eax
je 0x408bd7
push edi
push esi
call fcn.0040af91
push eax
call fcn.0040fe43
test eax, eax
jne 0x408bd7
mov word [ebp - 0x100c], ax
mov edi, ebx
test ax, ax
jne 0x408b39
push 0x800
push esi
lea eax, [ebp - 0x100c]
push eax
call fcn.0040e5b0
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x100c]
push eax
call fcn.0040af91
push eax
call fcn.00403ae3
add esp, 0x10
lea eax, [ebp - 0x100c]
push eax
call fcn.004095ef
test al, al
je 0x408b1e
xor eax, eax
mov word [ebp - 0x100c], ax
jmp 0x408b25
mov ax, word [ebp - 0x100c]
add edi, 0x7b
cmp edi, 0x2710
jl 0x408acc
test ax, ax
je 0x408bd7
mov edi, 0x800
lea eax, [ebp - 0x3030]
push edi
push esi
push eax
call fcn.0040e5b0
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x3030]
push eax
call fcn.0040b000
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 0x408bd7
lea ecx, [ebp - 0x2030]
call fcn.00408bec
push esi
mov dword [ebp - 4], ebx
call fcn.004095ef
test al, al
jne 0x408b9e
push 0x12
push esi
lea ecx, [ebp - 0x2030]
call fcn.00408cdc
mov bl, al
lea eax, [ebp - 0x3030]
push eax
lea eax, [ebp - 0x100c]
push eax
call edi
test bl, bl
je 0x408bc8
lea ecx, [ebp - 0x2030]
call fcn.00408c8e
lea ecx, [ebp - 0x2030]
call fcn.00408dd8
lea ecx, [ebp - 0x2030]
call fcn.00408c22
mov al, 1
jmp 0x408bd9
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
Function at 0x408e01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x408e1a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408e8d
mov ecx, esi
call fcn.00408f08
test al, al
je 0x408e55
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x408e55
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00408e01
jmp 0x408e90
cmp dword [esi + 0xc], 1
jne 0x408e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x408e6a
xor eax, eax
jmp 0x408e90
cmp dword [esi + 0xc], 0
jne 0x408e88
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x408e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x408e88
push ebx
jmp 0x408e49
or eax, 0xffffffff
jmp 0x408e90
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408f2b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.0041bbd0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x408f55
mov cl, dl
test bl, 4
je 0x408f57
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x408f7c
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x408f8b
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40901a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.0040a9da
test al, al
je 0x409009
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x409004
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x40901a
cmp dword [esp + 0x10], 2
jne 0x40901a
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
test bl, bl
je 0x409048
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.0040e5b0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8