joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473b60
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x473c08
cmp word [ebx + 0x18], 0
je 0x473c08
cmp word [ebx + 0x14], 0
je 0x473c08
cmp word [ebx + 0x16], 0
je 0x473c08
cmp dword [ebp + 0xc], 0
je 0x473c08
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x473c07
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x473c07
cmp dword [ebp + 0x18], 0
je 0x473c07
push esi
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00443ce0
mov esi, eax
add esp, 8
test esi, esi
je 0x473c06
mov edx, dword [ebp + 0xc]
push edi
push edx
push esi
mov dword [ebp + 8], edi
call fcn.0050b730
mov ecx, dword [ebx + 0xc]
add esp, 0xc
lea eax, [ebp + 8]
push eax
push esi
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x473bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x473c06
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov dword [ebp - 4], 1
mov byte [eax + esi], 0
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x477540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53fd1a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.00528a49
mov dword [esp + 0x20], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x20], 6
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4775e9
lea eax, [esp + 0x28]
mov dword [esp + 0x28], str.bad_locale_name
push eax
lea ecx, [esp + 0x10]
call fcn.00506cc3
push 0x591bd4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], vtable.std::runtime_error.0
push eax
call fcn.0053e44f
push eax
push esi
call fcn.0052874b
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x4823a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5c
jne 0x48246c
cmp word [edi + 2], 0x5c
jne 0x48246c
lea eax, [edi + 4]
push 0x5c
push eax
call fcn.00507a9b
add esp, 8
test eax, eax
je 0x482511
add eax, 2
push 0x5c
push eax
call fcn.00507a9b
mov esi, eax
add esp, 8
test esi, esi
je 0x482511
lea ecx, [esi + 2]
mov dword [esp + 0x20], 7
sub ecx, edi
mov dword [esp + 0x1c], 0
sar ecx, 1
xor eax, eax
push ecx
push edi
lea ecx, [esp + 0x14]
mov word [esp + 0x14], ax
call fcn.0047c530
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x48243b
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
sete bl
cmp dword [esp + 0x20], 8
jb 0x48245b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48245b
push eax
call fcn.005074d4
add esp, 4
test bl, bl
jne 0x482511
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edi, [esi + 2]
cmp word [edi], 0
je 0x4824fb
push 0x5c
push edi
call fcn.00507a9b
mov esi, eax
add esp, 8
test esi, esi
je 0x482511
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
lea ecx, [esp + 0xc]
lea eax, [esi + 2]
mov dword [esp + 0x1c], 0
sub eax, edi
sar eax, 1
push eax
push edi
call fcn.0047c530
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4824c3
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
sete bl
cmp dword [esp + 0x20], 8
jb 0x4824e3
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4824e3
push eax
call fcn.005074d4
add esp, 4
test bl, bl
jne 0x482511
cmp word [esi + 2], 0
lea edi, [esi + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jne 0x482476
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret 4

Function at 0x483f10
Capabilities:
Get file attributes

Disassembly:
sub esp, 8
push esi
push 0x104
push ecx
lea ecx, [esp + 0xc]
call fcn.00483d00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x483f3e
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x483f50
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push esi
push edi
push 0x104
mov esi, ecx
lea ecx, [esp + 0x14]
push edx
call fcn.00483d00
push 0x104
push esi
lea ecx, [esp + 0x10]
mov edi, dword [eax]
call fcn.00483d00
push dword [esp + 0x1c]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x483f97
push eax
call fcn.005074d4
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x483fa8
push eax
call fcn.005074d4
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x485a10
Capabilities:
Access peb ldr_data
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x541048
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x58], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0xc]
lea ecx, [esp + 0x30]
cmp ax, 9
jne 0x485a8b
push 3
push 0x56b4b8
call fcn.0047c530
jmp 0x485ab5
test ax, ax
jne 0x485a9e
push 3
push 0x56b4c0
call fcn.0047c530
jmp 0x485ab5
cmp ax, 6
jne 0x485aab
push str.ia64
jmp 0x485ab0
push str.Unknown_architecture
call fcn.0047c630
add esi, 4
mov ecx, esi
push 3
push 0x56b4b8
push dword [ecx + 0x10]
push ecx
call fcn.004859a0
test eax, eax
jne 0x485b04
push 3
push 0x56b4c0
push dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.004859a0
test eax, eax
je 0x485b7f
push 4
push str.ia64
push dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.004859a0
test eax, eax
je 0x485b7f
push 3
push 0x56b4c0
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.004859a0
test eax, eax
jne 0x485b45
push 3
push 0x56b4b8
push dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.004859a0
test eax, eax
je 0x485b7f
mov edx, str.ia64
lea ecx, [esp + 0x30]
call fcn.00485900
test al, al
jne 0x485b7f
push 4
push str.ia64
push dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.004859a0
test eax, eax
jne 0x485b83
mov edx, 0x56b4b8
lea ecx, [esp + 0x30]
call fcn.00485900
test al, al
jne 0x485b7f
mov edx, 0x56b4c0
lea ecx, [esp + 0x30]
call fcn.00485900
test al, al
je 0x485b83
xor bl, bl
jmp 0x485b85
mov bl, 1
cmp dword [esp + 0x44], 8
jb 0x485b9d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x485b9d
push eax
call fcn.005074d4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret

Function at 0x485bc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54107b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x56a67c
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
call fcn.004939e0
call fcn.00493cc0
call fcn.00494300
mov ecx, esi
call fcn.00493970
mov dword [esi], 0x570f4c
xor eax, eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], 0
mov word [esi + 0x34], ax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x488eb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
cmp dword [eax + 0x14], 8
jb 0x488edb
mov eax, dword [eax]
push eax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
push str.CatalogFile
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x488f6a
cmp word [esp + 4], 0
jne 0x488f2d
xor ecx, ecx
lea eax, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.0047c530
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00506c7d
add esp, 0x20c
ret 8
lea ecx, [esp + 4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488f34
sub ecx, edx
lea eax, [esp + 4]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0047c530
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00506c7d
add esp, 0x20c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00506c7d
add esp, 0x20c
ret 8
Function at 0x493970
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 4]
lea ecx, [esi + 4]
cmp ax, 9
jne 0x4939a0
push 3
push 0x56b4b8
call fcn.0047c530
pop esi
add esp, 0x24
ret
test ax, ax
jne 0x4939b6
push 3
push 0x56b4c0
call fcn.0047c530
pop esi
add esp, 0x24
ret
cmp ax, 6
jne 0x4939cb
push str.ia64
call fcn.0047c630
pop esi
add esp, 0x24
ret
push str.Unknown_architecture
call fcn.0047c630
pop esi
add esp, 0x24
ret

Function at 0x495160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
movzx eax, word [str._INSTALL_PATH]
neg eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
sbb eax, eax
and eax, 0xd
push eax
push str._INSTALL_PATH
call fcn.0047c530
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push esi
call fcn.004f4b90
cmp dword [esp + 0x24], 8
jb 0x4951fe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4951fe
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret

Function at 0x495220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
movzx eax, word [str._CONTENT_PATH]
neg eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
sbb eax, eax
and eax, 0xd
push eax
push str._CONTENT_PATH
call fcn.0047c530
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push esi
call fcn.004f4b90
cmp dword [esp + 0x24], 8
jb 0x4952be
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4952be
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
Function at 0x4952e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
movzx eax, word [str._REALTIME_SCAN_SD]
neg eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
sbb eax, eax
and eax, 0x11
push eax
push str._REALTIME_SCAN_SD
call fcn.0047c530
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push esi
call fcn.004f4b90
cmp dword [esp + 0x24], 8
jb 0x49537e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49537e
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret

Function at 0x4953a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
movzx eax, word [str._CONFIG_SD]
neg eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
sbb eax, eax
and eax, 0xa
push eax
push str._CONFIG_SD
call fcn.0047c530
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push esi
call fcn.004f4b90
cmp dword [esp + 0x24], 8
jb 0x49543e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49543e
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret

Function at 0x495460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
movzx eax, word [str._PRODUCT_GUID]
neg eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
sbb eax, eax
and eax, 0xd
push eax
push str._PRODUCT_GUID
call fcn.0047c530
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push esi
call fcn.004f4b90
cmp dword [esp + 0x24], 8
jb 0x4954fe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4954fe
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
Function at 0x4971c0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5430c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [esp + 8], esi
mov word [esi], ax
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], eax
call fcn.004f4090
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 1
call fcn.004f3b20
mov byte [esp + 0x48], 2
cmp dword [esp + 0x34], 0
je 0x497264
cmp dword [esp + 0x1c], 0
je 0x497264
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x497245
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x497264
lea eax, [esp + 0x24]
cmp esi, eax
je 0x497264
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0047c410
cmp dword [esp + 0x20], 8
jb 0x49727c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49727c
push eax
call fcn.005074d4
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
cmp dword [esp + 0x38], 8
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
jb 0x4972ab
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4972ab
push eax
call fcn.005074d4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00506c7d
add esp, 0x44
ret
Function at 0x4a1080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x544567
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [edi], 0x572134
mov dword [edi + 0x60], 0x56a6f8
mov dword [esp + 0x1c], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0xc], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x56a70c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0047c2c0
mov dword [esp + 0x1c], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x572168
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0047dab0
lea eax, [esi + 4]
mov dword [esi], 0x57216c
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x59e560]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x4a2200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x544648
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x4a2355
cmp byte [edi + 0x45], 0
je 0x4a2355
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4a2260
xor al, al
jmp 0x4a2357
mov ecx, 0xf
mov byte [esp + 0x18], 0
xor eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x4a2289
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x18]
lea esp, [esp]
cmp dword [esp + 0x2c], 0x10
mov ebx, eax
jae 0x4a22af
lea ebx, [esp + 0x18]
mov eax, ebx
mov ecx, dword [edi + 0x40]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
add edx, ebx
mov esi, dword [ecx]
push edx
push eax
lea eax, [edi + 0x48]
push eax
call dword [esi + 0x20]
sub eax, 0
je 0x4a22dd
dec eax
je 0x4a22e1
sub eax, 2
mov eax, dword [esp + 0x18]
je 0x4a233b
xor bl, bl
jmp 0x4a233d
mov byte [edi + 0x45], 0
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
mov ecx, eax
jae 0x4a22f2
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x4a231c
cmp dword [esp + 0x2c], 0x10
jae 0x4a2305
lea eax, [esp + 0x18]
push dword [edi + 0x50]
push esi
push 1
push eax
call fcn.00509811
add esp, 0x10
cmp esi, eax
mov eax, dword [esp + 0x18]
jne 0x4a22d9
cmp byte [edi + 0x45], 0
je 0x4a233b
test esi, esi
jne 0x4a22a0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0048e750
jmp 0x4a2295
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4a2351
test eax, eax
je 0x4a2351
push eax
call fcn.005074d4
add esp, 4
mov al, bl
jmp 0x4a2357
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
Function at 0x4a2dc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x544708
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
push 2
push 0x5721d0
lea ecx, [esp + 0x284]
mov dword [esp + 0x27c], 0
xor esi, esi
call fcn.00482560
cmp dword [esp + 0x290], 8
mov eax, dword [esp + 0x27c]
jae 0x4a2e32
lea eax, [esp + 0x27c]
push 0x104
push eax
lea ecx, [esp + 0x18]
call fcn.00483d00
lea ecx, [esp + 0x18]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a2e61
push eax
call fcn.005074d4
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x18]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x4a2e67
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 2
setbe bl
cmp dword [esp + 0x290], 8
jb 0x4a2e9f
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x4a2e9f
push eax
call fcn.005074d4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00506c7d
add esp, 0x268
ret

Function at 0x4a37d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5448fb
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x45], 0
mov esi, 4
mov dword [ebp - 4], 0
call fcn.004f3b20
cmp dword [ebp - 0x1c], 0
je 0x4a3834
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4a382b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 4
sete bl
cmp dword [ebp - 0x18], 8
jb 0x4a3938
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a3938
push eax
call fcn.005074d4
add esp, 4
jmp 0x4a3938
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 - 0x14]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
Function at 0x4a92e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0x10], 0x22c
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
test esi, esi
je 0x4a934a
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, edi
cmp ebp, dword [esp + 0x18]
jne 0x4a933e
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x4a934a
lea eax, [esp + 0x10]
push eax
push ebx
call esi
test eax, eax
jne 0x4a9330
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00506c7d
add esp, 0x230
ret