joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d526
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x270
mov eax, 0x435436
call fcn.00434186
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
cmp esi, 0xffffffff
jne 0x40d5c7
mov ecx, ebx
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d5e3
lea ecx, [ebp - 0x2c]
call fcn.004021b6
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.0040f2df
test al, al
je 0x40d593
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e29
cmp esi, 0xffffffff
jne 0x40d5e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40d5bd
cmp eax, 3
je 0x40d5bd
cmp eax, 0x12
je 0x40d5bd
mov al, 1
jmp 0x40d5bf
xor al, al
mov byte [edi + 0x5c], al
jmp 0x40d696
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d5e3
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40d5bf
push ebx
mov ecx, edi
call fcn.004032fd
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ce3
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ecx, edi
call fcn.0040e943
lea ecx, [ebp - 0x2c]
call fcn.00401e29
mov ecx, dword [ebp - 0x260]
xor eax, eax
add eax, dword [ebp - 0x25c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x27c]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x278]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x274]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x270]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x26c]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x268]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x264]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x268]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.00413305
lea eax, [ebp - 0x278]
push eax
lea ecx, [edi + 0x30]
call fcn.00413305
lea eax, [ebp - 0x270]
push eax
lea ecx, [edi + 0x38]
call fcn.00413305
and dword [edi + 0x58], 0
mov eax, esi
call fcn.00434135
ret 4

Function at 0x40db35
Capabilities:
Hash data using crc32b

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x40db6c
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40db6b
mov eax, esi
mov edx, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
sar edx, 0x1f
and eax, ecx
shr esi, 1
and edx, 0x4c11db7
add ecx, ecx
xor edi, eax
xor ecx, edx
jne 0x40db45
pop esi
mov eax, edi
pop edi
ret 8
Function at 0x40df5d
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0x2c
mov eax, 0x435523
call fcn.00434153
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x437870
push 1
push ebx
push 0x437880
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40e14c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
push 0x43d4f8
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
call fcn.0040e2fb
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040e343
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x437264]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040e2b8
test esi, esi
js 0x40e139
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x10]
js 0x40e129
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push str.SELECT__FROM_Win32_OperatingSystem
mov edi, dword [eax + 0x50]
call fcn.0040e1fe
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040e343
push 0x43d534
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040e1fe
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040e343
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0x30
push esi
push eax
push dword [ebp - 0x10]
mov ecx, edi
call dword [0x437264]
call edi
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040e2b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040e2b8
test esi, esi
js 0x40e126
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e126
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov esi, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
mov ecx, dword [esi + 0x10]
push eax
call dword [0x437264]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e0e9
cmp dword [ebp - 0x20], ebx
jbe 0x40e0e9
mov esi, dword [eax]
lea ecx, [ebp - 0x38]
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 0x43d538
push eax
call dword [0x437264]
call dword [esi + 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.0040e1d1
test eax, eax
lea eax, [ebp - 0x38]
push eax
setne bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x437264]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x437264]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x437264]
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x437264]
call esi
mov al, bl
jmp 0x40e14e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x437264]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x437264]
call esi
xor al, al
call fcn.00434121
ret
Function at 0x40e154
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x444020]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44a441], 0
jne 0x40e1b7
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x40e1a7
jne 0x40e1a3
cmp dword [ebp - 0x74], 0x55f0
jb 0x40e1a3
call fcn.0040df5d
test al, al
je 0x40e1a7
xor al, al
jmp 0x40e1a9
mov al, 1
mov byte [0x44a440], al
mov byte [0x44a441], 1
jmp 0x40e1bc
mov al, byte [0x44a440]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0041e795
add ebp, 0x98
leave
ret

Function at 0x411e04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [0x445878]
mov ebx, ecx
push edi
mov edi, edx
test esi, esi
jne 0x411e2c
mov ecx, 0x445870
call fcn.00411c97
mov esi, dword [0x445878]
movzx ecx, byte [ebp + 0xc]
mov eax, edi
and eax, 0xfffffff0
cmp byte [ebp + 8], 0
je 0x411e72
test esi, esi
je 0x411e94
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x437264]
call esi
test eax, eax
jne 0x411eb6
push str.CryptProtectMemory_failed
mov esi, 0x445860
push esi
call fcn.00407e76
pop ecx
pop ecx
call fcn.00408100
push 2
mov ecx, esi
call fcn.00408033
jmp 0x411eb6
mov esi, dword [0x44587c]
test esi, esi
je 0x411e94
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x437264]
call esi
test eax, eax
jne 0x411eb6
push str.CryptUnprotectMemory_failed
jmp 0x411e55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0xc], eax
test edi, edi
je 0x411eb6
add al, 0x4b
lea ecx, [edx + ebx]
add al, dl
xor byte [ecx], al
inc edx
mov eax, dword [esp + 0xc]
cmp edx, edi
jb 0x411ea4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412d2d
Capabilities:
Get common file path

Disassembly:
push 0x5c
mov eax, 0x4358fd
call fcn.00434186
mov edi, ecx
push ecx
push 0x104
lea ecx, [ebp - 0x68]
call fcn.00401a55
xor esi, esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00401862
mov edx, eax
call fcn.00401857
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x412dcf
lea ecx, [ebp - 0x2c]
call fcn.004021b6
push edi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401ce3
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401857
push eax
lea ecx, [ebp - 0x44]
call fcn.00401ce3
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.0040ead8
lea ecx, [ebp - 0x44]
call fcn.00401e29
lea ecx, [ebp - 0x5c]
call fcn.00401e29
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401e29
lea ecx, [ebp - 0x68]
call fcn.0040186a
mov eax, esi
call fcn.00434135
ret

Function at 0x412ddf
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x444020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x412e42
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0041e795
leave
ret

Function at 0x412f03
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0
push edx
push 0x413180
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x412f46
push str.CreateThread_failed
mov edi, 0x445860
push edi
call fcn.00407e76
pop ecx
pop ecx
call fcn.00408100
push 2
mov ecx, edi
call fcn.00408033
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x417821
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
mov eax, dword [0x444020]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x4c]
push 0
push ebx
mov dword [esp + 0x18], ebx
mov dword [ebp + 8], ebx
mov byte [ebp + 0x42], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebp
call fcn.0041798d
cmp dword [ebp + 0x20], 0
je 0x41786c
push dword [ebp + 0x20]
call fcn.0042791e
pop ecx
test edi, edi
jne 0x417874
xor eax, eax
jmp 0x41787b
push edi
call fcn.0042851d
pop ecx
and dword [ebp + 0x24], 0
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebp + 4], 0
je 0x4178b4
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push dword [esp + 0x10]
mov esi, dword [ebp]
sub edi, eax
lea ebx, [eax + 1]
sub edi, 2
call dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
xor esi, esi
push esi
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
push edi
push dword [esp + 0x30]
push ebx
push 0x40000000
push esi
push str.RarHtmlClassName
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [ebp + 0x1c], 0
mov dword [ebp + 4], eax
jne 0x417944
cmp dword [ebp + 0x10], esi
jne 0x417944
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x41795a
cmp dword [ebp + 0x24], esi
jne 0x41795a
cmp dword [ebp + 0x20], esi
je 0x41795a
push dword [ebp + 0x20]
lea eax, [esp + 0x28]
push eax
call fcn.00417e78
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.0040227a
lea ecx, [esp + 0x24]
call fcn.00401e29
jmp 0x41795a
test eax, eax
je 0x41795a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e795
add esp, 0x30
ret 0x14
Function at 0x418c3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x43e178
push ecx
push dword [0x4457e0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x418d47
push esi
push dword [0x4457e0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x418d47
push esi
push dword [0x4457e0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418d47
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418d47
and dword [ebp - 8], 0
push edi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x418d41
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x418d3a
push ebx
push esi
push eax
call fcn.0041fea0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x418d33
mov ecx, dword [ebp - 4]
call fcn.00419281
mov ecx, dword [ebp - 4]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x437264]
call esi
test ebx, ebx
je 0x418d33
mov ecx, ebx
call fcn.00419160
test eax, eax
jne 0x418d21
push ecx
lea ecx, [ebp - 0xc]
call fcn.0041912f
lea eax, [ebp - 8]
push eax
mov eax, ecx
mov ecx, ebx
push eax
call fcn.0041913a
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x437264]
mov ecx, ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
jmp 0x418d49
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x419055
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x444020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00420420
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
shrd eax, ecx, 0x1e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e795
leave
ret
Function at 0x41978b
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
mov eax, dword [0x444020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
lea ecx, [ebp + 0x1c]
call fcn.00419701
test al, al
je 0x419848
push ebx
push edi
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x14], 0x11060000
xor edi, edi
mov dword [ebp + 8], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], edi
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp + 4], edi
inc ebx
mov dword [ebp - 0xc], 3
push eax
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp], edi
mov dword [ebp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x419846
push ebx
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x419838
push edi
push dword [ebp + 0x18]
lea eax, [ebp + 0x60]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x419838
lea eax, [ebp + 0x60]
mov dword [ebp + 0xc], 0xc
mov dword [ebp + 0x10], eax
mov ecx, esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0x14], edi
push eax
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0x18], edi
je 0x419846
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0041e795
add ebp, 0x78
leave
ret

Function at 0x419858
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x435f21
call fcn.00434153
mov esi, ecx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
mov ecx, edx
call fcn.0040126f
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419948
mov ecx, dword [ebp + 8]
call fcn.0040126f
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41993b
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
shr edx, 1
call fcn.0040185e
cmp eax, edx
jbe 0x4198bf
call fcn.0040185e
mov edx, eax
inc edx
mov eax, 0x10000
cmp edx, eax
jb 0x4198cb
mov edx, eax
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401a55
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401862
add eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00401857
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.0040126f
lea ecx, [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41992f
mov word [ebp - 0xe], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0xe]
push eax
call fcn.0041d4d8
lea ecx, [ebp - 0x2c]
call fcn.00401857
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401279
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040186a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x419953
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.004032fd
mov al, bl
call fcn.00434121
ret 0xc
Function at 0x4199b3
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x60
mov eax, dword [0x444020]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov bl, cl
call fcn.004193ed
push 0x68
push dword [0x4457f8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x44580b], 0
mov esi, eax
mov ebp, 0xc2
jne 0x419a20
call fcn.0041796f
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x43d29c
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [0x44580b], 1
mov eax, 0x5f5e100
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x5c
push eax
push 0
push 0x43a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov byte [esp + 0x29], 0
inc ecx
mov dword [esp + 0x14], ecx
test bl, bl
je 0x419a7d
mov eax, dword [esp + 0x18]
and eax, 0xbfffffff
mov dword [esp + 0x24], 0xa0
or eax, ecx
mov dword [esp + 0x14], 0x40000001
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push ecx
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0040126f
push eax
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x5f5e100
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
je 0x419adb
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x43d3c0
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e795
add esp, 0x60
ret
Function at 0x41d017
Capabilities:
Delete file
Move file

Disassembly:
push 0x74
mov eax, 0x43653c
call fcn.00434186
mov esi, 0x4459ac
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x60], ebx
call fcn.004091ad
test al, al
jne 0x41d070
push 0x43e230
lea ecx, [ebp - 0x40]
call fcn.00401ce3
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x58]
mov edx, esi
mov dword [ebp - 0x60], 1
call fcn.0040e6eb
push 3
pop ebx
push 6
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.0041da06
mov byte [ebp - 0x59], 1
test eax, eax
je 0x41d074
mov byte [ebp - 0x59], 0
test bl, 2
je 0x41d084
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.00401e29
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x41d095
lea ecx, [ebp - 0x40]
call fcn.00401e29
cmp byte [ebp - 0x59], 0
je 0x41d0fa
mov ecx, 0x445990
call fcn.0040f8b8
push esi
lea ecx, [ebp - 0x28]
call fcn.00407ccc
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x28]
call fcn.004073be
push 0x14
pop eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6e], ebx
mov dword [ebp - 0x6a], ebx
mov dword [ebp - 0x66], ebx
mov dword [ebp - 0x7c], 3
mov word [ebp - 0x70], ax
call fcn.0040126f
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x28]
call fcn.00401e29
call fcn.00434135
ret

Function at 0x41d227
Capabilities:
Hide graphical window

Disassembly:
and dword [0x445804], 0
push esi
mov esi, ecx
mov byte [0x4457fd], 1
push 1
push esi
mov byte [0x4457fe], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
pop edx
mov ecx, esi
call fcn.004021cd
mov ecx, 0x445ea0
call fcn.004091ad
test al, al
je 0x41d26b
cmp byte [0x44580b], 0
je 0x41d274
cmp dword [0x44580c], 0
jne 0x41d284
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x41d2e6
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x43515e
call fcn.00434186
mov esi, ecx
cmp byte [0x4459cc], 0
je 0x41d388
mov ebx, 0x4459d0
mov ecx, ebx
call fcn.004091ad
test al, al
jne 0x41d388
lea ecx, [ebp - 0x28]
call fcn.004021b6
xor edi, edi
lea edx, [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0041d286
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d380
mov ecx, esi
call fcn.0040185e
lea edx, [eax*2 + 2]
call fcn.0040126f
push edx
push eax
push 1
push edi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00401e29
call fcn.00434135
ret
Function at 0x41f5f3
Capabilities:
Parse pe header

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