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

Disassembly:
mov edi, edi
push esi
push edi
push ecx
mov edi, edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424997
test al, 0x10
je 0x424997
test edi, edi
je 0x424994
mov dword [edi], eax
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
ret

Function at 0x42499c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 4], edi
xor esi, esi
call fcn.00424976
test eax, eax
jne 0x424a4e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x424a4e
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x424a44
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4249f0
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4249e9
mov edi, dword [ebp - 4]
test ebx, ebx
je 0x424a44
xor eax, eax
xor edx, edx
mov ecx, edi
mov word [ebx], ax
call fcn.0042499c
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x424a4d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x424a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x424a3d
xor esi, esi
inc esi
jmp 0x424a4d
push eax
jmp 0x424a46
xor esi, esi
jmp 0x424a4d
push 3
call fcn.00411710
mov esi, eax
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x424a54
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, ecx
mov dword [ebp - 0x14], edx
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
xor esi, esi
push ecx
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x424a9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x424b0f
mov esi, 0x80004005
jmp 0x424b0f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x424ab1
mov esi, 0x8007000e
jmp 0x424b0e
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x424adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x424b07
mov esi, 0x80004005
jmp 0x424b07
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4020a8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x424ac3
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x424bc5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 8], edx
push edi
mov edi, esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], esi
jbe 0x424c22
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
mov eax, dword [ebp + 8]
sub eax, edi
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424c0b
add edi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp + 8]
jb 0x424bde
jmp 0x424c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x424c22
mov esi, 0x80004005
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x424c2b
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x42580b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor eax, eax
mov ebx, ecx
push edi
push ecx
push eax
mov ecx, dword [ebx]
mov edi, eax
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
call fcn.00424b17
mov esi, eax
test esi, esi
js 0x42596a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x425871
mov esi, 0x20000
push esi
push 8
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x425894
mov esi, 0x8007000e
jmp 0x42596a
mov eax, dword [ebp - 0x10]
mov esi, eax
push eax
push edi
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x42595a
mov edi, eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
push 0
push eax
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + edi]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425941
lea eax, [ebp - 0x14]
mov edx, esi
push eax
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00425971
push 0x7a
mov esi, eax
call fcn.00411710
cmp eax, esi
je 0x42583f
test esi, esi
js 0x42595f
push dword [ebp - 0xc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 8], eax
test eax, eax
je 0x42595a
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x42595a
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebx + 8]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push dword [ebp - 0x14]
push dword [ebx + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0x18
jmp 0x42595f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x42595f
mov esi, 0x80004005
jmp 0x42595f
mov esi, 0x8007000e
test edi, edi
je 0x42596a
mov ecx, edi
call fcn.00424c4a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425971
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov dword [eax], edi
mov ebx, ecx
mov dword [ebp - 8], ebx
mov esi, edi
cmp edx, 0x40
jae 0x4259a9
push 0x7a
mov dword [eax], 0x138
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov eax, 0x5a4d
cmp ax, word [ebx]
je 0x4259c4
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov eax, dword [ebx + 0x3c]
cmp dword [ebp - 4], eax
jae 0x4259e7
mov ecx, dword [ebp + 8]
add eax, 0xf8
push 0x7a
mov dword [ecx], eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov ebx, dword [ebx + 0x3c]
add ebx, dword [ebp - 8]
cmp dword [ebx], 0x4550
je 0x425a06
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
movzx eax, word [ebx + 6]
imul ecx, eax, 0x28
movzx eax, word [ebx + 0x14]
add ecx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, 0x18
add ecx, eax
cmp dword [ebp - 4], ecx
jae 0x425a39
mov eax, dword [ebp + 8]
push 0x7a
mov dword [eax], ecx
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
movzx eax, word [ebx + 0x14]
lea edx, [ebx + 0x18]
movzx ecx, word [ebx + 6]
add edx, eax
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x425a6c
mov eax, edx
cmp dword [eax], 0x786f622e
jne 0x425a60
cmp dword [eax + 4], 0x64616f6c
je 0x425a68
inc edi
add eax, 0x28
cmp edi, ecx
jb 0x425a4f
cmp ecx, edi
ja 0x425a80
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov edx, dword [ebp - 0xc]
imul ebx, edi, 0x28
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebx + edx + 0x10]
add ecx, dword [ebx + edx + 0x14]
cmp dword [ebp - 4], ecx
jae 0x425aa8
mov eax, dword [ebp + 8]
push 0x7a
mov dword [eax], ecx
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov edx, dword [ebp - 0xc]
mov edi, dword [ebx + edx + 0x14]
mov ebx, dword [ebp - 8]
add edi, ebx
cmp dword [edi], 0xb0c50002
je 0x425ac6
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov ecx, dword [edi + 0x1c]
add ecx, dword [edi + 0x20]
cmp dword [ebp - 4], ecx
jae 0x425ae3
mov eax, dword [ebp + 8]
push 0x7a
mov dword [eax], ecx
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425b01
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ecx + 8]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 0x20]
add ecx, ebx
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x425b0a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x260], 0xffffffff
push ebx
mov dword [ebp - 0x268], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x270], edx
inc eax
push edi
lea edx, [ebp - 0x264]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x25c], ebx
call fcn.0042483e
mov esi, eax
test esi, esi
js 0x425cf7
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x25c]
push ebx
call fcn.004242b7
mov esi, eax
test esi, esi
js 0x425ce6
push ebx
mov edx, 0x405aa8
lea ecx, [ebp - 0x25c]
call fcn.00424400
mov esi, eax
test esi, esi
js 0x425ce6
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x425bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425cec
test byte [ebp - 0x258], 0x10
jne 0x425c65
mov edx, dword [ebp - 0x268]
xor eax, eax
add eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
adc ecx, 0
mov edx, dword [edx + 0x10]
cmp eax, dword [edx + 0x10]
jne 0x425c65
cmp ecx, dword [edx + 0x14]
jne 0x425c65
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x25c]
push 0
call fcn.004242b7
mov esi, eax
test esi, esi
js 0x425cde
push 0
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x25c]
call fcn.00424400
mov esi, eax
test esi, esi
js 0x425cde
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x260]
mov edi, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x26c]
mov edx, dword [ecx]
push eax
lea eax, [ecx + 4]
mov ecx, edi
push eax
call fcn.00425d1e
mov esi, eax
test esi, esi
jns 0x425cbe
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x425bcd
mov eax, dword [ebp - 0x260]
cmp eax, 0xffffffff
jne 0x425c99
push 2
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425cb0
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x268]
mov dword [ecx], eax
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x425cb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x425cec
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x425cec
mov ecx, dword [ebp - 0x268]
mov edx, edi
push 0
lea ecx, [ecx + 4]
call fcn.004242b7
mov esi, eax
test esi, esi
jns 0x425c7b
mov eax, dword [ebp - 0x260]
jmp 0x425ca4
mov edi, dword [ebp - 0x25c]
jmp 0x425cd6
mov edi, dword [ebp - 0x25c]
test edi, edi
je 0x425cf7
mov ecx, edi
call fcn.00424c4a
cmp dword [ebp - 0x264], 0
je 0x425d0b
mov ecx, dword [ebp - 0x264]
call fcn.00424c4a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret 8
Function at 0x425d1e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov esi, edi
push edi
push 0x80
push 3
push edi
push 7
push 0x80000000
push ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x425d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425e66
mov esi, 0x80004005
jmp 0x425e66
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x425dbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425e5a
mov esi, 0x80004005
jmp 0x425e5a
cmp dword [ebp - 0x2c], 0x24
je 0x425dd4
push 0x1e
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425e5a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp ecx, eax
je 0x425e04
test ecx, ecx
jne 0x425df7
cmp eax, 0xb0c50000
je 0x425e04
cmp eax, 0xb0c50001
je 0x425e04
cmp eax, 0xb0c50002
je 0x425e04
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425e5a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x425e2b
lea edx, [ebp - 0x24]
mov eax, dword [ecx + edi*4]
cmp eax, dword [edx + edi*4]
jne 0x425e1e
inc edi
cmp edi, 4
jne 0x425e0e
jmp 0x425e2b
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425e5a
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x425e52
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x425e40
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x425e52
cmp eax, dword [ebp - 0x14]
je 0x425e52
push 0xd
call fcn.00411710
mov esi, eax
test esi, esi
js 0x425e5a
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x425e66
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret 0xc
Function at 0x425e79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c], 0
push ebx
push esi
push edi
mov edi, ecx
push ecx
mov dword [ebp - 0x34], edi
mov eax, dword [edi + 0x10]
mov ecx, dword [edi]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.00424b17
mov ebx, eax
test ebx, ebx
js 0x425fa7
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x24
pop esi
push esi
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x425eec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov ebx, eax
test ebx, ebx
js 0x425fa7
mov ebx, 0x80004005
jmp 0x425fa7
cmp dword [ebp - 0x2c], esi
je 0x425f02
push 0x1e
call fcn.00411710
mov ebx, eax
test ebx, ebx
js 0x425fa7
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
jne 0x425f27
mov ebx, 0x8007000e
jmp 0x425fa7
push 9
pop ecx
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x34]
push 0x24
pop esi
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425f7f
add esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x30]
jne 0x425f3b
cmp esi, dword [ebp - 0x10]
je 0x425f75
push 0x1e
call fcn.00411710
mov ebx, eax
test ebx, ebx
js 0x425f9b
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x14], ecx
xor ecx, ecx
jmp 0x425f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov ecx, dword [ebp - 0x30]
mov ebx, eax
test ebx, ebx
js 0x425f9e
mov ebx, 0x80004005
jmp 0x425f9e
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x425fa7
call fcn.00424c4a
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret
Function at 0x427050
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041c540
push 0x405cf0
mov ecx, dword [ebp + 8]
call fcn.0041c510
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471d10
mov esp, ebp
pop ebp
ret 4
Function at 0x42a3a8
Capabilities:
Get file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x475280]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x44], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x48], edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov esi, eax
test esi, esi
je 0x42a472
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp + 8]
shr ecx, 9
and ecx, 1
je 0x42a44b
xor ecx, ecx
xor eax, eax
inc ecx
test edi, edi
je 0x42a40c
mov edx, dword [ebp - 0x48]
cmp byte [eax + edx], 0
jne 0x42a40a
inc eax
cmp eax, edi
jb 0x42a3fd
jmp 0x42a40c
xor ecx, ecx
test ecx, ecx
je 0x42a44b
push 0x23
push 8
lea eax, [ebp - 0x50]
xor esi, esi
push eax
lea eax, [ebp - 0x58]
inc esi
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x42a438
xor ecx, ecx
cmp dword [ebp - 0x4c], 0x80000008
setne cl
jmp 0x42a44b
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
xor esi, esi
inc ecx
test esi, esi
je 0x42a472
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push edi
test ecx, ecx
je 0x42a466
lea edx, [ebp - 0x3c]
mov ecx, ebx
call fcn.0042a24c
jmp 0x42a470
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471d10
leave
ret 0xc
Function at 0x42a485
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov eax, edx
and dword [ebp - 4], edi
mov esi, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
cmp dword [ebp + 0x10], edi
je 0x42a4b8
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.0042a3a8
jmp 0x42a503
cmp dword [0x475b8c], edi
je 0x42a4f0
call fcn.00428578
test eax, eax
jne 0x42a4ed
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push esi
mov esi, dword [0x475b80]
mov ecx, esi
call dword [0x47744c]
call esi
mov esi, dword [ebp - 0xc]
jmp 0x42a503
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a556
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x42a527
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov edi, eax
jmp 0x42a52c
mov edi, 0x80004005
test ebx, ebx
je 0x42a5b5
push 0x3e5
call fcn.00411710
cmp eax, edi
jne 0x42a5b5
push 1
lea eax, [ebp - 4]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x42a584
xor edi, edi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
je 0x42a57b
push 0xd
call fcn.00411710
mov edi, eax
test edi, edi
jns 0x42a57b
push edi
push 0x174
mov ecx, 0x405f64
call fcn.0043f87d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x42a5a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov edi, eax
jmp 0x42a5a9
mov edi, 0x80004005
test edi, edi
jns 0x42a556
push edi
push 0x164
jmp 0x42a571
test edi, edi
jns 0x42a556
push edi
push 0x16b
jmp 0x42a571
Function at 0x42ba62
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ax, word [0x475364]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov ecx, 0xffff
mov dword [ebp - 4], edi
push 9
pop esi
cmp ax, cx
jne 0x42baa7
xor eax, eax
lea edi, [ebp - 0x28]
mov ecx, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x28]
mov edi, dword [ebp - 4]
mov word [0x475364], ax
cmp ax, si
je 0x42bab1
test ax, ax
jne 0x42bb05
mov edx, dword [edi]
mov ecx, dword [ebx + 0x14]
call fcn.0042b9b1
test eax, eax
jne 0x42bb05
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x42bb01
mov esi, dword [esi + 0xc]
test esi, esi
je 0x42bb01
cmp dword [ebx + 0x38], eax
jne 0x42bad6
cmp ebx, esi
je 0x42bb01
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x58]
cmp eax, dword [edx + 0x58]
jne 0x42bafa
mov eax, dword [ecx + 0x5c]
cmp eax, dword [edx + 0x5c]
jne 0x42bafa
mov edx, dword [edi]
mov ecx, dword [esi + 0x14]
call fcn.0042b9b1
test eax, eax
jne 0x42bb05
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x42bad6
xor eax, eax
jmp 0x42bb08
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
Function at 0x42f7d1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
mov dword [ebp - 8], edx
push esi
inc eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], eax
test ecx, ecx
je 0x42f927
test edx, edx
je 0x42f927
push edi
xor edx, edx
call fcn.0042f554
mov edi, eax
test edi, edi
je 0x42f858
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x42f8e2
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
js 0x42f898
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x42f898
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x42f893
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
jmp 0x42f898
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x42f878
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
jmp 0x42f87d
mov esi, 0x80004005
test esi, esi
jns 0x42f812
push esi
push 0x1ea
mov ecx, 0x406bfc
call fcn.0043f87d
jmp 0x42f901
mov esi, 0x80004005
push 0x90
call fcn.00411710
cmp eax, esi
je 0x42f906
push 2
call fcn.00411710
cmp eax, esi
je 0x42f906
push 3
call fcn.00411710
cmp eax, esi
je 0x42f906
mov eax, dword [ebp - 4]
test esi, esi
jns 0x42f815
push esi
push 0x21c
mov ecx, 0x406bfc
call fcn.0043f87d
mov eax, dword [ebp - 4]
test esi, esi
jns 0x42f815
test esi, esi
js 0x42f8ed
mov eax, dword [ebp - 8]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x42f901
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
jmp 0x42f92c
xor eax, eax
push 0x5c
push edi
mov word [ebx], ax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x42f8d7
xor eax, eax
xor esi, esi
mov word [ebx + 2], ax
inc eax
jmp 0x42f8da
mov eax, 0x80070057
pop esi
pop ebx
leave
ret