joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000313d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000322d
mov eax, 0x94
call fcn.10004f60
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100032a2
mov ecx, dword [esi + 0x10]
mov dword [0x1000bb48], ecx
mov eax, dword [esi + 4]
mov dword [0x1000bb54], eax
mov edx, dword [esi + 8]
mov dword [0x1000bb58], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000bb4c], esi
je 0x100031a8
or esi, 0x8000
mov dword [0x1000bb4c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000bb50], eax
call fcn.10004e8b
test eax, eax
pop ecx
je 0x100032a2
call fcn.10003e9f
test eax, eax
jne 0x100031d5
call fcn.10004edc
jmp 0x100032a2
call fcn.10004de9
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000c214], eax
call fcn.10004cc7
mov dword [0x1000b9cc], eax
call fcn.100047a8
test eax, eax
jl 0x10003226
call fcn.10004c25
test eax, eax
jl 0x10003221
call fcn.100049f2
test eax, eax
jl 0x10003221
push 0
call fcn.100045a0
test eax, eax
pop ecx
jne 0x10003221
inc dword [0x1000b9c8]
jmp 0x100032b3
call fcn.100049a6
call fcn.10003c88
jmp 0x100031cb
test eax, eax
jne 0x1000325d
cmp dword [0x1000b9c8], eax
jle 0x100032a2
dec dword [0x1000b9c8]
cmp dword [0x1000bb84], eax
jne 0x1000324c
call fcn.100046de
call fcn.100049a6
call fcn.10003c88
call fcn.10004edc
jmp 0x100032b3
cmp eax, 2
jne 0x100032a6
push 0x8c
push 1
call fcn.100046ed
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100032a2
push esi
push dword [0x1000b084]
call dword [0x1000b9e4]
test eax, eax
push esi
je 0x1000329c
call fcn.10003ca5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100032b3
call fcn.100040f5
pop ecx
xor eax, eax
jmp 0x100032b6
cmp eax, 3
jne 0x100032b3
push 0
call fcn.10003e70
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000460a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100093c8
call fcn.100042ec
push 8
call fcn.100042b9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000bb88], esi
jne 0x1000463e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000bb84], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000bb80], al
cmp dword [ebp + 0xc], edi
jne 0x10004688
cmp dword [0x1000c208], edi
je 0x10004678
mov eax, dword [0x1000c204]
sub eax, 4
mov dword [0x1000c204], eax
cmp eax, dword [0x1000c208]
jb 0x10004678
mov eax, dword [eax]
cmp eax, edi
je 0x10004659
call eax
jmp 0x10004659
push 0x1000b024
mov eax, 0x1000b020
call fcn.10004588
pop ecx
push 0x1000b030
mov eax, 0x1000b028
call fcn.10004588
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x100046b9
cmp dword [ebp + 0x10], edi
jne 0x100046c7
mov dword [0x1000bb88], esi
push dword [ebp + 8]
call fcn.10004546
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x100046c6
push 8
call fcn.10004204
pop ecx
ret
call fcn.10004327
ret
Function at 0x1000511c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000b080]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1000b268]
je 0x10005151
inc eax
cmp eax, 0x13
jb 0x10005142
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000b268]
jne 0x10005277
mov eax, dword [0x1000b9d4]
cmp eax, 1
je 0x1000524f
cmp eax, edx
jne 0x10005181
cmp dword [0x1000b9d8], 1
je 0x1000524f
cmp ecx, 0xfc
je 0x10005277
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100051b7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10006c80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10006d80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100051eb
mov eax, edi
push eax
call fcn.10006d80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100097f0
push edi
call fcn.10007250
add esp, 0x10
push edi
call fcn.10006d80
push dword [esi + 0x1000b26c]
mov ebx, eax
call fcn.10006d80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10004f60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10006c80
push edi
push ebx
call fcn.10006c90
push 0x100097d0
push ebx
call fcn.10006c90
push dword [esi + 0x1000b26c]
push ebx
call fcn.10006c90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000714d
add esp, 0x2c
jmp 0x10005277
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000b26c]
push dword [esi]
call fcn.10006d80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.100073a5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000714d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000bd0c], ebx
push esi
push edi
jne 0x100071cd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10007208
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000bd0c], eax
je 0x10007208
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000bd10], eax
call esi
cmp dword [0x1000bb48], 2
mov dword [0x1000bd14], eax
jne 0x100071cd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000bd1c], eax
je 0x100071cd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000bd18], eax
mov eax, dword [0x1000bd18]
test eax, eax
je 0x10007212
call eax
test eax, eax
je 0x100071f9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000bd1c]
test eax, eax
je 0x100071f9
test byte [ebp - 8], 1
jne 0x10007212
cmp dword [0x1000bb54], 4
jb 0x1000720c
or byte [ebp + 0x12], 0x20
jmp 0x10007231
xor eax, eax
jmp 0x10007241
or byte [ebp + 0x12], 4
jmp 0x10007231
mov eax, dword [0x1000bd10]
test eax, eax
je 0x10007231
call eax
mov ebx, eax
test ebx, ebx
je 0x10007231
mov eax, dword [0x1000bd14]
test eax, eax
je 0x10007231
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000bd0c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000835e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10004f60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100083f9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1000bb48]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100083f9
cmp eax, 1
je 0x1000841a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100083f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100083c6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100083f5
xor eax, eax
inc eax
jmp 0x10008439
cmp edi, eax
jae 0x100083fd
xor eax, eax
jmp 0x10008439
cmp eax, esi
jae 0x10008404
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1000bb48]
jmp 0x1000841d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6834637c
Capabilities:
Encode data using xor

Disassembly:
sub al, 0xc
imul edx, dword [ebp + 0x36], 0xd45e6a9e
cmpsb byte [esi], byte es:[edi]
ret 0xb7eb
dec edx
mov ah, 0xed
out dx, eax
xor dword [esi + 0x5f], ebx
std
mov eax, 0xee685593
add byte [ebx], al
sal dword [edx + esi*2], 1
xlatb
pop es
mov dword [eax], esp
and dl, byte [ebx + 0xa135c83]
and dword [eax - 0x29592f98], esi
lodsd eax, dword [esi]
enter 0x257e, 0x7f
in al, 0x11
shr ebp, 1
or ah, byte [ecx]
mov al, 0x68
shl byte [esi + 0x7ec8add6], 1
and eax, 0xd111e47f
in eax, dx
or al, 0xc3
dec ecx
and esi, ebx
mov ah, byte [ebp - 0x4bf7a002]
push 0xffffffffffffff99
stosd dword es:[edi], eax
stc
out 0x5f, eax
xchg ecx, eax
jecxz 0x6834440a
les esi, [ecx]
and cl, byte [ebx + 0x577c8d34]
xchg esi, edi
aaa
cmpsd dword [esi], dword es:[edi]
or al, 0xd2
cmp dl, cl
cld
dec edx
fsubr qword [edi + 0x50]
out dx, eax
mov ch, 0xb9
inc edi
dec esi
mov eax, 0xce23bea6
mov edi, dword [ecx + 0x498e3b78]
xchg ecx, eax
jno 0x68344442
stosd dword es:[edi], eax
adc byte [edi - 0x72], al
pop ss
mov ecx, 0xae93e16e
add esi, ebp
fidivr word [edi]
jns 0x683444ba
salc
inc ebp
movsb byte es:[edi], byte [esi]
jo 0x68344426
or ebx, ebx
rcl dword [eax + 0x35fb2a67], 0x4a
jl 0x6834451a
xchg esi, eax
xlatb
adc eax, 0xf4efea42
xchg ecx, eax
movsb byte es:[edi], byte [esi]
inc edx
dec esi
or al, 0x20
stosd dword es:[edi], eax
mov esi, edx
aas
add byte [ebx - 0x5d4a67b8], ch
add esp, dword [edx]
sahf
cmp bl, byte [ecx]
mov cl, 0xd1
nop
int3
retf
mov dh, 0x37
cmpsd dword [esi], dword es:[edi]
fistp dword [ebx - 0x72]
out dx, eax
aaa
rcr byte [ebp - 0x4b8ed287], cl
aam 0xa4
rcr dword [ebp + 0x5b], cl
inc esi
jle 0x683463ac
outsb dx, byte [esi]
cmpsb byte [esi], byte es:[edi]
xor eax, 0x60152f1c
push edi
les ebx, [0x80c94f75]
pop edi
adc dl, bh
or al, 0x98
invalid
inc edi
adc dword [ebp - 0x42], edi
loope 0x683463f6
rol eax, 0x96
jmp 0x6834447b
xor al, 0x60
pop edx
push ss
push edi
das
mov al, 0x49
cld
xor dword [eax + 0x540c6f6e], ecx
aad 0xc7
sub dword [ebx], ebp
movsb byte es:[edi], byte [esi]
cli
shl byte [ebx + esi*2 - 0x7d067542], 7
cmpsd dword [esi], dword es:[edi]
mov al, byte [0x3d460f90]
fcmove st(0), st(6)
inc ebx
pop ebp
jb 0x683463f9
std
ror byte [eax - 0x7e], cl
push ss
mov esp, 0x9f4f9162
invalid
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x65221476
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x1f1b7076
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x438ca2
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add ebx, ebx
call fcn.00438cf0
sub esi, ebx
mov ebx, 0x652ad127
sub esi, 0xd8ef3c5
xor dword [eax], edx
mov esi, 0xf8b57607
add eax, 1
mov esi, 0xcdfe84b4
sub esp, 4
mov dword [esp], 0x8da3b27f
pop esi
cmp eax, edi
jne fcn.00438ca2
add ebx, ebx
sub ebx, 0xb75586f4
ret
Function at 0x4010e0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push eax
push 0
push 0x20119
push 0
push 0
push 0
push ecx
push 0x80000002
mov esi, edx
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401253
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.Path
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401247
cmp dword [ebp - 0x21c], 1
jne 0x401247
push 0x40
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x27c], 0x44
push eax
call fcn.00403110
push esi
lea eax, [ebp - 0x214]
xorps xmm0, xmm0
push 0x104
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.00404a89
add esp, 0x18
lea eax, [ebp - 0x214]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x401247
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push str.__exit
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00404a89
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401247
push dword [ebp - 0x22c]
call esi
push 0x1388
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x230]
call esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401270
push 0
push 0
push 0x303
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040179d
mov esp, ebp
pop ebp
ret
Function at 0x401290
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x4012ee
cmp dword [esp + 4], 0
jle 0x4012ee
push str.exitSM
push dword [esi]
call fcn.0040496d
add esp, 8
test eax, eax
je 0x4013a9
push str.fixVersion
push dword [esi]
call fcn.0040496d
add esp, 8
test eax, eax
je 0x4012fa
mov eax, dword [esp + 4]
add esi, 4
dec eax
mov dword [esp + 4], eax
test eax, eax
jg 0x4012b4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0x2011f
push 0
push 0
push 0
push str.SOFTWAREOpenShellOpenShell
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4013a0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40134a
xor ecx, ecx
jmp 0x401378
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
je 0x401346
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push 4
push 0
push str.WinVersion
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.OpenShellUpdate.COwnerWindow
mov edx, str.StartMenu.exe
mov ecx, str.SOFTWAREOpenShellOpenShell
call fcn.004010e0
push str.ClassicShellUpdate.COwnerWindow
mov edx, str.ClassicStartMenu.exe
mov ecx, str.SOFTWAREIvoSoftClassicShell
call fcn.004010e0
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402259
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402298
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402298
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402298
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402298
cmp dword [ecx + 0x74], 0xe
jbe 0x402298
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4082a4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4082ef
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040843d
test al, al
jne 0x4082e9
sub edx, 2
cmp edx, edi
jne 0x4082cf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x408311
lea eax, [edi + 2]
cmp edx, eax
je 0x408311
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004081f0
add esp, 0x10
jmp 0x408409
push esi
lea ecx, [ebp - 0x255]
call fcn.0040843d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408352
push dword [ebp - 0x25c]
jmp 0x408301
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40838f
cmp word [ebp - 0x226], 0
je 0x4083b0
cmp word [ebp - 0x226], ax
jne 0x40838f
cmp word [ebp - 0x224], 0
je 0x4083b0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004081f0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4083fc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x408369
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4083e4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408409
push 0x408020
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040b4a0
add esp, 0x10
jmp 0x4083d9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040179d
leave
ret
Function at 0x40e0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e10d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130