joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453ddc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x453f21
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
je 0x453f06
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x453e30
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x453e30
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004064a4
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x453e4d
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453e4d
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004064a4
test eax, eax
je 0x453e56
sub eax, 4
mov eax, dword [eax]
cmp word [ebx + eax*2 - 2], 0x5c
je 0x453e6b
lea eax, [ebp - 4]
mov edx, 0x453f40
call fcn.00407550
mov eax, dword [ebp - 4]
test eax, eax
je 0x453e88
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453e88
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004064a4
test eax, eax
je 0x453e91
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x453f02
mov ebx, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x453eb9
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x453eb9
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004064a4
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x453efe
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040791c
mov eax, dword [ebp - 8]
call fcn.004071e0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x453ef8
push 0
push edi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x453efe
jmp 0x453f06
test al, 0x10
jne 0x453efe
jmp 0x453f06
inc ebx
dec esi
jne 0x453e9c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453f28
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret

Function at 0x453f74
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x454014
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [ebp - 5], 0
je 0x453fe6
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x453ffe
test byte [ebp - 0x258], 0x10
setne bl
test bl, bl
jne 0x453fde
lea eax, [ebp - 0x258]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x453fbf
push esi
call sub.kernel32.dll_FindClose_1
jmp 0x453ffe
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x453ffe
test al, 0x10
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45401b
lea eax, [ebp - 4]
call fcn.00407144
ret
Function at 0x454460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
mov eax, dword [ebp - 8]
call fcn.0040713c
xor eax, eax
push ebp
push 0x4544f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00407154
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004071e0
mov edi, eax
push edi
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test ebx, ebx
jbe 0x4544d5
mov eax, esi
mov edx, ebx
call fcn.004074b8
push ebx
mov eax, dword [esi]
call fcn.004071e0
push eax
push edi
call sub.kernel32.dll_GetEnvironmentVariableW
mov edx, ebx
dec edx
mov eax, esi
call fcn.004074b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4544f7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret

Function at 0x454580
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf8
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407154
mov eax, esp
xor ecx, ecx
mov edx, 0x208
call fcn.0040486c
push esp
push 0
push 0
push esi
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x4545d9
push esp
call sub.kernel32.dll_lstrlenW_1
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004074b8
mov eax, ebx
call fcn.00407abc
mov edx, eax
mov ecx, esi
add ecx, ecx
mov eax, esp
call fcn.00404350
add esp, 0x208
pop esi
pop ebx
ret

Function at 0x454654
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x45470a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040486c
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.0040486c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
test edi, edi
jne 0x4546b5
lea esi, [ebp - 0x58]
jmp 0x4546b7
mov esi, edi
push esi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4546f4
test edi, edi
jne 0x4546f2
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454711
lea eax, [ebp - 4]
call fcn.00407144
ret
Function at 0x45471c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
mov eax, dword [ebp - 8]
call fcn.0040713c
xor eax, eax
push ebp
push 0x45482f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.0040486c
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.0040486c
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
test edi, edi
jne 0x45478d
lea esi, [ebp - 0x60]
jmp 0x45478f
mov esi, edi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004071a8
cmp dword [ebp - 8], 0
je 0x4547d0
cmp dword [ebp - 4], 0
je 0x4547c5
push 0x45484c
push dword [ebp - 0xc]
push 0x45485c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004076f4
jmp 0x4547d0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004071a8
push esi
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004071e0
push eax
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x454814
test edi, edi
jne 0x454812
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454836
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040714c
ret

Function at 0x4548a8
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, eax
push edx
push 0x454864
call sub.user32.dll_EnumWindows
push esi
push ebx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4548d5
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret

Function at 0x4548a9
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, eax
push edx
push 0x454864
call sub.user32.dll_EnumWindows
push esi
push ebx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4548d5
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x454a38
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
mov eax, dword [ebp - 8]
call fcn.0040713c
xor eax, eax
push ebp
push 0x454b04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040486c
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x540
mov eax, 0x454b14
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.004071e0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004071e0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW_1
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x44]
call fcn.00436f94
mov ebx, eax
test esi, esi
je 0x454ae9
mov eax, esi
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b0b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret

Function at 0x455230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x4552b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00407144
mov edx, eax
lea eax, [ebp - 4]
call fcn.004551a8
mov eax, dword [ebp - 4]
call fcn.00454ef4
mov esi, eax
test esi, esi
je 0x45529a
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push esi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
push esi
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4552bc
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret
Function at 0x455578
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
mov eax, dword [ebp - 8]
call fcn.0040713c
xor eax, eax
push ebp
push 0x455660
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00407144
mov edx, eax
lea eax, [ebp - 4]
call fcn.004551a8
mov eax, dword [ebp - 4]
call fcn.004550fc
mov ebx, eax
test ebx, ebx
je 0x455645
mov eax, dword [ebp - 8]
test eax, eax
je 0x4555e6
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4555e6
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004064a4
test eax, eax
je 0x4555ef
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x455620
mov eax, dword [ebp - 8]
test eax, eax
je 0x455610
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x455610
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004064a4
test eax, eax
je 0x455619
sub eax, 4
mov eax, dword [eax]
inc eax
mov esi, eax
add esi, esi
jmp 0x455622
xor esi, esi
push esi
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455667
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040714c
ret

Function at 0x455670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x455752
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004062b8
lea eax, [ebp - 8]
call fcn.00407144
mov edx, eax
lea eax, [ebp - 4]
call fcn.004551a8
mov eax, dword [ebp - 4]
call fcn.004550fc
mov ebx, eax
test ebx, ebx
je 0x455737
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [ebp - 0xc], 3
jne 0x455731
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00406c7c
cmp dword [ebp - 0x10], 0
je 0x455731
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00406a80
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455759
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret
Function at 0x455760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
mov eax, dword [ebp - 0xc]
call fcn.004069f8
xor eax, eax
push ebp
push 0x455840
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00407144
mov edx, eax
lea eax, [ebp - 4]
call fcn.004551a8
mov eax, dword [ebp - 4]
call fcn.004550fc
mov ebx, eax
test ebx, ebx
je 0x45581d
cmp dword [ebp - 0xc], 0
jne 0x4557d0
push 0
push 0
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
jmp 0x45581d
lea eax, [ebp - 0xc]
call fcn.00406a80
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4557fa
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x4557fa
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004064d4
mov esi, eax
test esi, esi
je 0x455805
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x10]
push eax
push 3
push 0
mov eax, dword [ebp - 8]
call fcn.004071e0
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455847
lea eax, [ebp - 0xc]
call fcn.004062b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040714c
ret

Function at 0x455f6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
mov eax, dword [ebp - 8]
call fcn.004069f8
xor eax, eax
push ebp
push 0x456084
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x456066
mov eax, dword [ebp - 8]
test eax, eax
je 0x455fe7
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x455fe7
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004064d4
test eax, eax
je 0x455ff0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x456060
mov esi, dword [ebp - 8]
test esi, esi
je 0x456015
mov eax, esi
sub eax, 0xa
cmp word [eax], 1
je 0x456015
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004064d4
mov esi, eax
lea eax, [ebp - 8]
call fcn.00406a80
mov esi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x45603e
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x45603e
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004064d4
mov edi, eax
test edi, edi
je 0x456049
sub edi, 4
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45608b
lea eax, [ebp - 8]
call fcn.004062b8
lea eax, [ebp - 4]
call fcn.00407144
ret
Function at 0x456098
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x456144
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004062b8
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45612e
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 8], eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00406c7c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.00406a80
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45614b
lea eax, [ebp - 4]
call fcn.00407144
ret

Function at 0x456154
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x456231
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406d44
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45621b
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 8], eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.004070c8
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4561df
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x456215
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00406f10
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov eax, dword [esi]
cmp word [eax], 0xfeff
jne 0x456215
mov eax, esi
mov ecx, 1
mov edx, 1
call fcn.0040702c
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456238
lea eax, [ebp - 4]
call fcn.00407144
ret
Function at 0x456240
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040713c
xor eax, eax
push ebp
push 0x45631c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [ebp - 5], 0
je 0x4562b2
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x456306
test byte [ebp - 0x258], 0x10
sete bl
test bl, bl
jne 0x4562aa
lea eax, [ebp - 0x258]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x45628b
push esi
call sub.kernel32.dll_FindClose_1
jmp 0x456306
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004071e0
mov esi, eax
push esi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
setne bl
test bl, bl
je 0x4562e6
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x456306
push esi
call sub.shlwapi.dll_PathFileExistsW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x456306
push esi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x456306
test al, 0x10
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456323
lea eax, [ebp - 4]
call fcn.00407144
ret

Function at 0x457b5c
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x49a4ac]
mov byte [eax], 1
mov edx, dword [0x4568e8]
xor eax, eax
call fcn.00456b78
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x457b4c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x457c9c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x457cb7
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x457cc6
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x459870
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
and dword [ebx + 0x24], 0xefffffff
test dl, dl
je 0x459885
or dword [ebx + 0x24], 0x10000000
cmp dword [ebx + 0x1c], 0
je 0x4598bb
test dl, dl
je 0x4598a4
mov eax, ebx
call dword [0x49833c]
push 5
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4598bb
and byte [ebx + 0x37], 0xfe
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call dword [0x49833c]
pop ebx
ret
Function at 0x468ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x468fdb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
call fcn.004665c0
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00407358
lea eax, [ebx + 4]
mov edx, esi
call fcn.004695b0
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.004695b0
lea eax, [ebx + 0x14]
mov edx, esi
call fcn.004695b0
lea edx, [ebp - 8]
mov eax, esi
call fcn.004665c0
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x1c]
call fcn.00407358
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004665c0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x20]
call fcn.00407358
lea edx, [ebx + 0x24]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004665c0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00407358
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004665c0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x2c]
call fcn.00407358
mov eax, esi
call fcn.00466580
mov dword [ebx + 0x30], eax
mov eax, esi
call fcn.00466580
mov dword [ebx + 0x34], eax
mov eax, esi
call fcn.00466580
mov dword [ebx + 0x38], eax
mov eax, esi
call fcn.00466580
mov dword [ebx + 0x3c], eax
mov eax, esi
call fcn.00466580
mov dword [ebx + 0x40], eax
lea eax, [ebx + 0x44]
mov edx, esi
call fcn.00467a8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468fe2
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004062dc
ret