joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050db
Capabilities:
Create directory

Disassembly:
push 0x84
mov eax, 0x4cfcce
call fcn.004a9c2e
mov edi, ecx
call fcn.004077fa
xor ebx, ebx
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
inc ebx
mov dword [ebp - 0x10], eax
cmp esi, ebx
je 0x405126
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405115
mov al, bl
jmp 0x405215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4051c3
test esi, esi
je 0x4051c3
lea ecx, [ebp - 0x20]
call fcn.00402b1a
xor esi, esi
lea edx, [ebp - 0x20]
cmp dword [ebp - 0x14], ebx
mov ecx, edi
mov dword [ebp - 4], esi
setne al
movzx eax, al
push eax
call fcn.00407c3e
pop ecx
test al, al
je 0x4051b6
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4051aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405173
xor bl, bl
jmp 0x4051aa
lea ecx, [ebp - 0x58]
call fcn.00405bdd
lea ecx, [ebp - 0x30]
call fcn.00402b1a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
push dword [ebp - 0x20]
call fcn.00405c74
test al, al
jne 0x405199
xor bl, bl
jmp 0x4051a1
mov eax, dword [ebp - 0x38]
shr eax, 4
and bl, al
push dword [ebp - 0x30]
call fcn.004a8d17
pop ecx
push dword [ebp - 0x20]
call fcn.004a8d17
mov al, bl
jmp 0x405214
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.004a8d17
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4051d4
xor al, al
jmp 0x405215
lea ecx, [ebp - 0x90]
call fcn.00405bdd
lea ecx, [ebp - 0x68]
call fcn.00402b1a
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 2
call fcn.00405c74
test al, al
je 0x405209
mov eax, dword [ebp - 0x70]
shr eax, 4
and al, bl
mov byte [ebp - 0x10], al
push dword [ebp - 0x68]
call fcn.004a8d17
mov al, byte [ebp - 0x10]
pop ecx
call fcn.004a9bf7
ret

Function at 0x40562d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00402c5d
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.004a8d06
leave
ret
Function at 0x405bfe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x4cfc42
call fcn.004a9c2e
mov edi, ecx
call fcn.004077fa
mov esi, eax
cmp esi, 1
je 0x405c24
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405c6e
test esi, esi
je 0x405c6b
lea ecx, [ebp - 0x18]
call fcn.00402b1a
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00407c3e
pop ecx
push dword [ebp - 0x18]
test al, al
je 0x405c65
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004a8d17
pop ecx
mov eax, esi
jmp 0x405c6e
call fcn.004a8d17
pop ecx
or eax, 0xffffffff
call fcn.004a9bf7
ret

Function at 0x406329
Capabilities:
Get disk information

Disassembly:
push 0x24
mov eax, 0x4cfe83
call fcn.004a9c2e
mov eax, ecx
mov dword [ebp - 0x1c], eax
call fcn.00401b91
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x406359
xor al, al
jmp 0x4063ff
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a8e36
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4063f6
cmp edi, dword [ebp - 0x18]
ja 0x4063f6
lea ecx, [ebp - 0x30]
call fcn.00402b1a
mov byte [ebp - 4], 1
mov edx, ebx
mov dword [ebp - 0x18], edx
mov ecx, ebx
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x4063e8
push 2
pop eax
mov dword [ebp - 0x14], eax
cmp word [esi + eax - 2], bx
jne 0x4063d7
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402c5d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401bdc
mov eax, dword [ebp - 0x14]
mov edx, eax
mov ecx, dword [ebp - 0x10]
inc ecx
add eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, edi
jb 0x4063a9
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x30]
cmp edx, edi
sete bl
call fcn.004a8d17
pop ecx
push esi
call fcn.004a8d17
pop ecx
mov al, bl
call fcn.004a9bf7
ret

Function at 0x4064d4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
je 0x4064f6
cmp byte [ecx + 5], 0
je 0x4064f6
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], eax
mov al, 1
jmp 0x40652d
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406518
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406518
xor al, al
jmp 0x40652c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x4069c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
and dword [ebx], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp esi, edx
mov eax, esi
push 0
cmova eax, edx
and dword [ebp + 0x10], 0
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x406a1b
test ecx, ecx
je 0x406a17
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x4069e1
mov al, 1
jmp 0x406a1d
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4075ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00402c5d
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.004a8d06
leave
ret

Function at 0x407e90
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.GetDiskFreeSpaceExW
push 0x4efff8
mov esi, edx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x407ef0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 8]
call eax
test eax, eax
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
setne byte [ebp - 1]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x407f11
xor al, al
jmp 0x407f4f
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x18]
cmp byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x407f4d
mov eax, edx
mul dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0xc]
add ecx, edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [esi + 4]
mul dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [esi]
mul dword [ebp - 0x10]
add ecx, edx
mov dword [edi], eax
mov dword [edi + 4], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40840d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x88
mov eax, 0x4d0009
call fcn.004a9c2e
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
call fcn.004083ee
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00402b61
push 0x22
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.00402b3e
mov esi, eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402eda
push 0x22
lea ecx, [ebp - 0x1c]
call fcn.00401b13
push 0x20
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.004083ab
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
push dword [ecx + 4]
push dword [ecx]
lea ecx, [ebp - 0x34]
push dword [eax + 4]
push dword [eax]
call fcn.00402a7d
push dword [ebp - 0x50]
call fcn.004a8d17
push dword [ebp - 0x1c]
call fcn.004a8d17
mov byte [ebp - 4], 6
push dword [ebp - 0x28]
call fcn.004a8d17
add esp, 0xc
mov dword [ebp - 0x94], 0x44
xor eax, eax
mov dword [ebp - 0x90], edi
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x8c], edi
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x88], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x34]
mov dword [ebp - 0x68], edi
push edi
mov dword [ebp - 0x60], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4084f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x408507
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
mov dword [ebx], eax
push dword [ebp - 0x34]
call fcn.004a8d17
pop ecx
mov eax, edi
call fcn.004a9bf7
ret 0xc

Function at 0x408f21
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov edx, dword [edi + 4]
test edx, edx
je 0x408f51
mov ecx, dword [edi]
mov eax, dword [ecx]
inc ebx
lea ecx, [ecx + 4]
mov eax, dword [eax + 4]
add ebx, eax
sub edx, 1
jne 0x408f3e
mov dword [ebp - 0xc], ebx
xor esi, esi
test ebx, ebx
je 0x408f70
xor ecx, ecx
mov eax, ebx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a8e36
pop ecx
mov esi, eax
xor ecx, ecx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
cmp dword [edi + 4], ecx
jbe 0x408fb3
mov ebx, edi
mov eax, dword [ebx]
mov ecx, dword [eax + ecx*4]
mov edi, dword [ecx + 4]
inc edi
lea eax, [edi + edi]
push eax
push dword [ecx]
lea eax, [esi + edx*2]
push eax
call fcn.004abb00
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [ebp - 8]
add edx, edi
inc ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 4]
jb 0x408f81
mov ebx, dword [ebp - 0xc]
lea eax, [ebx + ebx]
push eax
mov eax, dword [ebp - 0x10]
push esi
push 3
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call fcn.004a8d17
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409208
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
xor edx, edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], edx
push ecx
push edx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edx
push ecx
push edx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4092a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4092a5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push dword [ebp - 8]
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea ecx, [ecx*2 + 2]
push ecx
push 8
call ebx
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
test esi, esi
pop esi
pop ebx
je 0x4092a5
mov eax, dword [ebp - 0xc]
leave
ret
xor eax, eax
leave
ret

Function at 0x4092a9
Capabilities:
Get session user name
Manipulate user privileges

Disassembly:
push 0x330
mov eax, 0x4d0080
call fcn.004a9c62
xor ebx, ebx
mov dword [ebp - 0x318], ebx
lea eax, [ebp - 0x318]
mov dword [ebp - 4], ebx
push eax
push 0xf0fff
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x33c], 0x18
push eax
push ebx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x328], ebx
call dword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x4093cd
push 0xb
pop ecx
push 0xd4
lea eax, [ebp - 0xe4]
mov esi, str.SeLockMemoryPrivilege
lea edi, [ebp - 0x110]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004ab9a0
lea ecx, [ebp - 0x110]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40933b
sub ecx, edx
mov dword [ebp - 0x31c], 0x100
sar ecx, 1
lea eax, [ecx + ecx]
mov word [ebp - 0x324], ax
add eax, 2
mov word [ebp - 0x322], ax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4093cd
lea ecx, [ebp - 0x314]
call fcn.00409208
mov esi, eax
test esi, esi
je 0x4093cd
xor edi, edi
lea eax, [ebp - 0x324]
inc edi
push edi
push eax
push esi
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
movzx ebx, bl
push esi
push 0
cmove ebx, edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x318], 0
je 0x4093e2
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_LsaClose]
mov al, bl
call fcn.004a9c0c
ret
Function at 0x40973d
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x68], 0x40
push str.GlobalMemoryStatusEx
push 0x4efff8
and dword [esi + 4], 0
mov dword [esi], SysReAllocStringLen
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40979f
lea ecx, [ebp - 0x68]
push ecx
call eax
test eax, eax
je 0x40979f
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004097cf
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x4097be
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
cmovb eax, dword [ebp - 0xc]
and dword [esi + 4], 0
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.004a8d06
leave
ret

Function at 0x40a954
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40a962
and dword [esi], 0
mov eax, dword [ebp + 0x10]
xor edx, edx
inc edx
test eax, eax
je 0x40a9a4
push 0
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp + 0x14]
add dword [ecx + 8], eax
adc dword [ecx + 0xc], 0
test esi, esi
je 0x40a9a4
add dword [esi], eax
test edx, edx
setne cl
call fcn.0040a22e
pop esi
pop ebp
ret 0x10
Function at 0x418577
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push edi
push edi
call fcn.004af3aa
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4185a3
call fcn.00401a66
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x41aa6c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
push str.CreateDecoder
mov esi, dword [eax + edx*4 - 4]
mov dword [esp + 0x1c], esi
push dword [esi + 0xc]
call edi
push str.CreateEncoder
push dword [esi + 0xc]
mov dword [esi + 0x24], eax
call edi
push str.GetMethodProperty
push dword [esi + 0xc]
mov dword [esi + 0x28], eax
call edi
xor edi, edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x41abc5
push str.GetNumberOfMethods
push dword [esi + 0xc]
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41aae8
lea ecx, [esp + 0x14]
push ecx
call eax
test eax, eax
jne 0x41ac0b
mov ecx, edi
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], ecx
jbe 0x41abc5
mov eax, dword [ebx + 0x10]
mov edx, ecx
dec eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 3
call fcn.0041a9e9
add esp, 0xc
test eax, eax
jne 0x41ac0b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x25]
mov ecx, dword [esi + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push 2
call fcn.0041a9e9
add esp, 0xc
test eax, eax
jne 0x41ac0b
mov ecx, dword [ebx + 0x48]
cmp dword [ebx + 0x44], ecx
jne 0x41ab99
mov eax, ecx
lea edi, [ecx + 1]
shr eax, 2
xor ecx, ecx
add edi, eax
push 0x2c
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a8e36
mov esi, eax
mov eax, dword [ebx + 0x44]
pop ecx
test eax, eax
je 0x41ab8a
imul ecx, eax, 0x2c
push ecx
push dword [ebx + 0x40]
push esi
call fcn.004abb00
add esp, 0xc
push dword [ebx + 0x40]
call fcn.004a8d17
pop ecx
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x48], edi
imul edi, dword [ebx + 0x44], 0x2c
lea esi, [esp + 0x1c]
push 0xb
pop ecx
add edi, dword [ebx + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
inc dword [ebx + 0x44]
inc ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x14]
jb 0x41aaf8
xor edi, edi
push str.GetHashers
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ac09
add esi, 0x30
push esi
call eax
test eax, eax
jne 0x41ac0b
mov ecx, dword [esi]
test ecx, ecx
je 0x41ac09
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x41ac09
lea ecx, [ebx + 0x4c]
mov eax, dword [ebx + 0x10]
dec eax
push edi
push eax
call fcn.0040f916
inc edi
lea ecx, [ebx + 0x4c]
cmp edi, esi
jb 0x41abf6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4257eb
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x4d28d2
call fcn.004a9c2e
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [ebx + 0x10], 0
mov edi, dword [ebx]
je 0x425851
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 3
xor edi, edi
push eax
inc edi
call fcn.00414bdc
mov ebx, dword [ebp - 0x20]
cmp word [ebx + 2], 0x3a
jne 0x425847
cmp word [ebx + 4], 0x5c
jne 0x425847
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x425842
cmp eax, 2
jne 0x425847
mov edi, dword [ebp - 0x10]
mov edi, dword [edi]
push ebx
call fcn.004a8d17
mov ebx, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp + 8]
call fcn.00402fce
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax]
lea ecx, [ecx + edx*2]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402c5d
sub edi, 1
je 0x4258c2
lea ecx, [ebp - 0x20]
sub edi, 1
je 0x425897
call fcn.00402b1a
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.0040562d
test al, al
je 0x4258d6
jmp 0x4258ac
lea eax, [ebx + 4]
push eax
call fcn.00402be8
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00407188
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00402be8
push dword [ebp - 0x20]
call fcn.004a8d17
pop ecx
jmp 0x4258ce
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push esi
call fcn.00414bdc
mov eax, esi
call fcn.004a9bf7
ret
push 0x50be90
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x22995
push eax
call fcn.004ac72b
int3

Function at 0x425d2d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x4d2940
call fcn.004a9c2e
mov esi, ecx
mov edi, 0x514a00
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov edx, str.Options
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00425b18
push esi
mov edx, str.CascadedMenu
lea ecx, [ebp - 0x10]
call fcn.00425b4a
lea eax, [esi + 2]
mov edx, str.MenuIcons
push eax
lea ecx, [ebp - 0x10]
call fcn.00425b4a
lea eax, [esi + 4]
mov edx, str.ElimDupExtract
push eax
lea ecx, [ebp - 0x10]
call fcn.00425b4a
add esp, 0xc
cmp byte [esi + 6], 0
je 0x425dba
mov eax, dword [esi + 8]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.ContextMenu
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x10]
call fcn.00408c9c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004a9bf7
ret
Function at 0x426348
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x4d2a53
call fcn.004a9c2e
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00423843
push eax
lea ecx, [ebp - 0x10]
call fcn.00423599
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00423553
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00428c95
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4263a9
push 0x4effd0
mov ecx, edi
call fcn.0042335e
lea ecx, [esi - 0x10]
jmp 0x4263f9
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.004280aa
cmp ax, 0x5c
je 0x4263cf
mov esi, 0x4f1ffc
push esi
call fcn.00423168
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00428a2f
mov esi, str.6789Zip_
push esi
call fcn.00423168
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00428a2f
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00428c3a
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004238e7
mov eax, edi
call fcn.004a9bf7
ret

Function at 0x426587
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4d2af6
call fcn.004a9c2e
lea ecx, [ebp - 0x14]
call fcn.00426406
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00427fdc
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004238e7
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004238e7
mov eax, esi
call fcn.004a9bf7
ret