joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c07
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004107c2
push eax
push esi
push dword [ebp + 8]
call fcn.00410777
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004107b2
mov esi, dword [eax]
jne 0x410caa
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
jb 0x410c48
inc ebp
lea edi, [edx - 0x3a]
inc ebp
invalid
jae 0x410c50
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.004107b2
clc
mov eax, dword [0x858d6b90]
jl 0x410c9d
invalid
invalid
or al, ch
invalid

Function at 0x414fc5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4358bd
call fcn.0041aae7
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x4150cf
cmp ebx, dword [esi + 0xc]
jge 0x4150cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41501c
cmp ebx, dword [edi + 8]
jl 0x4150bd
cmp dword [ebp + 0xc], 0
je 0x4150bd
xor ebx, ebx
jmp 0x415056
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00414c52
mov edi, eax
test edi, edi
je 0x415036
mov dword [edi], vtable.CThreadData.0
jmp 0x415038
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00414f58
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x415071
push 4
push dword [esi + 0xc]
call fcn.0040bd03
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x415089
push 2
push 4
push dword [esi + 0xc]
call fcn.0040bd03
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4150f6
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.0041bfd0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4150cf
cmp ebx, dword [edi + 8]
jge 0x4150cf
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041aa45
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040b7de
int3
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5d8aba
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
sub eax, eax
sub edi, edi
mov eax, edi
call fcn.005d8ae6
dec eax
sub edi, edi
xor dword [edx], ebx
or eax, eax
add edx, 2
inc edi
cmp edx, ecx
jl fcn.005d8aba
add eax, eax
ret
Function at 0x50cf20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xca000]
push edi
jmp 0x50cf3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50cf41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf30
mov eax, 1
add ebx, ebx
jne 0x50cf53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50cf64
jne 0x50cf83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf83
dec eax
add ebx, ebx
jne 0x50cf70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50cf48
add ebx, ebx
jne 0x50cf7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50cfd5
xor ecx, ecx
sub eax, 3
jb 0x50cf9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50d00a
sar eax, 1
mov ebp, eax
jmp 0x50cfa6
add ebx, ebx
jne 0x50cfa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf74
inc ecx
add ebx, ebx
jne 0x50cfb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50cf74
add ebx, ebx
jne 0x50cfc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cfb6
jne 0x50cfd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cfb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cfe6
jmp 0x50cf36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cff4
add edi, ecx
jmp 0x50cf36
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50d012
cmp byte [edi], 0x13
jne 0x50d012
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 0x50d017
lea edi, [esi + 0x108000]
mov eax, dword [edi]
or eax, eax
je 0x50d08f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x168364]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1684b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50d044
mov ecx, edi
jns 0x50d073
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 + 0x1684bc]
or eax, eax
je 0x50d089
mov dword [ebx], eax
add ebx, 4
jmp 0x50d061
call dword [esi + 0x1684cc]
mov ebp, dword [esi + 0x1684c0]
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 0x50d0c3
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x477140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x53000]
push edi
or ebp, 0xffffffff
jmp 0x477162
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x477169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477158
mov eax, 1
add ebx, ebx
jne 0x47717b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47718c
jne 0x4771ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4771ab
dec eax
add ebx, ebx
jne 0x477198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x477170
add ebx, ebx
jne 0x4771a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4771fd
xor ecx, ecx
sub eax, 3
jb 0x4771c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477232
sar eax, 1
mov ebp, eax
jmp 0x4771ce
add ebx, ebx
jne 0x4771ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47719c
inc ecx
add ebx, ebx
jne 0x4771dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47719c
add ebx, ebx
jne 0x4771e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4771de
jne 0x4771fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4771de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47721c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47720e
jmp 0x47715e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47721c
add edi, ecx
jmp 0x47715e
pop esi
mov edi, esi
mov ecx, 0x1182
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47723a
cmp byte [edi], 0x13
jne 0x47723a
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 0x47723f
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x4772b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81308]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x81360]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47726c
mov ecx, edi
jns 0x47729b
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 + 0x81368]
or eax, eax
je 0x4772b1
mov dword [ebx], eax
add ebx, 4
jmp 0x477289
call dword [esi + 0x81364]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4772e8
cmp al, 0xef
ja 0x4772db
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4772bd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4772ca
mov ebp, dword [esi + 0x8136c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x47731c
sub esp, 0xffffff80
jmp 0x41f530
Function at 0x57cd80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x154000]
push edi
or ebp, 0xffffffff
jmp 0x57cda2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57cda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57cd98
mov eax, 1
add ebx, ebx
jne 0x57cdbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57cdcc
jne 0x57cdeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57cdeb
dec eax
add ebx, ebx
jne 0x57cdd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57cdb0
add ebx, ebx
jne 0x57cde7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57ce3d
xor ecx, ecx
sub eax, 3
jb 0x57ce03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57ce72
sar eax, 1
mov ebp, eax
jmp 0x57ce0e
add ebx, ebx
jne 0x57ce0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57cddc
inc ecx
add ebx, ebx
jne 0x57ce1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57cddc
add ebx, ebx
jne 0x57ce29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57ce1e
jne 0x57ce3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57ce1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57ce5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57ce4e
jmp 0x57cd9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57ce5c
add edi, ecx
jmp 0x57cd9e
pop esi
mov edi, esi
mov ecx, 0x144e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57ce7a
cmp byte [edi], 0xa
jne 0x57ce7a
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 0x57ce7f
lea edi, [esi + 0x179000]
mov eax, dword [edi]
or eax, eax
je 0x57cef7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17cd98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17cef8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57ceac
mov ecx, edi
jns 0x57cedb
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 + 0x17cf00]
or eax, eax
je 0x57cef1
mov dword [ebx], eax
add ebx, 4
jmp 0x57cec9
call dword [esi + 0x17cefc]
mov ebp, dword [esi + 0x17cf04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x57cf2b
sub esp, 0xffffff80
jmp 0x431272
Function at 0x40af55
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4160b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40afa0
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 [0x42aa7c], ax
xor eax, eax
mov word [0x42aa7e], ax
mov dword [0x4160b0], 0x42aa7c
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e623
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4160a0
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 0x40b31f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x424920]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x424924], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b381
mov ecx, dword [0x41e0f4]
call fcn.004126b4
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41437c
push 0
push 0xc2
push edi
call esi
mov byte [0x424924], 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 0x40b3d1
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 0x40b41b
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 0x414554
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40bcf8
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 0x40bd13
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40bd1d
mov byte [eax], 0
test edi, edi
je 0x40bdc6
movzx eax, word [edi]
test ax, ax
je 0x40bdc6
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40bd56
cmp dword [ebp + 0xc], 0
je 0x40bd62
test esi, esi
jne 0x40bd62
test ebx, ebx
je 0x40bd52
mov byte [ebx], 1
mov esi, edx
jmp 0x40bd71
cmp ax, 0xd
je 0x40bd84
cmp ax, 0xa
je 0x40bd86
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40bd7c
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40bd36
jmp 0x40bd86
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40bd86
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40bdc1
mov word [ebx], ax
test esi, esi
je 0x40bdc1
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.0040e5a3
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40bdc8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40be0d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00413135
cmp byte [0x424925], 0
jne 0x40be9b
push 6
push dword [0x41609c]
lea eax, [ebp - 0x820]
push eax
call fcn.004072cf
push eax
call fcn.0040efb8
test eax, eax
jne 0x40be9b
push 0x4145e8
call fcn.00413122
lea eax, [ebp - 0x820]
push eax
call fcn.0040a826
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040a4a0
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 0x40bf66
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x424911], 1
cmp dword [0x424920], ebx
je 0x40bf8e
push 0x7d
call fcn.00409b0b
push eax
push 2
push dword [0x424920]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x424920]
mov dword [0x424914], ebx
mov byte [0x424910], 1
cmp eax, ebx
je 0x40bfef
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x424934], ebx
jne 0x40bfbd
cmp byte [0x424924], bl
je 0x40bfc5
cmp dword [0x424918], ebx
jne 0x40bfe7
push ebx
push 1
push 0x111
push dword [0x424920]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bfe7
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040af16
cmp dword [0x424920], ebx
jne 0x40bfdb
cmp byte [0x424950], bl
pop ebx
je 0x40bffd
jmp fcn.0040be0d
ret
Function at 0x40c039
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x424958], bl
je 0x40c0b9
cmp word [0x41e0f8], bx
je 0x40c0b9
push esi
push 0x41e0f8
lea esi, [ebp - 0x808]
call fcn.0040bffe
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 0x40c0b9
push dword [ebp + 8]
call fcn.0040a826
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 0x40c0be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x424958], 0
je 0x40c165
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040bffe
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 0x40c165
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 0x40c15c
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c140
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.0040e5a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c28d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x424906], 0
mov eax, dword [ebp + 0xc]
mov dword [0x424908], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42490c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x424900], eax
je 0x40c2bd
xor eax, eax
inc eax
jmp 0x40c2e6
cmp byte [0x424907], 0
je 0x40c2cb
push 2
pop eax
jmp 0x40c2e6
push dword [ebp + 8]
push 0x40b4ef
push dword [0x424920]
push str.REPLACEFILEDLG
push dword [0x418e84]
call esi
dec eax
je 0x40c338
dec eax
je 0x40c34a
dec eax
je 0x40c331
dec eax
jne 0x40c315
push dword [ebp + 8]
push 0x40b83b
push dword [0x424920]
push str.RENAMEDLG
push dword [0x418e84]
call esi
test eax, eax
je 0x40c297
mov al, 0x52
jmp 0x40c345
dec eax
je 0x40c326
dec eax
mov al, 0x4e
jne 0x40c345
mov byte [0x424907], 1
jmp 0x40c345
mov byte [0x424912], 1
mov al, 0x43
jmp 0x40c345
mov byte [0x424906], 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 0x40c345
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x885874]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448b75
mov esp, ebp
pop ebp
ret