joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bf9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [ebp + 0x1c], 0x18
push edi
mov edi, ecx
mov dword [ebp - 8], edi
ja 0x405db3
and dword [ebp - 4], 0
push ebx
push esi
lea ebx, [edi + 0x4b4]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x102]
cmp dword [esi + 0x32], eax
jne 0x405c50
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040d065
test al, al
je 0x405c50
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.0041abe4
add esp, 0xc
test eax, eax
je 0x405db8
inc dword [ebp - 4]
add ebx, 0x178
cmp dword [ebp - 4], 4
jb 0x405c1e
mov esi, 0x200
push esi
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0x10]
call fcn.00411bce
mov ecx, dword [ebp + 0x1c]
xor eax, eax
inc eax
shl eax, cl
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
call fcn.0041aa40
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00405ade
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.0040cf8a
mov esi, dword [ebp + 0xc]
lea eax, [edi + 0xa94]
mov ecx, dword [eax]
mov edx, ecx
and edx, 3
imul edx, edx, 0x178
lea ebx, [edx + edi + 0x4b4]
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
push 0x40
pop ecx
mov dword [ebx + 0x134], eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041c270
push 0x20
pop esi
push esi
lea eax, [ebp - 0x48]
push eax
lea edi, [ebx + 0x112]
push edi
call fcn.0041c270
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041c270
push esi
lea eax, [ebp - 0x68]
push eax
add ebx, 0x158
push ebx
call fcn.0041c270
add esp, 0x30
push 0
push 1
push esi
push edi
call fcn.0040cedc
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x20], 0
je 0x405d55
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x20]
call fcn.0041c270
add esp, 0xc
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x405d87
push 8
push 0
push ebx
call fcn.0041a800
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x28]
mov eax, ecx
and eax, 7
add eax, ebx
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405d6b
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf8a
cmp dword [ebp + 0x18], 0
je 0x405da7
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push 0x100
push eax
push dword [ebp + 8]
lea ecx, [edi + 0xa9c]
call fcn.0040ca39
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040cf8a
pop esi
pop ebx
pop edi
leave
ret 0x20
push 0
push 0
push 0x20
pop esi
lea eax, [ebx + 0x112]
push esi
push eax
call fcn.0040cedc
push esi
lea eax, [ebx + 0x112]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041c270
add esp, 0xc
push 0
push 1
push esi
lea eax, [ebx + 0x112]
push eax
call fcn.0040cedc
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c270
push esi
add ebx, 0x158
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041c270
add esp, 0x18
jmp 0x405d3f
Function at 0x405ec3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405f0f
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004059a1
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405ef4
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405f37
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004059a1
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041c270
add esp, 0xc
pop esi
leave
ret 8
Function at 0x4084d5
Capabilities:
Move file

Disassembly:
mov eax, 0x4296d3
call fcn.0041a4c4
mov eax, 0x5028
call fcn.0041aad0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x5034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x408692
cmp eax, esi
jae 0x408692
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x408692
cmp eax, esi
jae 0x408692
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a5c2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a5c2
mov edi, eax
cmp word [edi], 0
je 0x408692
push edi
push dword [ebp - 0x10]
call fcn.00411e47
test eax, eax
je 0x408692
push edi
push ebx
call fcn.0040a5c2
push eax
call fcn.00411e47
test eax, eax
jne 0x408692
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x4085ee
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.00410b83
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a5c2
push eax
call fcn.0040bbfd
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040928c
test al, al
je 0x4085d5
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x408588
cmp word [ebp - 0x1010], 0
je 0x408692
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.00410b83
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a72c
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3034]
push eax
call esi
test eax, eax
je 0x408692
lea ecx, [ebp - 0x2034]
call fcn.0040876d
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.0040928c
test al, al
jne 0x408655
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.0040890a
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x40867f
lea ecx, [ebp - 0x2034]
call fcn.00408a19
lea ecx, [ebp - 0x2034]
call fcn.00408a67
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.00408c64
mov al, 1
jmp 0x408694
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x409074
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041aad0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x4090c3
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040a3c3
test al, al
je 0x4090c3
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x4092b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041aad0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040a071
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x4092e6
cmp ax, 0x20
je 0x4092e6
push 0
push edi
call esi
test eax, eax
jne 0x409315
push edi
call fcn.0040928c
test al, al
jne 0x409328
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.0040a3c3
test al, al
je 0x409328
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x409328
cmp byte [ebp + 0xc], 0
je 0x409324
push dword [ebp + 0x10]
push edi
call fcn.00409074
xor eax, eax
jmp 0x409340
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40933d
cmp eax, 3
je 0x40933d
xor eax, eax
inc eax
jmp 0x409340
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x40945d
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0041aad0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x4094ec
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409519
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040a3c3
test al, al
je 0x4094c5
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409519
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4094df
cmp eax, 3
je 0x4094df
cmp eax, 0x12
je 0x4094df
xor eax, eax
inc eax
jmp 0x4094e1
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4095e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40950f
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x4095e4
push edi
push dword [ebp + 0xc]
push esi
call fcn.00410b83
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040a72c
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0041abb0
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0041131a
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0041131a
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0041131a
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a3c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041aad0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40a3e1
xor al, al
jmp 0x40a56b
push ebx
push edi
push esi
call fcn.0040a0d1
push esi
call fcn.0041a797
pop ecx
push esi
mov ebx, eax
call fcn.0040a2dc
test al, al
je 0x40a48b
push esi
call fcn.0040a0d1
test al, al
je 0x40a438
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40a567
mov edi, dword [ebp + 0xc]
push 4
push 0x42a6b4
push edi
call fcn.0041c833
push esi
add edi, 8
push edi
call fcn.0041a7df
add esp, 0x14
jmp 0x40a563
cmp word [esi], 0x5c
jne 0x40a567
add esi, 2
cmp word [esi], 0x5c
jne 0x40a567
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a567
mov edi, dword [ebp + 0xc]
push 4
push 0x42a6b4
push edi
call fcn.0041c833
lea eax, [edi + 8]
push 0x42a6ac
push eax
call fcn.0041a7df
push esi
add edi, 0xe
push edi
call fcn.0041a7df
add esp, 0x1c
jmp 0x40a563
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a567
cmp eax, edi
ja 0x40a567
movzx eax, word [esi]
push eax
call fcn.0040a0ac
test al, al
je 0x40a4f8
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a567
mov edi, dword [ebp + 0xc]
push 4
push 0x42a6b4
push edi
call fcn.0041c833
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041c833
push esi
add edi, 0xc
push edi
call fcn.0041a7df
add esp, 0x20
jmp 0x40a563
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a0fd
lea eax, [ebp - 0x1000]
push eax
call fcn.0041a797
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40a567
mov edi, dword [ebp + 0xc]
push 4
push 0x42a6b4
push edi
call fcn.0041c833
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041a7df
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40a559
movzx eax, word [esi + 2]
push eax
call fcn.0040a0ac
test al, al
je 0x40a559
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.00410bb0
mov al, 1
jmp 0x40a569
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40ad75
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
and dword [edi + 4], 0
and dword [edi], 0
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x40ad91
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
push dword [edi + 0xc]
call fcn.0041c270
xor eax, eax
inc eax
add esp, 0xc
xor bl, bl
cmp dword [ebp + 0xc], eax
jbe 0x40adb4
xor bl, byte [eax + esi]
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x40adab
push 8
mov ecx, edi
call fcn.004097a1
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
and dword [esi + 0x14], 0
cmp bl, byte [eax]
jne 0x40ae12
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0040ac11
mov edi, eax
test edi, edi
je 0x40ae12
push 1
mov ecx, esi
call fcn.0040acfb
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
imul eax, eax, 0x28
add eax, dword [esi]
mov dword [esi + 0x14], ecx
lea ecx, [eax + 0xc]
mov dword [ecx], edi
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
push 3
mov dword [eax + 0x24], ecx
pop ecx
mov dword [eax], 0x28
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
jmp 0x40ae72
push 1
mov ecx, esi
call fcn.0040acfb
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
imul eax, eax, 0x28
add eax, dword [esi]
mov dword [esi + 0x14], ecx
lea ecx, [eax + 0xc]
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
push 3
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
xor edx, edx
mov dword [eax], 0x16
xor ecx, ecx
cmp dword [esi + 0x14], edx
jle 0x40ae72
xor edi, edi
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 0x14], edx
jne 0x40ae5e
lea ebx, [eax + 0xc]
mov dword [eax + 0x14], ebx
cmp dword [eax + 0x24], edx
jne 0x40ae69
lea ebx, [eax + 0x1c]
mov dword [eax + 0x24], ebx
inc ecx
add edi, 0x28
cmp ecx, dword [esi + 0x14]
jl 0x40ae4f
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40cedc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x438808], ebx
jne 0x40cef5
mov ecx, 0x438800
call fcn.0040ce9d
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x40cf47
mov ecx, dword [0x438808]
cmp ecx, ebx
je 0x40cf63
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40cf84
push str.CryptProtectMemory_failed
mov esi, 0x4335ac
push esi
call fcn.00406423
pop ecx
pop ecx
mov ecx, esi
call fcn.00401000
push 2
mov ecx, esi
call fcn.00406371
jmp 0x40cf84
mov ecx, dword [0x43880c]
cmp ecx, ebx
je 0x40cf63
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40cf84
push str.CryptUnprotectMemory_failed
jmp 0x40cf28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x40cf84
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x40cf74
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40d13c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4300dc], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40d187
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 [0x44cf24], ax
xor eax, eax
mov word [0x44cf26], ax
mov dword [0x4300dc], 0x44cf24
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410bde
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4300cc
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 0x40d87d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041aad0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.00419c82
cmp byte [0x441849], 0
jne 0x40d912
push 6
push dword [0x4300c8]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040a5c2
push eax
call fcn.00411e68
test eax, eax
jne 0x40d912
push 0x42a65c
call fcn.00419c6f
lea eax, [ebp - 0x1020]
push eax
call fcn.0041a797
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0041a800
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
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 0x40da73
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041aad0
push ebx
xor ebx, ebx
cmp byte [0x441878], bl
je 0x40daf8
cmp word [0x438818], bx
je 0x40daf8
push esi
push 0x438818
lea esi, [ebp - 0x1008]
call fcn.0040da36
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 0x40daf8
push dword [ebp + 8]
call fcn.0041a797
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
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 0x40dafd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041aad0
cmp byte [0x441878], 0
je 0x40dba4
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.0040da36
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 0x40dba4
lea eax, [ebp - 4]
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]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40db9b
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x40db7f
mov eax, dword [ebp - 4]
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.00410b83
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x40e453
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0041aad0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40e66e
push esi
call fcn.0041a797
pop ecx
cmp eax, 0x7f6
jae 0x40e66e
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0041a800
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40e4ae
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40e4b1
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x40e507
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40e4d9
jmp 0x40e4c9
cmp word [esi + eax*2], 0x22
je 0x40e4d2
inc eax
cmp word [esi + eax*2], bx
jne 0x40e4c2
jmp 0x40e4d9
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40e4f3
cmp word [esi + eax*2 + 2], 0x2f
je 0x40e4f3
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40e4ba
jmp 0x40e507
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40e501
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40e513
cmp word [eax], bx
jne 0x40e528
cmp byte [ebp + 0xc], bl
jne 0x40e528
cmp word [0x44287a], bx
je 0x40e528
mov dword [ebp - 0x34], 0x44287a
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.0040a751
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e554
push str..inf
push eax
call fcn.00411e47
test eax, eax
jne 0x40e554
mov dword [ebp - 0x3c], 0x42a910
push dword [ebp - 0x38]
call fcn.0040928c
test al, al
je 0x40e57d
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.0040a9b2
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e66d
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x441870], bl
jne 0x40e5b2
cmp byte [ebp + 0xc], bl
jne 0x40e5b2
cmp byte [0x44185d], bl
je 0x40e60f
cmp dword [ebp + 8], ebx
je 0x40e5ce
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40e5ce
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.0040d83e
cmp byte [0x44185d], bl
je 0x40e60f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e60f
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x441860]
jbe 0x40e60f
mov dword [0x441860], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40e62e
push 0x42a904
push dword [ebp - 8]
call fcn.00411e47
test eax, eax
je 0x40e65c
cmp byte [0x441870], bl
je 0x40e647
cmp byte [ebp + 0xc], bl
jne 0x40e647
mov dword [0x441864], 0x1b58
jmp 0x40e65c
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x441864], eax
cmp byte [ebp - 1], bl
je 0x40e66d
cmp byte [ebp + 0xc], bl
je 0x40e66d
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41123b
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x4112b6
push ebx
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4111c4
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x411292
push str.CreateThread_failed
push 0x4335ac
call fcn.00406423
pop ecx
pop ecx
mov ecx, 0x4335ac
call fcn.00401000
push 2
mov ecx, 0x4335ac
call fcn.00406371
mov dword [edi], ebx
inc dword [esi + 0x84]
mov eax, dword [0x44f58c]
test eax, eax
je 0x4112ac
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add edi, 4
cmp ebp, dword [esi]
jb 0x41124b
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x417671
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x429897
call fcn.0041a4c4
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.00409707
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.004124ea
lea ecx, [esi + 0x98d0]
call fcn.00412ee6
lea ecx, [esi + 0xe65c]
mov byte [ebp - 4], 5
call fcn.0040aaf3
push 1
lea ecx, [esi + 0xe694]
mov byte [ebp - 4], 6
call fcn.00409707
lea eax, [esi + 0xe6a4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6b4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6c4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.00411059
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6d8], ebx
mov dword [esi + 0xe6dc], ebx
call fcn.004157c2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4