joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x49857f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4985fe
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004970f0
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4985cc
mov cx, word [esp]
sub cx, si
jmp 0x4985ce
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4985b5
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4985f4
mov cx, word [esp]
sub cx, si
jmp 0x4985f6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4985dd
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4986df
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004982c4
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x49864a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x74]
cmp eax, 0x106
jae 0x498660
mov edx, dword [ebx]
cmp dword [edx + 4], 0
jne 0x49855a
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x16c0]
cmp ecx, edx
jbe 0x4986df
mov esi, dword [ebx + 0x6c]
add esi, eax
cmp esi, edx
jbe 0x4986a2
mov edi, ecx
sub edi, esi
cmp edi, 0x102
jbe 0x498687
mov edi, 0x102
push edi
push 0
mov eax, dword [ebx + 0x38]
add eax, esi
push eax
call fcn.004970dc
add esp, 0xc
add edi, esi
mov dword [ebx + 0x16c0], edi
jmp 0x4986df
lea edx, [esi + 0x102]
mov eax, dword [ebx + 0x16c0]
cmp edx, eax
jbe 0x4986df
mov edi, edx
mov edx, dword [ebx + 0x3c]
sub edx, eax
sub edi, eax
cmp edi, edx
jbe 0x4986c8
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x16c0]
push edi
push 0
mov edx, dword [ebx + 0x38]
add edx, eax
push edx
call fcn.004970dc
add esp, 0xc
add dword [ebx + 0x16c0], edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49f10c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x49f1a6
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x49f19e
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x49f19e
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x49f198
test byte [ebx + 3], 0x80
je 0x49f174
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x49f188
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x49f147
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x49f1b6
cmp dword [edi + 0xc], 0
jne 0x49f11d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49f1c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49f320
cmp word [edi], 0x5a4d
jne 0x49f320
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49f320
cmp dword [esi], 0x4550
jne 0x49f320
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49f320
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49f320
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.00403294
mov ecx, dword [ebp - 0x10]
dec ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
xor eax, eax
call fcn.00403294
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x49f2aa
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
add edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 4]
call fcn.00403294
add ebx, 0x28
dec edi
jne 0x49f290
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x49f2cb
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.0049f098
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0x18]
add eax, ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0049f10c
mov eax, dword [esi + 0x28]
mov ecx, eax
add ecx, ebx
mov edx, ecx
test eax, eax
je 0x49f31a
xor eax, eax
push ebp
push 0x49f310
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
add eax, dword [ebp - 0x14]
push eax
push 1
push ebx
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f31a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f32c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
xor ebx, ebx
test ebp, ebp
je 0x49f365
mov edi, ebp
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x49f365
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x49f365
push 0x4000
mov eax, dword [esi + 0x50]
push eax
push edi
call sub.kernel32.dll_VirtualFree_1
test eax, eax
je 0x49f365
mov bl, 1
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a2b24
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x52b274
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4a2b46
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a2b48
shr eax, 1
dec edx
jne 0x4a2b34
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a2b2d
mov byte [0x52b674], 1
pop esi
pop ebx
ret

Function at 0x4a2b64
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x52b674], 0
jne 0x4a2b7b
call fcn.004a2b24
mov eax, edi
dec eax
test eax, eax
jl 0x4a2ba3
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x52b274]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4a2b85
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a5614
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4a56ae.0
jmp dword [ecx*4 + 0x4a5647]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4a5679
sub dl, 8
je 0x4a5688
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a52bc
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a5314
jmp case.0x4a56ae.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4a56ae.0
movzx ecx, byte [ecx + 0x4a56b5]
jmp dword [ecx*4 + 0x4a56c6]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a53c0
jmp case.0x4a56ae.0
cmp dl, 3
jne 0x4a56f3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a5418
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a53d4
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a545c
jmp case.0x4a56ae.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4a571e
sub dl, 8
je 0x4a572a
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a5488
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a54f4
jmp case.0x4a56ae.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4a5749
sub dl, 8
je 0x4a5755
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a55b0
jmp case.0x4a56ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a55d8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x4a57f7
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004a47c0
test eax, eax
je 0x4a57f7
mov eax, ebx
call fcn.004a5800
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4a5790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a5800
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4a5831
dec al
je 0x4a586c
dec al
je 0x4a58b1
dec al
je 0x4a591a
jmp 0x4a59a4
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4a59a4
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4a5841
jmp 0x4a59a4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a59a4
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4a587c
jmp 0x4a59a4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a59a4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4a58e0
xor ebp, ebp
jmp 0x4a58f0
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4a58f9
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4a58c1
jmp 0x4a59a4
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a59a4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4a5973
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004a2bac
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4a592e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b5aa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
dec edx
test edx, edx
jl 0x4b5b45
inc edx
mov dword [ebp - 0x10], edx
mov edx, dword [eax]
and edx, 0xffff
or edx, 2
mov dword [ebp - 0xc], edx
movzx edx, byte [esi]
mov ebx, dword [ebp - 0xc]
xor ebx, 1
imul ebx, dword [ebp - 0xc]
shr ebx, 8
xor dl, bl
mov byte [esi], dl
mov edx, dword [ecx]
movzx ebx, byte [esi]
xor dl, bl
movzx edx, dl
mov edx, dword [edx*4 + 0x5234a0]
mov ebx, dword [ecx]
shr ebx, 8
and ebx, 0xffffff
xor edx, ebx
mov dword [ecx], edx
mov edx, dword [ecx]
and edx, 0xff
add dword [edi], edx
mov edx, dword [edi]
imul edx, dword [ebp + 8]
inc edx
mov dword [edi], edx
mov edx, dword [eax]
mov ebx, dword [edi]
shr ebx, 0x18
xor dl, bl
movzx edx, dl
mov edx, dword [edx*4 + 0x5234a0]
mov ebx, dword [eax]
shr ebx, 8
and ebx, 0xffffff
xor edx, ebx
mov dword [eax], edx
inc esi
dec dword [ebp - 0x10]
jne 0x4b5ac8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b7530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0040d1a8
mov eax, dword [ebx]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4b7571
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4b7587
mov eax, ebx
mov edx, 0x4b7598
call fcn.00405f0c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5e10
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x409494]
call fcn.00406570
xor eax, eax
push ebp
push 0x4c5fd1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x523ae4], 0
jne 0x4c5e64
mov ecx, dword [0x5255fc]
mov dl, 1
mov eax, dword [0x409e90]
call fcn.004118c4
call fcn.004047ec
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403680
mov eax, ebx
call fcn.00405908
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x4c5fe0
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.00407a00
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x4c5eab
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4c5f77
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4c5f63
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00405db8
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405e20
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c5f06
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4c5f06
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405194
mov ebx, eax
test ebx, ebx
je 0x4c5f11
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c5f2e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4c5f2e
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405194
mov edi, eax
test edi, edi
je 0x4c5f39
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00405c44
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00405c44
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x4c5f65
xor eax, eax
test al, al
je 0x4c5f70
mov ebx, 0x15
jmp 0x4c5f7c
mov ebx, 0x10
jmp 0x4c5f7c
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x523ae4]
call fcn.004c5c7c
mov eax, dword [ebp - 0xc]
call fcn.004c5c7c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00407a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5fd8
lea eax, [ebp - 0x14]
mov edx, dword [0x409494]
call fcn.00406648
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405bb0
ret

Function at 0x4c8e08
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00403680
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 4], 5
jb 0x4c8e3e
cmp dword [esp + 8], 1
jb 0x4c8e3e
cmp dword [esp + 0x10], 2
je 0x4c8e42
xor eax, eax
jmp 0x4c8e44
mov al, 1
add esp, 0x114
ret
Function at 0x4c8e4c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00403680
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 4], 6
jne 0x4c8e82
cmp dword [esp + 8], 0
jne 0x4c8e82
cmp dword [esp + 0x10], 2
je 0x4c8e86
xor eax, eax
jmp 0x4c8e88
mov al, 1
add esp, 0x114
ret

Function at 0x4cee84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004cee48
mov eax, dword [ebx]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4ceec5
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4ceedb
mov eax, ebx
mov edx, 0x4ceeec
call fcn.00405f0c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ceef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004cee48
mov eax, dword [ebx]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4cef31
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4cef47
mov eax, ebx
mov edx, 0x4cef58
call fcn.00405f0c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x501fd8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x502032
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00501fcc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004ff498
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004feffc
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502039
lea eax, [ebp - 4]
call fcn.00405ba8
ret
Function at 0x515b88
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x515cbb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x515c81
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [0x52ce44]
call fcn.00426fd8
mov eax, dword [0x52ce28]
mov eax, dword [eax + 0x3b0]
mov edx, 0x515cd4
call fcn.00473310
mov edx, 0x51612c
mov eax, dword [0x52ce44]
call fcn.004a1200
inc eax
jne 0x515bf8
mov eax, dword [0x52ce44]
call fcn.00403df8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515ca5
mov eax, dword [0x52ce44]
call fcn.00403df8
mov eax, dword [0x52ce40]
push eax
mov ecx, 0x515cf0
mov edx, 0x515d10
mov eax, dword [0x52ce50]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [0x52ce40]
push eax
mov ecx, 0x515d24
mov edx, 0x515d10
mov eax, dword [0x52ce50]
mov ebx, dword [eax]
call dword [ebx + 4]
push 0x1f4
call sub.kernel32.dll_Sleep_2
push 1
push 0x515d3c
push 0x515d44
lea edx, [ebp - 4]
mov eax, dword [0x525c38]
mov eax, dword [eax]
call fcn.004953ac
mov eax, dword [ebp - 4]
call fcn.00405c44
push eax
push 0x515d48
push 0
call sub.shell32.dll_ShellExecuteW
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515cc2
lea eax, [ebp - 4]
call fcn.00405ba8
ret
Function at 0x516160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4b
push 0
push 0
dec ecx
jne 0x516168
push ecx
push ebx
xor eax, eax
push ebp
push 0x5163b3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x525a84]
call fcn.004c5ce4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x5163c0
call fcn.00407a44
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0x5163d0
call fcn.00407a44
lea edx, [ebp - 0x230]
mov eax, dword [0x525c38]
mov eax, dword [eax]
call fcn.004953ac
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x22c]
call fcn.0040cbdc
lea eax, [ebp - 0x22c]
push eax
lea edx, [ebp - 0x238]
mov eax, dword [0x525c38]
mov eax, dword [eax]
call fcn.004953ac
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.0040cc18
mov edx, dword [ebp - 0x234]
pop eax
call fcn.00405f0c
mov eax, dword [ebp - 0x22c]
call fcn.00405c44
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x240]
mov eax, dword [0x525c38]
mov eax, dword [eax]
call fcn.004953ac
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.0040cbdc
mov eax, dword [ebp - 0x23c]
call fcn.00405c44
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x1c]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x226]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea edx, [ebp - 0x244]
mov eax, dword [0x525c38]
mov eax, dword [eax]
call fcn.004953ac
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x18]
call fcn.0040cc18
lea edx, [ebp - 0x24c]
mov eax, dword [0x525c38]
mov eax, dword [eax]
call fcn.004953ac
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0040cc18
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x250], eax
mov ebx, dword [ebp - 0x250]
test ebx, ebx
je 0x5162cd
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
sub ecx, 4
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0040620c
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x226]
mov ecx, 0x105
call fcn.00405db8
push dword [ebp - 0x258]
push 0x5163ec
push dword [ebp - 0x14]
push 0x5163fc
lea eax, [ebp - 0x254]
mov edx, 4
call fcn.0040605c
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x10]
call fcn.00405e34
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 0x10]
call fcn.00405e20
mov eax, dword [ebp - 0x25c]
call fcn.0040c8e4
test al, al
jne 0x516358
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405908
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5163ba
lea eax, [ebp - 0x25c]
mov edx, 3
call fcn.00405bb0
lea eax, [ebp - 0x24c]
mov edx, 9
call fcn.00405bb0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00405bb0
lea eax, [ebp - 0x10]
call fcn.0040573c
lea eax, [ebp - 0xc]
call fcn.00407a00
lea eax, [ebp - 8]
call fcn.00407a00
lea eax, [ebp - 4]
call fcn.00407a00
ret