joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce720
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4ce735
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.004cfd20
add esp, 4
test eax, eax
jne 0x4ce748
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x4ce758
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x4ce7b1
mov edi, dword [edi + 4]
push esi
call fcn.004dcd0e
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ce793
push ebp
call fcn.004dcd37
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.004cfa90
push ebp
mov ebx, eax
call fcn.004dcd37
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x4ce7fc
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.004c82d0
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x4ce7f1
push ebx
call fcn.004c8470
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x4ce875
mov ebx, dword [edi + 4]
push esi
call fcn.004dcd0e
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ce845
push ebp
call fcn.004dcd37
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x10]
add edi, 0x34
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.004cf460
push esi
push ebp
call fcn.004cfa90
push ebp
mov ebx, eax
call fcn.004dcd37
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x4cebe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4cec01
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4cec5b
inc edi
cmp edi, esi
jl 0x4cebf5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4cec90
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4cec4a
cmp byte [eax], bl
je 0x4cec65
cmp byte [eax + 1], bl
je 0x4cec6e
cmp byte [eax + 2], bl
je 0x4cec78
cmp byte [eax + 3], bl
je 0x4cec84
add eax, 4
cmp eax, edi
jb 0x4cec21
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x4cf270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x4cf2a2
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x4cf302
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4cf2d9
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4cf3b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x4cf44c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x4cf3db
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x4df6d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4df71b
call fcn.004e2a2e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4df71b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4df712
xor eax, eax
jmp 0x4df723
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004df729
pop edi
pop esi
pop ebx
ret 4
Function at 0x4e06ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4e4204
call fcn.004d2400
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004e2a2e
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4e06f9
call fcn.004e2a2e
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e0707
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4e0715
or eax, 0xffffffff
jmp 0x4e07fd
mov ecx, esi
call fcn.004e0630
mov dword [ebp - 0x14], eax
call fcn.004ddd24
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4e074c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4e074c
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004ddcd8
push dword [ebp - 0x14]
call fcn.004dd809
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004e03c8
cmp eax, edi
je 0x4e07bf
test byte [esi + 0x24], 0x10
je 0x4e078d
push 4
mov ecx, esi
pop ebx
call fcn.004dd209
test ah, 1
je 0x4e0785
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004df82b
cmp dword [esi + 0x1c], edi
je 0x4e07bf
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004dd23d
jmp 0x4e07bf
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4e07d3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4e07ec
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4e07ec
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004e066a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4e25a0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e25ce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e25ec
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e2506
jmp 0x4e25ec
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e25ec
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e2506
test edi, edi
mov eax, edi
jne 0x4e25d6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bb4
test esi, esi
je 0x401bb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b90
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401da0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ec4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401e2e
cmp eax, 4
jne 0x401e50
test esi, esi
je 0x401e42
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401e34
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401e8f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401e81
cmp ecx, 0x40
je 0x401e42
cmp ecx, 4
je 0x401e42
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401da0
lea esi, [esi]
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 0x401844
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 0x4018af
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 0x40186f
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 0x401a62
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 0x401a76
mov dword [eax], 0
sub edi, edi
cmp dword [ebp + 0x18], 1
jne 0x401a85
mov edx, 0x200
jmp 0x401a94
cmp dword [ebp + 0x18], 2
jne 0x401a92
mov edx, 0x100
jmp 0x401a94
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 0x401b1f
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 0x401b17
cmp dword [ebp - 8], 0
je 0x401b17
cmp dword [ebp - 0xc], 1
jne 0x401add
cmp dword [ebp - 8], 1
je 0x401b17
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.00401769
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 0x401b0b
push edi
call fcn.00401752
sub edi, edi
jmp 0x401b17
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x401b17
push dword [ebp - 8]
pop dword [eax]
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, edi
or eax, eax
jne 0x401b41
cmp dword [ebp + 0x18], 2
jae 0x401b41
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.00401a62
pop edi
leave
ret 0x14
Function at 0x401b9b
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 0x401bc6
mov edx, eax
shr edx, 8
xor al, byte [edi]
and eax, 0xff
mov eax, dword [eax*4 + 0x4157f0]
xor eax, edx
inc edi
loop 0x401bae
not eax
pop edi
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
or eax, eax
je 0x401d62
cmp byte [eax], 0
jne 0x401d6b
mov eax, 0
leave
ret 4
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x401d85
test eax, 0x10
setne al
movzx eax, al
jmp 0x401d8a
mov eax, 0
leave
ret 4

Function at 0x401d8e
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 0x401dce
push eax
push eax
call fcn.00401769
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 0x401dcb
push dword [ebp - 4]
call fcn.00401752
sub eax, eax
jmp 0x401dce
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x401dd2
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.00401780
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 0x401e59
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 0x401e4c
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 0x401e59
push dword [ebx + 4]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebx]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebx], 0xffffffff
jmp 0x401e59
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 0x4024b2
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 [0x411827]
call sub.advapi32.dll_RegCreateKeyA
or eax, eax
jne 0x4024f8
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 0x4024f0
inc ebx
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
or ebx, ebx
jne 0x4025c5
lea eax, [ebp - 0x10d]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
or eax, eax
je 0x4025c5
cmp eax, 0x104
ja 0x4025c5
push 0
lea eax, [ebp - 0x10d]
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
lea eax, [ebp - 0x10d]
push eax
call fcn.0040237e
or eax, eax
jne 0x40255e
push 0x411803
lea eax, [ebp - 0x10d]
push eax
call fcn.00401bcd
push dword [ebp + 8]
push eax
call fcn.00401c21
jmp 0x40256d
push dword [ebp + 8]
lea eax, [ebp - 0x10d]
push eax
call fcn.00401bcd
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 0x4025ab
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 0x4025ba
push dword [ebp - 0x114]
call sub.KERNEL32.DLL_DeleteFileA
push dword [ebp - 0x114]
call fcn.00401752
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4025cc
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 [0x411827]
call fcn.00401b46
or eax, eax
jne 0x4026ce
sub ebx, ebx
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
or eax, eax
je 0x4026cc
cmp eax, 0x104
ja 0x4026cc
lea eax, [ebp - 4]
push eax
call fcn.00401000
lea eax, [ebp - 0x111]
push eax
call fcn.0040237e
or eax, eax
jne 0x40264f
push 0x411803
lea eax, [ebp - 0x111]
push eax
call fcn.00401bcd
push dword [ebp + 8]
push eax
call fcn.00401c21
jmp 0x40265e
push dword [ebp + 8]
lea eax, [ebp - 0x111]
push eax
call fcn.00401bcd
push eax
push dword [ebp - 4]
push eax
call fcn.0040120d
or eax, eax
je 0x4026bf
push dword [ebp - 4]
call fcn.00401082
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4026bf
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x4026bf
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_GlobalLock
or eax, eax
je 0x4026bf
push eax
push dword [ebp - 8]
call fcn.00401769
mov ebx, eax
pop eax
push dword [ebp - 8]
push ebx
push eax
call fcn.004017a0
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
pop dword [eax]
call fcn.00401752
push dword [ebp - 4]
call fcn.00401021
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x402abc
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push ebp
mov ebp, esp
pop ebp
push 0x402ad4
clc
jb 0x402ad3
ret
inc dword [ebx + 0x411aa93d]
add byte [eax], al
je 0x402af8
cmp dword [0x411aad], 0
je 0x402af8
cmp dword [0x411ae5], 0
je 0x402af8
cmp dword [0x411ae9], 0
jne 0x402afd
sub eax, eax
pop ebx
leave
ret
sub ebx, ebx
call dword [0x411aa9]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x402c42
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x138]
call sub.KERNEL32.DLL_Process32First
or eax, eax
je 0x402c37
push str.explorer.exe
lea eax, [ebp - 0x110]
push eax
call sub.shlwapi.dll_StrStrIA
or eax, eax
je 0x402c20
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x12c]
call dword [0x411aad]
mov edx, dword [ebp - 0x13c]
or eax, eax
je 0x402c20
cmp edx, dword [ebp - 0xc]
jne 0x402c20
push dword [ebp - 0x12c]
push 0
push 0x2000000
call sub.KERNEL32.DLL_OpenProcess
or eax, eax
je 0x402c20
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x201eb
push dword [ebp - 8]
call dword [0x411ae5]
or eax, eax
je 0x402c18
push dword [ebp - 4]
call dword [0x411ae9]
or eax, eax
je 0x402c06
inc ebx
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x140]
push eax
push 0xf003f
call sub.advapi32.dll_RegOpenCurrentUser
or eax, eax
jne 0x402c02
cmp dword [ebp - 0x140], 0
je 0x402c02
push dword [ebp - 0x140]
pop dword [0x411827]
jmp 0x402c37
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x402c20
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 0x402b3c
push dword [ebp - 0x138]
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop ebx
leave
ret

Function at 0x402c47
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 0x402c8d
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.00402cd2
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 0x4032e5
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 [0x415bf0], 0x67452301
mov dword [0x415bf4], 0xefcdab89
mov dword [0x415bf8], 0x98badcfe
mov dword [0x415bfc], 0x10325476
mov dword [0x415c00], 0xc3d2e1f0
jmp 0x40334b
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push 0x40
push 0x415c04
push eax
call fcn.004017a0
add dword [ebp - 4], 0x40
call fcn.00403417
sub dword [ebp - 8], 0x40
jae 0x40332f
mov ebx, dword [ebp - 8]
add ebx, 0x40
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push ebx
push 0x415c04
push eax
call fcn.004017a0
add dword [ebp - 4], ebx
mov byte [ebx + 0x415c04], 0x80
sub ebx, 0x37
jbe 0x403393
sub ebx, 8
je 0x403387
and byte [ebx + 0x415c44], 0
inc ebx
js 0x40337d
call fcn.00403417
mov ebx, 0xffffffc8
jmp 0x403395
je 0x40339f
and byte [ebx + 0x415c3c], 0
inc ebx
js 0x403395
mov eax, dword [ebp + 0xc]
mov ecx, 8
xor edx, edx
mul ecx
bswap eax
bswap edx
mov dword [0x415c40], eax
mov dword [0x415c3c], edx
call fcn.00403417
mov eax, dword [0x415bf0]
mov edx, dword [0x415bf4]
mov ecx, dword [0x415bf8]
bswap eax
bswap edx
bswap ecx
mov dword [0x415bf0], eax
mov dword [0x415bf4], edx
mov dword [0x415bf8], ecx
mov eax, dword [0x415bfc]
mov edx, dword [0x415c00]
bswap eax
bswap edx
mov dword [0x415bfc], eax
mov dword [0x415c00], edx
push 0x14
push dword [ebp + 0x10]
push 0x415bf0
call fcn.004017a0
pop ebx
pop esi
pop edi
leave
ret 0xc