joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427bf0
Capabilities:
Resume thread

Disassembly:
mov al, byte [esi + 4]
push ebx
push edi
lea edi, [esi + 0xc]
xor ebx, ebx
mov dword [esi], vtable.CDownloadThread.0
mov dword [edi], vtable.CDownloadThread.1.0
mov dword [esi + 0x88], 3
test al, al
je 0x427c26
cmp dword [esi + 8], ebx
je 0x427c26
mov ecx, dword [esi + 8]
push ecx
mov byte [esi + 4], bl
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x427c36
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x427c4c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x34], 0xffffffff
mov edx, dword [esi + 0x8c]
push edx
call fcn.0044d5a4
add esp, 4
cmp dword [esi + 0x110], 0x10
jb 0x427c73
mov eax, dword [esi + 0xfc]
push eax
call fcn.0044caf8
add esp, 4
mov dword [esi + 0x110], 0xf
mov dword [esi + 0x10c], ebx
mov byte [esi + 0xfc], bl
cmp dword [esi + 0xcc], 0x10
jb 0x427ca1
mov ecx, dword [esi + 0xb8]
push ecx
call fcn.0044caf8
add esp, 4
mov dword [esi + 0xcc], 0xf
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xb8], bl
cmp dword [esi + 0xac], 0x10
jb 0x427ccf
mov edx, dword [esi + 0x98]
push edx
call fcn.0044caf8
add esp, 4
mov dword [esi + 0xac], 0xf
mov dword [esi + 0xa8], ebx
mov ecx, edi
mov byte [esi + 0x98], bl
call fcn.0042f840
mov dword [esi], vtable.CAuntecBasedThread.0
cmp dword [esi + 8], ebx
je 0x427d25
mov al, byte [esi + 4]
test al, al
je 0x427d08
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x427d18
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
pop edi
pop ebx
ret
Function at 0x429830
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x46c9f9
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push 4
push esi
push 0x42f690
xor ebx, ebx
mov dword [esi], vtable.CAuntecBasedThread.0
push ebx
mov byte [esi + 4], 1
push ebx
mov byte [esi + 5], 1
call fcn.0044d9ae
add esp, 0x18
mov dword [esi + 8], eax
mov dword [esp + 0x1c], ebx
lea edi, [esi + 0x10]
mov dword [esi], vtable.QueryUrlInfoThread.0
mov byte [esi + 0xc], bl
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ecx, dword [esp + 0x2c]
lea edx, [esi + 0x30]
mov byte [esp + 0x1c], 1
push edx
mov dword [esi + 0x2c], ecx
call fcn.004297d0
mov byte [esi + 0x70], bl
mov byte [esi + 0x71], bl
mov eax, 0xf
mov dword [esi + 0x8c], eax
mov dword [esi + 0x88], ebx
mov byte [esi + 0x78], bl
mov ecx, 0x50
mov word [esi + 0x90], cx
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], ebx
mov byte [esi + 0x98], bl
mov byte [esp + 0x1c], 3
cmp ebp, ebx
je 0x429912
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x429900
sub eax, edx
push eax
push ebp
mov ecx, edi
call fcn.00403b10
cmp dword [esi + 8], ebx
je 0x429924
mov edx, dword [esi + 8]
push edx
mov byte [esi + 4], bl
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi + 0x70], bl
jne 0x429939
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 5
call edi
cmp byte [esi + 0x70], bl
je 0x429930
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4299e0
Capabilities:
Resume thread

Disassembly:
mov al, byte [edi + 4]
push ebx
xor ebx, ebx
mov dword [edi], vtable.QueryUrlInfoThread.0
mov byte [edi + 0xc], 1
test al, al
je 0x429a06
cmp dword [edi + 8], ebx
je 0x429a06
mov ecx, dword [edi + 8]
push ecx
mov byte [edi + 4], bl
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x429a16
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, 0x10
cmp dword [edi + 0xac], esi
jb 0x429a33
mov edx, dword [edi + 0x98]
push edx
call fcn.0044caf8
add esp, 4
mov dword [edi + 0xac], 0xf
mov dword [edi + 0xa8], ebx
mov byte [edi + 0x98], bl
cmp dword [edi + 0x8c], esi
jb 0x429a5d
mov eax, dword [edi + 0x78]
push eax
call fcn.0044caf8
add esp, 4
mov dword [edi + 0x8c], 0xf
mov dword [edi + 0x88], ebx
lea esi, [edi + 0x30]
mov byte [edi + 0x78], bl
call fcn.00429980
cmp dword [edi + 0x28], 0x10
pop esi
jb 0x429a8b
mov ecx, dword [edi + 0x14]
push ecx
call fcn.0044caf8
add esp, 4
mov dword [edi + 0x28], 0xf
mov dword [edi + 0x24], ebx
mov byte [edi + 0x14], bl
mov dword [edi], vtable.CAuntecBasedThread.0
cmp dword [edi + 8], ebx
je 0x429ad1
mov dl, byte [edi + 4]
test dl, dl
je 0x429ab4
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x429ac4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
pop ebx
ret
Function at 0x42b530
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a560
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x487550]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.WS2_32.dll_gethostbyname]
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x42b594
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x42b594
push 0x47de10
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], str.Cant_analyze_host_name
call fcn.0044f4cb
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b5bc
push 0x47de10
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], str.Cant_Create_socket
call fcn.0044f4cb
xor eax, eax
mov edx, 2
push 0x50
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x24], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edi, dword [sym.imp.WS2_32.dll_connect]
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x20], edx
call edi
test eax, eax
je 0x42b630
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push esi
call edi
test eax, eax
je 0x42b630
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x47de10
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], str.Connect_Failed
call fcn.0044f4cb
mov eax, 0x42b62c
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c790
mov esp, ebp
pop ebp
ret
Function at 0x42c500
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x270
mov edi, ecx
mov esi, edx
call fcn.0044cbec
add esp, 4
test eax, eax
je 0x42c566
xor ecx, ecx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov word [eax + 4], cx
mov dword [eax + 0x1c], 0xffffffff
mov ebp, eax
jmp 0x42c568
xor ebp, ebp
test ebp, ebp
je 0x42c6f6
mov ecx, edi
lea ebx, [esp + 0x18]
call fcn.0042cf20
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov dword [esp + 0x80], 0
call fcn.004042a0
mov ebx, 8
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x42c5b1
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044caf8
add esp, 4
push esi
push ebp
lea edi, [esp + 0x58]
call fcn.004083f0
add esp, 8
mov dword [esp + 0x78], 1
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], ebx
jae 0x42c5d5
lea ecx, [esp + 0x54]
lea eax, [ebp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 0x1c], eax
cmp eax, 0xffffffff
je 0x42c6d9
mov dword [esp + 0x14], 0
lea ebx, [ebp + 0x4c]
xor eax, eax
mov word [esp + 0x38], ax
mov eax, ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c613
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x38]
call fcn.00403ee0
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x48]
push 0x4791ec
mov edi, 1
mov ecx, esi
call fcn.004084a0
test eax, eax
je 0x42c665
mov eax, dword [esp + 0x48]
push 0x47a32c
mov edi, 2
mov ecx, esi
call fcn.004084a0
test eax, eax
jne 0x42c6a4
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42c6ba
mov byte [esp + 0x78], 1
cmp dword [esp + 0x4c], 8
jb 0x42c690
mov edx, dword [esp + 0x38]
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x42c5f7
jmp 0x42c6e2
cmp dword [esp + 0x4c], 8
jb 0x42c6e2
mov eax, dword [esp + 0x38]
push eax
call fcn.0044caf8
add esp, 4
jmp 0x42c6e2
mov esi, ebp
call fcn.0042c720
xor ebp, ebp
cmp dword [esp + 0x4c], 8
jb 0x42c6e2
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044caf8
add esp, 4
jmp 0x42c6e2
mov esi, ebp
call fcn.0042c720
xor ebp, ebp
cmp dword [esp + 0x68], 8
jb 0x42c6f6
mov edx, dword [esp + 0x54]
push edx
call fcn.0044caf8
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0044c790
add esp, 0x68
ret
Function at 0x42c780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c971
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], 0
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov dword [esp + 0x10], edi
mov word [edi + 4], cx
mov dword [esp + 0x38], ecx
mov dword [esp + 0xc], 1
test eax, eax
je 0x42c810
lea ebx, [eax + 0x4c]
push eax
lea esi, [esp + 0x18]
call fcn.004059c0
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.004042a0
cmp dword [esp + 0x2c], 8
jb 0x42c810
mov edx, dword [esp + 0x18]
push edx
call fcn.0044caf8
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x42ccc0
Capabilities:
Delete file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x42ccd6
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret
Function at 0x42ccf0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x14], ebx
jne 0x42cd3c
xor al, al
jmp 0x42cefb
xor eax, eax
mov word [esp + 0x34], ax
push 1
mov eax, 0x479644
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
call fcn.00403ee0
mov edx, esi
mov ecx, edi
mov dword [esp + 0x78], ebx
call fcn.0042c500
mov esi, 8
mov dword [esp + 0x78], 0xffffffff
mov ebx, eax
cmp dword [esp + 0x48], esi
jb 0x42cd8e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0044caf8
add esp, 4
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
test ebx, ebx
jne 0x42cdd3
push edi
call fcn.0042c870
add esp, 4
test al, al
jne 0x42cee2
mov eax, edi
call fcn.0042c830
test al, al
je 0x42cdcc
mov eax, edi
call fcn.0042ccc0
mov al, 1
jmp 0x42cefb
push ebx
lea edi, [esp + 0x50]
call fcn.0042c780
add esp, 4
mov eax, ebx
mov dword [esp + 0x78], 1
call fcn.0042c770
test al, al
mov eax, dword [esp + 0x50]
jne 0x42ce0d
cmp dword [esp + 0x64], esi
jae 0x42ce01
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42ce89
cmp dword [esp + 0x64], esi
jae 0x42ce17
lea eax, [esp + 0x50]
xor edi, edi
xor ecx, ecx
mov word [esp + 0x18], cx
mov ecx, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x42ce31
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x18]
call fcn.00403ee0
mov edx, esi
push edx
mov byte [esp + 0x7c], 2
call fcn.0042ccf0
add esp, 4
mov byte [esp + 0x78], 1
cmp dword [esp + 0x2c], 8
jb 0x42ce73
mov eax, dword [esp + 0x18]
push eax
call fcn.0044caf8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], cx
lea esi, [ecx + 8]
mov edx, dword [ebx + 0x1c]
lea eax, [ebx + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42cebf
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], esi
jb 0x42cdd3
mov eax, dword [esp + 0x50]
push eax
call fcn.0044caf8
add esp, 4
jmp 0x42cdd3
cmp dword [esp + 0x64], esi
jb 0x42ced2
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0044caf8
add esp, 4
mov esi, ebx
call fcn.0042c720
mov edi, dword [esp + 0x10]
mov esi, 8
cmp dword [edi + 0x18], esi
jb 0x42ceec
mov eax, dword [edi + 4]
jmp 0x42ceef
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret
Function at 0x42d940
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46d671
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, 1
xor edi, edi
mov ebp, 7
test byte [0x48ad0c], al
jne 0x42d9b6
or dword [0x48ad0c], eax
xor eax, eax
push 0x470fc0
mov dword [0x48ad08], ebp
mov dword [0x48ad04], edi
mov word [0x48acf4], ax
call fcn.0044d4cd
add esp, 4
cmp dword [0x48ad04], edi
jne 0x42db02
push 0x206
lea edx, [esp + 0x72]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x78], cx
call fcn.00452c80
add esp, 0xc
push edi
push 0x1a
lea eax, [esp + 0x74]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42db02
xor ecx, ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42da10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
lea esi, [esp + 0x1c]
call fcn.00403ee0
mov ecx, esi
lea ebx, [esp + 0x50]
mov dword [esp + 0x280], edi
call fcn.0042cf20
push eax
mov ebx, 0x4778e8
lea esi, [esp + 0x38]
mov byte [esp + 0x284], 1
call fcn.004059c0
add esp, 4
push 0xffffffffffffffff
push edi
mov ecx, 0x48acf0
mov byte [esp + 0x288], 2
call fcn.004042a0
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x42da86
mov edx, dword [esp + 0x38]
push edx
call fcn.0044caf8
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
cmp dword [esp + 0x68], esi
jb 0x42daa8
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0044caf8
add esp, 4
xor edx, edx
mov dword [esp + 0x280], 0xffffffff
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
cmp dword [esp + 0x30], esi
jb 0x42dad5
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044caf8
add esp, 4
xor ecx, ecx
push 0x48acf0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
call fcn.0042c870
add esp, 4
test al, al
jne 0x42db02
push 0x48acf0
call fcn.0042ca30
add esp, 4
mov eax, 0x48acf0
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0044c790
add esp, 0x270
ret
Function at 0x42dea0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d61b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x5c], ax
xor ebx, ebx
push 1
mov eax, 0x478e98
lea esi, [esp + 0x5c]
mov edi, ecx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
call fcn.00403ee0
mov dword [esp + 0xa0], ebx
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42df26
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x40]
call fcn.00403ee0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x5c]
mov edx, esi
mov byte [esp + 0xa4], 1
call fcn.0042d330
add esp, 4
mov edi, 8
cmp dword [esp + 0x54], edi
jb 0x42df74
mov eax, dword [esp + 0x40]
push eax
call fcn.0044caf8
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], cx
mov byte [esp + 0xa0], 4
cmp dword [esp + 0x70], edi
jb 0x42dfa3
mov edx, dword [esp + 0x5c]
push edx
call fcn.0044caf8
add esp, 4
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x5c], ax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
je 0x42e083
cmp eax, ebx
ja 0x42dfdc
call fcn.0044cae8
mov ecx, dword [esp + 0x28]
push ecx
mov ebx, 0x478e98
lea esi, [esp + 0x78]
call fcn.004059c0
mov eax, dword [esp + 0x7c]
add esp, 4
cmp dword [esp + 0x8c], edi
jae 0x42e003
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 1
ja 0x42e06b
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x8c], edi
jae 0x42e035
lea eax, [esp + 0x78]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42e06b
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x74]
call fcn.00418c90
lea esi, [esp + 0x1c]
call fcn.00418bc0
mov eax, edi
mov edx, ebx
jmp 0x42e0c6
cmp dword [esp + 0x8c], edi
jb 0x42e081
mov edx, dword [esp + 0x78]
push edx
call fcn.0044caf8
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42e0a9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.00418c50
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0044caf8
add esp, 4
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret
Function at 0x42e0f0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46e2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x10], 0x48a8c0
mov dword [0x48a8d8], 7
mov dword [0x48a8d4], ebx
mov word [0x48a8c4], ax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], ebx
call fcn.0042e4d0
push 0xffffffffffffffff
push ebx
mov ecx, 0x48a8c0
mov byte [esp + 0x64], 1
call fcn.004042a0
mov edi, 8
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x34], edi
jb 0x42e173
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0044caf8
add esp, 4
cmp dword [0x48a8d4], ebx
je 0x42e28b
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.0044cd99
add esp, 4
push 9
mov eax, str.ZhiXiPkg_
mov ecx, 0x48a8c0
call fcn.00403e00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea esi, [esp + 0x40]
call fcn.0042dbb0
add esp, 8
mov ecx, eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call fcn.0042be40
xor ebx, ebx
push ebx
push eax
or eax, 0xffffffff
mov esi, 0x48a8c0
mov byte [esp + 0x64], 3
call fcn.00403d40
cmp dword [esp + 0x34], edi
jb 0x42e1f4
mov edx, dword [esp + 0x20]
push edx
call fcn.0044caf8
add esp, 4
xor eax, eax
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
jb 0x42e21f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0044caf8
add esp, 4
push 0x48a8c0
call fcn.0042ca30
add esp, 4
test al, al
jne 0x42e23c
mov edi, 0x48a8c0
call fcn.0042bb00
jmp 0x42e28b
mov ecx, 0x48a8c0
lea ebx, [esp + 0x38]
call fcn.0042cf20
push 0xffffffffffffffff
push 0
mov ecx, 0x48a8c0
mov byte [esp + 0x64], 4
call fcn.004042a0
cmp dword [esp + 0x50], edi
jb 0x42e270
mov edx, dword [esp + 0x3c]
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [0x48a8c4]
cmp dword [0x48a8d8], edi
jae 0x42e282
mov eax, 0x48a8c4
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x48a8c0
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x50
ret
Function at 0x42e340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c81b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x487550]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x208
mov edi, ecx
lea ecx, [esp + 0x38]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.00452c80
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x105
lea eax, [esp + 0x3c]
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x42e403
jmp 0x42e3c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x42e3fb
push 0x208
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00452c80
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x105
lea eax, [esp + 0x3c]
push eax
push edi
call ebx
mov esi, eax
test esi, esi
je 0x42e3c0
jmp 0x42e403
test esi, esi
je 0x42e4a4
cmp word [esp + 0x34], 0
lea edi, [esp + 0x34]
je 0x42e4a4
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e430
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x1c]
call fcn.00403ee0
mov ebx, dword [esp + 0x10]
mov edx, esi
push edx
mov dword [esp + 0x25c], 0
call fcn.004337f0
mov dword [esp + 0x258], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x42e481
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044caf8
add esp, 4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e486
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x42e413
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0044c790
mov esp, ebp
pop ebp
ret