joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403852
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4038de
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4038c9
cmp dword [ebp + 0x10], ebx
jne 0x4038bb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403852
test eax, eax
jne 0x4038c9
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x40388e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x4038de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403d20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403d4d
mov ecx, dword [0x424f90]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4184e8], eax
push dword [0x40a094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403e4b
cmp eax, edi
jl 0x403e44
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a094]
call ebx
test eax, eax
je 0x403e41
cmp dword [ebp - 4], esi
jne 0x403e41
push dword [ebp + 8]
add dword [0x4184e8], esi
call fcn.00403e4b
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403e44
cmp dword [ebp + 0x10], edi
jne 0x403e10
cmp dword [ebp + 8], edi
jle 0x403e3c
mov esi, 0x4144a4
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403dc0
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a094]
call ebx
test eax, eax
je 0x403e41
cmp edi, dword [ebp - 4]
jne 0x403e41
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403e0c
cmp dword [ebp + 0x14], edi
jne 0x403e0c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4184e8], eax
cmp dword [ebp + 8], 0
jg 0x403db3
jmp 0x403e3c
push 0xfffffffffffffffe
jmp 0x403e43
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403e1b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a094]
call ebx
test eax, eax
je 0x403e41
mov eax, dword [ebp - 4]
add dword [0x4184e8], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403e44
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403e4b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4184e8]
mov ebx, eax
sub esi, dword [0x40c44c]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x404032
push dword [0x4204f4]
call fcn.00404075
push edi
push edi
push dword [0x40c44c]
push dword [0x40a094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4204f0], esi
mov dword [0x4184e4], edi
mov eax, dword [0x4184ec]
mov ebp, 0x4000
sub eax, dword [0x4204f4]
cmp eax, ebp
jg 0x403ebf
mov ebp, eax
mov esi, 0x4144a4
push ebp
push esi
call fcn.00404043
test eax, eax
je 0x40400a
add dword [0x4204f4], ebp
mov dword [0x40c468], esi
mov dword [0x40c46c], ebp
cmp dword [0x424f48], edi
je 0x403f7d
cmp dword [0x424fbc], edi
jne 0x403f7d
cmp dword [esp + 0x10], edi
je 0x403f4a
mov eax, dword [0x4204f0]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x4184e8]
push 1
push edi
push edi
sub eax, dword [esp + 0x44]
push edi
add eax, dword [0x40c44c]
mov dword [0x4184e4], eax
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
je 0x403f7d
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
jmp 0x403f2d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403f7d
mov eax, dword [0x424f44]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x403942
push edi
push 0x6f
push dword [0x424f40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40c450
mov dword [0x40c470], 0x40c4a4
mov dword [0x40c474], 0x8000
call fcn.00401ce6
test eax, eax
jl 0x40403e
mov esi, dword [0x40c470]
mov eax, 0x40c4a4
sub esi, eax
je 0x403fe4
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x40a094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40400f
cmp esi, dword [esp + 0x14]
jne 0x40400f
add dword [0x40c44c], esi
cmp dword [0x40c46c], edi
jne 0x403ee5
jmp 0x403ff0
cmp dword [0x40c46c], edi
jne 0x40403e
cmp ebp, edi
je 0x40403e
mov eax, dword [0x4184e8]
mov ecx, eax
sub ecx, dword [0x40c44c]
add ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x404013
jmp 0x403ea9
or eax, 0xffffffff
jmp 0x404034
push 0xfffffffffffffffe
jmp 0x404040
push edi
push edi
push eax
push dword [0x40a094]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x10], edi
je 0x404032
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x404034
Function at 0x404666
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x42b000], 0
push ebx
push ebp
push esi
push edi
mov ebx, 0xffff
mov ebp, 0x42b000
je 0x404686
push ebp
call fcn.00406bb3
jmp 0x40468c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor edi, edi
mov esi, dword [0x424f84]
mov eax, esi
dec esi
test eax, eax
je 0x4046e8
mov eax, dword [0x424f48]
mov ecx, dword [eax + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x424f80]
mov ax, word [esp + 0x10]
mov edi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x4046d0
mov eax, esi
dec esi
add ecx, edx
test eax, eax
jne 0x4046b4
jmp 0x4046e8
mov eax, dword [edi + 2]
mov dword [0x424720], eax
mov eax, dword [edi + 6]
mov dword [0x424fc4], eax
lea eax, [edi + 0xa]
mov dword [0x42471c], eax
cmp dword [0x42471c], 0
jne 0x404703
cmp bx, 0xffff
jne 0x4046ff
mov ebx, 0x3ff
jmp 0x404692
xor ebx, ebx
jmp 0x404692
movzx eax, word [edi]
push eax
push ebp
call fcn.00406b9a
push 0xfffffffffffffffe
push 0x424740
call fcn.00406c5b
push eax
push dword [0x42190c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406459
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x423130], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40647d
test al, 0x10
jne 0x406480
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x423130
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4064ab
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x40653a
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040681f
test eax, eax
je 0x40659f
test byte [ebp + 0xc], 1
je 0x406587
mov eax, dword [0x424f44]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
call fcn.00406c4e
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x40659f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40659f
test byte [ebp + 0xc], 2
je 0x40659f
push eax
push esi
call fcn.00406979
pop esi
leave
ret 8
Function at 0x40681f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422d30
push esi
call fcn.00406c3d
push esi
call fcn.004067cb
test eax, eax
jne 0x40683e
xor eax, eax
jmp 0x406887
test byte [0x424f50], 0x80
je 0x406852
mov cl, byte [eax]
test cl, cl
je 0x40683a
cmp cl, 0x5c
je 0x40683a
mov edi, eax
sub edi, esi
push esi
call fcn.00406c4e
cmp eax, edi
push esi
jle 0x406877
call fcn.0040710a
test eax, eax
je 0x40686f
test byte [eax], 0x10
je 0x40683a
push esi
call fcn.004065d0
jmp 0x406856
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406901
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406975
mov eax, edi
dec edi
test eax, eax
jne 0x40693b
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40696f
Function at 0x406979
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4069b1
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069b1
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406af6
mov eax, dword [0x40a32c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x423ab8], eax
mov edi, 0x400
mov ebp, 0x423ab8
je 0x4069f5
push 1
push 0
push esi
call fcn.00406901
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406afc
cmp eax, edi
jg 0x406afc
mov esi, 0x4236b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406afc
cmp eax, edi
jg 0x406afc
push esi
push ebp
push str._s_s_r_n
push 0x4232b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406af6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406ade
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406ad2
push str._Rename__r_n
push edi
call fcn.0040688c
test eax, eax
jne 0x406b03
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00406c3d
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4232b8
push eax
call fcn.004068d7
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x424fb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a304
push eax
call fcn.0040688c
test eax, eax
je 0x406ab9
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406b2c
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406b1f
sub eax, edi
jmp 0x406abb
Function at 0x406b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b94
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406b83
cmp dword [ebp + 0x14], 1
je 0x406b85
cmp dword [ebp + 0x14], 2
je 0x406b85
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40249e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x4024be
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x4024ca
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x4024d3
cmp byte [ebx], 0
jne 0x4024da
xor eax, eax
jmp 0x402594
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402541
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x40250c
cmp dword [ebp - 4], 0
je 0x40250c
cmp dword [ebp - 8], 0
jne 0x40250c
cmp dword [ebp + 0x10], 0
je 0x402507
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402540
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x40251e
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x40252b
and eax, 0xff
cmp eax, 0xd
jne 0x402546
inc ebx
jmp 0x402546
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402540
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x402546
inc esi
cmp byte [ebx], 0
jne 0x4024e3
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402592
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x402592
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.004070a0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40259c
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.00407010
cmp eax, 0x3f6
jae 0x4027de
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.00406fbc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4025e9
lea edx, [ebx + 1]
jmp 0x4025eb
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x402642
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x402615
jmp 0x40260e
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x40260e
mov byte [ebx + eax], 0x20
jmp 0x402615
inc eax
cmp byte [ebx + eax], 0
jne 0x4025fe
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40262a
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402641
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x402638
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x402648
inc eax
cmp byte [ebx + eax], 0
jne 0x4025f2
cmp byte [0x40d0da], 0
je 0x402658
mov dword [ebp - 0x2c], 0x40d0da
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00405c1c
mov esi, eax
test esi, esi
je 0x402684
mov edx, str..inf
mov eax, esi
call fcn.0040710c
test eax, eax
jne 0x402684
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00406140
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4026ae
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.004061d4
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x4026ed
cmp byte [ebp - 2], 0
jne 0x4026ed
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0040708c
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.00407154
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00406140
test al, al
je 0x4027de
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40271d
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4027de
xor ebx, ebx
cmp byte [0x40ccd0], 0
jne 0x402736
cmp byte [ebp - 1], 0
je 0x40277f
cmp dword [0x40d55c], 0
je 0x40274e
push dword [0x40d55c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x402752
xor eax, eax
jmp 0x402757
mov eax, 1
test eax, eax
je 0x40276a
push 0
push dword [0x40d55c]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.004027e4
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x40279b
mov edx, str..exe
mov eax, esi
call fcn.0040710c
test eax, eax
je 0x4027cd
cmp byte [0x40ccd0], 0
je 0x4027b6
cmp byte [ebp - 1], 0
jne 0x4027b6
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4027cd
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x4027c7
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x4027de
push 1
push dword [0x40d55c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402814
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x40c044], 0
jne 0x4028b0
lea eax, [ebp - 0x400]
call fcn.00405b00
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.00407130
test eax, eax
jne 0x4028b0
push 0x40c22e
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.00407010
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.00406fbc
mov dword [ebp - 0x41c], 3
mov word [ebp - 0x410], 0x14
lea eax, [ebp - 0x400]
mov dword [ebp - 0x418], eax
lea edx, [ebp - 0x420]
push edx
call sub.SHELL32.DLL_SHFileOperationA
mov esp, ebp
pop ebp
ret

Function at 0x4029af
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x40ccd8], 0
je 0x402a2a
cmp byte [0x40e23c], 0
je 0x402a2a
lea edx, [ebp - 0x408]
mov eax, 0x40e23c
call fcn.00402974
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x402a2a
mov eax, ebx
call fcn.00407010
inc eax
lea edx, [ebp - 0x408]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a2f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x40ccd8], 0
je 0x402aac
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402974
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402aac
mov dword [ebp - 8], 0x400
lea eax, [ebp - 8]
lea edx, [ebp - 0x80c]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x40c]
push ecx
push 0
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402aa4
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.0040708c
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x402d0c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x40cc20
push 1
push 0
push 0x40cc30
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402e0b
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402d6f
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402d81
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040708c
lea eax, [ebp - 0x40c]
call fcn.00405cbc
cmp byte [ebp - 0x40c], 0
je 0x402db2
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x40cc50
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402e02
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402df9
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402e1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
push eax
call sub.SHELL32.DLL_SHGetMalloc
lea edx, [ebp - 8]
push edx
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [ebp - 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret