joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5143b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb3000]
push edi
jmp 0x5143ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5143d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5143c0
mov eax, 1
add ebx, ebx
jne 0x5143e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5143f4
jne 0x514413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514413
dec eax
add ebx, ebx
jne 0x514400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5143d8
add ebx, ebx
jne 0x51440f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x514465
xor ecx, ecx
sub eax, 3
jb 0x51442b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51449a
sar eax, 1
mov ebp, eax
jmp 0x514436
add ebx, ebx
jne 0x514436
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514404
inc ecx
add ebx, ebx
jne 0x514444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514404
add ebx, ebx
jne 0x514451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x514446
jne 0x514462
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x514446
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x514484
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x514476
jmp 0x5143c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x514484
add edi, ecx
jmp 0x5143c6
pop esi
mov edi, esi
mov ecx, 0x522e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5144a2
cmp byte [edi], 0x22
jne 0x5144a2
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 0x5144a7
lea edi, [esi + 0x111000]
mov eax, dword [edi]
or eax, eax
je 0x51451f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1160e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11620c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5144d4
mov ecx, edi
jns 0x514503
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 + 0x116210]
or eax, eax
je 0x514519
mov dword [ebx], eax
add ebx, 4
jmp 0x5144f1
call dword [esi + 0x116220]
mov ebp, dword [esi + 0x116214]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x514553
sub esp, 0xffffff80
jmp 0x48e1ce
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x85667f8
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44ee30], eax
sub eax, eax
je 0x4068c1
jmp 0xa8cf50fc
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x418a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x403cdc], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [ebp + 4]
mov dword [0x403b2d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401031
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403b2d]
mov dword [ebp - 0x48], eax
mov eax, 0x40168b
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403b2d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.klavesn
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d28], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403d28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010ce
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010c0
mov esp, ebp
ret
Function at 0x10486
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0x28]
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x10503
cmp dword [esi + 0xc], eax
je 0x10503
push ebx
lea ebx, [esi + 0x14]
push edi
mov edi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, ebx
mov dword [ebp + 8], ebx
call edi
lea ecx, [esi + 0x10]
xor edx, edx
mov dword [ebp - 8], ecx
inc edx
lock xadd dword [ecx], edx
mov ecx, ebx
mov ebx, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov dl, al
call ebx
mov edx, dword [ebp + 0xc]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
mov esi, dword [esi + 4]
test esi, esi
je 0x104e9
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call edi
mov ecx, dword [ebp - 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
mov ecx, dword [ebp + 8]
mov dl, al
call ebx
pop edi
pop ebx
jmp 0x10514
mov ecx, dword [ebp + 0xc]
xor dl, dl
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x18], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8

Function at 0x105b0
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.00010582
test al, al
lea eax, [ebp - 0x10]
je 0x105d4
push 0x106d8
jmp 0x105d9
push 0x106c2
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1f01ff
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
cmp eax, edi
jne 0x106bc
mov ecx, dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ObfReferenceObject]
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 4]
push 0x10808
push edi
push edi
push dword [eax + 0x2c]
push edi
push 0x30
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
cmp ebx, edi
jge 0x10636
jmp 0x106bb
mov eax, dword [0x10808]
push esi
mov esi, dword [eax + 0x28]
push 0x18
xor eax, eax
inc eax
push 0x64
push eax
mov dword [esi + 0xc], eax
push edi
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_IoInitializeRemoveLockEx]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
push dword [ebp - 4]
push dword [0x10808]
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
cmp eax, edi
jne 0x10675
mov eax, 0xc0000001
jmp 0x106ba
mov ecx, dword [0x10808]
mov dword [0x1080c], eax
and dword [ecx + 0x1c], 0xffffff7f
mov edx, dword [eax + 0x1c]
mov ecx, dword [0x10808]
and edx, 0x14
or dword [ecx + 0x1c], edx
mov ecx, dword [0x10808]
or dword [ecx + 0x1c], 0x2000
mov ecx, dword [eax + 0x20]
mov edx, dword [0x10808]
mov dword [edx + 0x20], ecx
mov dword [esi + 4], eax
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov eax, ebx
pop esi
pop ebx
pop edi
leave
ret 4

Function at 0x10b08
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00010acf
pop ebp
jmp fcn.00010a06
Function at 0x40253a
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 0x40255a
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x402566
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x40256f
cmp byte [ebx], 0
jne 0x402576
xor eax, eax
jmp 0x402627
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x4025d4
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x4025a8
cmp dword [ebp - 4], 0
je 0x4025a8
cmp dword [ebp - 8], 0
jne 0x4025a8
cmp dword [ebp + 0x10], 0
je 0x4025a3
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x4025d3
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x4025b6
cmp ecx, 0xa
jne 0x4025be
cmp ecx, 0xd
jne 0x4025d9
inc ebx
jmp 0x4025d9
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x4025d3
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x4025d9
inc esi
cmp byte [ebx], 0
jne 0x40257f
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402625
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x402625
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.0040703c
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 0x40262f
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov eax, ebx
mov byte [esp], dl
lea esi, [esp + 4]
call fcn.00406fac
cmp eax, 0x3f6
jae 0x402862
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.00406f50
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40267c
lea edx, [ebx + 1]
jmp 0x40267e
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x4026cf
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x4026a7
jmp 0x4026a0
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4026a0
mov byte [ebx + eax], 0x20
jmp 0x4026a7
inc eax
cmp byte [ebx + eax], 0
jne 0x402690
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x4026bc
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x4026ce
cmp edx, 0x20
jne 0x4026c5
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x4026d6
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402685
cmp byte [0x40d0da], 0
je 0x4026e6
mov dword [esi + 0x14], 0x40d0da
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405bc4
mov edi, eax
test edi, edi
je 0x402712
mov edx, str..inf
mov eax, edi
call fcn.004070b4
test eax, eax
jne 0x402712
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.004060f4
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x40273a
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406188
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x40277d
cmp byte [esp + 1], 0
jne 0x40277d
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040702c
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.00407100
lea eax, [esp + 0x440]
xor edx, edx
call fcn.004060f4
test al, al
je 0x402862
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4027a7
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 0x402862
cmp byte [0x40ccd0], 0
jne 0x4027be
cmp byte [esp], 0
je 0x402814
mov ebx, dword [0x40d55c]
test ebx, ebx
je 0x4027d2
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4027d6
xor eax, eax
jmp 0x4027db
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x4027ee
push 0
push dword [0x40d55c]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [esi + 0x38]
call fcn.0040286c
test ebx, ebx
je 0x402814
push 1
push dword [0x40d55c]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x402830
mov edx, str..exe
mov eax, edi
call fcn.004070b4
test eax, eax
je 0x402862
cmp byte [0x40ccd0], 0
je 0x40284b
cmp byte [esp], 0
jne 0x40284b
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402862
mov edx, 0xc8
cmp byte [esp], 0
jne 0x40285c
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x40289a
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x40c044], 0
jne 0x402923
mov eax, esp
call fcn.00405ab4
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.004070d8
test eax, eax
jne 0x402923
push 0x40c22e
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.00406fac
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.00406f50
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x402a0c
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x40ccd8], 0
je 0x402a83
cmp byte [0x40e23c], 0
je 0x402a83
lea edx, [esp + 8]
mov eax, 0x40e23c
call fcn.004029db
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 0x402a83
mov eax, ebx
call fcn.00406fac
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 0x402a8b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x40ccd8], 0
je 0x402b04
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004029db
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402b04
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 0x402afc
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040702c
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x402bf0
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 0x402d58
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 0x402e57
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 0x402dbb
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 0x402dcd
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.0040702c
lea eax, [ebp - 0x40c]
call fcn.00405c64
cmp byte [ebp - 0x40c], 0
je 0x402dfe
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 0x402e4e
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 0x402e45
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 0x402e68
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 0x402fcc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x40d55c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x40c018], 0
jne 0x403028
mov eax, dword [0x40e63c]
call fcn.00404350
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x40c095
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x40c018], 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 0x403082
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 0x4030d6
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 0x40c0bc
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret