joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46347c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463493
add esp, 0xfffffff0
call fcn.00403ce8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420df0
mov eax, dword [0x475fcc]
cmp word [eax + 2], 0
jne 0x4634bb
mov eax, dword [0x475fcc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464b6c
mov eax, dword [0x476088]
cmp word [eax + 2], 0
jne 0x4634d5
mov eax, dword [0x476088]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464d64
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4186b4]
call fcn.00403994
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4186b4]
call fcn.00403994
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423354]
call fcn.0042a77c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46365c
mov eax, dword [0x475ec4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ab4c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465314
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x475ec4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d36c
test eax, eax
je 0x4635ca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040941c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d394
test eax, eax
je 0x4635de
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049c0
mov eax, dword [0x475d80]
cmp byte [eax], 0
jne 0x463612
mov eax, ebx
call fcn.00463784
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004654f0
mov eax, ebx
call fcn.00465eb4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x463652
call fcn.00403d40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463a04
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479d78]
cmp dword [eax + 0x30], 0
je 0x463aae
cmp dword [ebx + 0x94], 0
jne 0x463aa8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x463994
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463aa8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x463a6e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463aa8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041aba8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463a7d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x464610
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x464645
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404840
jmp 0x464652
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4656cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46570d
mov eax, esi
call fcn.0044b954
test al, al
je 0x46570d
mov eax, dword [ebx + 0x84]
call fcn.0044b650
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46570d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b650
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
mov eax, edx
call fcn.004090b8
ret

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

Disassembly:
push ebx
push esi
mov esi, edx
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x47606c]
mov eax, dword [eax]
call fcn.004648c0
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x46d711
cmp eax, dword [esp]
pop edx
pop eax
ja 0x46d6db
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x46d6db
pop esi
pop ebx
ret
Function at 0x46e5f0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c00
xor eax, eax
push ebp
push 0x46e6c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x46e6e0
call fcn.00404a5c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0046e5a0
mov eax, 0x46e6f4
call fcn.00409084
test al, al
je 0x46e657
mov eax, 0x46e6f4
xor edx, edx
call fcn.004091a0
mov eax, 0x46e6f4
call fcn.004091c8
xor eax, eax
push ebp
push 0x46e69e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x46e708
mov eax, dword [ebp - 4]
call fcn.00404c10
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
mov eax, dword [0x475f54]
mov eax, dword [eax]
mov edx, 0x7d0
call fcn.0046d6d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e6aa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e6cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404774
ret

Function at 0x46e71c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c00
mov eax, dword [ebp - 8]
call fcn.00404c00
xor eax, eax
push ebp
push 0x46e7f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x46e810
call fcn.00404a5c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0046e5a0
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.00409084
test al, al
jne 0x46e7db
xor eax, eax
push ebp
push 0x46e7cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47606c]
mov eax, dword [eax]
call fcn.004648c0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404c10
push eax
mov eax, dword [ebp - 4]
call fcn.00404c10
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
mov eax, dword [0x475f54]
mov eax, dword [eax]
mov edx, 0x7d0
call fcn.0046d6d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e7fd
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404774
ret
Function at 0x402e1b
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402e29
call fcn.00402df1
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e56
test cl, 7
je 0x402e56
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402e37
cmp esi, 8
jb 0x402eda
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4151c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec edi
jne 0x402e60
xor edx, edx
test esi, esi
jbe 0x402efa
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4151c0]
inc edx
cmp edx, esi
jb 0x402ee1
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404ff2
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.00403819
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.004065cb
test al, al
je 0x405197
cmp word [ebp - 0x2440], di
je 0x405197
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407bd7
push eax
call fcn.0040f138
test eax, eax
je 0x405197
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407bd7
push eax
call fcn.0040f138
test eax, eax
jne 0x405197
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4050e8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040e92c
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407bd7
push eax
call fcn.0040b148
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d07
test al, al
je 0x4050d0
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x405081
cmp word [ebp - 0x800], di
je 0x405197
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e92c
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407bd7
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407bd7
push eax
call fcn.0040af34
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 0x405197
lea ecx, [ebp - 0x1c20]
call fcn.00405403
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d07
test al, al
jne 0x40515e
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00405750
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x405188
lea ecx, [ebp - 0x1c20]
call fcn.0040546e
lea ecx, [ebp - 0x1c20]
call fcn.004054f3
lea ecx, [ebp - 0x1c20]
call fcn.004055e8
mov al, 1
jmp 0x405199
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40560b
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 0x405625
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x405638
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40564b
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.00407434
test eax, eax
je 0x405684
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405684
cmp word [eax], bx
je 0x405684
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 0x405698
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 0x4056b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4056b4
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 0x405716
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4056e2
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040af34
jmp 0x4056eb
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4056fe
push dword [ebp + 8]
push eax
call fcn.0040adc9
jmp 0x40570c
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040ef25
push dword [esi + 4]
mov ecx, esi
call fcn.00405447
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40584d
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 0x405873
cmp dword [ebp + 0xc], esi
jbe 0x405868
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 0x4058c3
mov ecx, edi
call fcn.004055c5
test al, al
je 0x4058a9
cmp dword [ebp + 0xc], esi
jbe 0x4058a9
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.0040584d
jmp 0x4058c6
cmp dword [edi + 0xc], 1
jne 0x4058be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4058be
xor eax, eax
jmp 0x4058c6
or eax, 0xffffffff
jmp 0x4058c6
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405b07
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405c17
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405b34
dec eax
je 0x405b29
dec eax
jne 0x405b34
push 0xfffffffffffffff4
jmp 0x405b2b
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 0x405b83
cmp dword [ebp + 0xc], edi
jbe 0x405b9e
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405b5b
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 0x405b9e
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405b4b
jmp 0x405b9a
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 0x405c11
cmp byte [esi + 0x14], 0
je 0x405c11
cmp dword [esi + 0xc], 0
jne 0x405c11
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.004034a7
test al, al
je 0x405bfb
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405b3c
test eax, eax
jbe 0x405b3c
push 0
mov ecx, esi
call fcn.00405523
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405a68
jmp 0x405b3c
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403720
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00407434
test eax, eax
je 0x405d31
mov eax, dword [esp + 8]
test eax, eax
je 0x405d31
cmp word [eax], 0
je 0x405d31
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405d4e
cmp dword [esp + 4], 0
je 0x405d4c
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d4c
xor eax, eax
inc eax
jmp 0x405d4e
xor eax, eax
ret 8

Function at 0x405d7c
Capabilities:
Get file attributes

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

Function at 0x405da9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00407434
test eax, eax
je 0x405dce
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405dce
cmp word [eax], 0
je 0x405dce
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405de0
cmp dword [ebp + 8], 0
je 0x405de7
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405de9
xor al, al
pop ebp
ret 0xc
Function at 0x405e1f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00407434
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405e45
cmp esi, ebx
je 0x405e45
cmp word [esi], bx
je 0x405e45
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405e54
cmp dword [ebp + 8], ebx
je 0x405e82
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405e6d
cmp byte [ebp + 0x10], bl
je 0x405e69
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405da9
xor eax, eax
jmp 0x405e85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405e82
cmp eax, 3
je 0x405e82
xor eax, eax
inc eax
jmp 0x405e85
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406a83
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 0x406ab5
cmp dword [ebp - 8], ebx
jne 0x406af6
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406af6
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 0x406aa2
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 0x406aa2
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406b36
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x413b9c
push eax
call dword [ecx]
test eax, eax
jl 0x406b36
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406b2d
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 0x4072e3
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 0x407306
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.0040727c
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 0x40735c
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 0x4073a7
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x4073bc
cmp dword [esi + 0x18], 0x64
jbe 0x40742d
mov ecx, esi
call fcn.00406c73
jmp 0x40742d
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4073cd
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.0040af0a
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.0040ab3e
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040af34
push ebx
mov ecx, esi
call fcn.00406b3f
test al, al
jne 0x407409
push ebx
mov ecx, esi
call fcn.00406b75
push ebx
mov ecx, esi
call fcn.00406f74
push ebx
mov esi, eax
call fcn.0040ab57
cmp esi, edi
je 0x40742d
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040ab57
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a052
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00409f6f
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
sub edi, dword [ebp - 0x24]
sub esi, eax
sub esi, dword [ebp - 0x20]
inc edi
inc esi
cmp byte [ebp - 1], 0
je 0x40a0df
cmp byte [ebp + 0x10], 0
jne 0x40a124
imul eax, dword [ebp - 8]
push 0x206
cdq
push 0x64
pop ecx
idiv ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [ebp + 0x10], 0
jne 0x40a124
push 0x400
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00409e2a
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push dword [ebp + 8]
sub esi, eax
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp + 8], 0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], eax
jmp 0x40a220
cmp dword [ebp + 8], 0x200
jge 0x40a228
push 0x400
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x844], 0
je 0x40a19e
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00409e2a
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x40a20a
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x204
inc eax
imul eax, dword [ebp - 8]
cdq
push 0x64
pop ecx
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc eax
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
sub eax, esi
imul eax, dword [ebp - 8]
cdq
idiv ecx
push eax
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x34]
sar ecx, 1
sub eax, ecx
sub eax, dword [ebp - 0x24]
push 0x64
imul eax, dword [ebp - 0xc]
pop ecx
cdq
idiv ecx
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
je 0x40a228
inc dword [ebp + 8]
test eax, eax
jne 0x40a148
pop edi
pop esi
pop ebx
leave
ret 0xc