joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443d50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443d83
push esi
call fcn.00452110
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x443d7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443e09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443df2
mov eax, dword [esi + 8]
test eax, eax
je 0x443da7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x443dee
cmp eax, 2
je 0x443df2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x443d9a
cmp eax, 3
je 0x443dcd
cmp eax, 1
jne 0x443d9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x443d9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x443d9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443e30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443e18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443e30
add esp, 4
pop esi
ret

Function at 0x4446b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4446d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4446d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4446d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x472154
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47218c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047020b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004701e3
jmp 0x472198
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473884
call fcn.004792fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473884
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47387b
xor eax, eax
jmp 0x47388c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473892
pop edi
pop esi
pop ebx
ret 4
Function at 0x47982e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47985c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47987a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479794
jmp 0x47987a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47987a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479794
test edi, edi
mov eax, edi
jne 0x479864
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402dea
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402df8
call fcn.00402dc0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e25
test cl, 7
je 0x402e25
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402e06
cmp esi, 8
jb 0x402ea9
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 0x402e2f
xor edx, edx
test esi, esi
jbe 0x402ec9
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 0x402eb0
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40338d
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 0x40341f
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.0040791a
lea eax, [ebp - 0x800]
push eax
call fcn.0040af70
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004081f7
test al, al
jne 0x4033fb
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040af70
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x40341f
push eax
push 0xaf
call fcn.0040a25a
push eax
push 0x413300
call fcn.0040be73
add esp, 0xc
leave
ret 8
Function at 0x40506a
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.00403886
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406659
test al, al
je 0x40520f
cmp word [ebp - 0x2440], di
je 0x40520f
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a1e
push eax
call fcn.0040f2f2
test eax, eax
je 0x40520f
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407a1e
push eax
call fcn.0040f2f2
test eax, eax
jne 0x40520f
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x405160
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040e99c
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407a1e
push eax
call fcn.0040b20e
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d95
test al, al
je 0x405148
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4050f9
cmp word [ebp - 0x800], di
je 0x40520f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e99c
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a1e
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407a1e
push eax
call fcn.0040af9a
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 0x40520f
lea ecx, [ebp - 0x1c20]
call fcn.0040547b
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d95
test al, al
jne 0x4051d6
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.004057de
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x405200
lea ecx, [ebp - 0x1c20]
call fcn.004054e6
lea ecx, [ebp - 0x1c20]
call fcn.0040556b
lea ecx, [ebp - 0x1c20]
call fcn.00405660
mov al, 1
jmp 0x405211
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405683
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 0x40569d
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4056b0
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4056c3
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.0040726e
test eax, eax
je 0x4056fc
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4056fc
cmp word [eax], bx
je 0x4056fc
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 0x405710
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 0x40572c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40572c
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 0x4057a4
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x405765
push edi
call fcn.0040af70
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040ac9f
jmp 0x40576e
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x40578b
push dword [ebp + 8]
call fcn.0040acea
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040ac9f
jmp 0x40579a
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040f0df
push dword [esi + 4]
mov ecx, esi
call fcn.004054bf
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4058db
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 0x405901
cmp dword [ebp + 0xc], esi
jbe 0x4058f6
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 0x405951
mov ecx, edi
call fcn.0040563d
test al, al
je 0x405937
cmp dword [ebp + 0xc], esi
jbe 0x405937
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004058db
jmp 0x405954
cmp dword [edi + 0xc], 1
jne 0x40594c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40594c
xor eax, eax
jmp 0x405954
or eax, 0xffffffff
jmp 0x405954
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405b95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405ca5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405bc2
dec eax
je 0x405bb7
dec eax
jne 0x405bc2
push 0xfffffffffffffff4
jmp 0x405bb9
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 0x405c11
cmp dword [ebp + 0xc], edi
jbe 0x405c2c
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405be9
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 0x405c2c
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405bd9
jmp 0x405c28
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 0x405c9f
cmp byte [esi + 0x14], 0
je 0x405c9f
cmp dword [esi + 0xc], 0
jne 0x405c9f
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.00403503
test al, al
je 0x405c89
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405bca
test eax, eax
jbe 0x405bca
push 0
mov ecx, esi
call fcn.0040559b
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405af6
jmp 0x405bca
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.0040378d
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.0040726e
test eax, eax
je 0x405dbf
mov eax, dword [esp + 8]
test eax, eax
je 0x405dbf
cmp word [eax], 0
je 0x405dbf
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405ddc
cmp dword [esp + 4], 0
je 0x405dda
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405dda
xor eax, eax
inc eax
jmp 0x405ddc
xor eax, eax
ret 8

Function at 0x405e0a
Capabilities:
Get file attributes

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

Function at 0x405e37
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.0040726e
test eax, eax
je 0x405e5c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405e5c
cmp word [eax], 0
je 0x405e5c
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405e6e
cmp dword [ebp + 8], 0
je 0x405e75
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405e77
xor al, al
pop ebp
ret 0xc
Function at 0x405ead
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.0040726e
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405ed3
cmp esi, ebx
je 0x405ed3
cmp word [esi], bx
je 0x405ed3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405ee2
cmp dword [ebp + 8], ebx
je 0x405f10
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405efb
cmp byte [ebp + 0x10], bl
je 0x405ef7
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405e37
xor eax, eax
jmp 0x405f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405f10
cmp eax, 3
je 0x405f10
xor eax, eax
inc eax
jmp 0x405f13
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406ab1
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 0x406ae3
cmp dword [ebp - 4], edi
jne 0x406b24
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406b24
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 0x406ad0
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 0x406ad0
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x406b7a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413b6c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x406b71
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x406b68
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 0x40719d
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.00407136
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 0x407204
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]
push dword [ebp + 0x18]
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
test eax, eax
je 0x40725a
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 0x407267
mov ecx, esi
call fcn.00406cac
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40a308
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.0040ac1c
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a416
cmp ebx, edx
jge 0x40a35d
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a35f
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 0x40a342
cmp ecx, edx
jne 0x40a367
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a32e
cmp eax, 0xa
jg 0x40a416
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 0x40a3c2
add eax, edx
dec edi
jne 0x40a3c0
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a416
cmp ebx, edx
jge 0x40a3ff
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a401
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 0x40a3e3
cmp ecx, edx
jne 0x40a408
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a3d5
cmp dword [ebp + 8], 0xa
jle 0x40a37b
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a41d
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 0x40a445
inc eax
cmp eax, edi
jl 0x40a438
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040ac1c
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a436
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b46a
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 0x40b4b5
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 [0x422250], ax
xor eax, eax
mov word [0x422252], ax
mov dword [0x4150b0], 0x422250
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ea1c
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 0x40b834
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 0x40b896
mov ecx, dword [0x41b0d4]
call fcn.00406a9a
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x413704
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 0x40b8e6
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 0x40b930
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 0x413728
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8