joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f145
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x445e4c
call fcn.00441920
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
lea edx, [esi + 0x3c]
call fcn.0041f0be
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0xc]
call fcn.0040315e
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00428aef
pop ecx
lea edx, [esi + 0x40]
lea ecx, [ebp - 0x18]
call fcn.0041f118
push eax
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 1
call fcn.0040315e
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00428aef
pop ecx
lea edx, [esi + 0x44]
lea ecx, [ebp - 0x24]
call fcn.0041f0eb
push eax
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 2
call fcn.0040315e
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call fcn.00428aef
pop ecx
push dword [0x45af4c]
lea ecx, [esi + 0x30]
call fcn.00404611
push 0x11
pop ecx
call fcn.0041fd9a
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x48], eax
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41fd9a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 4], 0
je 0x41fe04
push 0x4008
lea eax, [ebp - 0x168]
push 0x160
push eax
push 0x80
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x41fdfc
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x164]
leave
ret
xor eax, eax
leave
ret

Function at 0x41fe2a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
cmp byte [0x45c72c], 0
push esi
mov esi, edx
jne 0x41fe84
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004288bb
mov eax, dword [eax]
lea ecx, [ebp - 0x16c]
push 0x4010
push 0x160
or esi, 0x80
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.00428aef
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0x168]
mov dword [eax], ecx
mov eax, esi
jmp 0x41feaa
push 0x4010
lea eax, [ebp - 0x2c0]
mov edx, esi
push 0x2b4
push eax
or dl, 0x80
call fcn.0041feaf
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2bc]
mov dword [ecx], edx
pop esi
leave
ret 4
Function at 0x41fecb
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x445ff4
call fcn.00441920
sub esp, 0x42c
cmp byte [0x45c72c], 0
push esi
mov esi, edx
jne 0x41ff66
and byte [ebp - 0x74], 0
mov edx, ecx
lea ecx, [ebp - 0x18]
call fcn.00402f4d
mov eax, dword [eax]
lea ecx, [ebp - 0x184]
push 0x4410
push 0x160
or esi, 0x80
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov esi, eax
push dword [ebp - 0x18]
call fcn.00428aef
pop ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404670
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00403e2a
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.0040315e
push dword [ebp - 0x24]
call fcn.00428aef
push dword [ebp - 0x18]
call fcn.00428aef
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x180]
jmp 0x41ffa5
mov ecx, dword [ecx]
and word [ebp - 0x224], 0
push 0x4410
lea eax, [ebp - 0x438]
mov edx, esi
push 0x2b4
push eax
or dl, 0x80
call fcn.0041feaf
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x224]
push eax
call fcn.00404611
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x434]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4233eb
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get number of processors

Disassembly:
mov eax, 0x44661a
call fcn.00441920
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 3
xor ebx, ebx
or eax, 0xffffffff
lea ecx, [esi + 0x38]
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004033c8
lea ecx, [esi + 0x44]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004033c8
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], 4
mov dword [esi + 0x50], 0x44a538
lea ecx, [esi + 0x64]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004033c8
lea ecx, [esi + 0x70]
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004033c8
lea ecx, [esi + 0x7c]
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004033c8
lea ecx, [esi + 0x88]
push edi
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004033c8
lea ecx, [esi + 0x94]
call fcn.004416b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x425f18
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4469dc
call fcn.00441920
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, ecx
cmp dword [esi + 4], edi
jne 0x425f3c
or eax, 0xffffffff
jmp 0x426002
cmp dword [ebp + 0xc], 0xffffffff
jne 0x425f45
mov dword [ebp + 0xc], edi
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.004033c8
mov eax, 0x10f
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], eax
jg 0x425f6e
push eax
lea ecx, [ebp - 0x20]
call fcn.004033c8
mov eax, dword [esi]
mov esi, 0x10e
push esi
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp word [edx], di
je 0x425f97
mov eax, edx
inc ecx
inc eax
inc eax
cmp word [eax], di
jne 0x425f8f
cmp dword [ebp - 0x14], edi
mov word [edx + ecx*2], di
mov dword [ebp - 0x1c], ecx
je 0x425fa8
cmp dword [ebp - 0x14], esi
jb 0x425fb3
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040315e
lea eax, [ebp - 0x10]
push 1
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x425ff4
cmp dword [ebp - 0x10], edi
je 0x425ff4
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebx + 0x48]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebx + 0x44]
mov esi, eax
lea ecx, [eax + 1]
mov dword [ebx + 0x44], ecx
jmp 0x425ff7
or esi, 0xffffffff
push dword [ebp - 0x20]
call fcn.00428aef
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x426a1f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, ecx
push 0x11
call esi
mov bx, ax
push 0x12
shr ebx, 0xf
and bl, 1
call esi
shr eax, 0xf
test al, 1
jne 0x426abc
mov eax, dword [ebp + 8]
test bl, bl
mov cx, word [eax + 0xc]
je 0x426a97
cmp cx, 0x41
je 0x426a9d
movzx eax, cx
cmp eax, 0x20
je 0x426a7e
cmp eax, 0x6a
jle 0x426abc
cmp eax, 0x6d
jle 0x426a7e
cmp eax, 0x6f
je 0x426a7e
cmp eax, 0xbb
je 0x426a7e
cmp eax, 0xbd
jne 0x426abc
test bl, bl
jne 0x426abc
xor eax, eax
cmp cx, 0x20
setne al
push eax
mov ecx, edi
call fcn.0042697a
mov al, 1
jmp 0x426abe
cmp cx, 0x6a
jne 0x426a59
push 2
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x426a93
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4277b9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x446c96
call fcn.00441920
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040311b
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0040311b
mov al, byte [edi + 0x18]
lea ecx, [esi + 0x38]
mov byte [esi + 0x18], al
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
lea eax, [edi + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040311b
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.0040311b
mov eax, dword [edi + 0x50]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x50], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4299a6
Capabilities:
Write clipboard data

Disassembly:
mov eax, 0x446ff8
call fcn.00441920
push ecx
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x2002
call fcn.0042c264
test al, al
jne 0x4299d8
xor bl, bl
jmp 0x429a0e
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4299d4
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4299d4
and dword [ebp - 0x10], 0
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042c285
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42a281
Capabilities:
Get common file path

Disassembly:
mov eax, 0x447104
call fcn.00441920
sub esp, 0x32c
cmp byte [0x45c72c], 0
push esi
push edi
mov edi, ecx
jne 0x42a2f7
and byte [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404670
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00428900
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040315e
push dword [ebp - 0x24]
call fcn.00428aef
push dword [ebp - 0x18]
call fcn.00428aef
pop ecx
pop ecx
jmp 0x42a321
and word [ebp - 0x338], 0
lea eax, [ebp - 0x338]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
lea eax, [ebp - 0x338]
push eax
mov ecx, edi
call fcn.00404611
test esi, esi
jbe 0x42a332
cmp esi, 0x104
ja 0x42a332
push 1
pop eax
jmp 0x42a334
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42a473
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x44712c
call fcn.00441920
sub esp, 0x18
cmp byte [0x45c72c], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x42a4b5
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.004288bb
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
push dword [ebp - 0x24]
call fcn.00428aef
test esi, esi
pop ecx
je 0x42a50f
jmp 0x42a4c3
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push ebx
call esi
test eax, eax
je 0x42a4c7
mov al, 1
jmp 0x42a511
xor eax, eax
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.004033c8
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0042bd31
test al, al
je 0x42a506
push edi
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00428aef
test esi, esi
pop ecx
setne al
jmp 0x42a511
push dword [ebp - 0x18]
call fcn.00428aef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42a520
Capabilities:
Delete directory

Disassembly:
mov eax, 0x447140
call fcn.00441920
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x45c72c], bl
push esi
push edi
mov edi, ecx
jne 0x42a55f
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.004288bb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
push dword [ebp - 0x24]
call fcn.00428aef
cmp esi, ebx
pop ecx
je 0x42a5b1
jmp 0x42a56c
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
je 0x42a570
mov al, 1
jmp 0x42a5b3
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004033c8
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0042bd31
test al, al
push dword [ebp - 0x18]
je 0x42a5ab
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00428aef
cmp esi, ebx
pop ecx
setne al
jmp 0x42a5b3
call fcn.00428aef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42a5c2
Capabilities:
Move file

Disassembly:
mov eax, 0x447164
call fcn.00441920
sub esp, 0x34
push ebx
xor ebx, ebx
cmp byte [0x45c72c], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ecx
jne 0x42a621
lea ecx, [ebp - 0x40]
call fcn.004288bb
mov edx, dword [ebp - 0x10]
mov esi, dword [eax]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004288bb
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
push dword [ebp - 0x34]
call fcn.00428aef
push dword [ebp - 0x40]
call fcn.00428aef
pop ecx
cmp esi, ebx
pop ecx
je 0x42a6ac
jmp 0x42a62f
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push ecx
call esi
test eax, eax
je 0x42a633
mov al, 1
jmp 0x42a6ae
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004033c8
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004033c8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, edi
mov byte [ebp - 4], 2
call fcn.0042a413
test al, al
push dword [ebp - 0x1c]
je 0x42a69d
push dword [ebp - 0x28]
call esi
mov esi, eax
push dword [ebp - 0x1c]
call fcn.00428aef
push dword [ebp - 0x28]
call fcn.00428aef
pop ecx
cmp esi, ebx
pop ecx
setne al
jmp 0x42a6ae
call fcn.00428aef
push dword [ebp - 0x28]
call fcn.00428aef
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42a6bd
Capabilities:
Create directory

Disassembly:
mov eax, 0x447178
call fcn.00441920
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x45c72c], bl
push esi
push edi
mov edi, ecx
jne 0x42a6fe
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.004288bb
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
push dword [ebp - 0x24]
call fcn.00428aef
cmp esi, ebx
pop ecx
je 0x42a762
jmp 0x42a70c
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
test eax, eax
je 0x42a710
mov al, 1
jmp 0x42a764
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42a762
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004033c8
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0042bd31
test al, al
je 0x42a759
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00428aef
cmp esi, ebx
pop ecx
setne al
jmp 0x42a764
push dword [ebp - 0x18]
call fcn.00428aef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42af4f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4472ac
call fcn.00441920
sub esp, 0x32c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x45c72c], bl
jne 0x42afcd
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x12c], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404670
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00428900
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040315e
push dword [ebp - 0x24]
call fcn.00428aef
push dword [ebp - 0x18]
call fcn.00428aef
pop ecx
pop ecx
jmp 0x42aff6
lea eax, [ebp - 0x338]
mov word [ebp - 0x338], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x338]
push eax
mov ecx, esi
call fcn.00404611
cmp edi, ebx
jbe 0x42b007
cmp edi, 0x104
ja 0x42b007
push 1
pop eax
jmp 0x42b009
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42b961
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4473b0
call fcn.00441920
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.0042893e
xor ebx, ebx
cmp byte [0x45c72c], bl
jne 0x42ba5f
mov ecx, dword [ebp - 0x10]
call fcn.0042893e
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x42bb1e
push 3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.00403515
cmp edi, dword [ebp - 0x3c]
mov dword [ebp - 4], ebx
jl 0x42b9c7
push edi
lea ecx, [ebp - 0x44]
call fcn.00403515
push dword [ebp - 0x44]
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x42ba4f
cmp esi, edi
ja 0x42ba4f
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403515
xor edi, edi
cmp esi, ebx
mov byte [ebp - 4], 1
jbe 0x42ba40
mov eax, dword [ebp - 0x44]
mov al, byte [edi + eax]
cmp al, bl
mov byte [ebp - 0x14], al
jne 0x42ba30
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00428900
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004032e6
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.00428aef
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
pop ecx
mov byte [eax], bl
jmp 0x42ba3b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00412711
inc edi
cmp edi, esi
jb 0x42b9f4
cmp dword [ebp - 0x1c], ebx
push dword [ebp - 0x20]
sete bl
call fcn.00428aef
pop ecx
push dword [ebp - 0x44]
call fcn.00428aef
pop ecx
mov al, bl
jmp 0x42bb20
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x42bb1e
push 3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.004033c8
cmp edi, dword [ebp - 0x30]
mov dword [ebp - 4], 3
jl 0x42ba9b
push edi
lea ecx, [ebp - 0x38]
call fcn.004033c8
push dword [ebp - 0x38]
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x42bb15
cmp esi, edi
ja 0x42bb15
push 3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.004033c8
xor edi, edi
cmp esi, ebx
mov byte [ebp - 4], 4
jbe 0x42baf9
mov eax, dword [ebp - 0x38]
mov ax, word [eax + edi*2]
cmp ax, bx
jne 0x42baeb
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004032e6
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
mov word [eax], bx
jmp 0x42baf4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040319c
inc edi
cmp edi, esi
jb 0x42bac8
cmp dword [ebp - 0x28], ebx
push dword [ebp - 0x2c]
sete bl
call fcn.00428aef
push dword [ebp - 0x38]
call fcn.00428aef
pop ecx
jmp 0x42ba57
push dword [ebp - 0x38]
call fcn.00428aef
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42bbb3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4473dc
call fcn.00441920
sub esp, 0x240
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [ebp - 0x10], ecx
mov word [eax], cx
mov bx, word [esi]
cmp bx, cx
je 0x42bbeb
mov eax, esi
inc dword [ebp - 0x10]
inc eax
inc eax
cmp word [eax], cx
jne 0x42bbe1
cmp dword [ebp - 0x10], 1
jl 0x42bd13
cmp bx, 0x5c
je 0x42bd13
cmp bx, 0x2e
jne 0x42bc1f
cmp dword [ebp - 0x10], 1
je 0x42bd13
cmp dword [ebp - 0x10], 2
jne 0x42bc1f
cmp word [esi + 2], bx
je 0x42bd13
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push 3
lea ecx, [ebp - 0x1c]
call fcn.004033c8
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 3
jle 0x42bc62
cmp word [esi + 2], 0x3a
jne 0x42bc62
cmp word [esi + 4], 0x5c
jne 0x42bc62
cmp bx, 0x61
jb 0x42bc56
cmp bx, 0x7a
jbe 0x42bcb6
cmp bx, 0x41
jb 0x42bc62
cmp bx, 0x5a
jbe 0x42bcb6
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x24c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42bd24
cmp eax, 0x104
ja 0x42bd24
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404611
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x42bcb6
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.0040319c
push str.__
lea ecx, [ebp - 0x34]
call fcn.004030ba
lea ecx, [ebp - 0x1c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040359c
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00409a30
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040315e
push dword [ebp - 0x28]
call fcn.00428aef
push dword [ebp - 0x40]
call fcn.00428aef
push dword [ebp - 0x34]
call fcn.00428aef
push dword [ebp - 0x1c]
call fcn.00428aef
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x1c]
call fcn.00428aef
pop ecx
xor al, al
jmp 0x42bd15

Function at 0x42be41
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x42be62
cmp byte [ecx + 5], 0
je 0x42be62
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x42bea1
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42be83
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42be83
xor al, al
jmp 0x42bea3
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00441be0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4