joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f778
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42f78e
xor al, al
jmp 0x42f7fb
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x42f7c3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f7c7
xor al, al
jmp 0x42f7f9
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.00432bc0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x430042
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x456fdc], 0
push esi
jne 0x42ffb5
call fcn.0042fedb
test eax, eax
je 0x42fff8
mov eax, dword [0x456fdc]
cmp eax, 1
jne 0x42ffd6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42fff8
pop esi
ret
push eax
call dword [0x456fe4]
test eax, eax
jne 0x430040
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42fffc
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x456fdc]
call dword [0x456fe4]
mov edi, eax
test edi, edi
je 0x430021
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x43003d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x456fdc]
call dword [0x456fe0]
add edi, 0x10
cmp edi, esi
jb 0x430029
mov eax, edi
pop edi
pop esi
ret
jmp 0x42ffa2

Function at 0x43028b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455090]
jne 0x430295
repz ret
jmp fcn.0043483c
Function at 0x43edbd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004350a7
and dword [ebp - 4], 0
cmp dword [0x457aac], 0
mov ebx, eax
jne 0x43ee6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43ef1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43ef1f
push eax
call fcn.00435035
mov dword [esp], 0x4480f0
push edi
mov dword [0x457aac], eax
call esi
push eax
call fcn.00435035
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457ab0], eax
call esi
push eax
call fcn.00435035
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x457ab4], eax
call esi
push eax
call fcn.00435035
pop ecx
mov dword [0x457abc], eax
test eax, eax
je 0x43ee6e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435035
pop ecx
mov dword [0x457ab8], eax
mov eax, dword [0x457ab8]
cmp eax, ebx
je 0x43eec6
cmp dword [0x457abc], ebx
je 0x43eec6
push eax
call fcn.004350b0
push dword [0x457abc]
mov esi, eax
call fcn.004350b0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43eec6
test edi, edi
je 0x43eec6
call esi
test eax, eax
je 0x43eebd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43eebd
test byte [ebp - 0xc], 1
jne 0x43eec6
or dword [ebp + 0x10], 0x200000
jmp 0x43eeff
mov eax, dword [0x457ab0]
cmp eax, ebx
je 0x43eeff
push eax
call fcn.004350b0
pop ecx
test eax, eax
je 0x43eeff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43eeff
mov eax, dword [0x457ab4]
cmp eax, ebx
je 0x43eeff
push eax
call fcn.004350b0
pop ecx
test eax, eax
je 0x43eeff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457aac]
call fcn.004350b0
pop ecx
test eax, eax
je 0x43ef1f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ef21
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402de2
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402df0
call fcn.00402db8
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e1d
test cl, 7
je 0x402e1d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402dfe
cmp esi, 8
jb 0x402ea1
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 0x402e27
xor edx, edx
test esi, esi
jbe 0x402ec1
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 0x402ea8
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x403385
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 0x403417
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.00407ac7
lea eax, [ebp - 0x800]
push eax
call fcn.0040b11d
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004083a4
test al, al
jne 0x4033f3
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b11d
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403417
push eax
push 0xaf
call fcn.0040a407
push eax
push 0x413300
call fcn.0040c020
add esp, 0xc
leave
ret 8
Function at 0x405062
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.0040387e
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406651
test al, al
je 0x405207
cmp word [ebp - 0x2440], di
je 0x405207
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407bcb
push eax
call fcn.0040f568
test eax, eax
je 0x405207
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407bcb
push eax
call fcn.0040f568
test eax, eax
jne 0x405207
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x405158
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ebed
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407bcb
push eax
call fcn.0040b3bb
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d8d
test al, al
je 0x405140
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4050f1
cmp word [ebp - 0x800], di
je 0x405207
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ebed
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407bcb
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407bcb
push eax
call fcn.0040b147
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 0x405207
lea ecx, [ebp - 0x1c20]
call fcn.00405473
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d8d
test al, al
jne 0x4051ce
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.004057d6
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x4051f8
lea ecx, [ebp - 0x1c20]
call fcn.004054de
lea ecx, [ebp - 0x1c20]
call fcn.00405563
lea ecx, [ebp - 0x1c20]
call fcn.00405658
mov al, 1
jmp 0x405209
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40567b
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 0x405695
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4056a8
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4056bb
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.00407428
test eax, eax
je 0x4056f4
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4056f4
cmp word [eax], bx
je 0x4056f4
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 0x405708
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 0x405724
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405724
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 0x40579c
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40575d
push edi
call fcn.0040b11d
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040ae4c
jmp 0x405766
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x405783
push dword [ebp + 8]
call fcn.0040ae97
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040ae4c
jmp 0x405792
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040f330
push dword [esi + 4]
mov ecx, esi
call fcn.004054b7
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4058d3
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 0x4058f9
cmp dword [ebp + 0xc], esi
jbe 0x4058ee
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 0x405949
mov ecx, edi
call fcn.00405635
test al, al
je 0x40592f
cmp dword [ebp + 0xc], esi
jbe 0x40592f
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004058d3
jmp 0x40594c
cmp dword [edi + 0xc], 1
jne 0x405944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405944
xor eax, eax
jmp 0x40594c
or eax, 0xffffffff
jmp 0x40594c
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405b8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405c9d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405bba
dec eax
je 0x405baf
dec eax
jne 0x405bba
push 0xfffffffffffffff4
jmp 0x405bb1
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 0x405c09
cmp dword [ebp + 0xc], edi
jbe 0x405c24
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405be1
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 0x405c24
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405bd1
jmp 0x405c20
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 0x405c97
cmp byte [esi + 0x14], 0
je 0x405c97
cmp dword [esi + 0xc], 0
jne 0x405c97
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.004034fb
test al, al
je 0x405c81
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405bc2
test eax, eax
jbe 0x405bc2
push 0
mov ecx, esi
call fcn.00405593
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405aee
jmp 0x405bc2
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403785
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

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

Function at 0x405e02
Capabilities:
Get file attributes

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

Function at 0x405e2f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00407428
test eax, eax
je 0x405e54
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405e54
cmp word [eax], 0
je 0x405e54
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405e66
cmp dword [ebp + 8], 0
je 0x405e6d
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405e6f
xor al, al
pop ebp
ret 0xc
Function at 0x405ea5
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00407428
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405ecb
cmp esi, ebx
je 0x405ecb
cmp word [esi], bx
je 0x405ecb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405eda
cmp dword [ebp + 8], ebx
je 0x405f08
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405ef3
cmp byte [ebp + 0x10], bl
je 0x405eef
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405e2f
xor eax, eax
jmp 0x405f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405f08
cmp eax, 3
je 0x405f08
xor eax, eax
inc eax
jmp 0x405f0b
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406aa9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x406adb
cmp dword [ebp - 4], edi
jne 0x406b1c
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406b1c
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x406ac8
push edi
push edi
push edi
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 0x406ac8
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x406b72
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413b9c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x406b69
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x406b60
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x407316
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004072af
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40737d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x4073fe
cmp dword [ebp + 0xc], edi
je 0x407421
cmp dword [esi + 0x14], edi
jne 0x407421
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x407421
push eax
mov ecx, esi
call fcn.00406f8f
mov esi, eax
cmp esi, edi
je 0x407421
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040ad18
jmp 0x407421
cmp eax, edi
je 0x407414
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x407421
mov ecx, esi
call fcn.00406ca4
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40a4b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040adc9
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a5c3
cmp ebx, edx
jge 0x40a50a
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a50c
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40a4ef
cmp ecx, edx
jne 0x40a514
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a4db
cmp eax, 0xa
jg 0x40a5c3
mov dword [ebp - 4], 0x41aeb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41afd0]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x40a56f
add eax, edx
dec edi
jne 0x40a56d
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a5c3
cmp ebx, edx
jge 0x40a5ac
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a5ae
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40a590
cmp ecx, edx
jne 0x40a5b5
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a582
cmp dword [ebp + 8], 0xa
jle 0x40a528
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a5ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x417eb0]
xor dl, byte [eax + ebx*4 + 0x4186b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x418ab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4182b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x40a5f2
inc eax
cmp eax, edi
jl 0x40a5e5
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040adc9
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a5e3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b617
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b662
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x427a50], ax
xor eax, eax
mov word [0x427a52], ax
mov dword [0x4150b0], 0x427a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ec6d
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b9e1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x421a00]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x422b14], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40ba43
mov ecx, dword [0x41b0d4]
call fcn.00406a92
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x413734
push 0
push 0xc2
push edi
call esi
mov byte [0x422b14], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40ba93
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40badd
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8