joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056dd
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 0x4056f7
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40570a
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40571d
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.0040751c
test eax, eax
je 0x405756
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405756
cmp word [eax], bx
je 0x405756
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 0x40576a
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 0x405786
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405786
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 0x4057fe
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4057bf
push edi
call fcn.0040b0af
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040ae30
jmp 0x4057c8
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x4057e5
push dword [ebp + 8]
call fcn.0040ae7b
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040ae30
jmp 0x4057f4
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040f044
push dword [esi + 4]
mov ecx, esi
call fcn.00405519
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405935
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 0x40595b
cmp dword [ebp + 0xc], esi
jbe 0x405950
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 0x4059ab
mov ecx, edi
call fcn.00405697
test al, al
je 0x405991
cmp dword [ebp + 0xc], esi
jbe 0x405991
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405935
jmp 0x4059ae
cmp dword [edi + 0xc], 1
jne 0x4059a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4059a6
xor eax, eax
jmp 0x4059ae
or eax, 0xffffffff
jmp 0x4059ae
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405bef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405cff
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405c1c
dec eax
je 0x405c11
dec eax
jne 0x405c1c
push 0xfffffffffffffff4
jmp 0x405c13
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 0x405c6b
cmp dword [ebp + 0xc], edi
jbe 0x405c86
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405c43
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 0x405c86
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405c33
jmp 0x405c82
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 0x405cf9
cmp byte [esi + 0x14], 0
je 0x405cf9
cmp dword [esi + 0xc], 0
jne 0x405cf9
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.0040355d
test al, al
je 0x405ce3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405c24
test eax, eax
jbe 0x405c24
push 0
mov ecx, esi
call fcn.004055f5
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405b50
jmp 0x405c24
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.004037e7
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.0040751c
test eax, eax
je 0x405e19
mov eax, dword [esp + 8]
test eax, eax
je 0x405e19
cmp word [eax], 0
je 0x405e19
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405e36
cmp dword [esp + 4], 0
je 0x405e34
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e34
xor eax, eax
inc eax
jmp 0x405e36
xor eax, eax
ret 8

Function at 0x405e64
Capabilities:
Get file attributes

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

Function at 0x405e91
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.0040751c
test eax, eax
je 0x405eb6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405eb6
cmp word [eax], 0
je 0x405eb6
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405ec8
cmp dword [ebp + 8], 0
je 0x405ecf
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405ed1
xor al, al
pop ebp
ret 0xc
Function at 0x405f07
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.0040751c
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405f2d
cmp esi, ebx
je 0x405f2d
cmp word [esi], bx
je 0x405f2d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405f3c
cmp dword [ebp + 8], ebx
je 0x405f6a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405f55
cmp byte [ebp + 0x10], bl
je 0x405f51
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405e91
xor eax, eax
jmp 0x405f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405f6a
cmp eax, 3
je 0x405f6a
xor eax, eax
inc eax
jmp 0x405f6d
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406b77
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 0x406ba9
cmp dword [ebp - 8], ebx
jne 0x406bea
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406bea
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 0x406b96
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 0x406b96
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406c2a
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x413b88
push eax
call dword [ecx]
test eax, eax
jl 0x406c2a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406c21
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 0x4073c9
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 0x4073ec
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.00407362
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 0x407442
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 0x40748d
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x4074a2
cmp dword [esi + 0x18], 0x64
jbe 0x407515
mov ecx, esi
call fcn.00406d57
jmp 0x407515
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4074b3
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.0040b0af
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.0040ace3
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040b0d9
push ebx
mov ecx, esi
call fcn.00406c33
test al, al
jne 0x4074f1
push ebx
mov ecx, esi
call fcn.00406c69
mov ebx, eax
push ebx
mov ecx, esi
call fcn.0040705a
push ebx
mov esi, eax
call fcn.0040acfc
cmp esi, edi
je 0x407515
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040acfc
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a1f7
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.0040a114
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 0x40a284
cmp byte [ebp + 0x10], 0
jne 0x40a2c9
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 0x40a2c9
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.00409fcf
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 0x40a3c5
cmp dword [ebp + 8], 0x200
jge 0x40a3cd
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 0x40a343
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00409fcf
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x40a3af
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 0x40a3cd
inc dword [ebp + 8]
test eax, eax
jne 0x40a2ed
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a499
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.0040adad
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a5a7
cmp ebx, edx
jge 0x40a4ee
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a4f0
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 0x40a4d3
cmp ecx, edx
jne 0x40a4f8
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a4bf
cmp eax, 0xa
jg 0x40a5a7
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 0x40a553
add eax, edx
dec edi
jne 0x40a551
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a5a7
cmp ebx, edx
jge 0x40a590
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a592
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 0x40a574
cmp ecx, edx
jne 0x40a599
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a566
cmp dword [ebp + 8], 0xa
jle 0x40a50c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a5ae
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 0x40a5d6
inc eax
cmp eax, edi
jl 0x40a5c9
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040adad
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a5c7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b549
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 0x40b594
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.0040ea91
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 0x40b913
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 0x40b975
mov ecx, dword [0x41b0d4]
call fcn.00406b16
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 [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 0x40b9c5
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 0x40ba0f
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
Function at 0x40c342
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c35d
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c367
mov byte [eax], 0
test edi, edi
je 0x40c410
movzx eax, word [edi]
test ax, ax
je 0x40c410
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c3a0
cmp dword [ebp + 0xc], 0
je 0x40c3ac
test esi, esi
jne 0x40c3ac
test ebx, ebx
je 0x40c39c
mov byte [ebx], 1
mov esi, edx
jmp 0x40c3bb
cmp ax, 0xd
je 0x40c3ce
cmp ax, 0xa
je 0x40c3d0
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c3c6
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c380
jmp 0x40c3d0
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c3d0
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c40b
mov word [ebx], ax
test esi, esi
je 0x40c40b
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ea67
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c412
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c457
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0041279f
cmp byte [0x41d315], 0
jne 0x40c4e5
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407cbf
push eax
call fcn.0040f314
test eax, eax
jne 0x40c4e5
push 0x4137ec
call fcn.0041278c
lea eax, [ebp - 0x820]
push eax
call fcn.0040b0af
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040ad80
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c5ac
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41c1f1], 1
cmp dword [0x41c200], ebx
je 0x40c5d4
push 0x7d
call fcn.0040a3eb
push eax
push 2
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41c200]
mov dword [0x41c1f4], ebx
mov byte [0x41c1f0], 1
cmp eax, ebx
je 0x40c635
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41d324], ebx
jne 0x40c603
cmp byte [0x41d314], bl
je 0x40c60b
cmp dword [0x41c1f8], ebx
jne 0x40c62d
push ebx
push 1
push 0x111
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c62d
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b50a
cmp dword [0x41c200], ebx
jne 0x40c621
cmp byte [0x41c208], bl
pop ebx
je 0x40c643
jmp fcn.0040c457
ret
Function at 0x40c67f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x41c210], bl
je 0x40c6ff
cmp word [0x41b0d8], bx
je 0x40c6ff
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c644
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c6ff
push dword [ebp + 8]
call fcn.0040b0af
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c704
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x41c210], 0
je 0x40c7ab
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c644
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c7ab
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7a2
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c786
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ea67
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c8d3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x41c0e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x41c0e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41c0ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41c0e0], eax
je 0x40c903
xor eax, eax
inc eax
jmp 0x40c92c
cmp byte [0x41c0e7], 0
je 0x40c911
push 2
pop eax
jmp 0x40c92c
push dword [ebp + 8]
push 0x40bae3
push dword [0x41c200]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c97e
dec eax
je 0x40c990
dec eax
je 0x40c977
dec eax
jne 0x40c95b
push dword [ebp + 8]
push 0x40be2f
push dword [0x41c200]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c8dd
mov al, 0x52
jmp 0x40c98b
dec eax
je 0x40c96c
dec eax
mov al, 0x4e
jne 0x40c98b
mov byte [0x41c0e7], 1
jmp 0x40c98b
mov byte [0x41c1f2], 1
mov al, 0x43
jmp 0x40c98b
mov byte [0x41c0e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c98b