joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c69c4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x101ed28c], 0xbee
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x26f4
xor edx, edx
mov dword [0x101ed28c], 0x26f4
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x101c6a52
mov dword [0x101ed28c], 0x1581
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101c6a41
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x101c6b07
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x101c6abc
jmp 0x101c6a26
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101c6a30
jmp 0x101c6a26
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
je 0x101c6a97
mov eax, dword [ebp - 0x28]
add eax, 0xfffffc2c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [0x101ed28c], eax
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ecx
jl 0x101c6a52
mov eax, dword [ebp - 0x2c]
mov dword [0x101ed28c], 0x1599
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x101c6a0d
jmp 0x101c6a26
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101c6a26
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x6c
jne 0x101c6a26
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101c6a26
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x101c6cf6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101ed28c], 0x545
mov dword [0x101ed294], 0
mov dword [0x101ed298], 0
mov dword [0x101ed2a4], 0
mov ebx, dword [0x101ed290]
add ebx, 0x1628
mov dword [0x101ed290], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101c6d82
jmp 0x101c6d8a
mov eax, dword [0x101ed294]
mov ecx, dword [0x101ed298]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x101c6d8a
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101ed294], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101ed298], edx
mov dword [0x101ed28c], 0x1d10
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101ed29c], cl
mov dword [0x101ed290], 0x609
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x101ed290]
add edx, 0x19b1
mov dword [0x101ed28c], edx
mov cl, byte [0x101ed29c]
mov edx, dword [0x101ed298]
mov byte [edi + edx], cl
mov edx, dword [0x101ed294]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101ed298]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101ed2a4], ebx
mov edx, dword [0x101ed28c]
add edx, 0x223a
mov dword [0x101ed290], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x2c], edx
je 0x101c6d82
jmp 0x101c6d69
Function at 0x101c6fce
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101ed28c], 0x132c
mov esi, dword [0x101ed290]
mov edi, esi
add edi, 0xdd7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edx
jmp 0x101c7072
mov eax, dword [ebp - 0x40]
add eax, 0x2621
mov dword [0x101ed28c], 0x1421
mov dword [ebp - 0x44], eax
jmp 0x101c7137
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
add ecx, 0xd1ca
mov edx, dword [ebp - 0x34]
mov dword [0x101ed290], edx
mov dword [0x101ed28c], ecx
mov dword [ebp - 0x48], eax
call fcn.101c68e4
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
call fcn.101c6480
xor ecx, ecx
mov dword [0x101ed290], 0x123
cmp eax, 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ecx
je 0x101c7137
jmp 0x101c709e
mov eax, dword [ebp - 0x3c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101c838a]
mov dh, byte [eax + 0x101c835b]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x3c], ecx
je 0x101c7021
jmp 0x101c7072
mov eax, dword [ebp - 0x4c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.101c6eb1
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x101ed28c], 0x528
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x2c], ecx
mov ecx, dword [0x101ed28c]
add ecx, 0xfffff810
mov dword [0x101ed28c], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x24], ecx
mov dword [0x101ed290], 0xd26
cmp ecx, 0
mov dword [ebp - 0x44], eax
jne 0x101c7007
mov eax, dword [ebp - 0x44]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x101c72eb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101ed298], 0
mov byte [0x101ed29c], 0
mov dword [0x101ed290], 0x608
mov dword [0x101ed294], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101c7352
xor eax, eax
mov dword [0x101ed294], 0
mov ecx, dword [0x101ed28c]
add ecx, 0xfffff171
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x101c737a
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101ed294]
add eax, 1
mov dword [0x101ed294], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101c7352
jmp 0x101c7332
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x1877
mov esi, 0x100
mov dword [0x101ed2a0], 0
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov ebx, dword [0x101ed298]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [edi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x101ed2a0], ecx
mov edx, dword [ebp - 0x30]
mov dword [0x101ed28c], edx
mov eax, ecx
cdq
idiv esi
mov dword [0x101ed298], edx
mov ecx, dword [ebp - 0x28]
mov cl, byte [edi + ecx]
mov byte [0x101ed29c], cl
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x28]
mov byte [edi + edx], cl
mov cl, byte [0x101ed29c]
mov esi, dword [0x101ed298]
mov byte [edi + esi], cl
mov dword [0x101ed28c], 0x2706
mov esi, dword [0x101ed294]
add esi, 1
mov dword [0x101ed294], esi
cmp esi, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
jl 0x101c737a
mov dword [0x101ed290], 0xe07
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403630
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, 0x102c
call fcn.0040f410
mov eax, dword [0x49e4dc]
mov ecx, dword [0x49b3e4]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40374b
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x49e4dc], 0x959
jne 0x403731
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
push 0x402cb0
push 0
lea ecx, [esp + 0x444]
push ecx
push 0
push 0x402cc4
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402cd0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403490
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403674
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x102c
ret
Function at 0x40732c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431238]
jne 0x407336
repz ret
jmp fcn.0040c635

Function at 0x40d12f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a848
and dword [ebp - 4], 0
cmp dword [0x434278], 0
mov ebx, eax
jne 0x40d1e0
push 0x4024a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d291
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402498
push edi
call esi
test eax, eax
je 0x40d291
push eax
call fcn.0040a7d6
mov dword [esp], 0x402488
push edi
mov dword [0x434278], eax
call esi
push eax
call fcn.0040a7d6
mov dword [esp], 0x402474
push edi
mov dword [0x43427c], eax
call esi
push eax
call fcn.0040a7d6
mov dword [esp], 0x402458
push edi
mov dword [0x434280], eax
call esi
push eax
call fcn.0040a7d6
pop ecx
mov dword [0x434288], eax
test eax, eax
je 0x40d1e0
push 0x402440
push edi
call esi
push eax
call fcn.0040a7d6
pop ecx
mov dword [0x434284], eax
mov eax, dword [0x434284]
cmp eax, ebx
je 0x40d238
cmp dword [0x434288], ebx
je 0x40d238
push eax
call fcn.0040a851
push dword [0x434288]
mov esi, eax
call fcn.0040a851
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d238
test edi, edi
je 0x40d238
call esi
test eax, eax
je 0x40d22f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d22f
test byte [ebp - 0xc], 1
jne 0x40d238
or dword [ebp + 0x10], 0x200000
jmp 0x40d271
mov eax, dword [0x43427c]
cmp eax, ebx
je 0x40d271
push eax
call fcn.0040a851
pop ecx
test eax, eax
je 0x40d271
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d271
mov eax, dword [0x434280]
cmp eax, ebx
je 0x40d271
push eax
call fcn.0040a851
pop ecx
test eax, eax
je 0x40d271
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434278]
call fcn.0040a851
pop ecx
test eax, eax
je 0x40d291
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d293
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40168a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40f0d4], 0
jne 0x401698
call fcn.00401660
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4016c5
test cl, 7
je 0x4016c5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec esi
inc ecx
jmp 0x4016a6
cmp esi, 8
jb 0x401749
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x40f0d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec edi
jne 0x4016cf
xor edx, edx
test esi, esi
jbe 0x401769
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x40f0d0]
inc edx
cmp edx, esi
jb 0x401750
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x401aac
Capabilities:
Clear file content

Disassembly:
inc edx
add byte [eax], al
mov dword [esp + 0x10], edi
mov dword [0x420574], edi
mov dword [0x420570], edi
mov dword [0x420578], edi
mov dword [0x420658], ebp
jne 0x401ba0
call fcn.004042b7
test eax, eax
je 0x401b0c
push ebp
push 0x420a84
mov esi, 0x420684
push esi
call fcn.0040379f
call fcn.004042b7
test eax, eax
je 0x401b0c
push esi
push 0x427f84
mov ecx, 0x424098
call fcn.004018f8
push 0x34
pop eax
jmp 0x401e3e
cmp byte [0x426a72], 0
jne 0x401ba0
mov esi, dword [0x40f92c]
mov ebx, dword [0x40f928]
push edi
push 0x800
push esi
push ebx
call fcn.00401070
cmp edx, dword [0x40f924]
jg 0x401ba0
jl 0x401b44
cmp eax, dword [0x40f920]
jae 0x401ba0
cmp esi, edi
jl 0x401b6f
jg 0x401b52
cmp ebx, 0x5f5e100
jbe 0x401b6f
mov ecx, dword [0x420580]
call fcn.00403425
cmp edx, dword [0x40f924]
jl 0x401ba0
jg 0x401b6f
cmp eax, dword [0x40f920]
jbe 0x401ba0
push edi
push dword [0x40f928]
push dword [0x42066c]
call fcn.00408c30
push dword [0x42066c]
call fcn.0040372f
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
invalid
Function at 0x408bed
Capabilities:
Read file on windows

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

Function at 0x40969c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42407c], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4096fe
mov ecx, dword [0x42272c]
call fcn.00404d05
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40d69e
push 0
push 0xc2
push edi
call esi
mov byte [0x42407c], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x3c], eax
je 0x40974e
mov ecx, dword [ebp - 0x38]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0xa0
mov dword [ebp - 0x3c], 0x40000001
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x409798
mov eax, dword [ebp - 0x38]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x40d6d4
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a09f
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 0x420]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [0x42407d], 0
jne 0x40a12e
push 6
push dword [0x40f014]
lea eax, [ebp - 0x420]
push eax
call fcn.00406f90
push eax
call fcn.00408f59
test eax, eax
jne 0x40a12e
push 0x40d2c8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408d20
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408c76
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret
Function at 0x40a2a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x4237f8], bl
je 0x40a321
cmp byte [0x422730], bl
je 0x40a321
push esi
push 0x422730
lea esi, [ebp - 0x408]
call fcn.0040a277
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x40a321
push dword [ebp + 8]
call fcn.00408d20
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40a326
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x4237f8], 0
je 0x40a3a8
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040a277
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40a3a8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a39f
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.00408e13
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x40a66d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408d20
cmp eax, 0x3f6
jae 0x40a881
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408c76
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a6b5
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a6b8
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a6fd
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a6d9
jmp 0x40a6cd
cmp byte [eax + esi], 0x22
je 0x40a6d5
inc eax
cmp byte [eax + esi], bl
jne 0x40a6c7
jmp 0x40a6d9
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a6f0
cmp byte [eax + esi + 1], 0x2f
je 0x40a6f0
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a6c0
jmp 0x40a6fd
add eax, esi
cmp byte [eax], 0x20
jne 0x40a6f9
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a711
cmp byte [0x423bfa], bl
je 0x40a711
mov dword [ebp - 0x30], 0x423bfa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.0040713e
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a73d
push str..inf
push eax
call fcn.00408f36
test eax, eax
jne 0x40a73d
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.00403525
mov byte [ebp - 1], al
cmp al, bl
je 0x40a765
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00403611
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40a7a4
cmp byte [ebp - 1], bl
jne 0x40a7a4
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408e13
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408f7e
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00403525
test al, al
je 0x40a87f
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40a7d6
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40a87f
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4237f0], bl
jne 0x40a7ec
cmp byte [ebp + 8], bl
je 0x40a823
mov eax, dword [0x4237e8]
cmp eax, ebx
je 0x40a80d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a80d
push ebx
push dword [0x4237e8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040a060
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a842
push str..exe
push dword [ebp - 8]
call fcn.00408f36
test eax, eax
je 0x40a870
cmp byte [0x4237f0], bl
je 0x40a856
cmp byte [ebp + 8], bl
jne 0x40a856
push 0x1b58
jmp 0x40a86a
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
je 0x40a87f
push 1
push dword [0x4237e8]
call esi
pop edi
pop ebx
pop esi
leave
ret 4