joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4807b0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bf3c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.0040e120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040e120
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00418670
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.0040ac80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.0040ac80
lea eax, [ebp - 0x294]
push eax
call fcn.00415500
add esp, 4
test al, al
jne 0x480914
xor bl, bl
jmp 0x48097b
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00414960
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.0040e030
test al, al
je 0x480941
xor bl, bl
jmp 0x48096c
lea ecx, [ebp - 0x27c]
call fcn.00404df0
cmp esi, eax
je 0x48096a
call fcn.00404df0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x48095f
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.0040e470
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.0040ac80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret 4
Function at 0x4809b0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bfae
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.0040e120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.0040e120
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00418670
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.0040ac80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.0040ac80
lea eax, [ebp - 0x27c]
push eax
call fcn.00415500
add esp, 4
test al, al
je 0x480bb8
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.004f8556
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp - 0x280]
call fcn.0042f9f0
test al, al
jne 0x480bbc
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x480bb8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x480ba3
test eax, eax
je 0x480ba3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004f8820
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x480c05
push esi
lea ecx, [ebp - 0x280]
call fcn.0042fbd0
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x480c05
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x480bf0
test eax, eax
je 0x480bf0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004f8820
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.0040ac80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret 4
Function at 0x487360
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c8dc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.0040ac80
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.0040ac80
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.0040ac80
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0040ac80
push 0x88
push ebx
call fcn.004f8820
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4876f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c939
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.00410700
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4878a2
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x4877e4
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x598d9c
mov byte [ebp - 0x15], al
call fcn.00404df0
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4877bf
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00417ae0
inc edi
cmp edi, 4
jl 0x4877b5
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x487750
mov dword [ebp + 8], esi
test esi, esi
je 0x4878a2
mov eax, esi
cmp esi, 3
jge 0x48781e
cmp eax, 3
jae 0x4878b6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x487804
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x487888
mov ecx, 0x598d9c
call fcn.00404df0
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x48786e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00417ae0
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x487864
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x4878a2
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.00417ae0
sub edi, 1
jne 0x487894
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004f8cce
int3
Function at 0x488750
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ce50
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x38]
mov ecx, edi
call fcn.0041c590
lea ebx, [esi + 0x48]
push str..bak
lea eax, [ebp - 0x70]
mov dword [ebp - 0x7c], ebx
push ebx
push eax
call fcn.00416910
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, esi
push 0xb
call fcn.0040e040
push eax
mov ecx, ebx
call fcn.0040e040
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4887cb
mov bl, 1
jmp 0x4888d5
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x71], 0
call fcn.0040e160
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
mov ecx, ebx
call fcn.004340a0
movzx ecx, byte [ebp - 0x71]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x40]
call fcn.0040e160
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004340a0
test al, al
jne 0x488815
cmp byte [ebp - 0x78], al
je 0x488852
push 0xb
lea ecx, [ebp - 0x40]
call fcn.0040e040
push eax
lea ecx, [ebp - 0x58]
call fcn.0040e040
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x488852
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040ac80
mov bl, 1
jmp 0x4888d5
mov ecx, esi
call fcn.00433940
cmp eax, 0xffffffff
je 0x4888bb
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00433e60
test al, al
je 0x4888af
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004339e0
test al, al
je 0x4888af
mov edx, esi
mov ecx, ebx
call fcn.004339e0
lea ecx, [ebp - 0x28]
test al, al
je 0x4888a8
call fcn.00433bf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040ac80
jmp 0x488833
mov edx, esi
call fcn.004339e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040ac80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040ac80
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0040ac80
test bl, bl
je 0x488906
mov ecx, edi
call fcn.0041caf0
push 1
push dword [ebp - 0x7c]
mov ecx, edi
call fcn.0041c320
mov ecx, edi
call fcn.0041c590
mov al, 1
jmp 0x488908
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret
Function at 0x498490
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x49849b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004984b0
Function at 0x4abb50
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4abc10
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
lea ecx, [eax + ebx]
cmp ecx, edx
jb 0x4abbf2
lea edi, [edx + edx]
push 0
cmp edi, ecx
cmovbe edi, ecx
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x4abbb4
push edi
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4abbc1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, 0x300
pop esi
pop ecx
ret 8
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.004fac70
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 4], ebp
push ebx
push dword [esp + 0x1c]
lea ecx, [edi + eax]
push ecx
call fcn.004fac70
add esp, 0xc
mov eax, ebx
add dword [esi + 0x1c], ebx
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x4abc3e
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
pop edi
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x4adb90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x4adb97
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4adc57
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
sub edi, 1
jne 0x4adbb0
pop edi
test esi, esi
je 0x4adc7a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x561590]
sub esi, 1
jne 0x4adc60
not ecx
mov eax, ecx
pop esi
ret

Function at 0x4ae790
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, edx
mov edx, ecx
mov dword [esp + 8], edx
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4ae7b5
push dword [esp + 0x10]
mov eax, dword [ecx]
push ebp
push edx
call dword [eax + 0xc]
pop edi
pop ebp
pop ecx
ret
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x14]
cmp byte [edi], 0
je 0x4ae7e9
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ae7dc
mov byte [edi + 8], 1
mov eax, dword [esp + 0x18]
xor edx, edx
pop ebx
pop edi
div ebp
pop ebp
pop ecx
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
push esi
mov esi, dword [edi + 0x14]
lea eax, [edx + ebx]
sub esi, edx
cmp eax, dword [edi + 0x14]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [esp + 0x18]
call fcn.004fac70
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebp
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x4afb20
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, edx
push edi
mov edi, ecx
movzx eax, word [ebx]
test ax, ax
je 0x4afc2c
push esi
mov esi, ebx
mov ecx, ebx
nop dword [eax + eax]
cmp ax, 0x2f
je 0x4afb5c
cmp ax, 0x5c
jne 0x4afb5e
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4afb50
cmp esi, ebx
je 0x4afbaa
sub esi, ebx
lea eax, [esp + 0x214]
sar esi, 1
push esi
push ebx
push eax
call fcn.00500edd
add esi, esi
add esp, 0xc
cmp esi, 0x208
jae 0x4afc43
xor eax, eax
lea edx, [esp + 0x214]
mov ecx, edi
mov word [esp + esi + 0x214], ax
call fcn.004afb20
lea ecx, [esp + 0xc]
mov edx, 0x104
mov eax, ecx
sub edi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4afbe0
movzx eax, word [edi + ecx]
test ax, ax
je 0x4afbe0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4afbc0
jmp 0x4afbe4
test edx, edx
jne 0x4afbe7
sub ecx, 2
xor eax, eax
mov esi, ebx
mov word [ecx], ax
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4afbf0
lea edi, [esp + 0xc]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4afc04
mov ecx, ebx
lea eax, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.004f8545
add esp, 0x414
ret
call fcn.004f8cce
int3
Function at 0x4b00c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fd52
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x344
call fcn.004f8556
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x138], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp dword [esi], 0
jne 0x4b01da
cmp dword [esi + 4], 0xffffffff
jne 0x4b01da
lea edi, [esi + 0x13c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4b0145
mov eax, dword [0x565940]
mov ebx, dword [ebp + 8]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4b017b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4b017b
mov dword [0x598d1c], 0x2000000
jmp 0x4b01e8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push edi
mov ecx, ebx
call fcn.004ae5d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b0198
mov eax, dword [ebp - 0x10]
jmp 0x4b01df
mov ecx, ebx
call fcn.004aebb0
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x4b01d3
cmp edi, 5
jne 0x4b01d3
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x4b01d3
mov eax, dword [ecx]
push dword [edx + 0x24]
mov eax, dword [eax]
call eax
test al, al
jne 0x4b01d3
mov ecx, esi
call fcn.004b0050
mov dword [0x598d1c], 0x5000000
jmp 0x4b01e8
mov eax, dword [0x598dbc]
jmp 0x4b01df
mov eax, 0x1000000
mov dword [0x598d1c], eax
test eax, eax
je 0x4b020a
push 0x344
push esi
call fcn.004f8820
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.004f8556
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0490
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x53fd92
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4b04d4
call fcn.004b0620
cmp byte [0x598d20], 0
jne 0x4b04e7
mov eax, SysReAllocString
jmp 0x4b05fc
mov eax, dword [esi]
test eax, eax
jne 0x4b0552
push 8
call fcn.004f8556
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.004f8556
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.004fb1f0
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b0541
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4b05eb
call fcn.0042d710
test al, al
jne 0x4b058c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0042de00
test al, al
je 0x4b05eb
mov ecx, dword [esi]
add ecx, 4
call fcn.0042d230
call fcn.0042d710
test al, al
je 0x4b05eb
push 0x565b40
lea ecx, [ebp - 0x28]
call fcn.0040e120
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00426550
mov ecx, eax
call fcn.00426610
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ac80
test edi, edi
je 0x4b05eb
push 0x56b7dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b05eb
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x4b05eb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4b05fa
mov dword [eax], SysStringLen
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004f8545
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x4b24d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5400cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040ac80
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040ac80
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040ac80
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040ac80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2560
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5400cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040ac80
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040ac80
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040ac80
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040ac80
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040ac80
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040ac80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b3800
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54029f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040f0c0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040f0c0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040f0c0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040f0c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040f0c0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040f0c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4