joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x48e015
lea edi, [esi - 0x8d015]
push edi
or ebp, 0xffffffff
jmp 0x4ab482
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ab489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ab478
mov eax, 1
add ebx, ebx
jne 0x4ab49b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ab4ac
jne 0x4ab4cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ab4cb
dec eax
add ebx, ebx
jne 0x4ab4b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ab490
add ebx, ebx
jne 0x4ab4c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ab51d
xor ecx, ecx
sub eax, 3
jb 0x4ab4e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ab552
sar eax, 1
mov ebp, eax
jmp 0x4ab4ee
add ebx, ebx
jne 0x4ab4ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ab4bc
inc ecx
add ebx, ebx
jne 0x4ab4fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ab4bc
add ebx, ebx
jne 0x4ab509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ab4fe
jne 0x4ab51a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ab4fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ab53c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ab52e
jmp 0x4ab47e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ab53c
add edi, ecx
jmp 0x4ab47e
pop esi
mov edi, esi
mov ecx, 0x2ec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ab55a
cmp byte [edi], 4
jne 0x4ab55a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ab55f
lea edi, [esi + 0xa9000]
mov eax, dword [edi]
or eax, eax
je 0x4ab5d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xab90c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xab948]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ab58c
mov ecx, edi
jns 0x4ab5bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xab950]
or eax, eax
je 0x4ab5d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4ab5a9
call dword [esi + 0xab94c]
mov ebp, dword [esi + 0xab954]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ab60b
sub esp, 0xffffff80
jmp 0x4018b8
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.0040660d
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.00407c19
push eax
call fcn.0040f17a
test eax, eax
je 0x405197
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407c19
push eax
call fcn.0040f17a
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.0040e96e
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407c19
push eax
call fcn.0040b18a
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.0040e96e
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407c19
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407c19
push eax
call fcn.0040af76
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.00407476
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.0040af76
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.0040ae0b
jmp 0x40570c
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040ef67
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.00407476
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.00407476
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.00407476
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.00407476
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 0x406ac5
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 0x406af7
cmp dword [ebp - 8], ebx
jne 0x406b38
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406b38
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 0x406ae4
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 0x406ae4
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406b78
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x413b9c
push eax
call dword [ecx]
test eax, eax
jl 0x406b78
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406b6f
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 0x407325
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 0x407348
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.004072be
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 0x40739e
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 0x4073e9
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x4073fe
cmp dword [esi + 0x18], 0x64
jbe 0x40746f
mov ecx, esi
call fcn.00406cb5
jmp 0x40746f
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40740f
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.0040af4c
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.0040ab80
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040af76
push ebx
mov ecx, esi
call fcn.00406b81
test al, al
jne 0x40744b
push ebx
mov ecx, esi
call fcn.00406bb7
push ebx
mov ecx, esi
call fcn.00406fb6
push ebx
mov esi, eax
call fcn.0040ab99
cmp esi, edi
je 0x40746f
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040ab99
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a094
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.00409fb1
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 0x40a121
cmp byte [ebp + 0x10], 0
jne 0x40a166
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 0x40a166
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.00409e6c
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 0x40a262
cmp dword [ebp + 8], 0x200
jge 0x40a26a
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 0x40a1e0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00409e6c
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x40a24c
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 0x40a26a
inc dword [ebp + 8]
test eax, eax
jne 0x40a18a
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a336
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.0040ac4a
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a444
cmp ebx, edx
jge 0x40a38b
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a38d
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 0x40a370
cmp ecx, edx
jne 0x40a395
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a35c
cmp eax, 0xa
jg 0x40a444
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 0x40a3f0
add eax, edx
dec edi
jne 0x40a3ee
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a444
cmp ebx, edx
jge 0x40a42d
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a42f
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 0x40a411
cmp ecx, edx
jne 0x40a436
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a403
cmp dword [ebp + 8], 0xa
jle 0x40a3a9
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a44b
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 0x40a473
inc eax
cmp eax, edi
jl 0x40a466
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040ac4a
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a464
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b3e6
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 0x40b431
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 [0x422240], ax
xor eax, eax
mov word [0x422242], ax
mov dword [0x4150b0], 0x422240
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e998
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 0x40b7b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x41c200]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41d314], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b812
mov ecx, dword [0x41b0d4]
call fcn.00406a64
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41373c
push 0
push 0xc2
push edi
call esi
mov byte [0x41d314], 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 0x40b862
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 0x40b8ac
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 0x413760
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8