joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b14
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x4148d4], 1
mov ebx, dword [0x4148bc]
test ebx, ebx
je 0x403b3c
mov eax, 0x7d
call fcn.00402a00
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x4148d8], edx
mov dword [0x4148dc], 1
mov eax, dword [0x4148bc]
test eax, eax
je 0x403b95
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x414054], 0
jne 0x403b8c
cmp byte [0x414019], 0
jne 0x403b8c
push 0
push 1
push 0x111
push dword [0x4148bc]
call sub.USER32.DLL_SendMessageA
jmp 0x403b8c
call fcn.00402a7c
cmp dword [0x4148c4], 2
jne 0x403b87
cmp byte [0x414044], 0
je 0x403ba3
call fcn.00402788
pop ebx
ret

Function at 0x404238
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 0x40425d
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.00404394
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 0x4042a3
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 0x4042f4
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404371
mov eax, dword [ebx + 4]
test eax, eax
je 0x40430c
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.0040f7d0
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040f6c0
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040f850
mov edx, edi
mov eax, ebx
call fcn.004049d0
test al, al
jne 0x40434d
mov edx, edi
mov eax, ebx
call fcn.00404a08
mov edx, edi
mov eax, ebx
call fcn.00404848
mov ebx, eax
mov eax, edi
call fcn.0040f6d4
test ebx, ebx
je 0x404371
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040f6d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404588
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4045ee
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4045ff
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4045ee
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4045a6
cmp dword [esp], 0
je 0x4045a6
xor ebx, ebx
cmp dword [esp], 0
je 0x404649
lea eax, [esp + 4]
push eax
push 0x41484c
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404649
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40463f
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x405154
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.00405350
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 0x4051eb
cmp byte [ebp + 8], 0
jne 0x4051eb
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 0x405229
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.00404fd8
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 0x405337
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405288
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404fd8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x405327
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 0x4052b0
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 0x405347
inc esi
test edi, edi
je 0x405347
cmp esi, 0x200
jl 0x405247
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405520
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 0x405567
mov edx, edi
mov eax, ebx
call fcn.0040f850
mov eax, ebx
call fcn.0040f7d0
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040f850
mov eax, ebx
call fcn.0040f7d0
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402a00
mov edx, eax
mov eax, ebx
call fcn.0040f850
mov eax, ebx
call fcn.0040f7d0
inc eax
add ebx, eax
mov edx, 0x41456c
mov eax, ebx
call fcn.0040f850
mov eax, ebx
call fcn.0040f7d0
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040f750
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41a4f4]
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.00405c60
cmp esi, eax
jne 0x405600
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 0x405630
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405630
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 0x4067c8
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.004053f4
test eax, eax
je 0x4067ee
test ebx, ebx
je 0x4067ee
cmp word [ebx], 0
je 0x4067ee
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x4067f6
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406809
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406b98
xor eax, eax
jmp 0x406824
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x406818
cmp eax, 3
jne 0x40681f
mov eax, 2
jmp 0x406824
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004053f4
test eax, eax
je 0x406b37
test ebx, ebx
je 0x406b37
cmp word [ebx], 0
je 0x406b37
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 0x406b6c
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004053f4
test eax, eax
je 0x406b8e
test ebx, ebx
je 0x406b8e
cmp word [ebx], 0
je 0x406b8e
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 0x406b98
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004053f4
test eax, eax
je 0x406bc5
test ebx, ebx
je 0x406bc5
cmp word [ebx], 0
je 0x406bc5
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x406bd4
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 0x408ac8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x416188
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x408ae2
call fcn.00408a90
mov eax, ebp
jmp 0x408afa
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 0x408b02
test al, 7
jne 0x408ae6
cmp esi, 8
jb 0x408b8b
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 0x408b0b
xor edx, edx
jmp 0x408ba5
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 0x408b8f
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x409257
test esi, esi
jg 0x40925e
xor eax, eax
jmp 0x409310
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x2c]
mov ecx, 0x10
call fcn.0040f764
test esi, esi
jns 0x409278
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x4092f7
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004095cc
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x40928a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040f764
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409534
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 + 0x418e4e]
lea ebx, [ebx*4 + 0x418a4e]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41924e]
lea edx, [edx*4 + 0x41964e]
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 0x409546
inc eax
cmp eax, 4
jl 0x409544
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040f764
inc esi
cmp esi, 0xa
jl 0x409542
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40a860
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 0x40e0f0
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e0f9
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.00406520
lea eax, [esp + 0xc40]
call fcn.00406520
lea eax, [esp + 0xc6c]
call fcn.00406520
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.00405850
test al, al
jne 0x40e159
xor eax, eax
jmp 0x40e2a6
cmp byte [esp], 0
je 0x40e169
cmp byte [esp + 0xc98], 0
jne 0x40e170
xor eax, eax
jmp 0x40e2a6
mov eax, esp
call fcn.00405c60
lea edx, [esp + 0xc98]
call fcn.00406c88
test eax, eax
je 0x40e19e
mov eax, esi
call fcn.00405c60
lea edx, [esp + 0xc98]
call fcn.00406c88
test eax, eax
je 0x40e1a5
xor eax, eax
jmp 0x40e2a6
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.0040f860
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00405c60
push eax
call fcn.0040f948
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00406b0c
test al, al
je 0x40e1e3
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40e1a7
mov eax, edi
xor edx, edx
call fcn.00406b0c
test al, al
je 0x40e1f7
xor eax, eax
jmp 0x40e2a6
lea eax, [esp + 0x14b4]
mov ecx, 0x400
mov edx, esi
call fcn.0040f860
mov eax, esp
call fcn.00405c60
push eax
lea eax, [esp + 0x14b8]
call fcn.00405c60
pop edx
call fcn.0040f850
push edi
lea ecx, [esp + 0x14b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40e23a
xor eax, eax
jmp 0x40e2a6
lea eax, [esp + 0x18b4]
call fcn.0040e2b0
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00406b0c
test al, al
jne 0x40e267
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.0040e49c
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40e291
lea eax, [esp + 0x18b4]
call fcn.0040e5a0
lea eax, [esp + 0x18b4]
call fcn.0040e628
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.0040e304
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x40e34c
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 0x40e36f
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e380
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e38f
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x40e399
xor eax, eax
jmp 0x40e39e
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004053f4
test eax, eax
je 0x40e3cb
test esi, esi
je 0x40e3cb
cmp word [esi], 0
je 0x40e3cb
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 0x40e3e2
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 0x40e3fb
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e3fb
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 0x40e465
mov dword [ebx + 4], edi
test esi, esi
je 0x40e430
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00410028
jmp 0x40e439
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40e44c
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040f850
jmp 0x40e45b
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040fe08
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040e54c
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e658
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 0x40e77b
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40e693
dec eax
je 0x40e67d
dec eax
je 0x40e689
jmp 0x40e693
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40e693
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40e6e5
xor ebp, ebp
cmp esi, ebp
jle 0x40e701
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40e6b8
mov ecx, esi
sub ecx, ebp
jmp 0x40e6bd
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 0x40e701
add ebp, 0x4000
cmp esi, ebp
jg 0x40e69f
jmp 0x40e701
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 0x40e777
cmp byte [edi + 0x14], 0
je 0x40e777
cmp dword [edi + 0xc], 0
jne 0x40e777
lea edx, [edi + 0x17]
mov eax, 0x41a4d4
call fcn.0040c7e8
test al, al
je 0x40e761
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40e693
cmp dword [esp + 4], 0
jbe 0x40e693
mov eax, edi
call fcn.0040e9a0
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.0040e8e8
jmp 0x40e693
lea ecx, [edi + 0x17]
mov eax, 0x41a4d4
xor edx, edx
call fcn.0040c7d0
jmp 0x40e777
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e868
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 0x40e88f
cmp esi, 0x4e20
jle 0x40e885
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 0x40e8e0
mov eax, ebx
call fcn.0040eba8
test al, al
je 0x40e8c7
cmp esi, 0x4e20
jle 0x40e8c7
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040e868
jmp 0x40e8e3
cmp dword [ebx + 0xc], 1
jne 0x40e8db
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40e8db
xor eax, eax
jmp 0x40e8e3
or eax, 0xffffffff
jmp 0x40e8e3
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
cmp byte [0x414744], 0
jne 0x40fdb1
call fcn.0040f9ec
mov dword [0x414740], eax
inc byte [0x414744]
call fcn.0040f9ec
sub eax, dword [0x414740]
cmp eax, 0x64
jle 0x40fded
cmp dword [0x4148c4], 0
je 0x40fde8
mov eax, 0x41a4d4
mov edx, 0xff
call fcn.0040c984
mov eax, 0x41a4d4
mov edx, 0xff
call fcn.0040c97c
call fcn.00402a7c
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219