joyce8/EMBER2024-capa huggingface dataset:
Function at 0x559e27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1030]
mov eax, 0x10b0
call fcn.0040b570
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0x102c], eax
call fcn.00559d79
test al, al
je 0x559f5f
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00408660
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x559e80
xor al, al
jmp 0x559f5e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push edi
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SYSTEMCurrentControlSetControl
mov edi, reloc.WS2_32.dll_bind
push edi
call esi
test eax, eax
jne 0x559ef9
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.SystemStartOptions
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x559ef0
mov eax, dword [ebp - 0x78]
and word [ebp + eax*2 + 0x2c], 0
lea eax, [ebp + 0x2c]
push str._MININT
push eax
call fcn.00570bca
test eax, eax
pop ecx
pop ecx
jne 0x559f3d
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
push ebx
xor ebx, ebx
push ebx
push str.SYSTEMSetup
push edi
call esi
test eax, eax
jne 0x559f53
push 4
pop eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.FactoryPreInstallInProgress
push dword [ebp - 0x74]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x559f4a
cmp dword [ebp - 0x78], ebx
je 0x559f4a
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x559f5c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp word [ebp + 0x28], bx
sete al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp + 0x102c]
xor ecx, ebp
call fcn.0040916a
add ebp, 0x1030
leave
ret
Function at 0x55a0e5
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x1d]
push edi
xor ebp, ebp
xor edi, edi
cmp bl, 0x13
mov cl, al
mov byte [esp + 0x18], cl
je 0x55a142
cmp bl, 0x21
jne 0x55a1ad
cmp al, 0x3d
je 0x55a12f
cmp al, 0x44
jne 0x55a1ad
movzx eax, byte [esi + 0x1c]
dec eax
dec eax
jne 0x55a1ad
movzx eax, word [esi + 0x14]
push eax
movzx eax, word [esi + 0x24]
jmp 0x55a1a3
movzx eax, word [esi + 0x14]
push eax
movzx eax, word [esi + 0x24]
push eax
call fcn.0055ab35
mov edi, eax
jmp 0x55a1ab
cmp cl, 2
jb 0x55a1ad
cmp cl, 3
jbe 0x55a19a
cmp cl, 0x41
jbe 0x55a1ad
cmp cl, 0x44
jbe 0x55a177
cmp cl, 0x48
je 0x55a177
cmp cl, 0x50
je 0x55a16c
cmp cl, 0xff
jne 0x55a1ad
mov edi, 0x774e50
jmp 0x55a1ad
movzx eax, word [esi + 4]
push eax
movzx eax, word [esi + 0x22]
jmp 0x55a138
movzx eax, word [esi + 4]
push eax
movzx eax, word [esi + 0x24]
push eax
call fcn.0055ab35
mov edi, eax
mov al, byte [esi + 0x1d]
cmp al, 0x42
pop ecx
pop ecx
je 0x55a195
cmp al, 0x43
jne 0x55a1ad
mov ebp, dword [edi + 4]
jmp 0x55a1ad
movzx eax, word [esi + 0x10]
push eax
movzx eax, word [esi + 0x22]
push eax
call fcn.0055ab35
mov ebp, eax
pop ecx
pop ecx
push edi
push ebp
xor eax, eax
push esi
push ebx
mov word [esi + 0x30], ax
mov word [esi + 0x2e], ax
mov word [esi + 0x20], ax
call sub.Int86_32.dll__W32Int86_16
cmp bl, 0x13
jne 0x55a1e5
cmp byte [esp + 0x18], 0xff
jne 0x55a1e5
lea eax, [esi + 0x10]
push eax
add esi, 0x22
push esi
push 0x774e50
call fcn.0055ab45
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x55ceaf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
jmp 0x55cef5
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x55cf01
cmp dword [ebp - 4], 0x1000000
jne 0x55ceef
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.0055ce62
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
jb 0x55cec8
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x55dae8
Capabilities:
Get disk information

Disassembly:
push 0x50
mov eax, 0x61e210
call fcn.004091e2
mov edi, dword [ebp + 8]
xor ebx, ebx
push str.getRootDirectories
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], ebx
call fcn.00553ab0
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
mov byte [ebp - 4], 2
call esi
cmp eax, ebx
jmp 0x55db4c
mov eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], eax
call fcn.0040822e
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0042ab84
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
call esi
cmp eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
ja 0x55db2b
cmp eax, ebx
jne 0x55dbb8
push 8
call fcn.0040b6d5
pop ecx
mov dword [ebp - 0x38], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x55db79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x38]
push eax
call fcn.0055a65a
jmp 0x55db7b
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.005a2735
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], str...RootDirectoryEnumerator.cpp
mov dword [ebp - 0x3c], 0x33
call fcn.00557591
push 0x6a32d4
lea eax, [ebp - 0x34]
push eax
call fcn.0040b73f
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], 1
jmp 0x55dc02
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404087
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.004295e9
mov ecx, edi
call fcn.0055dabf
mov eax, dword [eax + 0x14]
push ebx
push 1
lea ecx, [ebp - 0x2c]
lea esi, [esi + eax + 1]
mov byte [ebp - 4], 2
call fcn.0040349d
cmp byte [esi], bl
jne 0x55dbcd
lea ecx, [ebp - 0x48]
call fcn.0041e5b4
lea ecx, [ebp - 0x4c]
call fcn.00553477
mov eax, edi
call fcn.00409265
ret
Function at 0x55de88
Capabilities:
Get file size

Disassembly:
push 0x5c
mov eax, 0x61e2f9
call fcn.00409179
mov edi, ecx
push str.getLength
push dword [0x6f3644]
lea ecx, [ebp - 0x18]
call fcn.00553a91
and dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call esi
test eax, eax
je 0x55df32
push 8
call fcn.0040b6d5
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x55def2
call esi
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0055a65a
jmp 0x55def4
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.005a2735
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], str...Win32File.cpp
mov dword [ebp - 0x1c], 0x28c
call fcn.004e7b30
push 0x6aa478
lea eax, [ebp - 0x68]
push eax
call fcn.0040b73f
mov esi, dword [ebp - 0x14]
xor edi, edi
or edi, dword [ebp - 0x10]
xor eax, eax
lea ecx, [ebp - 0x18]
or esi, eax
call fcn.00553477
mov eax, edi
mov edx, esi
call fcn.00409251
ret

Function at 0x55e9d2
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x61e5d9
call fcn.00409179
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00402777
mov ecx, eax
call fcn.00427146
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0055e996
mov esi, dword [ebp + 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.005b9a51
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004d6118
push dword [ebp + 0x10]
mov eax, dword [edi + 0x20]
push dword [ebp + 0xc]
mov ecx, dword [esi]
push eax
call fcn.00560298
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi]
mov edi, dword [edi + 0x20]
call fcn.005602bb
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
cmp eax, ebx
mov dword [ebp - 4], 2
jne 0x55eaa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x55ea79
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0055dca4
jmp 0x55eabd
push 8
call fcn.0040b6d5
pop ecx
mov ecx, eax
mov dword [ebp + 0x20], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x55ea96
push edi
call fcn.0055a65a
jmp 0x55ea98
xor eax, eax
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056242b
mov ecx, esi
call fcn.004d6118
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0055dca4
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], bl
call fcn.004d6118
mov eax, dword [ebp + 8]
call fcn.00409251
ret 0x1c
Function at 0x55eada
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x61e627
call fcn.00409179
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00402777
mov ecx, eax
call fcn.00427146
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0055e996
mov esi, dword [ebp + 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.005b9a51
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004d6118
push dword [ebp + 0x10]
mov eax, dword [edi + 0x20]
push dword [ebp + 0xc]
mov ecx, dword [esi]
push eax
call fcn.00560298
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi]
mov edi, dword [edi + 0x20]
call fcn.005602bb
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
cmp eax, ebx
mov dword [ebp - 4], 2
jne 0x55ebad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x55eb81
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0055dca4
jmp 0x55ebc5
push 8
call fcn.0040b6d5
pop ecx
mov ecx, eax
mov dword [ebp + 0x20], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x55eb9e
push edi
call fcn.0055a65a
jmp 0x55eba0
xor eax, eax
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056242b
mov ecx, esi
call fcn.004d6118
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0055dca4
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], bl
call fcn.004d6118
mov eax, dword [ebp + 8]
call fcn.00409251
ret 0x1c
Function at 0x55ed01
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x61e6d3
call fcn.00409179
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x1c], bl
jne 0x55ed7b
mov eax, dword [ebp + 0x14]
push ebx
push eax
push dword [ebp + 0xc]
mov dword [eax], ebx
push dword [ebp + 0x10]
mov esi, dword [esi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x55ed6e
push 8
call fcn.0040b6d5
pop ecx
mov dword [ebp + 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x55ed5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0055a65a
jmp 0x55ed5d
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], bl
call fcn.005a2735
jmp 0x55ee38
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x55ee3b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x14]
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
mov dword [edi], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [esi + 0x2c]
mov ecx, esi
push dword [esi + 0x28]
mov dword [ebp - 4], 2
push eax
call fcn.0055e9d2
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x55ede5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.005605ac
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005b9a51
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004d6118
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jne 0x55edf6
mov eax, dword [edi]
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], ebx
jmp 0x55ee0e
call fcn.005c5eec
cmp eax, 0x26
jne 0x55ee0e
lea ecx, [ebp - 0x18]
call fcn.004d6118
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0055dca4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
call fcn.004d6118
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004d6118
mov eax, dword [ebp + 8]
call fcn.00409251
ret 0x10
Function at 0x55feec
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x61ea98
call fcn.00409179
xor ebx, ebx
push str.make
mov dword [ebp - 0x10], ebx
push dword [0x6f3654]
lea ecx, [ebp - 0x10]
call fcn.00553a91
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 4], ebx
lea edi, [esi + 4]
jb 0x55ff23
mov eax, dword [edi]
jmp 0x55ff25
mov eax, edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x55ff49
mov esi, dword [ebp + 8]
and dword [esi], eax
and dword [esi + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00553477
mov eax, esi
jmp 0x55ffca
push ebx
call fcn.0040822e
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.005d2070
cmp dword [esi + 0x18], 0x10
mov byte [ebp - 4], 1
jb 0x55ff65
mov edi, dword [edi]
push dword [ebp - 0x18]
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x55ff88
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0041e5b4
jmp 0x55ff3a
push 0xc
call fcn.0040b6d5
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x55ffa8
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0055fe55
jmp 0x55ffaa
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.005a2735
lea ecx, [ebp - 0x18]
call fcn.0041e5b4
lea ecx, [ebp - 0x10]
call fcn.00553477
mov eax, dword [ebp + 8]
call fcn.00409251
ret
Function at 0x56006e
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x779058], 0
jne 0x5601aa
push esi
push edi
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.NtCancelIoFile
push edi
call esi
push str.NtClose
push edi
mov dword [0x779040], eax
call esi
push str.NtCreateSymbolicLinkObject
push edi
mov dword [0x779004], eax
call esi
push str.NtDeviceIoControlFile
push edi
mov dword [0x77900c], eax
call esi
push str.NtOpenDirectoryObject
push edi
mov dword [0x779030], eax
call esi
push str.NtOpenFile
push edi
mov dword [0x779044], eax
call esi
push str.NtOpenSymbolicLinkObject
push edi
mov dword [0x77904c], eax
call esi
push str.NtQueryDirectoryObject
push edi
mov dword [0x779038], eax
call esi
push str.NtQueryObject
push edi
mov dword [0x779014], eax
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x779010], eax
call esi
push str.NtReadFile
push edi
mov dword [0x779028], eax
call esi
push str.NtShutdownSystem
push edi
mov dword [0x779024], eax
call esi
push str.NtWaitForSingleObject
push edi
mov dword [0x779048], eax
call esi
push str.NtWriteFile
push edi
mov dword [0x779034], eax
call esi
push str.RtlEqualUnicodeString
push edi
mov dword [0x779008], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x779020], eax
call esi
push str.RtlStringFromGUID
push edi
mov dword [0x779050], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x77901c], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x77903c], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x77902c], eax
call esi
push str.NtFsControlFile
push edi
mov dword [0x779018], eax
call esi
pop edi
mov dword [0x779054], eax
mov byte [0x779058], 1
pop esi
ret

Function at 0x56a053
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
xor bl, bl
call esi
test ax, ax
jns 0x56a068
inc bl
push 0x11
call esi
test ax, ax
jns 0x56a074
or bl, 2
push 0x10
call esi
test ax, ax
jns 0x56a080
or bl, 4
push 0x14
call esi
test ax, 0x8001
je 0x56a08d
or bl, 8
push 0x90
call esi
test ax, 0x8001
je 0x56a09d
or bl, 0x10
pop esi
mov al, bl
pop ebx
ret
Function at 0x57047d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5704ba
cmp dword [ebp + 0x14], edi
je 0x5704ba
cmp ecx, edi
jne 0x5704c1
call fcn.0040f687
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040b6a1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5704d5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5704f6
cmp ebx, 0xffffffff
je 0x5704e5
push ebx
push edi
push ecx
call fcn.00408660
add esp, 0xc
cmp esi, edi
je 0x5704a2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5704a2
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x570512
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x570519
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x57060a
test word [esi + 0xc], 0x10c
je 0x57056d
mov eax, dword [esi + 4]
test eax, eax
je 0x57056d
jl 0x57066b
cmp ebx, eax
mov edi, ebx
jb 0x57053e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x570612
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004084ed
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x570602
cmp ebx, dword [ebp - 0xc]
jb 0x5705da
cmp dword [ebp - 0xc], 0
je 0x570597
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x57058c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x570593
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5705a2
mov eax, accept
cmp ebx, eax
ja 0x5705a2
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x57063e
push eax
push dword [ebp - 8]
push esi
call fcn.0041281b
pop ecx
push eax
call fcn.0041bdfc
add esp, 0xc
test eax, eax
je 0x57067d
cmp eax, 0xffffffff
je 0x57066b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x570602
push esi
call fcn.00417800
cmp eax, 0xffffffff
pop ecx
je 0x57066f
cmp dword [ebp - 4], 0
je 0x57063e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x570521
mov eax, dword [ebp + 0x14]
jmp 0x5704bc
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x570629
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00408660
add esp, 0xc
call fcn.0040f687
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5704b2
cmp dword [ebp + 0xc], 0xffffffff
je 0x570654
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00408660
add esp, 0xc
call fcn.0040f687
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5704b2
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5704bc
or dword [esi + 0xc], 0x10
jmp 0x57066f
Function at 0x57153e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x57156b
call fcn.0040f69a
mov dword [eax], esi
call fcn.0040f687
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b6a1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x571547
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x57159a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f6ad
pop ecx
call fcn.0040f687
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x5715c1
test al, 1
je 0x5715c1
test byte [esp + 0xc], 2
je 0x5715c1
call fcn.0040f69a
mov dword [eax], 5
call fcn.0040f687
mov dword [eax], 0xd
jmp 0x571591
xor eax, eax
pop esi
ret

Function at 0x57d459
Capabilities:
Manipulate boot configuration

Disassembly:
push 0x44
mov eax, 0x621aee
call fcn.004091e2
mov dword [ebp - 0x34], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push str.buildBootIniPath
mov dword [ebp - 0x30], esi
push dword [0x6f4a1c]
lea ecx, [ebp - 0x30]
call fcn.00553a91
mov ecx, dword [ebp - 0x34]
push ebx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], esi
call fcn.0057d07f
cmp dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
je 0x57d4dc
push esi
push 0xfffd
call fcn.0042c71e
pop ecx
push eax
lea eax, [ebp - 0x50]
push str._boot.ini
push eax
call fcn.004e6e76
add esp, 0x10
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00421d1b
push esi
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004034e8
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.00420b0c
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004034e8
lea ecx, [ebp - 0x30]
call fcn.00553477
mov eax, edi
call fcn.00409265
ret 8