joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.0040ad30
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x40653b
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x40653b
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x406625
sub eax, 1
jne 0x40665e
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x406575
mov eax, 0x401
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp eax, 5
jne 0x4065dd
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40659d
mov eax, 0x500
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp eax, 1
jne 0x4065bd
mov eax, 0x501
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp eax, 2
jne 0x4065ea
mov eax, 0x502
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp eax, 6
jne 0x4065ea
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x406605
mov eax, 0x600
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp eax, 1
jne 0x4065ea
mov eax, 0x601
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp dword [esp + 8], 4
jne 0x40665e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40665e
cmp eax, 0xa
jne 0x406654
mov eax, 0x40a
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret
cmp eax, 0x5a
mov eax, 0x45a
je 0x406663
mov eax, 0x400
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00409d8b
add esp, 0x120
ret

Function at 0x406720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418d62
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, dword [0x41f050]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov dword [esp + 0x224], 0
push esi
mov ecx, 0x41c3c8
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.00401c40
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x228], 0
push 0x104
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067a4
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00401f30
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00409d8b
add esp, 0x220
ret
Function at 0x406c00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419158
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41f050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x40]
mov bl, 2
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x406c95
lea edx, [esp + 0x14]
push 0x41c560
push edx
lea ecx, [esp + 0x44]
call fcn.004086c0
add esp, 8
lea edi, [esp + 0x3c]
mov byte [esp + 0x30], 3
call fcn.00405830
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406a90
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
mov byte [esp + 0x3c], 4
call fcn.00408600
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push eax
push SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x406cec
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x406d7c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push ecx
mov edi, 4
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d6b
cmp dword [esp + 0x18], edi
je 0x406d73
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
test esi, esi
je 0x406d7c
push esi
call ebx
xor esi, esi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x406d87
push esi
call ebx
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x406df0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x419108
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f050]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov bl, 2
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x40]
mov eax, dword [eax - 0xc]
cmp eax, ebp
je 0x406e7e
lea ecx, [esp + 0x14]
push 0x41c560
push ecx
lea ecx, [esp + 0x48]
call fcn.004086c0
add esp, 8
lea edi, [esp + 0x40]
mov byte [esp + 0x34], 3
call fcn.00405830
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406a90
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
mov byte [esp + 0x40], 4
call fcn.00408600
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
xor ebx, ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x406edc
mov ebp, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406efc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x406f43
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebx
push eax
push ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp ebp, ebx
je 0x406f4e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x407f70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x418af8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x41f050]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x407fbb
xor ecx, ecx
lea eax, [esp + 0x18]
call fcn.00402030
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407ff6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
Function at 0x409870
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4098de
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4098af
cmp eax, 2
jne 0x4098ca
mov eax, dword [esp]
test esi, esi
je 0x4098d8
test eax, eax
je 0x4098d3
test al, 1
jne 0x4098ca
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4098d8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x409d8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f050]
jne 0x409d95
repz ret
jmp fcn.0040b4c6

Function at 0x41184c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040cfe5
and dword [ebp - 4], 0
cmp dword [0x421054], 0
mov ebx, eax
jne 0x4118fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4119ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4119ae
push eax
call fcn.0040cf73
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421054], eax
call esi
push eax
call fcn.0040cf73
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421058], eax
call esi
push eax
call fcn.0040cf73
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42105c], eax
call esi
push eax
call fcn.0040cf73
pop ecx
mov dword [0x421064], eax
test eax, eax
je 0x4118fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cf73
pop ecx
mov dword [0x421060], eax
mov eax, dword [0x421060]
cmp eax, ebx
je 0x411955
cmp dword [0x421064], ebx
je 0x411955
push eax
call fcn.0040cfee
push dword [0x421064]
mov esi, eax
call fcn.0040cfee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411955
test edi, edi
je 0x411955
call esi
test eax, eax
je 0x41194c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41194c
test byte [ebp - 0xc], 1
jne 0x411955
or dword [ebp + 0x10], 0x200000
jmp 0x41198e
mov eax, dword [0x421058]
cmp eax, ebx
je 0x41198e
push eax
call fcn.0040cfee
pop ecx
test eax, eax
je 0x41198e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41198e
mov eax, dword [0x42105c]
cmp eax, ebx
je 0x41198e
push eax
call fcn.0040cfee
pop ecx
test eax, eax
je 0x41198e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421054]
call fcn.0040cfee
pop ecx
test eax, eax
je 0x4119ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4119b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51cc0b
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaf78
push 0x4bcd04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
push dword [ebp - 0x28]
call 0x5d0dd0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
jmp 0x51cc8a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51cd69
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4e2a58
call 0x5ced44
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x20
xor eax, eax
pop edx
mov dword [ebp - 4], eax
push 1
mov dword [esi], 0x4eafa0
pop ecx
mov dword [esi + 0x20], edx
push eax
push edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], ecx
push 8
push 8
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 4], eax
mov dword [esi + 0x30], eax
call fcn.0051ce10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x545168
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4e5b63
call 0x5ced44
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [0x52d2c4]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [0x52d2c4]
mov dword [esi + 0x10], eax
mov eax, dword [0x52d2c4]
lea ebx, [esi + 0x14]
mov dword [ebx], eax
mov eax, dword [0x52d2c4]
mov dword [esi + 0x18], eax
mov eax, dword [0x52d2c4]
mov dword [esi + 0x30], eax
and dword [esi + 4], 0
mov edi, 0x531e00
push edi
mov byte [ebp - 4], 5
mov dword [esi], 0x4ec0b8
call 0x5ec151
push edi
mov ecx, ebx
call 0x5ec151
push edi
lea ecx, [esi + 0x18]
call 0x5ec151
and dword [esi + 0x1c], 0
and dword [esi + 0x20], 0
fldz
push edi
lea ecx, [esi + 0x30]
fstp qword [esi + 0x28]
call 0x5ec151
and byte [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x54521c
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4e5ba4
call 0x5ced44
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4ec0b8
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 4
call 0x5ebfc8
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call 0x5ebfc8
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call 0x5ebfc8
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call 0x5ebfc8
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call 0x5ebfc8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x582531
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x5825c8
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x58257d
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x5227ec]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x58255f
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x5825a4
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x5227ec]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x582587
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret

Function at 0x58deec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x58df33
cmp edx, 0x10
jl 0x58df1f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x58df0c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x58df33
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x58df2b
and edx, 3
cmp edx, 3
jne 0x58df47
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x58df4c
cmp edx, 2
jne 0x58df58
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x58df5d
cmp edx, 1
jne 0x58df63
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40910f]
shl eax, 2
mov dword [0x409113], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004026d0
pop edx
call fcn.00401aa4
call fcn.004026d4
push 0
call fcn.00403188
pop ecx
push 0x4090b8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x409117], eax
push 0
jmp fcn.00406ad0

Function at 0x401604
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x110], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x401664
mov dword [ebp - 0xc], 0x104
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x110]
push ecx
lea eax, [ebp - 8]
push eax
push 0
push 0x4091ea
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
cmp byte [ebp - 0x110], 0
je 0x4016b8
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.004028e9
add esp, 8
test eax, eax
je 0x4016b8
mov byte [eax], 0
xor eax, eax
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str._rarext.dll
push ebx
call fcn.004027ec
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023e8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x405b8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x405bee
call fcn.00405b3c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040287c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040287c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x405c4c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40a700], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x405d26
cmp dword [0x40a6fc], 0
jne 0x405d26
cmp dword [0x40a8f0], 0
je 0x405ce0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00405ae4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405cc6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00405ae4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405cc6
lea ebx, [ebp - 0x84]
jmp 0x405cc7
inc ebx
call fcn.00405c08
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x405d61
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40a704
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040287c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40a707
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x405d61
cmp dword [0x40a6fc], 0
je 0x405d40
cmp dword [0x40a6fc], 0xffffffff
je 0x405d61
push esi
call dword [0x40a6fc]
pop ecx
mov eax, dword [0x40a700]
test eax, eax
je 0x405d61
cmp dword [0x40a700], 0xffffffff
je 0x405d61
cmp byte [eax], 0
je 0x405d61
push esi
push eax
call fcn.00405b8c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406518
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40b208], 0
jne 0x406599
cmp dword [0x40b228], 0
jne 0x406548
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40b228], eax
test eax, eax
jne 0x406548
push str.GetEnvironmentStrings_failed
call fcn.00405d78
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40b228]
jmp 0x40655c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040287c
pop ecx
mov edi, eax
test eax, eax
jne 0x406554
lea edi, [ebp + 1]
push edi
call fcn.004019b4
pop ecx
mov ebx, eax
mov dword [0x40b20c], ebx
test ebx, ebx
jne 0x406586
xor eax, eax
jmp 0x40665c
push edi
mov edx, dword [0x40b228]
push edx
push ebx
call fcn.004026d8
add esp, 0xc
jmp 0x4065b9
xor esi, esi
mov ebx, dword [0x40b208]
jmp 0x4065b3
push eax
call fcn.0040287c
pop ecx
test eax, eax
jne 0x4065af
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4065a3
lea ebx, [esi + 4]
push 4
mov dword [0x40b210], ebx
inc ebx
push ebx
call fcn.004017b4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4065dc
xor eax, eax
jmp 0x40665c
cmp dword [0x40b208], 0
jne 0x40660d
xor esi, esi
mov ebx, dword [0x40b20c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4065fe
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040287c
pop ecx
mov edi, eax
test eax, eax
jne 0x4065f4
jmp 0x40663e
xor esi, esi
mov ebx, dword [0x40b208]
mov eax, dword [esp]
mov edi, eax
jmp 0x406638
push eax
call fcn.0040287c
pop ecx
test eax, eax
je 0x40662d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x406631
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40661c
mov eax, dword [0x40b208]
test eax, eax
je 0x40664e
push eax
call fcn.004019c4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40b208], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret