joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e10
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x415844
push 1
push 0
push 0x415854
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402f0f
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402e73
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402e85
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040fd1c
lea eax, [ebp - 0x40c]
call fcn.004063b8
cmp byte [ebp - 0x40c], 0
je 0x402eb6
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x415874
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402f06
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402efd
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402f20
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x403084
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x416180]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x415018], 0
jne 0x4030e0
mov eax, dword [0x41723c]
call fcn.004046a0
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x415095
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x415018], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x40313a
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x40318e
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4150bc
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403b30
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x41b9c0
push ebx
call fcn.004105ec
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403b5e
mov eax, ebx
call fcn.00403cd0
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x416a34
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x416a34
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41b9b8], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x416e34], eax
push 0x65
push dword [0x41b9b8]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x416e38], eax
lea eax, [ebp - 8]
call fcn.00405968
mov edx, 0x416a34
mov eax, 0x41b9a4
call fcn.00404fa8
lea eax, [ebp - 0x20]
call fcn.00404510
lea eax, [ebp - 0x38]
call fcn.00404510
push 0
push 0x401183
lea edx, [ebp - 0x20]
push 0
mov dword [0x41723c], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x417240], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
xor edx, edx
mov dword [0x416180], eax
mov dword [0x417240], edx
mov dword [0x41723c], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.00404534
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404534
lea eax, [ebp - 8]
mov edx, 2
call fcn.004059dc
cmp byte [0x4158f4], 0
je 0x403c42
call fcn.0040297a
mov eax, 0x4169a4
mov ecx, 0x80
xor edx, edx
call fcn.0040fc1c
cmp dword [0x415054], 0
jle 0x403c66
mov eax, dword [0x415048]
call fcn.0040fba0
push dword [0x416e34]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x416e38]
test eax, eax
je 0x403c80
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41b998], 0
jne 0x403ca1
cmp dword [0x416188], 0
je 0x403ca1
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040cdf4
mov dword [0x416188], 2
mov eax, dword [0x41505c]
test eax, eax
je 0x403cb9
call fcn.0040294c
push dword [0x41b998]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403e48
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x416198], 1
mov ebx, dword [0x416180]
test ebx, ebx
je 0x403e70
mov eax, 0x7d
call fcn.00402bf0
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x41619c], edx
mov dword [0x4161a0], 1
mov eax, dword [0x416180]
test eax, eax
je 0x403ec9
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x415054], 0
jne 0x403ec0
cmp byte [0x415018], 0
jne 0x403ec0
push 0
push 1
push 0x111
push dword [0x416180]
call sub.USER32.DLL_SendMessageA
jmp 0x403ec0
call fcn.00402c6c
cmp dword [0x416188], 2
jne 0x403ebb
cmp byte [0x4158f4], 0
je 0x403ed7
call fcn.0040297a
pop ebx
ret
Function at 0x40455c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x404581
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.004046b8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x4045c7
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x404618
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404695
mov eax, dword [ebx + 4]
test eax, eax
je 0x404630
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040fc9c
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040fb8c
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040fd1c
mov edx, edi
mov eax, ebx
call fcn.00404cf4
test al, al
jne 0x404671
mov edx, edi
mov eax, ebx
call fcn.00404d2c
mov edx, edi
mov eax, ebx
call fcn.00404b6c
mov ebx, eax
mov eax, edi
call fcn.0040fba0
test ebx, ebx
je 0x404695
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040fba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405844
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 + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x40588b
mov edx, edi
mov eax, ebx
call fcn.0040fd1c
mov eax, ebx
call fcn.0040fc9c
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040fd1c
mov eax, ebx
call fcn.0040fc9c
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402bf0
mov edx, eax
mov eax, ebx
call fcn.0040fd1c
mov eax, ebx
call fcn.0040fc9c
inc eax
add ebx, eax
mov edx, 0x4155a4
mov eax, ebx
call fcn.0040fd1c
mov eax, ebx
call fcn.0040fc9c
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040fc1c
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41b9b8]
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.00405f84
cmp esi, eax
jne 0x405924
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
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405954
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405954
mov byte [esi], 0
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 4
Function at 0x408e9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41764c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x408eb6
call fcn.00408e64
mov eax, ebp
jmp 0x408ece
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 0x408ed6
test al, 7
jne 0x408eba
cmp esi, 8
jb 0x408f5f
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 0x408edf
xor edx, edx
jmp 0x408f79
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x408f63
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4096b0
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 0x4096c7
test esi, esi
jg 0x4096ce
xor eax, eax
jmp 0x409772
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.0040fc30
test esi, esi
jns 0x4096e8
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x409759
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409a24
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 0x4096f5
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040fc30
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40977c
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.0040fc30
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x4097e3
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 0x4097ae
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x4097db
cmp ecx, 4
jl 0x4097ac
cmp ecx, 4
jne 0x4097e3
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x4097ee
cmp esi, 0xa
jle 0x4097d0
cmp esi, 0xa
jg 0x409981
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x417cf4]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x417cf4]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x417cf4]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x417cf4]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x417ef4]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x409891
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x40992f
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 0x409871
inc edx
cmp edx, dword [esp + 8]
jl 0x40986f
jmp 0x40992f
mov edx, 1
jmp 0x4098af
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 0x40989a
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x4098ba
adc eax, 0
cmp edx, eax
jl 0x409898
mov eax, dword [esp + 8]
sar eax, 1
jns 0x4098c9
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x417cf4]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x40992f
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 0x409914
inc edx
cmp edx, dword [esp + 8]
jl 0x409912
xor edx, edx
jmp 0x40996d
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 0x409937
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409965
cmp ecx, 4
jl 0x409935
cmp ecx, 4
jne 0x40996d
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409978
cmp esi, 0xa
jle 0x40995a
cmp esi, 0xa
jle 0x4097f7
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40998c
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 + 0x41a312]
lea ebx, [ebx*4 + 0x419f12]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41a712]
lea edx, [edx*4 + 0x41ab12]
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 0x40999e
inc eax
cmp eax, 4
jl 0x40999c
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040fc30
inc esi
cmp esi, 0xa
jl 0x40999a
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40e578
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e581
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.00406858
lea eax, [esp + 0xc40]
call fcn.00406858
lea eax, [esp + 0xc6c]
call fcn.00406858
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.00405b74
test al, al
jne 0x40e5e1
xor eax, eax
jmp 0x40e72e
cmp byte [esp], 0
je 0x40e5f1
cmp byte [esp + 0xc98], 0
jne 0x40e5f8
xor eax, eax
jmp 0x40e72e
mov eax, esp
call fcn.00405f84
lea edx, [esp + 0xc98]
call fcn.00406fdc
test eax, eax
je 0x40e626
mov eax, esi
call fcn.00405f84
lea edx, [esp + 0xc98]
call fcn.00406fdc
test eax, eax
je 0x40e62d
xor eax, eax
jmp 0x40e72e
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00407084
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00405f84
push eax
call fcn.0040fe14
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00406e60
test al, al
je 0x40e66b
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40e62f
mov eax, edi
xor edx, edx
call fcn.00406e60
test al, al
je 0x40e67f
xor eax, eax
jmp 0x40e72e
lea eax, [esp + 0x14b4]
mov ecx, 0x400
mov edx, esi
call fcn.00407084
mov eax, esp
call fcn.00405f84
push eax
lea eax, [esp + 0x14b8]
call fcn.00405f84
pop edx
call fcn.0040fd1c
push edi
lea ecx, [esp + 0x14b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40e6c2
xor eax, eax
jmp 0x40e72e
lea eax, [esp + 0x18b4]
call fcn.0040e738
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00406e60
test al, al
jne 0x40e6ef
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.0040e918
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40e719
lea eax, [esp + 0x18b4]
call fcn.0040ea1c
lea eax, [esp + 0x18b4]
call fcn.0040eaa4
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.0040e788
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x40e7cc
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 0x40e7ef
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e800
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e80f
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40e81c
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405718
test eax, eax
je 0x40e849
test esi, esi
je 0x40e849
cmp word [esi], 0
je 0x40e849
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 0x40e860
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 0x40e879
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e879
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 0x40e8e3
mov dword [ebx + 4], edi
test esi, esi
je 0x40e8ae
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.004104f4
jmp 0x40e8b7
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40e8ca
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040fd1c
jmp 0x40e8d9
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.004102d4
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040e9c8
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ead4
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40ebf7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40eb0f
dec eax
je 0x40eaf9
dec eax
je 0x40eb05
jmp 0x40eb0f
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40eb0f
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40eb61
xor ebp, ebp
cmp esi, ebp
jle 0x40eb7d
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40eb34
mov ecx, esi
sub ecx, ebp
jmp 0x40eb39
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40eb7d
add ebp, 0x4000
cmp esi, ebp
jg 0x40eb1b
jmp 0x40eb7d
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40ebf3
cmp byte [edi + 0x14], 0
je 0x40ebf3
cmp dword [edi + 0xc], 0
jne 0x40ebf3
lea edx, [edi + 0x17]
mov eax, 0x41b998
call fcn.0040cc58
test al, al
je 0x40ebdd
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40eb0f
cmp dword [esp + 4], 0
jbe 0x40eb0f
mov eax, edi
call fcn.0040ee1c
push edx
push eax
mov eax, dword [esp + 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.0040ed64
jmp 0x40eb0f
lea ecx, [edi + 0x17]
mov eax, 0x41b998
xor edx, edx
call fcn.0040cc40
jmp 0x40ebf3
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ece4
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40ed0b
cmp esi, 0x4e20
jle 0x40ed01
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40ed5c
mov eax, ebx
call fcn.0040f024
test al, al
je 0x40ed43
cmp esi, 0x4e20
jle 0x40ed43
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040ece4
jmp 0x40ed5f
cmp dword [ebx + 0xc], 1
jne 0x40ed57
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40ed57
xor eax, eax
jmp 0x40ed5f
or eax, 0xffffffff
jmp 0x40ed5f
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
cmp byte [0x41577c], 0
jne 0x41027d
call fcn.0040feb8
mov dword [0x415778], eax
inc byte [0x41577c]
call fcn.0040feb8
sub eax, dword [0x415778]
cmp eax, 0x64
jle 0x4102b9
cmp dword [0x416188], 0
je 0x4102b4
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040cdf4
mov eax, 0x41b998
mov edx, 0xff
call fcn.0040cdec
call fcn.00402c6c
ret