joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034e3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x421494]
sub esi, dword [0x415400]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x44930c], eax
jle 0x40364b
push dword [0x4294a4]
call fcn.00403694
push ebx
push ebx
push dword [0x415400]
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4294a0], esi
mov dword [0x421490], ebx
mov ebp, 0x415490
mov eax, dword [0x421498]
mov edi, 0x4000
sub eax, dword [0x4294a4]
cmp eax, edi
jg 0x403558
mov edi, eax
mov esi, 0x41d490
push edi
push esi
call fcn.00403662
test eax, eax
je 0x403633
add dword [0x4294a4], edi
mov dword [0x415420], esi
mov dword [0x415424], edi
cmp dword [0x449310], ebx
je 0x4035af
cmp dword [0x4493a0], ebx
jne 0x4035af
mov eax, dword [0x4294a0]
push ebx
sub eax, dword [0x421494]
sub eax, dword [esp + 0x1c]
add eax, dword [0x415400]
mov dword [0x421490], eax
call fcn.0040307c
pop ecx
mov ecx, 0x415408
mov dword [0x415428], ebp
mov dword [0x41542c], 0x8000
call fcn.00406706
test eax, eax
jl 0x40365d
mov esi, dword [0x415428]
sub esi, ebp
je 0x40360d
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403638
cmp esi, dword [esp + 0x10]
jne 0x403638
add dword [0x415400], esi
cmp dword [0x415424], ebx
jne 0x40357e
jmp 0x403619
cmp dword [0x415424], ebx
jne 0x40365d
cmp edi, ebx
je 0x40365d
mov eax, dword [0x421494]
mov ecx, eax
sub ecx, dword [0x415400]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x40363c
jmp 0x403542
or eax, 0xffffffff
jmp 0x403655
push 0xfffffffffffffffe
jmp 0x40365f
push ebx
push ebx
push eax
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040307c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x403655
Function at 0x4058dd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43fce8], 0x44
push eax
xor eax, eax
push 0x43fce8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405918
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405ccf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43d4e8
push esi
call fcn.00406103
push esi
call fcn.00405c80
mov edi, eax
test edi, edi
jne 0x405cf0
xor eax, eax
jmp 0x405d42
push edi
call fcn.0040638b
test byte [0x449318], 0x80
je 0x405d09
mov al, byte [edi]
test al, al
je 0x405cec
cmp al, 0x5c
je 0x405cec
sub edi, esi
push esi
call fcn.00406119
cmp eax, edi
push esi
jle 0x405d2c
call fcn.004065d1
test eax, eax
je 0x405d24
test byte [eax], 0x10
je 0x405cec
push esi
call fcn.00405c33
jmp 0x405d0b
call fcn.00405bec
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405db9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405dd5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405dd8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405e07
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e4c
mov eax, edi
dec edi
test eax, eax
jne 0x405e12
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e46
Function at 0x405e50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004065f8
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e74
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405fad
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe70
je 0x405eb8
push 1
push 0
push esi
call fcn.00405dd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405fb3
cmp eax, edi
jg 0x405fb3
mov esi, 0x43f8e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405fb3
cmp eax, edi
jg 0x405fb3
push esi
push ebp
push str._s_s_r_n
push 0x43f4e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x449310]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406137
push 4
push 0xc0000000
push esi
call fcn.00405dd8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405fad
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405fa6
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405fa6
cmp edi, dword [esp + 0x18]
jne 0x405fa6
push str._Rename__r_n
push esi
call fcn.00405d47
test eax, eax
jne 0x405fba
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00406103
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f4e8
push eax
call fcn.00405d93
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x449390]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aaf0
push eax
call fcn.00405d47
test eax, eax
je 0x405f71
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fe1
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405fd6
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f73
Function at 0x405fe9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40605a
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406049
cmp dword [ebp + 0x14], 1
je 0x40604b
cmp dword [ebp + 0x14], 2
je 0x40604b
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406424
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406449
mov eax, dword [0x40a8c0]
cmp eax, 0xffffffff
je 0x406440
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c0], 0xffffffff
jmp 0x4064bc
cmp dword [0x440a80], ebx
je 0x4064bc
cmp byte [0x440680], bl
je 0x406488
cmp dword [0x40a8c0], 0xffffffff
jne 0x406491
push 4
push 0x40000000
push 0x440680
call fcn.00405dd8
cmp eax, 0xffffffff
mov dword [0x40a8c0], eax
je 0x4064bc
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c0], 0xffffffff
je 0x4064bc
push esi
mov esi, 0x444aa0
push 0x40ab08
push esi
call fcn.00406126
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00406119
push eax
push esi
push dword [0x40a8c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40666e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x440274], esi
push edi
jne 0x4066a8
mov ecx, 0x440270
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406684
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440670
jl 0x40667f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4066dd
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440270]
xor eax, esi
inc ecx
dec edx
jne 0x4066c0
pop edi
pop esi
not eax
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x7b7f20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.007b7f80

Function at 0x7b7f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7bb3a0]
test esi, esi
jle 0x7b8073
mov edi, dword [0x7bb3a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x7b7fb4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x7b806c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x7b7fa0
mov dword [esp], eax
mov esi, eax
call fcn.007b8870
test eax, eax
mov edi, eax
je 0x7b80b0
mov esi, dword [0x7bb3a4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.007b8980
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x7bb3a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x7b8090
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x7b8065
sub eax, 4
and eax, 0xfffffffb
je 0x7b8065
add ebx, dword [0x7bb3a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x7b807a
add dword [0x7bb3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x7b7fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.007b7f20
mov eax, dword [0x7bb3a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.007b7f20
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.007b7f20
Function at 0x7b84f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7bb3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7bb3b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x7b8545
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x7b853e
test esi, esi
je 0x7b853e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x7b8520
mov dword [esp], 0x7bb3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
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 0x401927
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 0x401992
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 0x401952
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 0x401c0a
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 0x401c1e
mov dword [eax], 0
sub edi, edi
cmp dword [ebp + 0x18], 1
jne 0x401c2d
mov edx, 0x200
jmp 0x401c3c
cmp dword [ebp + 0x18], 2
jne 0x401c3a
mov edx, 0x100
jmp 0x401c3c
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 0x401cc7
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 0x401cbf
cmp dword [ebp - 8], 0
je 0x401cbf
cmp dword [ebp - 0xc], 1
jne 0x401c85
cmp dword [ebp - 8], 1
je 0x401cbf
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.0040184c
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 0x401cb3
push edi
call fcn.00401835
sub edi, edi
jmp 0x401cbf
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x401cbf
push dword [ebp - 8]
pop dword [eax]
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, edi
or eax, eax
jne 0x401ce9
cmp dword [ebp + 0x18], 2
jae 0x401ce9
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.00401c0a
pop edi
leave
ret 0x14
Function at 0x401d43
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 0x401d6e
mov edx, eax
shr edx, 8
xor al, byte [edi]
and eax, 0xff
mov eax, dword [eax*4 + 0x418820]
xor eax, edx
inc edi
loop 0x401d56
not eax
pop edi
leave
ret 0xc

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

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

Function at 0x401f36
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 0x401f76
push eax
push eax
call fcn.0040184c
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 0x401f73
push dword [ebp - 4]
call fcn.00401835
sub eax, eax
jmp 0x401f76
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x401f7a
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.00401863
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 0x402001
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 0x401ff4
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 0x402001
push dword [ebx + 4]
call sub.kernel32.dll_CloseHandle
push dword [ebx]
call sub.kernel32.dll_CloseHandle
mov dword [ebx], 0xffffffff
jmp 0x402001
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 0x40265a
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 [0x414841]
call sub.advapi32.dll_RegCreateKeyA
or eax, eax
jne 0x4026a0
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 0x402698
inc ebx
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
or ebx, ebx
jne 0x40276d
lea eax, [ebp - 0x10d]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x40276d
cmp eax, 0x104
ja 0x40276d
push 0
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10d]
push eax
call fcn.00402526
or eax, eax
jne 0x402706
push 0x41481d
lea eax, [ebp - 0x10d]
push eax
call fcn.00401d75
push dword [ebp + 8]
push eax
call fcn.00401dc9
jmp 0x402715
push dword [ebp + 8]
lea eax, [ebp - 0x10d]
push eax
call fcn.00401d75
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 0x402753
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 0x402762
push dword [ebp - 0x114]
call sub.kernel32.dll_DeleteFileA
push dword [ebp - 0x114]
call fcn.00401835
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x402774
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 [0x414841]
call fcn.00401cee
or eax, eax
jne 0x402876
sub ebx, ebx
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x402874
cmp eax, 0x104
ja 0x402874
lea eax, [ebp - 4]
push eax
call fcn.00401000
lea eax, [ebp - 0x111]
push eax
call fcn.00402526
or eax, eax
jne 0x4027f7
push 0x41481d
lea eax, [ebp - 0x111]
push eax
call fcn.00401d75
push dword [ebp + 8]
push eax
call fcn.00401dc9
jmp 0x402806
push dword [ebp + 8]
lea eax, [ebp - 0x111]
push eax
call fcn.00401d75
push eax
push dword [ebp - 4]
push eax
call fcn.0040120d
or eax, eax
je 0x402867
push dword [ebp - 4]
call fcn.00401082
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402867
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x402867
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x402867
push eax
push dword [ebp - 8]
call fcn.0040184c
mov ebx, eax
pop eax
push dword [ebp - 8]
push ebx
push eax
call fcn.00401883
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
pop dword [eax]
call fcn.00401835
push dword [ebp - 4]
call fcn.00401021
mov eax, ebx
pop ebx
leave
ret 8