joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0b9
Capabilities:
Check if file exists
Query service status

Disassembly:
push 0x68
mov eax, 0x412d00
call fcn.004019d4
mov dword [ebp - 0x70], ecx
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x68], edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.0040ea97
test al, al
je 0x40f100
cmp edi, esi
je 0x40f0f8
cmp edi, 0xffffffff
je 0x40f0f8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xa
pop eax
jmp 0x40f290
push 0x14
mov ebx, str.wpscloudsvr
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040ea97
test al, al
je 0x40f144
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f136
cmp esi, 0xffffffff
je 0x40f136
push esi
call ebx
test edi, edi
je 0x40f0f8
cmp edi, 0xffffffff
je 0x40f0f8
push edi
call ebx
jmp 0x40f0f8
and dword [ebp - 0x48], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40f191
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f173
cmp esi, 0xffffffff
je 0x40f173
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f0f8
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f0f8
push dword [ebp - 0x68]
call edi
jmp 0x40f0f8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
cmp eax, dword [ecx + 0x20]
jne 0x40f161
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021b7
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040ef33
pop ecx
push 0
cmp eax, 4
push 1
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x69]
mov byte [ebp - 4], 1
call fcn.0040236a
cmp byte [ebp - 0x69], 0
je 0x40f1fa
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f1e2
cmp esi, 0xffffffff
je 0x40f1e2
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f1f3
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f1f3
push dword [ebp - 0x68]
call edi
push 0xb
jmp 0x40f0fa
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021b7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.0040f01e
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40f21e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
push 0
neg ebx
push 1
lea ecx, [ebp - 0x64]
sbb bl, bl
call fcn.0040236a
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040236a
inc bl
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40f271
test esi, esi
je 0x40f259
cmp esi, 0xffffffff
je 0x40f259
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f26a
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f26a
push dword [ebp - 0x68]
call edi
push 0xd
jmp 0x40f0fa
test esi, esi
je 0x40f27d
cmp esi, 0xffffffff
je 0x40f27d
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f28e
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f28e
push dword [ebp - 0x68]
call edi
xor eax, eax
call fcn.00401d83
ret
Function at 0x40f50a
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x858
mov eax, 0x412de0
call fcn.004019d4
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor edi, edi
lea eax, [ebp - 0x80e]
push edi
push eax
mov ebx, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x848]
call fcn.004021b7
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], edi
mov word [ebp - 0x82c], ax
mov esi, str.wpscloudsvr
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x848]
call fcn.00402ee5
cmp eax, 0xffffffff
je 0x40f649
lea eax, [ebp - 0x864]
push eax
mov ecx, ebx
call fcn.0040f296
push eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.0040230d
push edi
push 1
lea ecx, [ebp - 0x864]
call fcn.0040236a
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f5e5
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f649
cmp dword [ebp - 0x818], 8
mov ecx, dword [ebp - 0x82c]
jae 0x40f605
lea ecx, [ebp - 0x82c]
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x40f61a
lea eax, [ebp - 0x848]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040236a
push edi
push 1
lea ecx, [ebp - 0x848]
call fcn.0040236a
mov eax, esi
call fcn.00401d83
ret
xor esi, esi
inc esi
jmp 0x40f625

Function at 0x41053f
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp byte [ecx + eax - 1], 0x3d
jne 0x41055d
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x410552
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x41060f
push ebx
mov dword [ebp - 8], 2
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 3
sub dword [ebp - 0xc], ecx
push edi
mov edi, dword [ebp + 0x10]
movsx eax, byte [ecx + 1]
movsx edx, byte [ecx]
mov al, byte [eax + 0x4175a0]
mov dl, byte [edx + 0x4175a0]
shl dl, 2
mov bl, al
sar bl, 4
and bl, 3
or dl, bl
mov byte [esi + edi], dl
mov edx, dword [ebp - 8]
add edx, ecx
inc esi
cmp edx, dword [ebp + 0xc]
jae 0x4105fa
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x4175a0]
mov bl, dl
sar bl, 2
shl al, 4
and bl, 0xf
or bl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + edi], bl
add eax, ecx
inc esi
cmp eax, dword [ebp + 0xc]
jae 0x4105fa
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x4175a0]
and al, 0x3f
shl dl, 6
or al, dl
mov byte [esi + edi], al
inc esi
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
add ecx, 4
cmp eax, dword [ebp + 0xc]
jb 0x410584
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x410840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.0040fad2
test eax, eax
je 0x41099b
test byte [0x41dee0], 1
jne 0x410883
or dword [0x41dee0], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x41dedc], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll__itow_s]
push 0xa
push 0x10
push 0x41debc
push dword [0x41dedc]
call esi
push 0xa
push 0x10
push 0x41de9c
push edi
call esi
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
mov ebx, 0x41de7c
push ebx
push eax
call esi
and dword [0x41de74], 0
add esp, 0x10
push 8
pop ecx
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push eax
mov dword [0x41de78], 1
mov dword [0x41de70], 0xc
movsw word es:[edi], word [esi]
call fcn.0040fad2
push eax
push str._s_s
mov esi, 0x41d670
push esi
call fcn.00410806
add esp, 0x10
call fcn.0040fade
xor edi, edi
cmp eax, edi
jne 0x410918
mov eax, 0x416668
push eax
push 0x41de9c
push ebx
push 0x41debc
push esi
push str._s__pid_s__tid_s__exp_s__dumpfilename_s__callfrom1
mov ebx, 0x41c570
push ebx
call fcn.00410823
add esp, 0x1c
push 0xa
pop ecx
push 0x41c55c
push 0x41c518
push edi
push edi
push edi
xor eax, eax
inc eax
push eax
push edi
push edi
push ebx
push esi
mov dword [0x41c518], 0x44
mov dword [0x41c544], eax
mov word [0x41c548], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [0x41c510], eax
cmp eax, edi
je 0x410999
push 0xffffffffffffffff
push dword [0x41c55c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x41c560]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x41c55c]
call esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401d92
leave
ret
Function at 0x4047e1
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push edi
push 0xc0
push 0
push esi
mov edi, eax
call fcn.00419a70
add esp, 0xc
mov ecx, 0x426490
push 8
mov eax, esi
sub ecx, esi
pop edx
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x404801
mov eax, dword [esp + 0xc]
xor dword [esi], 0x2080020
xor dword [esi + 8], eax
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop ebx
ret 4
Function at 0x4054d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x405500
test cl, 7
je 0x405500
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42c2a0]
dec esi
inc ecx
jmp 0x4054e1
cmp esi, 8
jb 0x4055a3
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42c6a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42c2a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42caa0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42d2a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42d6a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42daa0]
movzx edx, dl
xor edi, dword [edx*4 + 0x42cea0]
movzx eax, al
xor edi, dword [eax*4 + 0x42dea0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x405512
pop ebx
jmp 0x4055a3
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42c2a0]
dec esi
inc ecx
test esi, esi
ja 0x40558f
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4058ca
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x405914
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041021a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041051c
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410595
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405934
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405923
cmp esi, ebx
jae 0x40594c
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.00419a70
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.0041021a
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0041051c
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.0041051c
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410595
lea eax, [ebp - 0x160]
push eax
call fcn.0041021a
xor ecx, ecx
test esi, esi
jbe 0x4059b6
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x4059a5
pop edi
cmp esi, ebx
jae 0x4059cf
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.00419a70
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.0041051c
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.0041051c
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.00410595
pop esi
pop ebx
leave
ret 0x14
Function at 0x405a07
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x405a20
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041b460
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004058ca
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041b460
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
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
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x405ad7
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004058ca
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041b460
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405ac5
dec dword [ebp + 0x6c]
jne 0x405a9e
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041b460
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405a93
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040ca0f
push esi
lea eax, [ebp]
push eax
call fcn.0040ca0f
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040ca0f
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040ca0f
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405b22
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push edi
mov edi, dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp edi, 0x18
ja 0x405ccb
and dword [ebp + 0x1c], 0
push esi
lea esi, [ebx + 0x102]
cmp dword [esi + 0x12], edi
jne 0x405b72
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040cade
test al, al
je 0x405b72
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.00419dd4
add esp, 0xc
test eax, eax
je 0x405cd1
inc dword [ebp + 0x1c]
add ebx, 0x178
cmp dword [ebp + 0x1c], 4
jb 0x405b43
mov esi, 0x200
push esi
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0x10]
call fcn.004111b8
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x264]
push eax
call fcn.00419ce0
pop ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00405a07
push esi
lea eax, [ebp - 0x264]
push eax
call fcn.0040ca0f
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
lea eax, [edx + 0x5e0]
mov ecx, dword [eax]
mov ebx, ecx
and ebx, 3
imul ebx, ebx, 0x178
add ebx, edx
inc ecx
mov dword [eax], ecx
push 0x40
mov dword [ebx + 0x114], edi
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041b460
push 0x20
pop esi
push esi
lea eax, [ebp - 0x24]
push eax
lea edi, [ebx + 0x118]
push edi
call fcn.0041b460
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041b460
push esi
lea eax, [ebp - 0x64]
push eax
add ebx, 0x158
push ebx
call fcn.0041b460
add esp, 0x30
push 1
push esi
push edi
call fcn.0040c969
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
je 0x405c6d
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x20]
call fcn.0041b460
add esp, 0xc
mov edi, dword [ebp + 0x24]
cmp edi, ebx
je 0x405c9e
push 8
push ebx
push edi
call fcn.00419a70
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x44]
mov eax, ecx
and eax, 7
add eax, edi
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405c82
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0040ca0f
cmp dword [ebp + 0x18], ebx
je 0x405cc0
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push 0x100
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
add ecx, 0x5e8
call fcn.0040c7bc
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.0040ca0f
pop esi
pop edi
pop ebx
leave
ret 0x20
push 0
push 0x20
pop esi
push esi
lea edi, [ebx + 0x118]
push edi
call fcn.0040c969
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041b460
add esp, 0xc
push 1
push esi
push edi
call fcn.0040c969
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041b460
push esi
add ebx, 0x158
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0041b460
add esp, 0x18
jmp 0x405c56
Function at 0x405d9e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405df0
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
call fcn.0040484f
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004058ca
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405dd5
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405e18
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004058ca
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041b460
add esp, 0xc
pop esi
leave
ret 8

Function at 0x406159
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00419d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4061cf
push esi
push dword [ebp + 8]
call fcn.004199f3
pop ecx
push dword [ebp + 8]
mov esi, eax
call fcn.0040a483
test al, al
jne 0x4061ac
lea eax, [ebp - 0x1000]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.004199f3
pop ecx
lea esi, [esi + eax + 1]
mov eax, 0x104
cmp esi, eax
pop esi
jbe 0x4061cf
push eax
push 0xc3
call fcn.0040bf0d
push eax
push 0x426558
call fcn.0040de1d
add esp, 0xc
leave
ret 4
Function at 0x4082e2
Capabilities:
Move file

Disassembly:
mov eax, 0x42583c
call fcn.004196f4
mov eax, 0x5028
call fcn.00419d70
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x5034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40849f
cmp eax, esi
jae 0x40849f
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40849f
cmp eax, esi
jae 0x40849f
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a093
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a093
mov edi, eax
cmp word [edi], 0
je 0x40849f
push edi
push dword [ebp - 0x10]
call fcn.00411431
test eax, eax
je 0x40849f
push edi
push ebx
call fcn.0040a093
push eax
call fcn.00411431
test eax, eax
jne 0x40849f
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x4083fb
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.00410708
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a093
push eax
call fcn.00408209
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.004092b7
test al, al
je 0x4083e2
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x408395
cmp word [ebp - 0x1010], 0
je 0x40849f
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.00410708
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a1fd
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3034]
push eax
call esi
test eax, eax
je 0x40849f
lea ecx, [ebp - 0x2034]
call fcn.0040869a
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.004092b7
test al, al
jne 0x408462
push 9
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.00408810
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x40848c
lea ecx, [ebp - 0x2034]
call fcn.0040890a
lea ecx, [ebp - 0x2034]
call fcn.0040895a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.00408b52
mov al, 1
jmp 0x4084a1
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4086d7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00419d70
push ebx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 0x1020], eax
cmp byte [esi + 0x1c], al
jne 0x4086ff
test byte [ebp + 0xc], 4
jne 0x4086ff
xor cl, cl
jmp 0x408701
mov cl, 1
mov edx, dword [ebp + 0xc]
shr edx, 1
and dl, 1
movzx ebx, dl
neg ebx
sbb ebx, ebx
and ebx, 0xc0000000
add ebx, 0x80000000
test byte [ebp + 0xc], 1
je 0x408728
or ebx, 0x40000000
mov dword [ebp + 0xc], 1
test cl, cl
je 0x40873a
mov dword [ebp + 0xc], 3
xor ecx, ecx
cmp byte [esi + 0x15], al
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
setne cl
push eax
dec ecx
and ecx, 0x8000000
push ecx
push 3
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4087b4
push 0x800
lea eax, [ebp - 0x1008]
push eax
push dword [ebp + 8]
call fcn.0040a547
test al, al
je 0x40879f
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x1008]
push 3
push 0
push dword [ebp + 0xc]
push ebx
push eax
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4087b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4087b4
mov dword [esi + 0x1020], 1
and dword [esi + 0xc], 0
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
setne bl
mov byte [esi + 0x12], 0
mov byte [esi + 0x10], 0
pop edi
test bl, bl
je 0x4087e2
push 0x800
push dword [ebp + 8]
mov dword [esi + 4], eax
add esi, 0x1e
push esi
call fcn.00410708
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x408983
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 0xc], ebx
je 0x408a7d
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4089b2
dec eax
je 0x4089a7
dec eax
jne 0x4089b2
push 0xfffffffffffffff4
jmp 0x4089a9
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0xc], ebx
je 0x4089fd
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x408a1c
mov eax, dword [ebp + 0xc]
sub eax, edi
mov ecx, 0x4000
cmp eax, ecx
jb 0x4089d2
mov eax, ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
je 0x408a1c
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4089c2
jmp 0x408a18
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
cmp al, bl
jne 0x408a78
cmp byte [esi + 0x14], bl
je 0x408a78
cmp dword [esi + 0xc], ebx
jne 0x408a78
push ebx
lea eax, [esi + 0x1e]
mov edi, 0x42e76c
push eax
mov ecx, edi
call fcn.00406295
test al, al
je 0x408a6c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4089b3
cmp eax, ebx
jbe 0x4089b3
mov edi, dword [esi]
push ebx
mov ecx, esi
call dword [edi + 0xc]
mov ecx, dword [ebp - 4]
xor ebx, ebx
sub eax, ecx
sbb edx, ebx
push edx
push eax
mov ecx, esi
call dword [edi + 8]
jmp 0x4089b3
lea eax, [esi + 0x1e]
push eax
push ebx
mov ecx, edi
call fcn.004063fd
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408b75
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
push edi
mov edi, 0x4e20
jne 0x408b9c
cmp dword [ebp + 0xc], edi
jbe 0x408b91
mov dword [ebp + 0xc], edi
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 0x408c05
mov ecx, esi
call fcn.00408b2f
test al, al
je 0x408bd2
cmp dword [ebp + 0xc], edi
jbe 0x408bd2
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.00408b75
jmp 0x408c08
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x408be9
call ebx
cmp eax, 0x6d
jne 0x408be9
xor eax, eax
jmp 0x408c08
cmp dword [esi + 0xc], 0
jne 0x408c00
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x408c00
call ebx
cmp eax, 0x21
je 0x408bc5
or eax, 0xffffffff
jmp 0x408c08
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8