joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d290
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x2e8
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp + 0x264], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
cmp eax, 6
je 0x45d2ea
push str.SetDefaultDllDirectories
push 0x4a7ef0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x45d2ea
push 0xc00
call dword [ebp - 0x80]
test eax, eax
je 0x45d2ea
jmp 0x45d3f8
push 0x106
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x45d30b
cmp dword [ebp - 0x78], 0x104
jbe 0x45d310
jmp 0x45d3f8
mov edx, dword [ebp - 0x78]
movzx eax, word [ebp + edx*2 - 0x6e]
cmp eax, 0x5c
je 0x45d333
mov ecx, 0x5c
mov edx, dword [ebp - 0x78]
mov word [ebp + edx*2 - 0x6c], cx
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
mov ecx, dword [str.userenv]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
movsx eax, byte [edx]
test eax, eax
je 0x45d3f8
mov ecx, dword [ebp - 0x78]
lea edx, [ebp + ecx*2 - 0x6c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x7c]
mov cl, byte [eax]
mov byte [ebp - 0x6d], cl
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
movsx eax, byte [ebp - 0x6d]
test eax, eax
jne 0x45d36f
jmp 0x45d385
movzx cx, byte [ebp - 0x6d]
mov edx, dword [ebp - 0x74]
mov word [edx], cx
mov eax, dword [ebp - 0x74]
add eax, 2
mov dword [ebp - 0x74], eax
jmp 0x45d354
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x2e
mov ecx, dword [ebp - 0x74]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 0
mov eax, 0x64
mov ecx, dword [ebp - 0x74]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 1
mov eax, 0x6c
mov ecx, dword [ebp - 0x74]
mov word [ecx + edx], ax
mov edx, 2
imul eax, edx, 3
mov ecx, 0x6c
mov edx, dword [ebp - 0x74]
mov word [edx + eax], cx
mov eax, 2
shl eax, 2
xor ecx, ecx
mov edx, dword [ebp - 0x74]
mov word [edx + eax], cx
push 8
push 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x45d33c
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.0043ace1
add ebp, 0x268
mov esp, ebp
pop ebp
ret
Function at 0x467330
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0x3c6ef372
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0xa54ff53a
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x510e527f
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x9b05688c
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x1f83d9ab
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x5be0cd19
pop ebp
ret 4

Function at 0x4680c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.00443444
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00467fc0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46b3a0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea ecx, [ebp - 8]
call fcn.00402710
mov eax, dword [ebp + 0x10]
push eax
push 0x2002
lea ecx, [ebp - 8]
call fcn.0046fec0
movzx ecx, al
test ecx, ecx
jne 0x46b3da
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
call fcn.00402730
mov al, byte [ebp - 1]
jmp 0x46b470
lea ecx, [ebp - 8]
call fcn.00401380
push eax
lea ecx, [ebp - 0x14]
call fcn.00402780
lea ecx, [ebp - 0x14]
call fcn.00401300
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46b415
mov byte [ebp - 2], 0
lea ecx, [ebp - 0x14]
call fcn.004027b0
lea ecx, [ebp - 8]
call fcn.00402730
mov al, byte [ebp - 2]
jmp 0x46b470
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0043ea90
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004027b0
lea ecx, [ebp - 8]
call fcn.00401380
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x46b459
mov byte [ebp - 3], 0
lea ecx, [ebp - 8]
call fcn.00402730
mov al, byte [ebp - 3]
jmp 0x46b470
lea ecx, [ebp - 8]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 8]
call fcn.00402730
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46c9a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498573
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0046e480
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x46ca02
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
jne 0x46ca02
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x46ca02
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046d0e0
movzx edx, al
test edx, edx
jne 0x46ca02
xor al, al
jmp 0x46ca6b
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x46ca57
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00468900
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.00401380
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012a0
cmp dword [ebp - 0x1c], 0
je 0x46ca55
mov al, 1
jmp 0x46ca6b
jmp 0x46ca69
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46ca69
mov al, 1
jmp 0x46ca6b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x46cd70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4985c9
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x46cdef
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00468900
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00401380
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012a0
cmp dword [ebp - 0x1c], 0
je 0x46cded
mov al, 1
jmp 0x46ce6d
jmp 0x46ce03
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46ce03
mov al, 1
jmp 0x46ce6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46ce14
xor al, al
jmp 0x46ce6d
lea ecx, [ebp - 0x60]
call fcn.00402f00
mov dword [ebp - 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x60]
call fcn.0046dda0
movzx eax, al
test eax, eax
jne 0x46ce50
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00402f30
mov al, byte [ebp - 0xd]
jmp 0x46ce6d
lea ecx, [ebp - 0x60]
call fcn.00402e80
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00402f30
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d0e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49865d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x46d15e
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00468900
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401380
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004012a0
cmp dword [ebp - 0x18], 0
je 0x46d15c
mov al, 1
jmp 0x46d176
jmp 0x46d174
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46d174
mov al, 1
jmp 0x46d176
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x46e480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49878c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x46e4f5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00468900
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.00401380
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012a0
mov eax, dword [ebp - 0x1c]
jmp 0x46e510
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x46e50d
mov eax, dword [ebp - 0x10]
jmp 0x46e510
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x46e840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x46e859
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004026e0
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46ec40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46ec77
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46ec77
xor al, al
jmp 0x46ec94
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00459170
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x471260
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax], SysReAllocStringLen
mov dword [eax + 4], 0
mov dword [ebp - 0x64], 0x40
push str.GlobalMemoryStatusEx
push 0x4a7ef0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4712d3
lea ecx, [ebp - 0x64]
push ecx
call dword [ebp - 0x68]
test eax, eax
je 0x4712d3
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004035b0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
jmp 0x4712fd
mov dword [ebp - 0x24], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004035f0
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ace1
mov esp, ebp
pop ebp
ret 4
Function at 0x4713d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4989d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [0x4b92e1]
test eax, eax
je 0x4714b2
mov ecx, dword [ebp + 8]
call fcn.00401350
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x471446
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x471437
mov dword [ebp - 0x1c], 1
jmp 0x47143e
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
jmp 0x4714f7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401be0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jbe 0x47147d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402800
cmp dword [ebp - 0x14], 0
jne 0x4714ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4714a2
mov dword [ebp - 0x24], 1
jmp 0x4714a9
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
jmp 0x4714f7
mov al, 1
jmp 0x4714f7
lea ecx, [ebp - 0x34]
call fcn.00469de0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00471510
mov byte [ebp - 0xd], al
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046a450
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004012a0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x47bd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x47bd15
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x47bd93
mov dword [ebp - 0xc], 0x8000
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jbe 0x47bd37
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
adc ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x47bd93
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x47bd9f
mov byte [ebp - 1], 1
jmp 0x47bda3
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.0047c540
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47c2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jbe 0x47c2fb
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x47c329
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x47c33e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x47c33e
xor eax, eax
jmp 0x47c358
cmp dword [ebp - 0xc], 0
je 0x47c34a
mov byte [ebp - 1], 1
jmp 0x47c34e
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
call fcn.0047c540
mov esp, ebp
pop ebp
ret 0x10
Function at 0x492fb0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a9f1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0xffffffff
mov dword [edx + 0x2c], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0046a020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0046a020
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0046a020
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.004015b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004109a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.00403ab0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x493620
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x493647
mov dword [ebp - 0x168], 1
jmp 0x493651
mov dword [ebp - 0x168], 0x100
mov ecx, dword [ebp - 0x168]
or ecx, 0x4010
push ecx
push 0x160
lea edx, [ebp - 0x164]
push edx
push 0x90
push 0x4a7f14
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ace1
mov esp, ebp
pop ebp
ret 4
Function at 0x493690
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xffffffffffffffff
push 0x49aa98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b600c]
xor eax, ebp
mov dword [ebp + 0x414], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4b92e1]
test eax, eax
jne 0x493745
mov ecx, dword [ebp + 0x420]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00468900
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x4010
push 0x160
lea ecx, [ebp + 0x2b4]
push ecx
mov edx, dword [ebp + 0x424]
or edx, 0x80
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00401380
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012a0
mov eax, dword [ebp + 0x428]
mov ecx, dword [ebp + 0x2b8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
jmp 0x49377c
push 0x4010
push 0x2b4
lea edx, [ebp]
push edx
mov eax, dword [ebp + 0x424]
or eax, 0x80
push eax
mov ecx, dword [ebp + 0x420]
push ecx
call fcn.004935f0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x428]
mov eax, dword [ebp + 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.0043ace1
add ebp, 0x418
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4939c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49aaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0xd66
mov ecx, dword [ebp - 0x10]
call fcn.00410370
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
lea ecx, [ebp - 0x1c]
call fcn.0046a020
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004713d0
lea ecx, [ebp - 0x1c]
call fcn.00401440
lea eax, [ebp - 0x1c]
push eax
call fcn.0046fe30
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0046a160
mov ecx, dword [ebp - 0x10]
call fcn.0040ef10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004012a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x494230
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x494262
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x494262
xor al, al
jmp 0x49427f
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00459170
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4088c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408960
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x48], 0
je 0x4088fd
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x48]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
jmp 0x408933
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
lea edx, [ebp - 0x404]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrFromPCharLen_qqrr17System_AnsiStringpci
lea eax, [ebp - 4]
mov edx, 0x408978
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_ForceDirectories_qqr17System_AnsiString
push dword [ebp - 4]
push dword [ebx + 0x50]
push 0x408994
mov eax, esi
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408967
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x412838
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x412851
test al, 0x10
jne 0x412855
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret