joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040f4b0
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40340a
xor al, al
jmp 0x40358c
push esi
push edi
call fcn.00403593
push edi
call fcn.00414975
pop ecx
push edi
mov esi, eax
call fcn.004035bf
test al, al
je 0x4034aa
push edi
call fcn.00403593
test al, al
je 0x403459
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x4034a3
mov esi, dword [ebp + 0xc]
push 4
push 0x42229c
push esi
call fcn.00415d36
lea eax, [esi + 8]
push edi
push eax
call fcn.00414953
add esp, 0x14
jmp 0x40349c
push 0x5c
pop eax
cmp word [edi], ax
jne 0x4034a3
add edi, 2
cmp word [edi], ax
jne 0x4034a3
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x4034a3
mov esi, dword [ebp + 0xc]
push 4
push 0x42229c
push esi
call fcn.00415d36
lea eax, [esi + 8]
push 0x4222a8
push eax
call fcn.00414953
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00414953
add esp, 0x1c
mov al, 1
jmp 0x40358b
xor al, al
jmp 0x40358b
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403588
cmp eax, ebx
ja 0x403588
movzx eax, word [edi]
push eax
call fcn.004035f5
test al, al
je 0x403518
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x403588
mov esi, dword [ebp + 0xc]
push 4
push 0x42229c
push esi
call fcn.00415d36
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00415d36
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00414953
add esp, 0x20
jmp 0x403584
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402ffe
lea eax, [ebp - 0x1000]
push eax
call fcn.00414975
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x403588
mov esi, dword [ebp + 0xc]
push 4
push 0x42229c
push esi
call fcn.00415d36
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00414953
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40357a
movzx eax, word [edi + 2]
push eax
call fcn.004035f5
test al, al
je 0x40357a
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040459c
mov al, 1
jmp 0x40358a
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404222
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x42fa94]
test ecx, ecx
jne 0x40423f
mov ecx, 0x42fa8c
call fcn.004041a3
mov ecx, dword [0x42fa94]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
and eax, 0xf
mov edx, esi
sub edx, eax
xor eax, eax
cmp byte [ebp + 0x14], al
setne al
cmp byte [ebp + 0x10], 0
je 0x40428d
test ecx, ecx
je 0x4042a9
push eax
push edx
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4042ce
push str.CryptProtectMemory_failed
mov esi, 0x44a2fc
push esi
call fcn.0040198c
pop ecx
pop ecx
mov ecx, esi
call fcn.00414249
push 2
mov ecx, esi
call fcn.00401987
jmp 0x4042ce
mov ecx, dword [0x42fa98]
test ecx, ecx
je 0x4042a9
push eax
push edx
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4042ce
push str.CryptUnprotectMemory_failed
jmp 0x40426e
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x4042cd
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x4042bf
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x407345
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402328
mov al, 1
jmp 0x402419
cmp dword [edi + 0xc], 1
jne 0x402339
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x40238e
xor esi, esi
test ebp, ebp
je 0x4023b0
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x40235e
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x4023b0
add esi, 0x4000
cmp esi, ebp
jb 0x40234e
jmp 0x4023ac
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x402411
cmp byte [edi + 0x14], 0
je 0x402411
cmp dword [edi + 0xc], 0
jne 0x402411
push 0
lea eax, [edi + 0x1e]
mov ecx, 0x44a2fc
push eax
call fcn.00401921
test al, al
je 0x402401
cmp dword [esp + 0x18], ebp
jae 0x40233b
cmp dword [esp + 0x18], 0
jbe 0x40233b
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x10]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0xc]
jmp 0x40233b
lea eax, [edi + 0x1e]
mov ecx, 0x44a2fc
push eax
push 0
call fcn.00401b1a
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x43fffc]
call fcn.00401773
cmp byte [0x44f4e1], 0
mov dword [0x43fffc], eax
jne 0x407379
cmp dword [ebp + 0xc], 0
jbe 0x407379
mov ecx, dword [0x4400f8]
pop ebp
jmp 0x402315
pop ebp
ret 8
Function at 0x407650
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4400e8], 0
je 0x40765d
or eax, 0xffffffff
ret
mov eax, dword [0x42ffd4]
push esi
xor esi, esi
push edi
cmp eax, esi
jg 0x40769b
mov ecx, dword [0x42ffd0]
jl 0x407676
cmp ecx, esi
ja 0x40769b
or edi, 0xffffffff
mov dword [0x440008], esi
add ecx, edi
mov dword [0x44000c], esi
mov dword [0x42ffd0], ecx
adc eax, edi
mov dword [0x42ffd4], eax
mov eax, edi
jmp 0x407764
push ebx
mov ebx, dword [0x44000c]
or edi, 0xffffffff
cmp ebx, esi
jg 0x407705
jl 0x4076b3
cmp dword [0x440008], esi
ja 0x407705
mov ebx, 0x2000
push ebx
push dword [0x440000]
call fcn.00407917
cdq
mov ecx, eax
mov dword [0x440008], eax
or ecx, edx
mov dword [0x44000c], edx
je 0x407776
and eax, edx
cmp eax, edi
je 0x407767
add dword [0x440040], ebx
mov eax, dword [0x440000]
adc dword [0x440044], esi
mov dword [0x440004], eax
call fcn.0040710e
mov ebx, dword [0x44000c]
mov eax, dword [0x42fff4]
mov esi, dword [0x440004]
push ebp
test byte [eax + 0x40], 1
je 0x40774a
mov ebp, dword [0x440008]
mov eax, ebp
or eax, ebx
je 0x40774a
add ebp, edi
adc ebx, edi
call fcn.0040a2da
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040a3ec
mov eax, ebp
inc esi
or eax, ebx
jne 0x407723
mov ebx, dword [0x44000c]
mov esi, dword [0x440004]
add dword [0x440008], edi
pop ebp
adc ebx, edi
mov dword [0x44000c], ebx
movzx eax, byte [esi]
inc esi
mov dword [0x440004], esi
pop ebx
pop edi
pop esi
ret
push 0x4525f2
mov ecx, 0x44a2fc
call fcn.00401a53
mov dword [0x440008], esi
mov eax, edi
mov dword [0x44000c], esi
jmp 0x407763

Function at 0x40a33b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040a2f8
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00410ca0
add esp, 0xc
xor esi, esi
call fcn.0040a2da
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040a3ec
inc esi
cmp esi, 0xc
jl 0x40a35d
mov eax, dword [0x42fff4]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44005f]
test byte [eax + 0x40], 2
jne 0x40a399
movzx ecx, byte [0x440067]
cmp edx, ecx
je 0x40a3a2
or eax, 0xffffffff
jmp 0x40a3e5
mov ecx, dword [0x440008]
mov eax, ecx
cdq
cmp edx, dword [0x42ffd4]
jl 0x40a3bf
mov esi, dword [0x42ffd0]
jg 0x40a3c1
cmp eax, esi
ja 0x40a3c1
mov esi, ecx
push edi
mov edi, dword [0x440004]
test esi, esi
je 0x40a3e2
call fcn.0040a2da
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040a3ec
inc edi
sub esi, 1
jne 0x40a3cc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40a3ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x44112c]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x441134]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x42fbb0]
movzx eax, cl
add eax, dword [0x441130]
mov dword [0x44112c], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x441130], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x42fbb0]
mov dword [0x441134], edx
ret 4
Function at 0x40a918
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call ebx
mov esi, dword [esp + 0x38]
mov ebp, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
call dword [ecx + 0x48]
test eax, eax
js 0x40a94f
cmp dword [esp + 0x10], 0
jne 0x40a997
call ebx
sub eax, ebp
cmp eax, 0x7d0
ja 0x40a997
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a939
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a939
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
test esi, esi
js 0x40aa05
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40a9fd
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push 0x4234fc
push ecx
call dword [eax]
mov esi, eax
test esi, esi
js 0x40a9ef
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x40a9e5
mov eax, dword [esp + 0x14]
push dword [esp + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
test esi, esi
js 0x40aa05
test ecx, ecx
jne 0x40aa56
xor ebp, ebp
cmp dword [edi + 8], ebp
je 0x40aa56
cmp dword [edi + 0x18], ebp
jne 0x40aa56
cmp dword [edi + 0x14], ebp
je 0x40aa56
push dword [edi + 0x14]
mov ecx, edi
call fcn.0040af4d
mov ebx, eax
test ebx, ebx
je 0x40aa56
push 0x204
push ebp
push ebp
push ebp
push ebp
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.00414990
pop ecx
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
setns al
pop ebx
add esp, 0x24
ret 8
Function at 0x40b137
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x1e], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040ae97
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x40b1a1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push str.RarHtmlClassName
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40b223
test ebp, ebp
je 0x40b239
cmp dword [ebx + 0x18], esi
jne 0x40b239
cmp dword [ebx + 0x14], esi
je 0x40b239
push dword [ebx + 0x14]
mov ecx, ebx
call fcn.0040af4d
mov esi, eax
test esi, esi
je 0x40b239
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00414990
pop ecx
jmp 0x40b239
test eax, eax
je 0x40b239
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x40b4bf
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x42346c
push 1
push ebx
push 0x42353c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40b590
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x42352c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40b587
cmp byte [ebp + 8], bl
je 0x40b512
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40b52f
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x40b541
push 0x422310
jmp 0x40b544
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40b559
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40b56a
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x40b57e
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40b63e
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x40baff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040f4b0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040b63e
cmp byte [0x4538c2], 0
jne 0x40bb94
push 6
push dword [0x42b038]
lea eax, [ebp - 0x1020]
push eax
call fcn.004036a6
push eax
call fcn.00405666
test eax, eax
jne 0x40bb94
push 0x42226c
call fcn.0040b9d8
lea eax, [ebp - 0x1020]
push eax
call fcn.00414975
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x101e], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00410480
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret
Function at 0x40bbf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x42b04c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40bc3b
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x4558f0], ax
xor eax, eax
mov word [0x4558f2], ax
mov dword [0x42b04c], 0x4558f0
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004044e8
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x42b03c
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40be95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040f4b0
cmp byte [0x4481f8], 0
je 0x40bf3e
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0040d230
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bf3e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bf35
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40bf19
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004045c8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40bfea
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0040f4b0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40c005
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40c012
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40c0d5
movzx eax, word [esi]
test ax, ax
je 0x40c0d5
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40c05f
test edi, edi
je 0x40c069
test ebx, ebx
jne 0x40c069
test ecx, ecx
je 0x40c05b
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40c080
cmp eax, 0xd
je 0x40c093
cmp eax, 0xa
je 0x40c096
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40c08e
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40c041
jmp 0x40c096
mov byte [edx], 1
jmp 0x40c096
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40c0cf
mov word [edi], ax
test ebx, ebx
je 0x40c0cf
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004045c8
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40c0d7
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40c0e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x40c131
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x40c139
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e1d2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1040
call fcn.0040f4b0
push ebx
push esi
mov esi, dword [esp + 0x1050]
xor ebx, ebx
cmp word [esi], bx
je 0x40e3f9
push esi
call fcn.00414975
pop ecx
cmp eax, 0x7f6
jae 0x40e3f9
push ebp
push edi
push 0x3c
pop edi
push edi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00410480
movzx ecx, word [esi]
lea edx, [esi + 2]
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x1c0
push 0x22
pop ebp
cmp cx, bp
je 0x40e232
mov edx, esi
mov dword [esp + 0x24], edx
mov eax, ebx
test cx, cx
je 0x40e27b
push 0x20
mov ecx, esi
pop edi
cmp word [ecx], bp
jne 0x40e25c
jmp 0x40e24f
cmp word [esi + eax*2], bp
je 0x40e258
inc eax
cmp word [esi + eax*2], bx
jne 0x40e249
jmp 0x40e25c
mov word [esi + eax*2], di
cmp word [esi + eax*2], di
je 0x40e3d0
cmp word [esi + eax*2 + 2], 0x2f
je 0x40e3ca
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40e242
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40e288
cmp word [eax], bx
jne 0x40e2a2
cmp byte [esp + 0x105c], bl
jne 0x40e2a2
cmp word [0x4491fa], bx
je 0x40e2a2
mov dword [esp + 0x28], 0x4491fa
push edx
mov dword [esp + 0x34], 1
call fcn.004032a5
mov esi, eax
test esi, esi
je 0x40e2cd
push str..inf
push esi
call fcn.00405644
test eax, eax
jne 0x40e2cd
mov dword [esp + 0x20], str.Install
push dword [esp + 0x24]
call fcn.00402578
test al, al
je 0x40e2f5
push 0x800
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2c]
call fcn.0040302e
lea eax, [esp + 0x50]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e3f7
mov edi, dword [esp + 0x1054]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4481f0], bl
jne 0x40e32e
cmp byte [esp + 0x105c], bl
jne 0x40e32e
cmp byte [0x4548e2], bl
je 0x40e38d
test edi, edi
je 0x40e343
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e343
push ebx
push edi
call ebp
mov bl, 1
push 0x7d0
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x4c]
call fcn.0040e652
cmp byte [0x4548e2], 0
je 0x40e38d
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e38d
mov eax, dword [esp + 0x10]
add eax, 0x3e8
cmp eax, dword [0x4548e4]
jbe 0x40e38d
mov dword [0x4548e4], eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40e3aa
push str..exe
push esi
call fcn.00405644
test eax, eax
je 0x40e3e3
cmp byte [0x4481f0], 0
mov al, byte [esp + 0x105c]
je 0x40e3ea
test al, al
jne 0x40e3ea
mov dword [0x4548e8], 0x1b58
jmp 0x40e3ea
cmp word [esi + eax*2], di
jne 0x40e3d6
xor ecx, ecx
mov word [esi + eax*2], cx
inc eax
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
jmp 0x40e27f
mov al, byte [esp + 0x105c]
test bl, bl
je 0x40e3f7
test al, al
je 0x40e3f7
push 1
push edi
call ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1040
ret 0xc
Function at 0x40e404
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4411b8], 0
push 1
push dword [esp + 8]
mov byte [0x4481c2], 1
mov byte [0x4481c3], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.0040136d
cmp dword [0x4481c4], 0
jne 0x40e444
cmp byte [0x4481e8], 0
je 0x40e44d
cmp dword [0x4481e0], 0
jne 0x40e460
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x40e533
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040f4b0
cmp byte [0x4481f8], 0
je 0x40e5bd
cmp word [0x4548f0], 0
je 0x40e5bd
push esi
lea eax, [ebp - 0x1008]
push eax
push 0x4548f0
call fcn.0040d230
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e5bc
push dword [ebp + 8]
call fcn.00414975
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
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 esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e5c3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040f4b0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040439f
mov esi, eax
test esi, esi
je 0x40e61b
movzx ecx, word [esi]
push ecx
jmp 0x40e606
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00404496
test al, al
jne 0x40e5ff
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4