joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5443a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5cc960]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5443e7
cmp word [esi], dx
jne 0x5443e7
or byte [edi + eax + 0x28], 4
jmp 0x5443ec
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x544525
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x544505
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x54442e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x544464
cmp eax, edx
jae 0x544470
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x544406
jmp 0x544525
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x544501
cmp dword [ebp - 0x14], 0
je 0x544501
mov eax, dword [ebx*4 + 0x5cc960]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5444d9
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x54451f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5cc960]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5cc960]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5cc960]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x544522
pop ebx
cmp word [ebp - 4], bx
jne 0x5444ea
cmp esi, dword [ebp + 0xc]
jne 0x5444ea
mov word [esi], bx
jmp 0x544522
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0054eae2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x544525
push 0xd
jmp 0x54451e
mov ecx, dword [ebx*4 + 0x5cc960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x54451c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x544525
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x54902a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55d97c
push 0x55d974
push str.FlsAlloc
push 0x1e
call fcn.00548f13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54905e
push dword [ebp + 8]
mov ecx, esi
call dword [0x55890c]
call esi
jmp 0x549064
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5490a8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x55d98c
push 0x55d984
push str.FlsGetValue
push 0x20
call fcn.00548f13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5490df
push dword [ebp + 8]
mov ecx, esi
call dword [0x55890c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x54f105
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054eda0

Function at 0x54f110
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054ef2f
Function at 0x54f414
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x54f45f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0054f5b3
test al, al
jne 0x54f459
sub edx, 2
cmp edx, edi
jne 0x54f43f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x54f481
lea eax, [edi + 2]
cmp edx, eax
je 0x54f481
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0054f360
add esp, 0x10
jmp 0x54f57b
push esi
lea ecx, [ebp - 0x255]
call fcn.0054f5b3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54f4c4
push dword [ebp - 0x25c]
jmp 0x54f471
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x54f501
cmp word [ebp - 0x226], 0
je 0x54f522
cmp word [ebp - 0x226], ax
jne 0x54f501
cmp word [ebp - 0x224], 0
je 0x54f522
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0054f360
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x54f56e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x54f4db
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x54f556
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x54f57b
push 0x54f190
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0053e5e0
add esp, 0x10
jmp 0x54f54b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
leave
ret
Function at 0x5534c1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0055343d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x553639
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x553639
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5535e8
jg 0x55351a
test eax, eax
je 0x5535de
push 1
push 0x1000
call fcn.00548c5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x553540
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5535d5
push 0x8000
push ebx
call fcn.0054722c
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x55356c
jg 0x553567
cmp ecx, 0x1000
jb 0x55356c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005460dc
add esp, 0x10
cmp eax, 0xffffffff
je 0x5535b1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x553567
jl 0x553598
test ecx, ecx
jne 0x553559
push dword [ebp - 0xc]
push ebx
call fcn.0054722c
push esi
call fcn.0054810a
add esp, 0xc
xor edi, edi
jmp 0x55364a
cmp byte [edi + 0x24], 0
je 0x5535c8
cmp dword [edi + 0x20], 5
jne 0x5535c8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5535d3
mov edi, dword [edi + 0x18]
jmp 0x5535d5
xor edi, edi
push esi
call fcn.0054810a
pop ecx
jmp 0x55364a
test ecx, ecx
jg 0x5535aa
jl 0x5535e8
test eax, eax
jae 0x5535aa
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0054eae2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x55360b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5535aa
jmp 0x553642
push ebx
call fcn.0054e88f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5535aa
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x55364a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x553647
mov edi, dword [edi + 0x18]
jmp 0x55364a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0054eae2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40562e
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 0x40565b
test cl, 7
je 0x40565b
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
jmp 0x40563c
cmp esi, 8
jb 0x4056fe
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 + 0x4319a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4315a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x431da0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4325a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4329a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x432da0]
movzx edx, dl
xor edi, dword [edx*4 + 0x4321a0]
movzx eax, al
xor edi, dword [eax*4 + 0x4331a0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40566d
pop ebx
jmp 0x4056fe
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
test esi, esi
ja 0x4056ea
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4059bf
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 0x405a09
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410670
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410972
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004109eb
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405a29
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 0x405a18
cmp esi, ebx
jae 0x405a41
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041a7f0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.00410670
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410972
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.00410972
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004109eb
lea eax, [ebp - 0x160]
push eax
call fcn.00410670
xor ecx, ecx
test esi, esi
jbe 0x405aab
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 0x405a9a
pop edi
cmp esi, ebx
jae 0x405ac4
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041a7f0
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410972
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410972
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.004109eb
pop esi
pop ebx
leave
ret 0x14
Function at 0x405afc
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 0x405b15
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041c260
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.004059bf
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041c260
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 0x405bcc
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.004059bf
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041c260
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405bba
dec dword [ebp + 0x6c]
jne 0x405b93
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041c260
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405b88
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040cf65
push esi
lea eax, [ebp]
push eax
call fcn.0040cf65
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040cf65
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040cf65
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405c17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [ebp + 0x1c], 0x18
push edi
mov edi, ecx
mov dword [ebp - 8], edi
ja 0x405dd1
and dword [ebp - 4], 0
push ebx
push esi
lea ebx, [edi + 0x4b4]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x102]
cmp dword [esi + 0x32], eax
jne 0x405c6e
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040d040
test al, al
je 0x405c6e
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.0041abd4
add esp, 0xc
test eax, eax
je 0x405dd6
inc dword [ebp - 4]
add ebx, 0x178
cmp dword [ebp - 4], 4
jb 0x405c3c
mov esi, 0x200
push esi
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0x10]
call fcn.00411bc6
mov ecx, dword [ebp + 0x1c]
xor eax, eax
inc eax
shl eax, cl
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
call fcn.0041aa30
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00405afc
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.0040cf65
mov esi, dword [ebp + 0xc]
lea eax, [edi + 0xa94]
mov ecx, dword [eax]
mov edx, ecx
and edx, 3
imul edx, edx, 0x178
lea ebx, [edx + edi + 0x4b4]
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
push 0x40
pop ecx
mov dword [ebx + 0x134], eax
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.0041c260
push 0x20
pop esi
push esi
lea eax, [ebp - 0x48]
push eax
lea edi, [ebx + 0x112]
push edi
call fcn.0041c260
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041c260
push esi
lea eax, [ebp - 0x68]
push eax
add ebx, 0x158
push ebx
call fcn.0041c260
add esp, 0x30
push 0
push 1
push esi
push edi
call fcn.0040ceb7
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x20], 0
je 0x405d73
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x20]
call fcn.0041c260
add esp, 0xc
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x405da5
push 8
push 0
push ebx
call fcn.0041a7f0
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x28]
mov eax, ecx
and eax, 7
add eax, ebx
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405d89
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf65
cmp dword [ebp + 0x18], 0
je 0x405dc5
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push 0x100
push eax
push dword [ebp + 8]
lea ecx, [edi + 0xa9c]
call fcn.0040ca14
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040cf65
pop esi
pop ebx
pop edi
leave
ret 0x20
push 0
push 0
push 0x20
pop esi
lea eax, [ebx + 0x112]
push esi
push eax
call fcn.0040ceb7
push esi
lea eax, [ebx + 0x112]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041c260
add esp, 0xc
push 0
push 1
push esi
lea eax, [ebx + 0x112]
push eax
call fcn.0040ceb7
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c260
push esi
add ebx, 0x158
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041c260
add esp, 0x18
jmp 0x405d5d
Function at 0x405ee1
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 0x405f2d
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004059bf
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 0x405f12
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405f55
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004059bf
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041c260
add esp, 0xc
pop esi
leave
ret 8
Function at 0x4084be
Capabilities:
Move file

Disassembly:
mov eax, 0x4296c3
call fcn.0041a4ac
mov eax, 0x5028
call fcn.0041aac0
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 0x40867b
cmp eax, esi
jae 0x40867b
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40867b
cmp eax, esi
jae 0x40867b
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a5b9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a5b9
mov edi, eax
cmp word [edi], 0
je 0x40867b
push edi
push dword [ebp - 0x10]
call fcn.00411e3f
test eax, eax
je 0x40867b
push edi
push ebx
call fcn.0040a5b9
push eax
call fcn.00411e3f
test eax, eax
jne 0x40867b
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x4085d7
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.00410b5e
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a5b9
push eax
call fcn.00401b86
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.00409275
test al, al
je 0x4085be
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x408571
cmp word [ebp - 0x1010], 0
je 0x40867b
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.00410b5e
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a723
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 0x40867b
lea ecx, [ebp - 0x2034]
call fcn.00408756
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.00409275
test al, al
jne 0x40863e
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.004088f3
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x408668
lea ecx, [ebp - 0x2034]
call fcn.00408a02
lea ecx, [ebp - 0x2034]
call fcn.00408a50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.00408c4d
mov al, 1
jmp 0x40867d
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40905d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041aac0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x4090ac
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040a3ba
test al, al
je 0x4090ac
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x409299
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041aac0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040a068
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x4092cf
cmp ax, 0x20
je 0x4092cf
push 0
push edi
call esi
test eax, eax
jne 0x4092fe
push edi
call fcn.00409275
test al, al
jne 0x409311
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.0040a3ba
test al, al
je 0x409311
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x409311
cmp byte [ebp + 0xc], 0
je 0x40930d
push dword [ebp + 0x10]
push edi
call fcn.0040905d
xor eax, eax
jmp 0x409329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409326
cmp eax, 3
je 0x409326
xor eax, eax
inc eax
jmp 0x409329
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x409446
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0041aac0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x4094d5
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409502
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040a3ba
test al, al
je 0x4094ae
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409502
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4094c8
cmp eax, 3
je 0x4094c8
cmp eax, 0x12
je 0x4094c8
xor eax, eax
inc eax
jmp 0x4094ca
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4095cd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4094f8
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x4095cd
push edi
push dword [ebp + 0xc]
push esi
call fcn.00410b5e
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040a723
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0041aba0
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.00411312
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.00411312
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.00411312
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc