joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034f20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10061213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10055381
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1005a9e9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1005bf05
test eax, eax
je 0x1003503c
mov ecx, dword [esp + 0x3c]
call fcn.1005aa16
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10035000
push edi
mov ecx, esi
call fcn.10058060
mov ecx, esi
call fcn.100351a0
cmp dword [esp + 0x38], 1
jne 0x10035035
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1005819b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10037a60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10037a93
push esi
call fcn.1003ab50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10037a8c
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 0x10037b19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10037b02
mov eax, dword [esi + 8]
test eax, eax
je 0x10037ab7
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 0x10037afe
cmp eax, 2
je 0x10037b02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10037aaa
cmp eax, 3
je 0x10037add
cmp eax, 1
jne 0x10037aaa
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 0x10037aaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10037aaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10037b40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10037b28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10037b40
add esp, 4
pop esi
ret

Function at 0x1005615d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10056195
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.1005422e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10054206
jmp 0x100561a1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1005784e
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 0x10057890
call fcn.1005d1ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10057890
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10057887
xor eax, eax
jmp 0x10057898
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1005789e
pop edi
pop esi
pop ebx
ret 4
Function at 0x40179e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4100d4], 0
jne 0x4017ac
call fcn.00401774
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4017d9
test cl, 7
je 0x4017d9
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec esi
inc ecx
jmp 0x4017ba
cmp esi, 8
jb 0x40185d
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4100d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec edi
jne 0x4017e3
xor edx, edx
test esi, esi
jbe 0x40187d
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4100d0]
inc edx
cmp edx, esi
jb 0x401864
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40192b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004012c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4019bd
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.0040747e
lea eax, [ebp - 0x800]
push eax
call fcn.00409a18
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407914
test al, al
jne 0x401999
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.00409a18
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4019bd
push eax
push 0xaf
call fcn.004094a7
push eax
push 0x40e2b0
call fcn.0040a81b
add esp, 0xc
leave
ret 8
Function at 0x403712
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 0x40372c
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40373f
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x403752
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.00406dec
test eax, eax
je 0x40378b
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40378b
cmp word [eax], bx
je 0x40378b
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 0x40379f
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 0x4037bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4037bb
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 0x403833
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4037f4
push edi
call fcn.00409a18
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.00409799
jmp 0x4037fd
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x40381a
push dword [ebp + 8]
call fcn.004097e4
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.00409799
jmp 0x403829
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040d73f
push dword [esi + 4]
mov ecx, esi
call fcn.00403561
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4038fe
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 0x403924
cmp dword [ebp + 0xc], esi
jbe 0x403919
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 0x403974
mov ecx, edi
call fcn.004036cc
test al, al
je 0x40395a
cmp dword [ebp + 0xc], esi
jbe 0x40395a
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004038fe
jmp 0x403977
cmp dword [edi + 0xc], 1
jne 0x40396f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40396f
xor eax, eax
jmp 0x403977
or eax, 0xffffffff
jmp 0x403977
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x403bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00406dec
test eax, eax
je 0x403bda
mov eax, dword [esp + 8]
test eax, eax
je 0x403bda
cmp word [eax], 0
je 0x403bda
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x403bf7
cmp dword [esp + 4], 0
je 0x403bf5
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403bf5
xor eax, eax
inc eax
jmp 0x403bf7
xor eax, eax
ret 8

Function at 0x403c56
Capabilities:
Get file attributes

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

Function at 0x403c83
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406dec
test eax, eax
je 0x403ca8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403ca8
cmp word [eax], 0
je 0x403ca8
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403cba
cmp dword [ebp + 8], 0
je 0x403cc1
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403cc3
xor al, al
pop ebp
ret 0xc

Function at 0x403e31
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406dec
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x403e57
cmp esi, ebx
je 0x403e57
cmp word [esi], bx
je 0x403e57
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403e66
cmp dword [ebp + 8], ebx
je 0x403e94
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x403e7f
cmp byte [ebp + 0x10], bl
je 0x403e7b
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403c83
xor eax, eax
jmp 0x403e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403e94
cmp eax, 3
je 0x403e94
xor eax, eax
inc eax
jmp 0x403e97
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40533f
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 0x405371
cmp dword [ebp - 4], edi
jne 0x4053b2
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4053b2
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 0x40535e
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 0x40535e
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x405408
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40ec00
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4053ff
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x4053f6
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 0x405a2b
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.004059c4
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 0x405a92
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 0x405ae8
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 0x405af5
mov ecx, esi
call fcn.0040553a
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40966e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4096a6
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4096aa
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x4096b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4096e9
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4096ed
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x409e12
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x410028], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409e5d
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 [0x430ef0], ax
xor eax, eax
mov word [0x430ef2], ax
mov dword [0x410028], 0x430ef0
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cd25
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x410018
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 0x40a1dc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x42ae80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42bf94], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a23e
mov ecx, dword [0x42454c]
call fcn.00405328
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40e2f8
push 0
push 0xc2
push edi
call esi
mov byte [0x42bf94], 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 0x40a28e
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 0x40a2d8
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 0x40e7c8
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40ab2e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40ab49
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ab53
mov byte [eax], 0
test edi, edi
je 0x40abfc
movzx eax, word [edi]
test ax, ax
je 0x40abfc
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40ab8c
cmp dword [ebp + 0xc], 0
je 0x40ab98
test esi, esi
jne 0x40ab98
test ebx, ebx
je 0x40ab88
mov byte [ebx], 1
mov esi, edx
jmp 0x40aba7
cmp ax, 0xd
je 0x40abba
cmp ax, 0xa
je 0x40abbc
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40abb2
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40ab6c
jmp 0x40abbc
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40abbc
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40abf7
mov word [ebx], ax
test esi, esi
je 0x40abf7
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.0040ccfb
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40abfe
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x40ac43
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040de24
cmp byte [0x42bf95], 0
jne 0x40acd1
push 6
push dword [0x410014]
lea eax, [ebp - 0x820]
push eax
call fcn.0040756a
push eax
call fcn.0040d9c1
test eax, eax
jne 0x40acd1
push 0x40e848
call fcn.0040de11
lea eax, [ebp - 0x820]
push eax
call fcn.00409a18
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040973a
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 0x40ad9c
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x42ae71], 1
cmp dword [0x42ae80], ebx
je 0x40adc4
push 0x7d
call fcn.004094a7
push eax
push 2
push dword [0x42ae80]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x42ae80]
mov dword [0x42ae74], ebx
mov byte [0x42ae70], 1
cmp eax, ebx
je 0x40ae25
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42bfa4], ebx
jne 0x40adf3
cmp byte [0x42bf94], bl
je 0x40adfb
cmp dword [0x42ae78], ebx
jne 0x40ae1d
push ebx
push 1
push 0x111
push dword [0x42ae80]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ae1d
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409dd3
cmp dword [0x42ae80], ebx
jne 0x40ae11
cmp byte [0x42ae88], bl
pop ebx
je 0x40ae33
jmp fcn.0040ac43
ret

Function at 0x40ae6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x42ae90], bl
je 0x40aeef
cmp word [0x424550], bx
je 0x40aeef
push esi
push 0x424550
lea esi, [ebp - 0x808]
call fcn.0040ae34
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 0x40aeef
push dword [ebp + 8]
call fcn.00409a18
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 0x40aef4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x42ae90], 0
je 0x40af9b
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040ae34
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 0x40af9b
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 0x40af92
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40af76
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.0040ccfb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40b0c3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x42ae6e], 0
mov eax, dword [ebp + 0xc]
mov dword [0x42ad60], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42ad64], eax
mov eax, dword [ebp + 0x14]
mov dword [0x42ad58], eax
je 0x40b0f3
xor eax, eax
inc eax
jmp 0x40b11c
cmp byte [0x42ae6f], 0
je 0x40b101
push 2
pop eax
jmp 0x40b11c
push dword [ebp + 8]
push 0x40a3ac
push dword [0x42ae80]
push str.REPLACEFILEDLG
push dword [0x42ad5c]
call esi
dec eax
je 0x40b16e
dec eax
je 0x40b180
dec eax
je 0x40b167
dec eax
jne 0x40b14b
push dword [ebp + 8]
push 0x40a6f8
push dword [0x42ae80]
push str.RENAMEDLG
push dword [0x42ad5c]
call esi
test eax, eax
je 0x40b0cd
mov al, 0x52
jmp 0x40b17b
dec eax
je 0x40b15c
dec eax
mov al, 0x4e
jne 0x40b17b
mov byte [0x42ae6f], 1
jmp 0x40b17b
mov byte [0x42ae72], 1
mov al, 0x43
jmp 0x40b17b
mov byte [0x42ae6e], 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 0x40b17b