joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x4b2d8d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x4b2ce2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x4b2d0e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.004b2c70
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x4b2d4f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x4b2cd1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4b3d70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4c30c4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4b3d83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4b3dc4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4c316c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4b3df6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b3dfa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4b3deb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4b3e18
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4b3e1c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4b3e0d
xor ecx, ecx
mov eax, 0x4c30d4
xor ebx, ebx
mov bl, byte [ecx + 0x4c317c]
cmp byte [esp + ebx + 0x14], 0
je 0x4b3e47
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4c3194]
cmp byte [esp + ebx + 0x14], 0
je 0x4b3e5e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4b3e2e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4b3db7
lea edx, [esp + 0x84]
push edx
call fcn.004b3ea0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x418c88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c270
mov eax, dword [0x435010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041661b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418cca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418e26
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422f50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x542878]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419a89
mov ecx, dword [esi*4 + 0x542878]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x418e1f
cmp eax, dword [ecx + edi + 0x24]
jne 0x418e1f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418e1f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419a89
add esp, 0x14
test edx, edx
jl 0x418e1f
jg 0x418d95
test eax, eax
jb 0x418e1f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418e1f
jl 0x418daf
cmp dword [ebp - 0x1008], eax
ja 0x418e1f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418dcd
test ebx, ebx
je 0x418e06
cmp ecx, edi
jae 0x418e06
mov al, byte [ecx]
cmp al, 0xd
jne 0x418de7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418df3
cmp byte [ecx + 1], 0xa
jne 0x418df3
inc ecx
jmp 0x418df3
movzx eax, al
movsx eax, byte [eax + 0x4352c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418dcd
cmp edx, ebx
jne 0x418dcd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418e24
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b3e0
leave
ret
Function at 0x418f21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x542878]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418f61
cmp byte [ebx], 0xa
jne 0x418f61
or byte [edi + eax + 0x28], 4
jmp 0x418f66
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x419065
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419048
inc eax
cmp dl, 0xd
je 0x418f92
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418fb8
cmp eax, ecx
jae 0x418fc6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418f7a
jmp 0x419065
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419043
cmp dword [ebp - 0x10], 0
je 0x419043
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x542878]
test byte [eax + edi + 0x28], 0x48
je 0x41901d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419008
mov byte [esi], dl
jmp 0x419019
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x542878]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419065
cmp byte [ebp - 1], 0xa
jne 0x41902c
cmp esi, ebx
jne 0x41902c
mov byte [esi], 0xa
jmp 0x419064
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419aa7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419065
mov byte [esi], 0xd
jmp 0x419064
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x542878]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419062
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419065
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41906e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x542878]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4190b4
cmp word [ebx], dx
jne 0x4190b4
or byte [eax + edi + 0x28], 4
jmp 0x4190b9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41921c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4191fc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4190fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419130
cmp eax, edx
jae 0x41913e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4190d5
jmp 0x41921c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4191f7
cmp dword [ebp - 0x18], 0
je 0x4191f7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x542878]
test byte [eax + edi + 0x28], 0x48
je 0x4191cd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419191
mov word [esi], cx
jmp 0x4191c8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x542878]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x542878]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x542878]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41921c
pop eax
cmp word [ebp - 4], ax
jne 0x4191dd
cmp esi, ebx
jne 0x4191dd
mov word [esi], ax
jmp 0x419219
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419aa7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41921c
push 0xd
pop eax
jmp 0x4191d8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x542878]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419216
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41921c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401422
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call sub.kernel32.dll_WriteFile
or eax, eax
je 0x401448
cmp dword [ebp - 4], 0
jne 0x40144f
sub eax, eax
pop esi
leave
ret 0xc
mov eax, dword [ebp - 4]
add esi, eax
sub dword [ebp + 0x10], eax
jne 0x40142c
mov eax, 1
pop esi
leave
ret 0xc

Function at 0x4019aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
push dword [ebp + 8]
pop ebx
mov al, byte [ebx]
mov byte [ebp - 3], al
mov al, byte [ebx + 1]
mov byte [ebp - 4], al
mov edi, ebx
inc edi
inc edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x10]
jecxz 0x401a15
inc byte [ebp - 3]
movzx eax, byte [ebp - 3]
movzx edx, byte [eax + edi]
mov byte [ebp - 1], dl
add byte [ebp - 4], dl
movzx eax, byte [ebp - 4]
mov dl, byte [eax + edi]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 3]
mov byte [eax + edi], dl
movzx eax, byte [ebp - 4]
mov dl, byte [ebp - 1]
mov byte [eax + edi], dl
mov dl, byte [ebp - 1]
add dl, byte [ebp - 2]
mov dl, byte [edx + edi]
mov eax, dword [ebp - 8]
xor byte [eax + esi], dl
inc dword [ebp - 8]
loop 0x4019d5
mov al, byte [ebp - 3]
mov byte [ebx], al
mov al, byte [ebp - 4]
mov byte [ebx + 1], al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x401bc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push edi
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x401bdc
mov dword [eax], 0
sub edi, edi
cmp dword [ebp + 0x18], 1
jne 0x401beb
mov edx, 0x200
jmp 0x401bfa
cmp dword [ebp + 0x18], 2
jne 0x401bf8
mov edx, 0x100
jmp 0x401bfa
sub edx, edx
or edx, 0x20019
lea eax, [ebp - 4]
push eax
push edx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x401c85
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x401c7d
cmp dword [ebp - 8], 0
je 0x401c7d
cmp dword [ebp - 0xc], 1
jne 0x401c43
cmp dword [ebp - 8], 1
je 0x401c7d
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.004018cf
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
je 0x401c71
push edi
call fcn.004018b8
sub edi, edi
jmp 0x401c7d
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x401c7d
push dword [ebp - 8]
pop dword [eax]
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, edi
or eax, eax
jne 0x401ca7
cmp dword [ebp + 0x18], 2
jae 0x401ca7
mov eax, dword [ebp + 0x18]
inc eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401bc8
pop edi
leave
ret 0x14
Function at 0x401d01
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, dword [ebp + 8]
not eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
or ecx, ecx
je 0x401d2c
mov edx, eax
shr edx, 8
xor al, byte [edi]
and eax, 0xff
mov eax, dword [eax*4 + 0x418d10]
xor eax, edx
inc edi
loop 0x401d14
not eax
pop edi
leave
ret 0xc

Function at 0x401eb9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
or eax, eax
je 0x401ec8
cmp byte [eax], 0
jne 0x401ed1
mov eax, 0
leave
ret 4
push dword [ebp + 8]
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x401eeb
test eax, 0x10
setne al
movzx eax, al
jmp 0x401ef0
mov eax, 0
leave
ret 4

Function at 0x401ef4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
push 0
push dword [ebp + 8]
call sub.kernel32.dll_ExpandEnvironmentStringsA
or eax, eax
je 0x401f34
push eax
push eax
call fcn.004018cf
mov dword [ebp - 4], eax
pop eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_ExpandEnvironmentStringsA
or eax, eax
jne 0x401f31
push dword [ebp - 4]
call fcn.004018b8
sub eax, eax
jmp 0x401f34
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x401f38
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push 0x10
push ebx
call fcn.004018e6
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebx], eax
inc eax
je 0x401fbf
push 0
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebx + 0xc], eax
push 0
push 0
push 0
push 2
push 0
push dword [ebx]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x401fb2
mov dword [ebx + 4], eax
push 0
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebx + 8], eax
or eax, eax
jne 0x401fbf
push dword [ebx + 4]
call sub.kernel32.dll_CloseHandle
push dword [ebx]
call sub.kernel32.dll_CloseHandle
mov dword [ebx], 0xffffffff
jmp 0x401fbf
push dword [ebx]
call sub.kernel32.dll_CloseHandle
mov dword [ebx], 0xffffffff
sub eax, eax
cmp dword [ebx + 8], eax
setne al
pop ebx
leave
ret 8
Function at 0x402618
Capabilities:
Create directory
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
sub ebx, ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareWinRAR
push dword [0x414c3b]
call sub.advapi32.dll_RegCreateKeyA
or eax, eax
jne 0x40265e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
or eax, eax
jne 0x402656
inc ebx
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
or ebx, ebx
jne 0x40272b
lea eax, [ebp - 0x10d]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x40272b
cmp eax, 0x104
ja 0x40272b
push 0
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10d]
push eax
call fcn.004024e4
or eax, eax
jne 0x4026c4
push 0x414c17
lea eax, [ebp - 0x10d]
push eax
call fcn.00401d33
push dword [ebp + 8]
push eax
call fcn.00401d87
jmp 0x4026d3
push dword [ebp + 8]
lea eax, [ebp - 0x10d]
push eax
call fcn.00401d33
mov dword [ebp - 0x114], eax
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x114]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
inc eax
je 0x402711
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00401422
mov ebx, eax
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
or ebx, ebx
jne 0x402720
push dword [ebp - 0x114]
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x114]
call fcn.004018b8
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x402732
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SoftwareWinRAR
push dword [0x414c3b]
call fcn.00401cac
or eax, eax
jne 0x402834
sub ebx, ebx
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x402832
cmp eax, 0x104
ja 0x402832
lea eax, [ebp - 4]
push eax
call fcn.00401000
lea eax, [ebp - 0x111]
push eax
call fcn.004024e4
or eax, eax
jne 0x4027b5
push 0x414c17
lea eax, [ebp - 0x111]
push eax
call fcn.00401d33
push dword [ebp + 8]
push eax
call fcn.00401d87
jmp 0x4027c4
push dword [ebp + 8]
lea eax, [ebp - 0x111]
push eax
call fcn.00401d33
push eax
push dword [ebp - 4]
push eax
call fcn.0040120d
or eax, eax
je 0x402825
push dword [ebp - 4]
call fcn.00401082
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402825
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x402825
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x402825
push eax
push dword [ebp - 8]
call fcn.004018cf
mov ebx, eax
pop eax
push dword [ebp - 8]
push ebx
push eax
call fcn.00401906
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
pop dword [eax]
call fcn.004018b8
push dword [ebp - 4]
call fcn.00401021
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x402c22
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push ebp
mov ebp, esp
pop ebp
push 0x402c3a
clc
jb 0x402c39
ret
inc dword [ebx + 0x414ebd3d]
add byte [eax], al
je 0x402c5e
cmp dword [0x414ec1], 0
je 0x402c5e
cmp dword [0x414ef9], 0
je 0x402c5e
cmp dword [0x414efd], 0
jne 0x402c63
sub eax, eax
pop ebx
leave
ret
sub ebx, ebx
call dword [0x414ebd]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x402da8
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call sub.kernel32.dll_Process32First
or eax, eax
je 0x402d9d
push str.explorer.exe
lea eax, [ebp - 0x110]
push eax
call sub.shlwapi.dll_StrStrIA
or eax, eax
je 0x402d86
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x12c]
call dword [0x414ec1]
mov edx, dword [ebp - 0x13c]
or eax, eax
je 0x402d86
cmp edx, dword [ebp - 0xc]
jne 0x402d86
push dword [ebp - 0x12c]
push 0
push 0x2000000
call sub.kernel32.dll_OpenProcess
or eax, eax
je 0x402d86
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x201eb
push dword [ebp - 8]
call dword [0x414ef9]
or eax, eax
je 0x402d7e
push dword [ebp - 4]
call dword [0x414efd]
or eax, eax
je 0x402d6c
inc ebx
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x140]
push eax
push 0xf003f
call sub.advapi32.dll_RegOpenCurrentUser
or eax, eax
jne 0x402d68
cmp dword [ebp - 0x140], 0
je 0x402d68
push dword [ebp - 0x140]
pop dword [0x414c3b]
jmp 0x402d9d
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
jmp 0x402d86
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call sub.kernel32.dll_Process32Next
jmp 0x402ca2
push dword [ebp - 0x138]
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop ebx
leave
ret

Function at 0x402dad
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push eax
push ebx
push ecx
push edx
push edi
push esi
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x80]
lea edx, [eax*8]
mov ebx, eax
mov ecx, eax
shr eax, 6
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
add edi, ecx
mov byte [edi], pe_nt_image_headers32
and ebx, 0x3f
sub edi, ebx
cmp ebx, 0x38
jb 0x402df3
add edi, ebx
mov eax, 0x40
sub eax, ebx
add edi, eax
inc dword [ebp - 0x14]
mov dword [edi + 0x38], edx
lea esi, [ebp - 0x10]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
push dword [ebp - 0x14]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402e38
cld
mov ecx, 4
mov edi, dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret 0xc
Function at 0x40344b
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
push esi
push ebx
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
pop dword [ebp - 8]
mov dword [0x419110], 0x67452301
mov dword [0x419114], 0xefcdab89
mov dword [0x419118], 0x98badcfe
mov dword [0x41911c], 0x10325476
mov dword [0x419120], 0xc3d2e1f0
jmp 0x4034b1
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push 0x40
push 0x419124
push eax
call fcn.00401906
add dword [ebp - 4], 0x40
call fcn.0040357d
sub dword [ebp - 8], 0x40
jae 0x403495
mov ebx, dword [ebp - 8]
add ebx, 0x40
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push ebx
push 0x419124
push eax
call fcn.00401906
add dword [ebp - 4], ebx
mov byte [ebx + 0x419124], 0x80
sub ebx, 0x37
jbe 0x4034f9
sub ebx, 8
je 0x4034ed
and byte [ebx + 0x419164], 0
inc ebx
js 0x4034e3
call fcn.0040357d
mov ebx, 0xffffffc8
jmp 0x4034fb
je 0x403505
and byte [ebx + 0x41915c], 0
inc ebx
js 0x4034fb
mov eax, dword [ebp + 0xc]
mov ecx, 8
xor edx, edx
mul ecx
bswap eax
bswap edx
mov dword [0x419160], eax
mov dword [0x41915c], edx
call fcn.0040357d
mov eax, dword [0x419110]
mov edx, dword [0x419114]
mov ecx, dword [0x419118]
bswap eax
bswap edx
bswap ecx
mov dword [0x419110], eax
mov dword [0x419114], edx
mov dword [0x419118], ecx
mov eax, dword [0x41911c]
mov edx, dword [0x419120]
bswap eax
bswap edx
mov dword [0x41911c], eax
mov dword [0x419120], edx
push 0x14
push dword [ebp + 0x10]
push 0x419110
call fcn.00401906
pop ebx
pop esi
pop edi
leave
ret 0xc