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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a546c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x60a070]
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.00540030
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.00403c00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00403c00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x294]
call fcn.004993b0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00403bb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.00403bb0
lea ecx, [ebp - 0x294]
call fcn.004a3030
test al, al
jne 0x48703e
xor bl, bl
jmp 0x4870a0
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x27c]
call fcn.004a8d60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.0040d260
test eax, eax
jne 0x487066
xor bl, bl
jmp 0x487091
lea ecx, [ebp - 0x27c]
call fcn.00404970
cmp esi, eax
je 0x48708f
call fcn.00403fa0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x487084
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.004040c0
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00403bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.00403bb0
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.0053c439
mov esp, ebp
pop ebp
ret 4
Function at 0x4871d0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a551e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x60a070]
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.00540030
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.00403c00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00403c00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x27c]
call fcn.004993b0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.00403bb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.00403bb0
lea ecx, [ebp - 0x27c]
call fcn.004a3030
test al, al
je 0x4873d2
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.0053c458
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 0x80000000
push eax
lea ecx, [ebp - 0x280]
call fcn.004d3350
test al, al
jne 0x4873d6
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x4873d2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4873bd
test eax, eax
je 0x4873bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0053c9a6
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x48741f
push esi
lea ecx, [ebp - 0x280]
call fcn.004d3520
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x48741f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x48740a
test eax, eax
je 0x48740a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0053c9a6
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.00403bb0
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.0053c439
mov esp, ebp
pop ebp
ret 4
Function at 0x493d10
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6acc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x60a070]
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 - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.00403bb0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.00403bb0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.00403bb0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00403bb0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00403bb0
push 0x88
push ebx
call fcn.0053c9a6
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 0x494400
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6bd9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x60a070]
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.0040d340
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4945b2
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 0x4944f4
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, 0x60dc10
mov byte [ebp - 0x15], al
call fcn.0040d4e0
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4944cf
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00447c20
inc edi
cmp edi, 4
jl 0x4944c5
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 0x494460
mov dword [ebp + 8], esi
test esi, esi
je 0x4945b2
mov eax, esi
cmp esi, 3
jge 0x49452e
cmp eax, 3
jae 0x4945c6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x494514
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 0x494598
mov ecx, 0x60dc10
call fcn.0040d4e0
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x49457e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00447c20
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x494574
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x4945b2
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.00447c20
sub edi, 1
jne 0x4945a4
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.0053cada
int3
Function at 0x495b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6f48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60a070]
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 edi, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403c70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00497370
lea ecx, [ebp - 0x28]
call fcn.0040d260
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x495c89
call fcn.00404510
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x495bcc
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x495be6
mov ecx, esi
cmp eax, 8
jb 0x495bdb
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x495d04
mov ecx, esi
cmp eax, 8
jb 0x495bef
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x495c05
mov ecx, esi
cmp eax, 8
jb 0x495bfe
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x495c5a
push 0x5c
mov edx, 0x2f
lea ecx, [ebp - 0x28]
call fcn.00497190
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, esi
cmp eax, 8
jb 0x495c23
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x495c5a
mov ecx, esi
cmp eax, 8
jb 0x495c33
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x495c5a
mov ecx, esi
cmp eax, 8
jb 0x495c43
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x495c5a
cmp eax, 8
jb 0x495c50
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x495ce5
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bb0
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.0053c439
mov esp, ebp
pop ebp
ret
call fcn.0040d260
cmp eax, 2
jne 0x495c5a
lea ecx, [ebp - 0x28]
call fcn.00404510
mov edx, eax
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x495ca7
mov edx, dword [eax]
cmp word [edx + 2], 0x3a
jne 0x495c5a
mov edx, eax
cmp ecx, 8
jb 0x495cb7
mov edx, dword [eax]
cmp word [edx], 0x61
jb 0x495c5a
cmp ecx, 8
jb 0x495cc4
mov eax, dword [eax]
cmp word [eax], 0x7a
ja 0x495c5a
push 0x5d5ba4
call fcn.00404680
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push 0x5d5ba4
call fcn.00411db0
lea ecx, [ebp - 0x28]
call fcn.00403b40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x495c5a
shr eax, 4
and al, 1
mov byte [edi], al
mov bl, 1
jmp 0x495c5c
Function at 0x495f70
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x60a070]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.00540030
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4960b2
cmp dword [esi + 4], 6
push edi
ja 0x495fc6
jne 0x49604e
cmp dword [esi + 8], 2
jb 0x49604e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x49604e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49604e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49604e
movups xmm0, xmmword [0x5d9324]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5d9334]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x49604e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49604e
cmp word [edi + 2], ax
jbe 0x49604e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x496099
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00540030
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x496099
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0053c439
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0053c439
add esp, 0x140
ret
Function at 0x49f120
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a85c8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x60a070]
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
mov edi, dword [esi + 8]
test edi, edi
jne 0x49f15b
xor al, al
jmp 0x49f1fe
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x49f177
mov eax, dword [edi]
test eax, eax
je 0x49f177
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x49f1db
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x49ea20
push 0
push 0
call fcn.0056050a
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x49f21a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x49f1d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0049ebe0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x49f1fc
mov eax, dword [edi]
test eax, eax
je 0x49f1f5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
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.0053c439
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x49f232
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x49f1bd
mov bl, 1
jmp 0x49f1dd
Function at 0x4a23a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8eb6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x60a070]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x4a247e
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x4a249c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053cfa5
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4a246a
cmp eax, ebx
ja 0x4a246a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x4a24ca
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a247e
push edi
call fcn.0053c9b4
add esp, 4
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.0053c439
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x4a2555
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x4a2555
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x4a253a
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x4a252c
cmp ecx, edi
je 0x4a252c
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00403c00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.0040d020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00403bb0
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x4a24e3
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a254e
push esi
call fcn.0053c9b4
add esp, 4
mov al, 1
jmp 0x4a2480
call fcn.0053cada
int3
Function at 0x4a3cd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9400
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x60a070]
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 edi, ecx
call fcn.0040d260
test eax, eax
jne 0x4a3d0d
xor al, al
jmp 0x4a3eb9
mov ecx, edi
call fcn.004a3140
test al, al
je 0x4a3d1f
mov al, 1
jmp 0x4a3eb9
push 0
mov ecx, edi
call fcn.00403b40
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4a3d6e
lea ecx, [ebp - 0x28]
call fcn.00403c50
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004d53c0
test al, al
je 0x4a3d5f
push 0
lea ecx, [ebp - 0x28]
call fcn.00403b40
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov ecx, edi
call fcn.004a3140
test al, al
jne 0x4a3d18
mov ecx, edi
call fcn.0040d260
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4a3e5e
mov ecx, edi
call fcn.00403fa0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4a3da2
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4a3dc5
mov eax, ebx
cmp ecx, 8
jb 0x4a3dbb
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4a3e4e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00428a10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040d260
test eax, eax
je 0x4a3e3f
lea ecx, [ebp - 0x28]
call fcn.004a2f30
test al, al
jne 0x4a3e3f
push 0
lea ecx, [ebp - 0x28]
call fcn.00403b40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a3e3f
lea ecx, [ebp - 0x40]
call fcn.00403c50
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004d53c0
test al, al
je 0x4a3e33
push 0
lea ecx, [ebp - 0x40]
call fcn.00403b40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403bb0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4a3d96
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004a2f30
test al, al
jne 0x4a3eb2
push 0
mov ecx, edi
call fcn.00403b40
push eax
call ebx
test eax, eax
jne 0x4a3eb2
lea ecx, [ebp - 0x40]
call fcn.00403c50
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004d53c0
test al, al
je 0x4a3ea3
push 0
lea ecx, [ebp - 0x40]
call fcn.00403b40
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403bb0
mov ecx, edi
call fcn.004a3140
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.0053c439
mov esp, ebp
pop ebp
ret
Function at 0x4a58f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x60a070]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.0040d270
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.00540030
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4a594c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0053c439
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4a5934
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00404680
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004040c0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0053c439
add esp, 0x418
ret
Function at 0x4a72b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5f5cb0
push 0x53ed80
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x60a070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0040d270
mov ecx, edi
call fcn.004a73d0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a7343
test bl, bl
jne 0x4a73b2
cmp edi, 0x1a
jne 0x4a73b2
mov ecx, esi
call fcn.0040d270
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00540030
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00404680
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004040c0
mov ecx, esi
call fcn.0040d260
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0053c439
mov esp, ebp
pop ebp
ret
Function at 0x4ad5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4ad5db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ae650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4ad5fd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4ad5ff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4ad683
jg 0x4ad614
test esi, esi
je 0x4ad683
test ecx, ecx
jl 0x4ad65d
jg 0x4ad61e
test eax, eax
je 0x4ad65d
cmp edi, ecx
jg 0x4ad632
jl 0x4ad628
cmp esi, eax
jae 0x4ad632
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0053f530
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4ad660
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4ad683
jg 0x4ad66a
test esi, esi
je 0x4ad683
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4ad683
push eax
push esi
push 1
push edx
call fcn.0055c69e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc