joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d983
add esp, 0xfffffff0
call fcn.00404100
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403e7c
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d9a9
cmp dword [esi + 0x58], 0x40
jb 0x41db8f
jmp 0x41d9af
jl 0x41db8f
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.004072d4
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d598
cmp word [ebx + 0xc], 0x5a4d
jne 0x41db8f
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41db8f
cmp ecx, 0x10000
jge 0x41db8f
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da0a
cmp eax, dword [esi + 0x58]
ja 0x41db8f
jmp 0x41da10
jg 0x41db8f
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.004072d4
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d598
cmp dword [ebx + 0x4c], 0x4550
jne 0x41db8f
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.004072d4
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d598
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41dac7
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da8b
cmp eax, dword [esi + 0x58]
ja 0x41db18
jmp 0x41da91
jg 0x41db18
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.004072d4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d598
mov byte [ebx + 4], 1
jmp 0x41db18
cmp ax, 0x14c
jne 0x41db18
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41dae8
cmp eax, dword [esi + 0x58]
ja 0x41db18
jmp 0x41daea
jg 0x41db18
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.004072d4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d598
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41db8f
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41db49
cmp eax, dword [esi + 0x58]
ja 0x41db8f
jmp 0x41db4b
jg 0x41db8f
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x8ad4b0]
call fcn.00405f20
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d598
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41dba6
call fcn.00404158
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x8aed4f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e941
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e92a
test esi, esi
jbe 0x41e941
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408d64
test eax, eax
jne 0x41e91c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e941
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e8f9
jmp 0x41e941
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e941
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8aed56
ret
Function at 0x41f190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x8af73f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405060
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f1cb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f1e4
lea eax, [ebp - 0x10]
mov edx, dword [0x8c418c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004050c0
jmp 0x41f1f7
lea eax, [ebp - 0x10]
mov edx, dword [0x8c418c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004050c0
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f203
adc edx, 0
mov edx, dword [edx*4 + 0x8c2cac]
call fcn.004052b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00405294
push eax
call fcn.00406f48
mov esi, eax
cmp esi, 0xffffffff
je 0x41f311
mov eax, 0x40
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00407190
test eax, eax
je 0x41f304
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f304
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.004071e8
mov eax, edi
call fcn.004035ec
mov eax, 0x18
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00407190
test eax, eax
je 0x41f304
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f304
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f304
cmp dx, 0x150
ja 0x41f304
mov eax, edi
call fcn.004035ec
mov eax, 0xe0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00407190
test eax, eax
je 0x41f304
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f304
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.0040509c
mov eax, edi
call fcn.004035ec
push esi
call fcn.00406f00
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.004053c0
jne 0x41f329
inc ebx
cmp ebx, 0x19
jne 0x41f1bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8af746
lea eax, [ebp - 0x10]
call fcn.00405060
ret
Function at 0x41f620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.004071e8
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00407190
test eax, eax
je 0x41f6bd
cmp word [esi], 0x5a4d
jne 0x41f6bd
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.004071e8
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00407190
test eax, eax
je 0x41f6bd
cmp dword [ebp - 0x1c], 0x4550
jne 0x41f6bd
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.004072cc
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41f6bd
cmp ax, 0x150
ja 0x41f6bd
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00407190
test eax, eax
je 0x41f6bd
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4268bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4268c5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
call fcn.00405528
xor eax, eax
push ebp
push 0x8b7563
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.00426870
mov eax, dword [ebp + 8]
add dword [eax], 4
Function at 0x405064
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.004038af
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406653
test al, al
je 0x405209
cmp word [ebp - 0x2440], di
je 0x405209
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407c5f
push eax
call fcn.0040f2de
test eax, eax
je 0x405209
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407c5f
push eax
call fcn.0040f2de
test eax, eax
jne 0x405209
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x40515a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea9d
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407c5f
push eax
call fcn.0040b2b8
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d8f
test al, al
je 0x405142
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4050f3
cmp word [ebp - 0x800], di
je 0x405209
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea9d
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407c5f
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407c5f
push eax
call fcn.0040b0a4
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 0x405209
lea ecx, [ebp - 0x1c20]
call fcn.00405475
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d8f
test al, al
jne 0x4051d0
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.004057d8
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x4051fa
lea ecx, [ebp - 0x1c20]
call fcn.004054e0
lea ecx, [ebp - 0x1c20]
call fcn.00405565
lea ecx, [ebp - 0x1c20]
call fcn.0040565a
mov al, 1
jmp 0x40520b
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40567d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405697
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4056aa
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4056bd
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.004074bc
test eax, eax
je 0x4056f6
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4056f6
cmp word [eax], bx
je 0x4056f6
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40570a
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405726
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405726
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x40579e
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40575f
push edi
call fcn.0040b07a
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040adfb
jmp 0x405768
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x405785
push dword [ebp + 8]
call fcn.0040ae46
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040adfb
jmp 0x405794
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040f0cb
push dword [esi + 4]
mov ecx, esi
call fcn.004054b9
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4058d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4058fb
cmp dword [ebp + 0xc], esi
jbe 0x4058f0
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40594b
mov ecx, edi
call fcn.00405637
test al, al
je 0x405931
cmp dword [ebp + 0xc], esi
jbe 0x405931
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004058d5
jmp 0x40594e
cmp dword [edi + 0xc], 1
jne 0x405946
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405946
xor eax, eax
jmp 0x40594e
or eax, 0xffffffff
jmp 0x40594e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40b514
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b55f
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x422240], ax
xor eax, eax
mov word [0x422242], ax
mov dword [0x4150b0], 0x422240
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040eac7
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b8de
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x41c200]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41d314], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b940
mov ecx, dword [0x41b0d4]
call fcn.00406ab6
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x413734
push 0
push 0xc2
push edi
call esi
mov byte [0x41d314], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40b990
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
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 0x40b9da
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c30d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c328
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c332
mov byte [eax], 0
test edi, edi
je 0x40c3db
movzx eax, word [edi]
test ax, ax
je 0x40c3db
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c36b
cmp dword [ebp + 0xc], 0
je 0x40c377
test esi, esi
jne 0x40c377
test ebx, ebx
je 0x40c367
mov byte [ebx], 1
mov esi, edx
jmp 0x40c386
cmp ax, 0xd
je 0x40c399
cmp ax, 0xa
je 0x40c39b
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c391
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c34b
jmp 0x40c39b
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c39b
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c3d6
mov word [ebx], ax
test esi, esi
je 0x40c3d6
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ea9d
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c3dd
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c422
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412857
cmp byte [0x41d315], 0
jne 0x40c4b0
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407c5f
push eax
call fcn.0040f39b
test eax, eax
jne 0x40c4b0
push 0x4137ec
call fcn.00412844
lea eax, [ebp - 0x820]
push eax
call fcn.0040b07a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040ad4b
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c57b
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41c1f1], 1
cmp dword [0x41c200], ebx
je 0x40c5a3
push 0x7d
call fcn.0040a3b6
push eax
push 2
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41c200]
mov dword [0x41c1f4], ebx
mov byte [0x41c1f0], 1
cmp eax, ebx
je 0x40c604
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41d324], ebx
jne 0x40c5d2
cmp byte [0x41d314], bl
je 0x40c5da
cmp dword [0x41c1f8], ebx
jne 0x40c5fc
push ebx
push 1
push 0x111
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c5fc
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b4d5
cmp dword [0x41c200], ebx
jne 0x40c5f0
cmp byte [0x41c208], bl
pop ebx
je 0x40c612
jmp fcn.0040c422
ret
Function at 0x40c64e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x41c210], bl
je 0x40c6ce
cmp word [0x41b0d8], bx
je 0x40c6ce
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c613
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 0x40c6ce
push dword [ebp + 8]
call fcn.0040b07a
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 0x40c6d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x41c210], 0
je 0x40c77a
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c613
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 0x40c77a
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 0x40c771
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c755
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.0040ea9d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c8a2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x41c0e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x41c0e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41c0ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41c0e0], eax
je 0x40c8d2
xor eax, eax
inc eax
jmp 0x40c8fb
cmp byte [0x41c0e7], 0
je 0x40c8e0
push 2
pop eax
jmp 0x40c8fb
push dword [ebp + 8]
push 0x40baae
push dword [0x41c200]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c94d
dec eax
je 0x40c95f
dec eax
je 0x40c946
dec eax
jne 0x40c92a
push dword [ebp + 8]
push 0x40bdfa
push dword [0x41c200]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c8ac
mov al, 0x52
jmp 0x40c95a
dec eax
je 0x40c93b
dec eax
mov al, 0x4e
jne 0x40c95a
mov byte [0x41c0e7], 1
jmp 0x40c95a
mov byte [0x41c1f2], 1
mov al, 0x43
jmp 0x40c95a
mov byte [0x41c0e6], 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 0x40c95a
Function at 0x40cb18
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00401200
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40cd4f
push esi
call fcn.0040b07a
cmp eax, 0x3f6
jae 0x40cd4f
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040ad4b
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40cb6f
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40cb72
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40cbc8
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40cb9a
jmp 0x40cb8a
cmp word [esi + eax*2], 0x22
je 0x40cb93
inc eax
cmp word [esi + eax*2], bx
jne 0x40cb83
jmp 0x40cb9a
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40cbb4
cmp word [esi + eax*2 + 2], 0x2f
je 0x40cbb4
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40cb7b
jmp 0x40cbc8
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40cbc2
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40cbdd
cmp word [0x41ca12], bx
je 0x40cbdd
mov dword [ebp - 0x2c], 0x41ca12
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00407ef1
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40cc09
push str..inf
push eax
call fcn.0040f2de
test eax, eax
jne 0x40cc09
mov dword [ebp - 0x34], str.Install
push dword [ebp - 0x30]
call fcn.00405dd9
mov bl, al
test bl, bl
je 0x40cc2f
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407a18
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40cc6d
test bl, bl
jne 0x40cc6d
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.0040b0a4
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.0040b111
lea eax, [ebp - 0x840]
push eax
call fcn.00405dd9
test al, al
je 0x40cd4e
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40cc9f
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40cd4e
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x41c208], bl
jne 0x40ccb4
cmp byte [ebp + 8], bl
je 0x40ccea
mov eax, dword [0x41c200]
test eax, eax
je 0x40ccd4
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ccd4
push 0
push dword [0x41c200]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040c3e3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40cd0a
push str..exe
push dword [ebp - 4]
call fcn.0040f2de
test eax, eax
je 0x40cd3a
cmp byte [0x41c208], 0
je 0x40cd20
cmp byte [ebp + 8], 0
jne 0x40cd20
push 0x1b58
jmp 0x40cd34
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40cd4e
cmp byte [ebp + 8], 0
je 0x40cd4e
push 1
push dword [0x41c200]
call esi
pop edi
pop esi
pop ebx
leave
ret 4