joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ecdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ecbc
mov dl, 1
mov eax, dword [0x416414]
call fcn.00403100
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f2c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45ecab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044cb20
test al, al
je 0x45ec9e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45ecec
lea eax, [ebp - 0x254]
call fcn.00408e68
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ec9e
xor eax, eax
push ebp
push 0x45ec97
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45ed24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ec80
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040419c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ec80
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040419c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ec9e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45eba1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041aa54
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ece2
lea eax, [ebp - 0x260]
call fcn.00403f2c
ret

Function at 0x45f610
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x473bbc]
cmp byte [eax + 0xa5], 0
jne 0x45f681
cmp dword [0x473bd4], 0
jne 0x45f642
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f5cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x473bd4], eax
cmp dword [0x473bd0], 0
jne 0x45f65d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x473bd0], eax
cmp dword [0x473bd8], 0
jne 0x45f681
push esp
push 0
push 0
push 0x45f570
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x473bd8], eax
pop edx
ret
Function at 0x45f778
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45f78f
add esp, 0xfffffff0
call fcn.0040347c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ff0
mov eax, dword [0x472870]
cmp word [eax + 2], 0
jne 0x45f7b7
mov eax, dword [0x472870]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460e50
mov eax, dword [0x472978]
cmp word [eax + 2], 0
jne 0x45f7d1
mov eax, dword [0x472978]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461048
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415e6c]
call fcn.00403100
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415e6c]
call fcn.00403100
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4231e4]
call fcn.00428f1c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45f958
mov eax, dword [0x472720]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004292ec
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4615e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472720]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c684
test eax, eax
je 0x45f8c6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408848
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6ac
test eax, eax
je 0x45f8da
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040419c
mov eax, dword [0x472550]
cmp byte [eax], 0
jne 0x45f90e
mov eax, ebx
call fcn.0045fa80
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004617c4
mov eax, ebx
call fcn.00462188
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f94e
call fcn.004034d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fd00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x473bbc]
cmp dword [eax + 0x30], 0
je 0x45fdaa
cmp dword [ebx + 0x94], 0
jne 0x45fda4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45fc90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45fda4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45fd6a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45fda4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004186ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45fd79
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46090c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x460941
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040401c
jmp 0x46094e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f80
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4619a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4619e1
mov eax, esi
call fcn.0044814c
test al, al
je 0x4619e1
mov eax, dword [ebx + 0x84]
call fcn.00447e48
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4619e1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447e48
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46c4ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c5e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00419388
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x46c528
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x46c528
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00407dc0
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x4725d8]
mov ebx, dword [ebx]
mov eax, 0x46c5fc
call ebx
dec eax
jne 0x46c528
mov ebx, 1
jmp 0x46c52a
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x46c5cb
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0046bfbc
test al, al
jne 0x46c5bf
mov eax, dword [ebp - 4]
call fcn.0046c4a0
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.00403f80
xor edx, edx
push ebp
push 0x46c5ad
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x46c5a3
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0046c8d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c5bf
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x46c542
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c5ed
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403f50
ret
Function at 0x41d300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x41d322
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d318
mov eax, 1
add ebx, ebx
jne 0x41d33b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d330
jne 0x41d34c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d330
xor ecx, ecx
sub eax, 3
jb 0x41d360
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d3d2
mov ebp, eax
add ebx, ebx
jne 0x41d36b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d39c
inc ecx
add ebx, ebx
jne 0x41d388
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d37d
jne 0x41d399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d37d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d3bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d3ad
jmp 0x41d31e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d3bc
add edi, ecx
jmp 0x41d31e
pop esi
mov edi, esi
mov ecx, 0x167
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d3da
cmp byte [edi], 5
jne 0x41d3da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41d3df
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d457
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22b70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22bd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d40c
mov ecx, edi
jns 0x41d43b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22bd8]
or eax, eax
je 0x41d451
mov dword [ebx], eax
add ebx, 4
jmp 0x41d429
call dword [esi + 0x22be0]
mov ebp, dword [esi + 0x22bdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41d48b
sub esp, 0xffffff80
jmp 0x40b10a
Function at 0x4023be
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x4023de
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x4023e7
cmp byte [ebx], 0
jne 0x4023ee
xor eax, eax
jmp 0x40246e
xor esi, esi
jmp 0x402431
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402418
cmp dword [ebp - 4], 0
je 0x402418
test esi, esi
jne 0x402418
cmp dword [ebp + 8], 0
je 0x402414
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402431
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402426
cmp ecx, 0xa
jne 0x40242e
cmp ecx, 0xd
jne 0x402436
inc ebx
jmp 0x402436
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x4023f2
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x40246c
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x40246c
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040be4c
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402476
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x412518]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024b2
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024a6
mov edx, 0x411116
mov eax, ebx
call fcn.0040bf20
mov edx, 0x412518
mov eax, ebx
call fcn.0040bf20
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040bd4c
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4024db
lea edx, [ebx + 1]
jmp 0x4024dd
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x40252e
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x402506
jmp 0x4024ff
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4024ff
mov byte [ebx + eax], 0x20
jmp 0x402506
inc eax
cmp byte [ebx + eax], 0
jne 0x4024ef
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40251b
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x40252d
cmp edx, 0x20
jne 0x402524
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x402535
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4024e4
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405d78
mov edi, eax
test edi, edi
je 0x402561
mov edx, str..inf
mov eax, edi
call fcn.0040bed4
test eax, eax
jne 0x402561
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406624
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x402589
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.004066f0
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025cc
cmp byte [esp + 1], 0
jne 0x4025cc
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040be4c
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040bf20
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406624
test al, al
je 0x4026a2
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4025f6
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4026a2
cmp byte [0x41103d], 0
jne 0x40260d
cmp byte [esp], 0
je 0x402653
push dword [0x411864]
call sub.USER32.DLL_IsWindowVisible
mov ebx, eax
test ebx, ebx
je 0x40262b
push 0
push dword [0x411864]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x402653
push 1
push dword [0x411864]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x40266f
mov edx, str..exe
mov eax, edi
call fcn.0040bed4
test eax, eax
je 0x4026a2
cmp byte [0x41103d], 0
je 0x40268a
cmp byte [esp], 0
jne 0x40268a
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4026a2
cmp byte [esp], 0
je 0x402697
mov ecx, 0xc8
jmp 0x40269c
mov ecx, 0x3e8
push ecx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4026ac
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040bdcc
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040bea0
test eax, eax
jne 0x402743
push 0x4111f8
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040bdcc
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040bd4c
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x4027fe
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x411055], 0
je 0x402875
cmp byte [0x412920], 0
je 0x402875
lea edx, [esp + 8]
mov eax, 0x412920
call fcn.004027cd
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
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 0x402875
mov eax, ebx
call fcn.0040bdcc
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x40287d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x411055], 0
je 0x4028f6
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027cd
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4028f6
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4028ee
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040be4c
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029e0
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x402b48
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 0x4117b4
push 1
push 0
push 0x4117c4
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402c47
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 0x402bab
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 0x402bbd
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.0040be4c
lea eax, [ebp - 0x40c]
call fcn.00405e6c
cmp byte [ebp - 0x40c], 0
je 0x402bee
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 0x4117e4
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402c3e
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 0x402c35
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 0x402c58
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x402dbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x411864]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x411019], 0
jne 0x402e18
mov eax, dword [0x412d20]
call fcn.004041e4
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x411091
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x411019], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x402e72
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x402ec6
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4110b8
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret