joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f760
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477203
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00468fb6
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x8584b8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x857160
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4790b0]
push eax
mov ecx, edi
call fcn.0046e729
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046fc81
test eax, eax
je 0x43f87c
mov ecx, dword [esp + 0x3c]
call fcn.0046e756
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4793fc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f840
push edi
mov ecx, esi
call fcn.0046bd19
mov ecx, esi
call fcn.0043f9e0
cmp dword [esp + 0x38], 1
jne 0x43f875
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046be83
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4422a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4422d3
push esi
call fcn.004453a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4422cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442359
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442342
mov eax, dword [esi + 8]
test eax, eax
je 0x4422f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44233e
cmp eax, 2
je 0x442342
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4422ea
cmp eax, 3
je 0x44231d
cmp eax, 1
jne 0x4422ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4422ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4422ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442380
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442368
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442380
add esp, 4
pop esi
ret
Function at 0x46eb90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5a000]
push edi
jmp 0x46ebaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46ebb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46eba0
mov eax, 1
add ebx, ebx
jne 0x46ebc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46ebd4
jne 0x46ebf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ebf3
dec eax
add ebx, ebx
jne 0x46ebe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46ebb8
add ebx, ebx
jne 0x46ebef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46ec45
xor ecx, ecx
sub eax, 3
jb 0x46ec0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46ec7a
sar eax, 1
mov ebp, eax
jmp 0x46ec16
add ebx, ebx
jne 0x46ec16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ebe4
inc ecx
add ebx, ebx
jne 0x46ec24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46ebe4
add ebx, ebx
jne 0x46ec31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46ec26
jne 0x46ec42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46ec26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46ec64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46ec56
jmp 0x46eba6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46ec64
add edi, ecx
jmp 0x46eba6
pop esi
mov edi, esi
mov ecx, 0x219e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46ec82
cmp byte [edi], 6
jne 0x46ec82
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 0x46ec87
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x46ecff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46ecb4
mov ecx, edi
jns 0x46ece3
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 + 0x6e11c]
or eax, eax
je 0x46ecf9
mov dword [ebx], eax
add ebx, 4
jmp 0x46ecd1
call dword [esi + 0x6e12c]
mov ebp, dword [esi + 0x6e120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x46ed33
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10010e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001168
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001145
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x100114c
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100113c
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x1001676
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 1], 1
je 0x10016ad
push 0x10017b4
push dword [ebp + 8]
call fcn.010011c6
test eax, eax
pop ecx
pop ecx
jne 0x10019ac
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 3
push esi
mov edi, 0x1001728
push edi
mov esi, 0x80000001
push esi
call ebx
test eax, eax
jne 0x10019ca
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001780
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001707
cmp dword [ebp - 0x10], esi
jne 0x1001707
cmp dword [ebp - 0x14], 1
jne 0x1001707
mov byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
cmp byte [ebp - 1], 0
jne 0x10019de
mov al, byte [ebp - 1]
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x1002408
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003040]
jne 0x1002419
test ecx, 0xffff0000
jne 0x1002419
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1003150], eax
mov dword [0x100314c], ecx
mov dword [0x1003148], edx
mov dword [0x1003144], ebx
mov dword [0x1003140], esi
mov dword [0x100313c], edi
mov word [0x1003168], ss
mov word [0x100315c], cs
mov word [0x1003138], ds
mov word [0x1003134], es
mov word [0x1003130], fs
mov word [0x100312c], gs
pushfd
pop dword [0x1003160]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x1003164], ecx
mov dword [0x1003158], eax
mov dword [0x10030a0], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x100305c], eax
mov eax, dword [0x1003040]
xor edi, edi
mov dword [0x1003154], ecx
mov dword [0x1003050], 0xc0000409
inc edi
mov dword [0x1003054], edi
mov dword [ebp - 4], eax
mov eax, dword [0x1003044]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10024fc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x433a01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426e53
and dword [ebp - 0x14], 0
cmp dword [0x444984], 0
mov dword [ebp - 0x18], eax
jne 0x433ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x433b5c
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x433b5c
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x444984], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x444988], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44498c], eax
call edi
push eax
call esi
mov dword [0x444994], eax
test eax, eax
je 0x433ab4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x444990], eax
mov eax, dword [0x444990]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x433b0d
cmp dword [0x444994], ecx
je 0x433b0d
push eax
call esi
push dword [0x444994]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x433b0d
test ebx, ebx
je 0x433b0d
call edi
test eax, eax
je 0x433b04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x433b04
test byte [ebp - 8], 1
jne 0x433b0d
or dword [ebp + 0x10], 0x200000
jmp 0x433b40
mov eax, dword [0x444988]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x433b40
mov eax, dword [0x44498c]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x444984]
call esi
test eax, eax
je 0x433b5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x433b5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420bc6
leave
ret

Function at 0x406e5c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x91c174]
cmp dword [eax], 1
jle 0x406e75
xchg ecx, eax
add byte [ebx + 0x127e0138], al
pop ss
leave
push 4
mov al, byte [edx]
mov dl, 0xff
adc eax, 0x1640c168
adc esp, eax
or bl, ch
adc dword [ecx + sym.imp.MSVCRT.dll__pctype], esp
mov eax, dword [sym.imp.MSVCRT.dll__pctype]
xor ecx, esp
mov dl, byte [edi]
mov esi, edx
mov al, byte [ecx + edx*2]
sbb dword [ebp - 0x443f7afc], 7
dec edi
cmp edi, ebx
jae 0x406e59
jmp 0x406e95
push ebx
call dword [0x40c1f0]
lea esp, [edx + 0x1f88304]
jl 0x406ec7
sub al, 0xff
dec edx
add byte [edi + 0x1c], bh
vmovss xmm1, xmm2, xmm1
pop esi
cld
mov word [edx], ax
xor eax, eax
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 0x16
pop ebx
pop ebp
ret 0x14
Function at 0x405062
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.0040387e
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406651
test al, al
je 0x405207
cmp word [ebp - 0x2440], di
je 0x405207
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a09
push eax
call fcn.0040f3a6
test eax, eax
je 0x405207
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407a09
push eax
call fcn.0040f3a6
test eax, eax
jne 0x405207
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x405158
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea2b
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407a09
push eax
call fcn.0040b1f9
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d8d
test al, al
je 0x405140
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4050f1
cmp word [ebp - 0x800], di
je 0x405207
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea2b
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a09
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407a09
push eax
call fcn.0040af85
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405207
lea ecx, [ebp - 0x1c20]
call fcn.00405473
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d8d
test al, al
jne 0x4051ce
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.004057d6
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x4051f8
lea ecx, [ebp - 0x1c20]
call fcn.004054de
lea ecx, [ebp - 0x1c20]
call fcn.00405563
lea ecx, [ebp - 0x1c20]
call fcn.00405658
mov al, 1
jmp 0x405209
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c511
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x421a10], bl
je 0x40c591
cmp word [0x41b0d8], bx
je 0x40c591
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c4d6
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_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c591
push dword [ebp + 8]
call fcn.0040af5b
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
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 ebx
leave
ret 4

Function at 0x40c596
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x421a10], 0
je 0x40c63d
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c4d6
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c63d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c634
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c618
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ea2b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c765
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x4218e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4218e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4218ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4218e0], eax
je 0x40c795
xor eax, eax
inc eax
jmp 0x40c7be
cmp byte [0x4218e7], 0
je 0x40c7a3
push 2
pop eax
jmp 0x40c7be
push dword [ebp + 8]
push 0x40b9ef
push dword [0x421a00]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c810
dec eax
je 0x40c822
dec eax
je 0x40c809
dec eax
jne 0x40c7ed
push dword [ebp + 8]
push 0x40bd3b
push dword [0x421a00]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c76f
mov al, 0x52
jmp 0x40c81d
dec eax
je 0x40c7fe
dec eax
mov al, 0x4e
jne 0x40c81d
mov byte [0x4218e7], 1
jmp 0x40c81d
mov byte [0x4219f2], 1
mov al, 0x43
jmp 0x40c81d
mov byte [0x4218e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c81d
Function at 0x40e1c3
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040ee3a
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42a4c8
call fcn.0040f560
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41c0e0
push edi
call fcn.0040abda
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e271
push eax
call fcn.0040c0ab
cmp byte [0x421a11], bl
je 0x40e263
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e258
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e24f
push esi
push eax
push edi
call fcn.0040ac07
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e271
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41b8d8], eax
call fcn.00412992
push esi
mov ecx, 0x415e88
call fcn.0040a22e
lea ecx, [ebp - 0x5c]
call fcn.00406a41
lea ecx, [ebp - 0x34]
call fcn.00406a41
push 0x64
call fcn.0040b71f
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040b71f
push ebx
push 0x40d9a3
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406a63
lea ecx, [ebp - 0x5c]
call fcn.00406a63
lea ecx, [ebp - 0xc]
call fcn.004129ec
cmp byte [0x421a08], bl
je 0x40e350
call fcn.0040c2e5
push 0x100
push ebx
push 0x4218f0
call fcn.0040abda
cmp dword [0x422b24], ebx
jbe 0x40e373
push dword [0x422b18]
call fcn.0040ab56
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e38d
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e3ac
cmp byte [0x4219f2], bl
je 0x40e3ac
push 0xff
mov ecx, 0x415e7c
call fcn.0040341b
mov eax, dword [0x422b30]
mov byte [0x4219f2], 1
cmp eax, ebx
je 0x40e3c2
push eax
call fcn.0040c2a6
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x422b2c]
cmp eax, ebx
ja 0x40e3d6
mov eax, dword [0x415e7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x418330
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4847fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00478f0b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4183b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00476b7a
mov eax, dword [eax]
push 0x4a2284
push eax
call fcn.00468d54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00479196
test bl, bl
je 0x4183b2
push 0x4a2284
lea ecx, [esp + 0xc]
call fcn.00479526
push 0x4a5dfc
lea ecx, [esp + 0xc]
call fcn.00479526
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4183ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00479196
jmp 0x4184b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x418472
lea edx, [esp + 0x7c]
push 0x4a5df8
push edx
call fcn.00468d54
add esp, 8
test eax, eax
je 0x418472
lea eax, [esp + 0x7c]
push 0x4a5df4
push eax
call fcn.00468d54
add esp, 8
test eax, eax
je 0x418472
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418402
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00479196
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x418cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x418d12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc