joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x326f4585
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x739f6bfe
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x5c334252
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x72181c06
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x24522f7c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x57d94632
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x450590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
or ebp, 0xffffffff
jmp 0x4505b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4505b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4505a8
mov eax, 1
add ebx, ebx
jne 0x4505cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4505dc
jne 0x4505ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4505ec
dec eax
add ebx, ebx
jne 0x4505e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4505c0
xor ecx, ecx
sub eax, 3
jb 0x450604
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x450676
sar eax, 1
mov ebp, eax
jmp 0x45060f
add ebx, ebx
jne 0x45060f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45061c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x450640
inc ecx
add ebx, ebx
jne 0x45062c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x450621
jne 0x45063d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x450621
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x450660
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x450651
jmp 0x4505ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x450660
add edi, ecx
jmp 0x4505ae
pop esi
mov edi, esi
mov ecx, 0x36f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45067e
cmp byte [edi], 5
jne 0x45067e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x450683
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x4506fb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51280]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x512bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4506b0
mov ecx, edi
jns 0x4506df
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x512c0]
or eax, eax
je 0x4506f5
mov dword [ebx], eax
add ebx, 4
jmp 0x4506cd
call dword [esi + 0x512c4]
popal
jmp 0x4015c8
Function at 0x40516f
Capabilities:
Create process on windows
Set console window title

Disassembly:
push ebp
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x405175
mov edx, dword [esp + 0x6c]
lea ecx, [esp]
call fcn.0040f000
push dword [0x41d82c]
push dword [0x41d82c]
push str._::
push 1
push dword [esp + 0x10]
call fcn.0040f670
lea eax, [esp + 8]
push eax
call fcn.00415fa0
push dword [0x41d82c]
push dword [0x41d82c]
push str._::
push 2
push dword [esp + 0x10]
call fcn.0040f670
lea eax, [esp + 0xc]
push eax
call fcn.00415fa0
mov edx, str.RUN_BATCH
lea ecx, [esp + 0xc]
call fcn.0040f008
push dword [0x41d82c]
push dword [esp + 8]
call fcn.0040531f
lea eax, [esp + 8]
push eax
call fcn.00415fa0
push dword [esp + 4]
mov edx, 0x418052
pop ecx
call fcn.00416080
jne 0x4052f3
push dword [esp + 8]
mov edx, str.show
pop ecx
call fcn.00416080
je 0x4052d0
mov edx, 0x4186c8
lea ecx, [esp + 0xc]
call fcn.0040f008
call fcn.004155c6
push dword [0x41d82c]
mov edx, dword [0x41d428]
push dword [0x41d82c]
call fcn.00416020
mov edx, str.__yaP_
call fcn.00416020
mov edx, dword [0x41c28c]
add dword [esp], edx
call sub.KERNEL32.dll_SetConsoleTitleW
pop dword [0x41d82c]
lea eax, [esp + 0x10]
push eax
call sub.KERNEL32.dll_GetStartupInfoW
lea eax, [esp + 0x54]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push 0x418052
push dword [esp + 0x28]
call sub.KERNEL32.dll_CreateProcessW
push 0
lea ebp, [esp + 0x58]
push dword [ebp]
call sub.KERNEL32.dll_WaitForSingleObject
jmp 0x4052f3
push 0
push 0x418052
push dword [0x41d484]
push dword [esp + 0x10]
push 0x418052
push 0
call sub.SHELL32.DLL_ShellExecuteW
xor eax, eax
push dword [esp + 0xc]
call fcn.004160c0
push dword [esp + 8]
call fcn.004160c0
push dword [esp]
call fcn.004160c0
push dword [esp + 4]
call fcn.004160c0
add esp, 0x64
pop ebp
ret 4
Function at 0x40545a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x405460
mov eax, dword [esp + 0x40]
mov dword [0x41d82c], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0040f000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
call fcn.0040f000
push dword [esp]
call fcn.00405e00
lea eax, [esp + 0xc]
push dword [esp + 4]
mov edx, 0x4182b6
pop ecx
call fcn.00416080
je 0x4054ff
cmp dword [0x41d44c], 0
je 0x4054e3
lea eax, [esp + 0x1c]
push eax
mov ebx, dword [0x41d45c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x41d41c]
push dword [0x41d444]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x18], eax
jmp 0x4054fd
lea eax, [esp + 0x1c]
push eax
push dword [0x41d41c]
push dword [0x41d444]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x18], eax
jmp 0x405564
lea eax, [esp + 0x24]
push eax
push dword [0x41d444]
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x20], eax
cmp dword [0x41d44c], 0
je 0x40554c
lea eax, [esp + 0x1c]
push eax
mov ebx, dword [0x41d45c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x41d41c]
push dword [esp + 0x34]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x18], eax
jmp 0x405564
lea eax, [esp + 0x1c]
push eax
push dword [0x41d41c]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x40560b
mov dword [esp + 0x28], 0xff
push dword [0x41d82c]
push dword [0x41d82c]
push 0xff
call fcn.0040f920
lea eax, [esp + 0xc]
push eax
call fcn.00415fa0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x38]
call sub.ADVAPI32.DLL_RegEnumValueW
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x4055f4
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0x30]
push dword [esp + 0x14]
call fcn.0040f1b0
lea eax, [esp + 0x18]
push eax
call fcn.00415fa0
jmp 0x405602
mov edx, 0x418052
lea ecx, [esp + 0x14]
call fcn.0040f008
push dword [esp + 0x1c]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0x14]
push dword [0x41d82c]
call fcn.00416020
pop eax
add eax, dword [0x41c28c]
jmp 0x405633
push dword [esp + 4]
call fcn.004160c0
push dword [esp + 8]
call fcn.004160c0
push dword [esp]
call fcn.004160c0
push dword [esp + 0x14]
call fcn.004160c0
add esp, 0x2c
pop ebx
ret 0xc
Function at 0x405f8f
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.0040f000
push 5
call sub.USER32.DLL_GetDesktopWindow
push eax
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x406078
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextLengthW
mov ebx, eax
add ebx, 2
push ebx
call fcn.0040f920
lea eax, [esp + 0xc]
push eax
call fcn.00415fa0
push dword [esp + 8]
call fcn.0040f180
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextW
push dword [0x41d82c]
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0xc]
call fcn.0040fae0
add dword [0x41d82c], 2
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0x18]
call fcn.0040fae0
mov edx, dword [0x41c28c]
add dword [esp], edx
mov edx, dword [0x41c28c]
add dword [esp + 4], edx
call fcn.0040f810
pop dword [0x41d82c]
and eax, eax
je 0x406061
mov eax, 1
jmp 0x40607e
push 2
push dword [esp + 8]
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
jmp 0x405fb5
xor eax, eax
jmp 0x40607e
push dword [esp]
call fcn.004160c0
push dword [esp + 8]
call fcn.004160c0
add esp, 0xc
pop ebx
ret 4
Function at 0x406096
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40609c
mov eax, dword [esp + 0x40]
mov dword [0x41d82c], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0040f000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
call fcn.0040f000
push dword [esp]
call fcn.00405e00
lea eax, [esp + 0xc]
push dword [esp + 4]
mov edx, 0x4182b6
pop ecx
call fcn.00416080
je 0x40613b
cmp dword [0x41d44c], 0
je 0x40611f
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x41d45c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x41d41c]
push dword [0x41d444]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x406139
lea eax, [esp + 0x18]
push eax
push dword [0x41d41c]
push dword [0x41d444]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x14], eax
jmp 0x4061a0
lea eax, [esp + 0x20]
push eax
push dword [0x41d444]
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegConnectRegistryW
mov dword [esp + 0x1c], eax
cmp dword [0x41d44c], 0
je 0x406188
lea eax, [esp + 0x18]
push eax
mov ebx, dword [0x41d45c]
or ebx, 0xf003f
push ebx
push 0
push dword [0x41d41c]
push dword [esp + 0x30]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0x14], eax
jmp 0x4061a0
lea eax, [esp + 0x18]
push eax
push dword [0x41d41c]
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegOpenKeyW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x40623e
mov dword [esp + 0x24], 0xff
push dword [0x41d82c]
push dword [0x41d82c]
push 0xff
call fcn.0040f920
lea eax, [esp + 0xc]
push eax
call fcn.00415fa0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x50]
push dword [esp + 0x34]
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
and ebx, ebx
jne 0x406230
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0x2c]
push dword [esp + 0x14]
call fcn.0040f1b0
lea eax, [esp + 0x2c]
push eax
call fcn.00415fa0
jmp 0x40623e
mov edx, 0x418052
lea ecx, [esp + 0x28]
call fcn.0040f008
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0x28]
push dword [0x41d82c]
call fcn.00416020
pop eax
add eax, dword [0x41c28c]
jmp 0x40626f
push dword [esp + 4]
call fcn.004160c0
push dword [esp + 8]
call fcn.004160c0
push dword [esp + 0x28]
call fcn.004160c0
push dword [esp]
call fcn.004160c0
add esp, 0x2c
pop ebx
ret 0xc
Function at 0x407e37
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.0040f000
push dword [0x41d82c]
push dword [0x41d82c]
push 0x104
call fcn.0040f920
add dword [0x41d82c], 2
lea eax, [esp + 8]
push eax
call fcn.00415fa0
push 0x104
mov eax, dword [esp + 8]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov edx, dword [esp + 4]
push dword [0x41d82c]
call fcn.00416020
mov edx, str.Microsoft.NETFramework_
call fcn.00416020
lea eax, [esp + 8]
push eax
call fcn.00415fa0
push dword [0x41d82c]
push dword [0x41d82c]
push 1
push dword [esp + 0xc]
call fcn.0040f1b0
add dword [0x41d82c], 2
mov edx, 0x4182ca
pop ecx
mov dword [0x41d82c], ecx
add ecx, dword [0x41c28c]
call fcn.00416080
je 0x407ee7
mov eax, 0xffffffff
jmp 0x408052
push dword [esp]
mov edx, 0x418052
pop ecx
call fcn.00416080
je 0x407f22
push dword [esp + 4]
call fcn.0041311d
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xfffffffe
jne 0x407f0e
cmp edi, 0xffffffff
je 0x407f12
xor eax, eax
jmp 0x407f17
mov eax, 1
or eax, eax
je 0x407f22
mov eax, 1
jmp 0x407f24
xor eax, eax
and eax, eax
je 0x407f37
mov eax, 1
jmp 0x408052
push dword [0x41d82c]
push dword [0x41d82c]
mov edx, 0x41856a
call fcn.00416020
mov edx, dword [esp + 8]
call fcn.00416020
mov edx, 0x41825e
call fcn.00416020
add dword [0x41d82c], 2
push dword [esp + 0xc]
push 0xffffffff
mov edx, dword [0x41c28c]
add dword [esp + 8], edx
call fcn.00413315
pop dword [0x41d82c]
mov dword [esp + 8], eax
push dword [esp + 8]
call fcn.0041346e
and eax, eax
je 0x40804c
push dword [esp + 8]
call fcn.00413429
and eax, eax
je 0x408043
push dword [esp + 8]
call fcn.004132ba
mov ebx, eax
cmp ebx, 2
jne 0x40803e
push dword [0x41d82c]
push dword [0x41d82c]
push 4
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0x1c]
call fcn.0041326c
mov edx, dword [0x41c28c]
add dword [esp], edx
call fcn.0040f1b0
add dword [0x41d82c], 2
push dword [0x41d82c]
mov edx, 0x41856a
call fcn.00416020
mov edx, dword [esp + 8]
call fcn.00416020
pop edx
pop ecx
mov dword [0x41d82c], ecx
add ecx, dword [0x41c28c]
add edx, dword [0x41c28c]
call fcn.00416080
je 0x40803e
push dword [esp + 8]
call fcn.004132e2
mov eax, 1
jmp 0x408052
jmp 0x407f9a
push dword [esp + 8]
call fcn.004132e2
xor eax, eax
jmp 0x408052
push dword [esp + 4]
call fcn.004160c0
push dword [esp]
call fcn.004160c0
add esp, 0xc
pop edi
pop ebx
ret 4
Function at 0x40915a
Capabilities:
Query environment variable

Disassembly:
xor eax, eax
push eax
push eax
push eax
mov eax, dword [esp + 0x14]
mov dword [0x41d82c], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.0040f000
push 0
mov eax, dword [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4091df
push dword [0x41d82c]
push dword [0x41d82c]
push dword [esp + 0x10]
call fcn.0040f920
lea eax, [esp + 8]
push eax
call fcn.00415fa0
push dword [esp + 8]
mov eax, dword [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
and eax, eax
je 0x4091df
mov edx, dword [esp + 4]
push dword [0x41d82c]
call fcn.00416020
pop eax
add eax, dword [0x41c28c]
jmp 0x4091ef
mov eax, dword [0x41d82c]
add eax, dword [0x41c28c]
mov word [eax], 0
push dword [esp + 4]
call fcn.004160c0
push dword [esp]
call fcn.004160c0
add esp, 0xc
ret 4
Function at 0x40c6e3
Capabilities:
Persist via run registry key

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x41d82c], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp]
call fcn.0040f000
push dword [0x41d82c]
push 0x418052
push dword [esp + 8]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00409a4d
lea eax, [esp + 4]
push eax
call fcn.00415fa0
push dword [0x41d82c]
push dword [0x41d82c]
push str._::
push 1
push dword [esp + 0x10]
call fcn.0040f670
lea eax, [esp + 8]
push eax
call fcn.00415fa0
mov edx, dword [esp + 4]
push dword [0x41d82c]
call fcn.00416020
pop eax
add eax, dword [0x41c28c]
jmp 0x40c775
push dword [esp]
call fcn.004160c0
push dword [esp + 4]
call fcn.004160c0
add esp, 8
ret 4
Function at 0x40d18b
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x18
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40d192
mov edx, dword [0x41d464]
push dword [0x41d82c]
call fcn.00416020
mov edx, 0x418206
call fcn.00416020
mov edx, dword [0x41d478]
call fcn.00416020
lea eax, [esp + 4]
push eax
call fcn.00415fa0
push dword [0x41d430]
mov edx, 0x4182e6
pop ecx
call fcn.00416080
jne 0x40d1ed
cmp dword [0x41d48c], 0
jne 0x40d1ed
jmp 0x40d1f4
mov eax, 1
jmp 0x40d1f6
xor eax, eax
and eax, eax
je 0x40d204
mov dword [esp + 4], 0
jmp 0x40d20c
mov dword [esp + 4], 0x40
mov edx, str.open
lea ecx, [esp + 8]
call fcn.0040f008
mov edx, str.exefile
lea ecx, [esp + 0xc]
call fcn.0040f008
mov edx, dword [0x41d434]
push dword [0x41d82c]
call fcn.00416020
lea eax, [esp + 0x14]
push eax
call fcn.00415fa0
mov edx, dword [0x41d440]
push dword [0x41d82c]
call fcn.00416020
lea eax, [esp + 0x18]
push eax
call fcn.00415fa0
mov edx, dword [esp]
push dword [0x41d82c]
call fcn.00416020
lea eax, [esp + 0x1c]
push eax
call fcn.00415fa0
push dword [0x41d414]
mov edx, 0x419692
mov ecx, dword [esp]
call fcn.00416080
je 0x40d295
mov dword [esp + 0x20], 3
jmp 0x40d2cf
mov edx, 0x41830a
mov ecx, dword [esp]
call fcn.00416080
je 0x40d2ae
mov dword [esp + 0x20], 7
jmp 0x40d2cf
mov edx, str.hide
mov ecx, dword [esp]
call fcn.00416080
je 0x40d2c7
mov dword [esp + 0x20], 0
jmp 0x40d2cf
mov dword [esp + 0x20], 0xa
pop eax
lea eax, [esp + 0x20]
lea ebp, [esp + 0x20]
mov dword [ebp], 0x3c
mov dword [ebp + 8], 0
mov ebx, dword [esp + 4]
or ebx, 0x101
push ebx
pop eax
mov dword [ebp + 4], eax
mov eax, dword [esp + 0xc]
push eax
pop eax
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x10]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
pop eax
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x18]
push eax
pop eax
mov dword [ebp + 0x14], eax
push dword [esp + 0x1c]
pop eax
mov dword [ebp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [esp + 0x5c], eax
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x40d345
jmp fcn.00401344
mov ebx, dword [esp + 0x5c]
and ebx, ebx
je 0x40d36e
push 0x1f4
call fcn.0040f15d
push 0
lea ebp, [esp + 0x24]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_WaitForSingleObject
mov ebx, eax
and ebx, ebx
jne 0x40d34d
mov edx, str.AFTER
lea ecx, [0x41d484]
call fcn.0040f008
xor eax, eax
push dword [esp + 0x14]
call fcn.004160c0
push dword [esp + 0xc]
call fcn.004160c0
push dword [esp + 0x18]
call fcn.004160c0
push dword [esp]
call fcn.004160c0
push dword [esp + 8]
call fcn.004160c0
push dword [esp + 0x10]
call fcn.004160c0
add esp, 0x60
pop ebx
pop ebp
ret
Function at 0x40f06a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x40f153
mov eax, dword [ebp - 0xc]
dec eax
je 0x40f136
dec eax
jne 0x40f153
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40f0c9
cmp byte [ebp - 0x1e], 1
jne 0x40f0c9
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40f132
dec eax
je 0x40f12e
dec eax
je 0x40f10c
dec eax
jne 0x40f153
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40f100
dec eax
je 0x40f0f4
dec eax
jne 0x40f153
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40f153
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40f153
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40f153
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40f12a
dec eax
je 0x40f126
dec eax
jne 0x40f153
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40f153
push 0x3c
jmp 0x40f152
push 0x32
jmp 0x40f152
push 0x14
jmp 0x40f152
push 5
jmp 0x40f152
cmp dword [ebp - 0x14], 0
je 0x40f150
cmp dword [ebp - 0x14], 0xa
je 0x40f14c
cmp dword [ebp - 0x14], 0x5a
jne 0x40f153
push 0x28
jmp 0x40f152
push 0x1e
jmp 0x40f152
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret