joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff4d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x572480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004ee068
and dword [ebp - 0x14], 0
cmp dword [0x579910], 0
mov dword [ebp - 0x18], eax
jne 0x4ff583
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ff62b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4ff62b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x579910], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x579914], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x579918], eax
call edi
push eax
call esi
mov dword [0x579920], eax
test eax, eax
je 0x4ff583
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57991c], eax
mov eax, dword [0x57991c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4ff5dc
cmp dword [0x579920], ecx
je 0x4ff5dc
push eax
call esi
push dword [0x579920]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4ff5dc
test ebx, ebx
je 0x4ff5dc
call edi
test eax, eax
je 0x4ff5d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4ff5d3
test byte [ebp - 8], 1
jne 0x4ff5dc
or dword [ebp + 0x10], 0x200000
jmp 0x4ff60f
mov eax, dword [0x579914]
cmp eax, dword [ebp - 0x18]
je 0x4ff60f
push eax
call esi
test eax, eax
je 0x4ff60f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ff60f
mov eax, dword [0x579918]
cmp eax, dword [ebp - 0x18]
je 0x4ff60f
push eax
call esi
test eax, eax
je 0x4ff60f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x579910]
call esi
test eax, eax
je 0x4ff62b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ff62d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e72ee
leave
ret

Function at 0x5085e0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x508606
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x5085f0
ret
Function at 0x51a8d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x51a902
lea esp, [esp]
test cl, 3
je 0x51a902
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x536ac8]
add ecx, 1
sub esi, 1
jne 0x51a8e0
cmp esi, 0x20
push ebx
push edi
jb 0x51aaec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x536ec8]
xor edx, dword [ebx*4 + 0x5372c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x536ac8]
add ecx, 4
xor edx, dword [eax*4 + 0x5376c8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x536ec8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5372c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x536ac8]
add ecx, 4
xor eax, dword [edx*4 + 0x5376c8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x536ec8]
xor edx, dword [ebx*4 + 0x5372c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x536ac8]
xor edx, dword [eax*4 + 0x5376c8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x536ec8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5372c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x536ac8]
xor eax, dword [edx*4 + 0x5376c8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x536ec8]
xor edx, dword [ebx*4 + 0x5372c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x536ac8]
xor edx, dword [eax*4 + 0x5376c8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x536ec8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5372c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x536ac8]
and edx, 0xff
xor eax, dword [edx*4 + 0x5376c8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x536ec8]
xor edx, dword [ebx*4 + 0x5372c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x536ac8]
add ecx, 4
xor edx, dword [eax*4 + 0x5376c8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x536ec8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5372c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x536ac8]
and edx, 0xff
xor eax, dword [edx*4 + 0x5376c8]
sub edi, 1
jne 0x51a912
cmp esi, 4
jb 0x51ab39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x536ec8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x5372c8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x536ac8]
and eax, 0xff
xor edi, dword [eax*4 + 0x5376c8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x51aaf6
test esi, esi
pop edi
pop ebx
je 0x51ab5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x536ac8]
add ecx, 1
sub esi, 1
jne 0x51ab40
not eax
pop esi
ret
Function at 0x51af90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x51b00e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004e8c50
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x51afe1
sub eax, ebx
jmp 0x51afe3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x51afd2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x51b002
sub eax, ebx
jmp 0x51b004
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x51aff3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x51b0e2
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.0051ad10
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x51b059
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x51b06d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x51af96
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x51b0e2
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x51b0b1
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x51b094
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.004e9070
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x51b0e2
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x51b0cb
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.004e9070
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
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
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0xfe8000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xfe800a
jmp 0xfea00f
jmp fcn.00b4a0b0
Function at 0x402ab9
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4131c4], 0
jne 0x402ac7
call fcn.00402a8f
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402af4
test cl, 7
je 0x402af4
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
dec esi
inc ecx
jmp 0x402ad5
cmp esi, 8
jb 0x402b78
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4131c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4131c0]
dec edi
jne 0x402afe
xor edx, edx
test esi, esi
jbe 0x402b98
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4131c0]
inc edx
cmp edx, esi
jb 0x402b7f
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x402db5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x402e47
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004070a3
lea eax, [ebp - 0x800]
push eax
call fcn.00409535
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004078df
test al, al
jne 0x402e23
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.00409535
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x402e47
push eax
push 0xaf
call fcn.0040913e
push eax
push 0x4112dc
call fcn.0040a3d8
add esp, 0xc
leave
ret 8
Function at 0x404600
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.004031ed
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00405b9b
test al, al
je 0x4047a5
cmp word [ebp - 0x2440], di
je 0x4047a5
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.004071a7
push eax
call fcn.0040d05f
test eax, eax
je 0x4047a5
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.004071a7
push eax
call fcn.0040d05f
test eax, eax
jne 0x4047a5
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4046f6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040c85b
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.004071a7
push eax
call fcn.00409773
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.004052d7
test al, al
je 0x4046de
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40468f
cmp word [ebp - 0x800], di
je 0x4047a5
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040c85b
lea eax, [ebp - 0x2cc0]
push eax
call fcn.004071a7
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004071a7
push eax
call fcn.0040955f
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x4047a5
lea ecx, [ebp - 0x1c20]
call fcn.00404a11
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.004052d7
test al, al
jne 0x40476c
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00404d74
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x404796
lea ecx, [ebp - 0x1c20]
call fcn.00404a7c
lea ecx, [ebp - 0x1c20]
call fcn.00404b01
lea ecx, [ebp - 0x1c20]
call fcn.00404bf6
mov al, 1
jmp 0x4047a7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404c19
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x404c33
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x404c46
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x404c59
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406a04
test eax, eax
je 0x404c92
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x404c92
cmp word [eax], bx
je 0x404c92
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x404ca6
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x404cc2
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x404d3a
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x404cfb
push edi
call fcn.00409535
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.004092b6
jmp 0x404d04
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x404d21
push dword [ebp + 8]
call fcn.00409301
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.004092b6
jmp 0x404d30
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040ce7c
push dword [esi + 4]
mov ecx, esi
call fcn.00404a55
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x404e35
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x404e5b
cmp dword [ebp + 0xc], esi
jbe 0x404e50
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404eab
mov ecx, edi
call fcn.00404bd3
test al, al
je 0x404e91
cmp dword [ebp + 0xc], esi
jbe 0x404e91
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00404e35
jmp 0x404eae
cmp dword [edi + 0xc], 1
jne 0x404ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x404ea6
xor eax, eax
jmp 0x404eae
or eax, 0xffffffff
jmp 0x404eae
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4050ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x4051ff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40511c
dec eax
je 0x405111
dec eax
jne 0x40511c
push 0xfffffffffffffff4
jmp 0x405113
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x40516b
cmp dword [ebp + 0xc], edi
jbe 0x405186
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405143
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x405186
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405133
jmp 0x405182
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x4051f9
cmp byte [esi + 0x14], 0
je 0x4051f9
cmp dword [esi + 0xc], 0
jne 0x4051f9
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x413e7c
push eax
mov ecx, edi
call fcn.00402f2a
test al, al
je 0x4051e3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405124
test eax, eax
jbe 0x405124
push 0
mov ecx, esi
call fcn.00404b31
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405050
jmp 0x405124
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.004031b4
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00406a04
test eax, eax
je 0x405301
mov eax, dword [esp + 8]
test eax, eax
je 0x405301
cmp word [eax], 0
je 0x405301
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40531e
cmp dword [esp + 4], 0
je 0x40531c
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40531c
xor eax, eax
inc eax
jmp 0x40531e
xor eax, eax
ret 8

Function at 0x40534c
Capabilities:
Get file attributes

Disassembly:
call fcn.00406a04
test eax, eax
je 0x40536c
mov eax, dword [esp + 8]
test eax, eax
je 0x40536c
cmp word [eax], 0
je 0x40536c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405376
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x405379
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406a04
test eax, eax
je 0x40539e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40539e
cmp word [eax], 0
je 0x40539e
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4053b0
cmp dword [ebp + 8], 0
je 0x4053b7
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x4053b9
xor al, al
pop ebp
ret 0xc
Function at 0x4053ef
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406a04
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405415
cmp esi, ebx
je 0x405415
cmp word [esi], bx
je 0x405415
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405424
cmp dword [ebp + 8], ebx
je 0x405452
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x40543d
cmp byte [ebp + 0x10], bl
je 0x405439
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405379
xor eax, eax
jmp 0x405455
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405452
cmp eax, 3
je 0x405452
xor eax, eax
inc eax
jmp 0x405455
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40605f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x406091
cmp dword [ebp - 8], ebx
jne 0x4060d2
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4060d2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40607e
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40607e
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406112
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x411ae8
push eax
call dword [ecx]
test eax, eax
jl 0x406112
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406109
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x4068b1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x4068d4
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0040684a
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40692a
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x406975
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x40698a
cmp dword [esi + 0x18], 0x64
jbe 0x4069fd
mov ecx, esi
call fcn.0040623f
jmp 0x4069fd
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40699b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.00409535
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.004091ba
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040955f
push ebx
mov ecx, esi
call fcn.0040611b
test al, al
jne 0x4069d9
push ebx
mov ecx, esi
call fcn.00406151
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00406542
push ebx
mov esi, eax
call fcn.004091d3
cmp esi, edi
je 0x4069fd
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004091d3
pop edi
pop esi
pop ebx
leave
ret 0xc