joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404948
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4049ac
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4049c0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4049ac
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [ebp - 0x24]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_DispatchMessageA
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x48]
test eax, eax
jl 0x404968
cmp dword [ebp - 4], 0
je 0x404968
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x404a05
lea eax, [ebp - 8]
push eax
push 0x415890
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404a05
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x4049fc
push edi
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405530
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040572c
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x4055c7
cmp byte [ebp + 8], 0
jne 0x4055c7
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x405605
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.004053b4
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x405713
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405664
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.004053b4
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x405703
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x40568c
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x405723
inc esi
test edi, edi
je 0x405723
cmp esi, 0x200
jl 0x405623
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40590c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x405953
mov edx, edi
mov eax, ebx
call fcn.004101e0
mov eax, ebx
call fcn.00410164
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.004101e0
mov eax, ebx
call fcn.00410164
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402c00
mov edx, eax
mov eax, ebx
call fcn.004101e0
mov eax, ebx
call fcn.00410164
inc eax
add ebx, eax
mov edx, 0x4155b0
mov eax, ebx
call fcn.004101e0
mov eax, ebx
call fcn.00410164
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.004100dc
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41b9c0]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00406094
cmp esi, eax
jne 0x4059ec
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
cmp byte [ebp + 8], 0
je 0x405a06
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405a11
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405a42
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405a42
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x405a37
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405a42
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406d78
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004057d0
test eax, eax
je 0x406d9e
test ebx, ebx
je 0x406d9e
cmp word [ebx], 0
je 0x406d9e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406da6
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406db9
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00407174
xor eax, eax
jmp 0x406dd4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x406dc8
cmp eax, 3
jne 0x406dcf
mov eax, 2
jmp 0x406dd4
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4070e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004057d0
test eax, eax
je 0x407113
test ebx, ebx
je 0x407113
cmp word [ebx], 0
je 0x407113
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x407148
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004057d0
test eax, eax
je 0x40716a
test ebx, ebx
je 0x40716a
cmp word [ebx], 0
je 0x40716a
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x407174
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004057d0
test eax, eax
je 0x4071a1
test ebx, ebx
je 0x4071a1
cmp word [ebx], 0
je 0x4071a1
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x4071b0
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x409128
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x417654
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x409148
call fcn.004090f0
mov eax, dword [ebp - 4]
jmp 0x409161
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x409169
test al, 7
jne 0x40914d
cmp esi, 8
jb 0x4091f2
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x409172
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x40921c
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x4091fc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x409918
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40992f
test esi, esi
jg 0x409936
xor eax, eax
jmp 0x4099da
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.004100f0
test esi, esi
jns 0x409950
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x4099c1
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409c8c
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x40995d
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.004100f0
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4099e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.004100f0
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x409a4b
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x409a16
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409a43
cmp ecx, 4
jl 0x409a14
cmp ecx, 4
jne 0x409a4b
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409a56
cmp esi, 0xa
jle 0x409a38
cmp esi, 0xa
jg 0x409be9
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x417cfc]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x417cfc]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x417cfc]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x417cfc]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x417efc]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x409af9
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x409b97
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409ad9
inc edx
cmp edx, dword [esp + 8]
jl 0x409ad7
jmp 0x409b97
mov edx, 1
jmp 0x409b17
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409b02
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x409b22
adc eax, 0
cmp edx, eax
jl 0x409b00
mov eax, dword [esp + 8]
sar eax, 1
jns 0x409b31
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x417cfc]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x417cfc]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x417cfc]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x417cfc]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x409b97
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409b7c
inc edx
cmp edx, dword [esp + 8]
jl 0x409b7a
xor edx, edx
jmp 0x409bd5
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x409b9f
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409bcd
cmp ecx, 4
jl 0x409b9d
cmp ecx, 4
jne 0x409bd5
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409be0
cmp esi, 0xa
jle 0x409bc2
cmp esi, 0xa
jle 0x409a5f
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409bf4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x41a31a]
lea ebx, [ebx*4 + 0x419f1a]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41a71a]
lea edx, [edx*4 + 0x41ab1a]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x409c06
inc eax
cmp eax, 4
jl 0x409c04
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.004100f0
inc esi
cmp esi, 0xa
jl 0x409c02
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40afb0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40e998
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e9a1
mov eax, dword [ebp - 4]
add esp, 0xfffffb2c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x14b8]
lea eax, [ebp - 0x4a4]
call fcn.00406a74
lea eax, [ebp - 0x478]
call fcn.00406a74
lea eax, [ebp - 0x44c]
call fcn.00406a74
push 0
lea ecx, [ebp - 0x10b8]
mov edx, ebx
mov eax, esi
call fcn.00405c68
test al, al
jne 0x40e9fe
xor eax, eax
jmp 0x40eb4c
cmp byte [ebp - 0x10b8], 0
je 0x40ea10
cmp byte [ebp - 0x420], 0
jne 0x40ea17
xor eax, eax
jmp 0x40eb4c
lea eax, [ebp - 0x10b8]
call fcn.00406094
lea edx, [ebp - 0x420]
call fcn.0040726c
test eax, eax
je 0x40ea47
mov eax, esi
call fcn.00406094
lea edx, [ebp - 0x420]
call fcn.0040726c
test eax, eax
je 0x40ea4e
xor eax, eax
jmp 0x40eb4c
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00407310
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00406094
push eax
call fcn.004102cc
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.004070e8
test al, al
je 0x40ea8c
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40ea50
mov eax, edi
xor edx, edx
call fcn.004070e8
test al, al
je 0x40eaa0
xor eax, eax
jmp 0x40eb4c
lea eax, [ebp - 0x18b8]
mov ecx, 0x400
mov edx, esi
call fcn.00407310
lea eax, [ebp - 0x10b8]
call fcn.00406094
push eax
lea eax, [ebp - 0x18b8]
call fcn.00406094
pop edx
call fcn.004101e0
push edi
lea ecx, [ebp - 0x18b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40eae4
xor eax, eax
jmp 0x40eb4c
lea eax, [ebp - 0x24d8]
call fcn.0040eb54
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.004070e8
test al, al
jne 0x40eb11
push 1
lea eax, [ebp - 0x24d8]
xor ecx, ecx
mov edx, esi
call fcn.0040ed34
mov ebx, eax
lea eax, [ebp - 0x18b8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40eb38
lea eax, [ebp - 0x24d8]
call fcn.0040ee60
lea eax, [ebp - 0x24d8]
call fcn.0040eee4
mov al, 1
push eax
lea eax, [ebp - 0x24d8]
mov edx, 2
call fcn.0040eba4
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ebe8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40ec0b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40ec1c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40ec2b
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40ec38
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004057d0
test eax, eax
je 0x40ec65
test esi, esi
je 0x40ec65
cmp word [esi], 0
je 0x40ec65
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40ec7c
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ec95
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40ec95
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40ecff
mov dword [ebx + 4], edi
test esi, esi
je 0x40ecca
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.004109c0
jmp 0x40ecd3
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40ece6
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.004101e0
jmp 0x40ecf5
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0041079c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040ee04
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ef18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40f049
cmp dword [edi + 0xc], 0
je 0x40ef57
mov eax, dword [edi + 0xc]
dec eax
je 0x40ef41
dec eax
je 0x40ef4d
jmp 0x40ef57
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40ef57
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
mov byte [ebp - 5], 0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], 0
je 0x40efb3
xor ebx, ebx
cmp esi, ebx
jle 0x40efd0
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x40ef84
mov ecx, esi
sub ecx, ebx
jmp 0x40ef89
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x40efd0
add ebx, 0x4000
cmp esi, ebx
jg 0x40ef6c
jmp 0x40efd0
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x40f045
cmp byte [edi + 0x14], 0
je 0x40f045
cmp dword [edi + 0xc], 0
jne 0x40f045
lea edx, [edi + 0x17]
mov eax, 0x41b9a0
call fcn.0040ced4
test al, al
je 0x40f02f
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40ef57
cmp dword [ebp - 0xc], 0
jbe 0x40ef57
mov eax, edi
call fcn.0040f280
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040f1c8
jmp 0x40ef57
lea ecx, [edi + 0x17]
mov eax, 0x41b9a0
xor edx, edx
call fcn.0040cebc
jmp 0x40f045
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f144
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40f16e
cmp esi, 0x4e20
jle 0x40f164
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40f1be
mov eax, ebx
call fcn.0040f48c
test al, al
je 0x40f1a5
cmp esi, 0x4e20
jle 0x40f1a5
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040f144
jmp 0x40f1c1
cmp dword [ebx + 0xc], 1
jne 0x40f1b9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40f1b9
xor eax, eax
jmp 0x40f1c1
or eax, 0xffffffff
jmp 0x40f1c1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41072c
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x415788], 0
jne 0x410745
call fcn.00410370
mov dword [0x415784], eax
inc byte [0x415788]
call fcn.00410370
sub eax, dword [0x415784]
cmp eax, 0x64
jle 0x410781
cmp dword [0x416194], 0
je 0x41077c
mov eax, 0x41b9a0
mov edx, 0xff
call fcn.0040d074
mov eax, 0x41b9a0
mov edx, 0xff
call fcn.0040d06c
call fcn.00402c7c
ret
Function at 0x408941
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
add edx, edx
mov edi, edi
call fcn.00408962
sub edi, edi
xor dword [ecx], ebx
dec edi
inc ecx
inc edi
cmp ecx, eax
jne fcn.00408941
mov edx, 0xcedb9db4
add edx, edx
ret