joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dca10
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
xor edi, edi
push edi
push 1
push edi
push 6
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.00412d20
push 4
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0xa4], edi
call fcn.004119a0
add esp, 0x24
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.004257c0
xor ecx, ecx
mov edx, 3
movzx esi, byte [edx + eax]
shl ecx, 8
add ecx, esi
sub edx, 1
jns 0x411805
mov eax, dword [esp + 0x2c]
cmp eax, edi
mov dword [ebp + 0x20], ecx
je 0x411827
push eax
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x6c]
cmp eax, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x41184f
push eax
call fcn.004b6eae
add esp, 4
push edi
push 1
push edi
push 7
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.00412d20
push 4
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0xa4], 2
call fcn.004119a0
add esp, 0x24
mov esi, eax
mov byte [esp + 0x80], 3
call fcn.004257c0
xor ecx, ecx
mov edx, 3
movzx esi, byte [edx + eax]
shl ecx, 8
add ecx, esi
sub edx, 1
jns 0x411891
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov dword [ebp + 0x30], ecx
je 0x4118b3
push eax
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x4118db
push eax
call fcn.004b6eae
add esp, 4
push edi
push 4
push edi
push 0xc
lea ecx, [esp + 0x68]
push ebx
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.00412d20
add esp, 0x18
lea esi, [esp + 0x58]
mov dword [esp + 0x80], 4
call fcn.00425060
xor edx, edx
xor ecx, ecx
movzx esi, byte [ecx + eax]
shl edx, 8
add ecx, 1
add edx, esi
cmp ecx, 4
jb 0x411913
push edi
push 8
push edi
push 0x18
mov dword [ebp + 0x34], edx
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.00412d20
add esp, 0x18
push edi
lea esi, [esp + 0x1c]
mov byte [esp + 0x84], 5
call fcn.00425060
mov esi, eax
call fcn.00425860
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
mov dword [ebp + 0x2c], edx
je 0x41196e
push eax
call fcn.004b6eae
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x41198b
push eax
call fcn.004b6eae
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x413670
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
mov dword [esp + 0x1c], ebx
call fcn.00401680
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
je 0x4136dd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 8], eax
call fcn.004b8888
mov ecx, dword [esp + 8]
push ecx
push ebx
push eax
mov dword [esi + 0x70], eax
call fcn.004b9920
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
push ebx
lea edx, [esp + 8]
push edx
push eax
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov al, 1
jne 0x4136df
mov al, bl
pop ebx
pop ecx
ret
Function at 0x418af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ecx
call edx
test al, al
jne 0x418cce
lea eax, [esp + 0x18]
push eax
push 2
xor ebx, ebx
push ebx
push str.SoftwareTencentQQBrowserCommon
push Ordinal_4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x418b9a
cmp dword [edi + 0x230], 8
jb 0x418b4a
mov esi, dword [edi + 0x21c]
jmp 0x418b50
lea esi, [edi + 0x21c]
push esi
call fcn.004b98fb
mov ecx, dword [esp + 0x1c]
add esp, 4
add eax, eax
push eax
push esi
push 1
push ebx
push str.MainPageDIY
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x418ba5
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x418b8f
push eax
call esi
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x418b9a
push eax
call esi
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x24c], 8
jb 0x418bb6
mov edi, dword [edi + 0x238]
jmp 0x418bbc
add edi, 0x238
movzx eax, word [edi]
xor ecx, ecx
xor esi, esi
cmp ax, 0x30
jb 0x418c0b
lea esp, [esp]
cmp ax, 0x39
ja 0x418c0b
movzx eax, ax
push ebx
push 0xa
sub eax, 0x30
cdq
push esi
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.004c5770
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esp + 0x10]
adc eax, edx
add edi, 2
mov esi, eax
movzx eax, word [edi]
xor ebx, ebx
cmp ax, 0x30
jae 0x418bd0
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push str.MainPageDIY_
push eax
mov dword [esp + 0x28], ecx
call esi
cmp eax, ebx
jne 0x418b74
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x418c4a
push eax
call edi
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x418c59
push eax
call edi
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
push ecx
push 2
push ebx
push str.SoftwareTencentQQBrowserLaunch
push Ordinal_4
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x418cce
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x3c], 8
jb 0x418c88
mov eax, dword [eax + 0x28]
jmp 0x418c8b
add eax, 0x28
call fcn.0042f2c8
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
push str.MainPageType
push eax
call esi
cmp eax, ebx
je 0x418cb2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x418cc3
push eax
call edi
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x418cce
push eax
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dc670
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
je 0x429a41
push 0x13
mov ebp, 7
push str.www.hao123.com__tn
lea esi, [esp + 0x48]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.00407ef0
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x88], ebx
call fcn.0042fc9e
add esp, 8
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x58], 8
mov esi, eax
jb 0x4298fa
mov eax, dword [esp + 0x44]
push eax
call fcn.004b6eae
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
je 0x429a41
cmp dword [edi + 0x18], 8
jb 0x42991b
mov edi, dword [edi + 4]
jmp 0x42991e
add edi, 4
lea edi, [edi + esi*2 + 0x26]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x4f28a0]
mov eax, ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x429942
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x64]
call fcn.00407ef0
mov dword [esp + 0x80], 1
mov eax, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429980
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x2c]
call fcn.00407ef0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x1c]
jb 0x4299b6
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x4299c9
lea eax, [esp + 0x60]
cmp dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x28]
jae 0x4299d7
lea ecx, [esp + 0x28]
mov edx, dword [edx]
push edx
call fcn.0042f390
add esp, 4
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x3c], esi
jb 0x4299fc
mov eax, dword [esp + 0x28]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x74], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x429a27
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004b6eae
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x429a57
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x24
mov dword [esp + 0x18], eax
jb 0x429926
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x42efe9
Capabilities:
Get graphical window text

Disassembly:
push 0xc
mov eax, 0x4dc3db
call fcn.004bf193
and dword [ebp - 0x14], 0
mov esi, ecx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], esi
mov dword [edi + 0x18], 7
call fcn.00401870
and dword [ebp - 4], 0
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42f067
lea esi, [eax + eax]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6460
pop ecx
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jg 0x42f060
and word [ebx + eax*2], 0
push edi
mov edx, ebx
call fcn.004074f0
push ebx
call fcn.004b6e9a
pop ecx
mov eax, edi
call fcn.004bf26b
ret

Function at 0x4304ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x515854]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
mov word [ebp - 0x20c], si
call fcn.004b9920
add esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
pop esi
mov eax, edi
mov edx, 0x4ec52c
je 0x43050a
lea edx, [ebp - 0x20c]
call fcn.004074b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004b6e9f
leave
ret

Function at 0x43051d
Capabilities:
Query environment variable

Disassembly:
push 0x2c
mov eax, 0x4dbf2b
call fcn.004bf1fc
push 1
lea eax, [ebp - 0x30]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov edx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x25
call fcn.00422c80
cmp eax, 0xffffffff
push edi
jne 0x43055b
call fcn.00401620
mov eax, esi
jmp 0x4305f1
lea esi, [ebp - 0x2c]
call fcn.00401620
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
jb 0x430574
mov eax, dword [eax]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x430588
push edi
jmp 0x4305de
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6460
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
pop ecx
jb 0x4305ae
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x30]
push eax
call ebx
test eax, eax
jbe 0x4305d1
cmp eax, esi
ja 0x4305d1
mov edx, dword [ebp - 0x30]
and word [edx + eax*2], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004074f0
push dword [ebp - 0x30]
call fcn.004b6e9a
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov esi, dword [ebp - 0x34]
call fcn.00401620
lea esi, [ebp - 0x2c]
call fcn.00401650
mov eax, dword [ebp - 0x34]
call fcn.004bf27f
ret
Function at 0x4305f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004b9920
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
test esi, esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
jne 0x430647
and dword [ebp - 4], esi
and dword [ebp - 0x38], esi
jmp 0x430651
and dword [esi], 0
mov dword [ebp - 0x38], 0x40
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x430674
test esi, esi
je 0x430668
mov eax, dword [ebp - 4]
mov dword [esi], eax
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret

Function at 0x430678
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x515854]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x4306e4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4306db
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], 1
pop ebx
sete al
xor ecx, ebp
call fcn.004b6e9f
leave
ret

Function at 0x4308c5
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x4308d2
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x4308ce
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x430828
push ebx
push ebx
call fcn.004ba4fd
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x430909
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0043086b
xor al, al
jmp 0x43092b
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x430929
mov esi, dword [edi]
call fcn.0043086b
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret
Function at 0x430b32
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x430b42
xor al, al
jmp 0x430b84
push esi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x430b63
xor al, al
jmp 0x430b83
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004c5770
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x431469
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4de015
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, ecx
lea ecx, [esp + 0x2c]
xor edi, edi
push ecx
mov ecx, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [eax + 0x14]
test al, al
jne 0x4314ff
mov edx, 0x4ec52c
lea eax, [esp + 0x54]
call fcn.004074b0
mov dword [esp + 0x88], edi
mov edi, dword [esi]
add edi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x58]
push eax
push 0x10000002
mov ecx, esi
call dword [edi]
lea esi, [esp + 0x54]
call fcn.00401650
jmp 0x431678
mov dword [esp + 0x10], edi
xor eax, eax
mov byte [esp + 0x70], 0
lea edi, [esp + 0x71]
stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
stosw word es:[edi], ax
push 8
lea ecx, [esp + 0x78]
stosb byte es:[edi], al
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
test al, al
je 0x431666
cmp dword [esp + 0x10], 8
jne 0x431666
push 3
lea eax, [esp + 0x74]
push eax
push 0x4f2d84
call fcn.004ba5ab
add esp, 0xc
test eax, eax
je 0x431559
push 0
push 3
jmp 0x43166c
mov al, byte [esp + 0x73]
cmp al, 1
mov byte [esi + 0xa8], al
ja 0x431550
mov edi, dword [esp + 0x74]
cmp edi, 0x3200000
mov dword [esp + 0x28], edi
jbe 0x431580
push 0
push 4
jmp 0x43166c
lea eax, [esp + 0x18]
call fcn.00401080
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x8c], 1
mov eax, dword [ebx]
push edi
push dword [esp + 0x28]
mov ecx, ebx
call dword [eax + 4]
test al, al
jne 0x4315f4
mov edx, 0x4ec52c
lea eax, [esp + 0x38]
call fcn.004074b0
mov byte [esp + 0x88], 2
mov edi, dword [esi]
add edi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x3c]
push eax
push 0x10000002
mov ecx, esi
call dword [edi]
lea esi, [esp + 0x38]
call fcn.00401650
lea ecx, [esp + 0x18]
call fcn.004010a0
jmp 0x431678
cmp dword [esp + 0x10], edi
je 0x43160c
mov eax, dword [esi]
push 0
push 8
push 0x30000001
mov ecx, esi
call dword [eax + 0x38]
jmp 0x4315e6
mov eax, dword [esp + 0x1c]
cmp edi, eax
mov dword [esp + 0x24], eax
ja 0x43161c
mov dword [esp + 0x24], edi
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
lea ebx, [esi + 8]
push eax
mov ecx, ebx
call fcn.00430e74
test al, al
je 0x4315fa
cmp dword [esp + 0x14], edi
jne 0x4315fa
mov ecx, ebx
mov byte [esi + 0x100], 1
call fcn.0043107d
lea ecx, [esp + 0x18]
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edx
call fcn.004010a0
mov al, 1
jmp 0x43167a
push 0
push dword [esp + 0x14]
mov eax, dword [esi]
push 0x30000001
mov ecx, esi
call dword [eax + 0x38]
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004b6e9f
mov esp, ebp
pop ebp
ret 4
Function at 0x43594f
Capabilities:
Get disk information

Disassembly:
push 0x830
mov eax, 0x4ddfd5
call fcn.004bf1fc
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x810]
push eax
mov esi, 0x3fe
push esi
call ebx
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x43598b
xor al, al
jmp 0x435a84
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x818], eax
cmp edi, esi
mov dword [ebp - 4], eax
jbe 0x4359fa
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6460
mov esi, eax
push 0
mov dword [ebp - 0x818], esi
call fcn.004b6e9a
pop ecx
pop ecx
push esi
push edi
call ebx
test eax, eax
je 0x4359ed
cmp eax, edi
ja 0x4359ed
and word [esi + eax*2], 0
and word [esi + eax*2 + 2], 0
mov edi, eax
mov dword [ebp - 0x81c], esi
jmp 0x435a0a
push esi
call fcn.004b6e9a
xor al, al
jmp 0x435a83
mov word [ebp + edi*2 - 0x810], ax
mov word [ebp + edi*2 - 0x80e], ax
xor eax, eax
xor ebx, ebx
test edi, edi
jbe 0x435a76
mov dword [ebp - 0x814], 2
mov ecx, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x814]
cmp word [ecx + edx - 2], 0
jne 0x435a6a
cmp eax, ebx
je 0x435a6a
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x83c]
call fcn.004074b0
mov esi, dword [ebp - 0x820]
lea eax, [ebp - 0x83c]
push eax
mov byte [ebp - 4], 1
call fcn.0040a7e0
lea esi, [ebp - 0x83c]
mov byte [ebp - 4], 0
call fcn.00401650
lea eax, [ebx + 1]
add dword [ebp - 0x814], 2
inc ebx
cmp ebx, edi
jb 0x435a1c
push dword [ebp - 0x818]
call fcn.004b6e9a
mov al, 1
pop ecx
call fcn.004bf27f
ret
Function at 0x435a8a
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push 0x770
mov eax, 0x4dc105
call fcn.004bf1fc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x774], eax
lea eax, [ebp - 0x4a4]
mov edi, ecx
call fcn.00401f50
xor ebx, ebx
push 0x2b0
lea eax, [ebp - 0x758]
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x75c], ebx
call fcn.004b9920
add esp, 0xc
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x435adc
mov eax, dword [esi]
jmp 0x435ade
mov eax, esi
push 0x610
push 0x2b4
lea ecx, [ebp - 0x75c]
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x435b0e
lea esi, [ebp - 0x4a4]
call fcn.00404700
mov al, bl
call fcn.004bf27f
ret
lea eax, [ebp - 0x4a4]
push eax
lea edx, [ebp - 0x750]
call fcn.004074f0
lea eax, [ebp - 0x488]
push eax
lea edx, [ebp - 0x548]
call fcn.004074f0
push 0x208
lea eax, [ebp - 0x432]
push ebx
push eax
mov word [ebp - 0x434], bx
call fcn.004b9920
push 0x208
lea eax, [ebp - 0x222]
push ebx
push eax
mov dword [ebp - 0x778], ebx
mov dword [ebp - 0x770], ebx
mov dword [ebp - 0x77c], ebx
mov word [ebp - 0x224], bx
call fcn.004b9920
add esp, 0x18
cmp dword [edi + 0x18], 8
jb 0x435b83
mov ecx, dword [esi]
jmp 0x435b85
mov ecx, esi
mov eax, 0x104
push eax
lea edx, [ebp - 0x224]
push edx
lea edx, [ebp - 0x77c]
push edx
lea edx, [ebp - 0x770]
push edx
lea edx, [ebp - 0x778]
push edx
push eax
lea eax, [ebp - 0x434]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x435c99
lea eax, [ebp - 0x46c]
push eax
lea edx, [ebp - 0x224]
mov word [ebp - 0x1c], bx
call fcn.004074f0
cmp dword [edi + 0x18], 8
mov byte [ebp - 0x43c], 1
mov dword [ebp - 0x764], ebx
mov dword [ebp - 0x760], ebx
mov dword [ebp - 0x768], ebx
mov dword [ebp - 0x76c], ebx
jb 0x435bfb
mov esi, dword [esi]
lea eax, [ebp - 0x76c]
push eax
lea eax, [ebp - 0x768]
push eax
lea eax, [ebp - 0x760]
push eax
lea eax, [ebp - 0x764]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x435cbd
mov eax, dword [ebp - 0x760]
imul eax, dword [ebp - 0x764]
xor edi, edi
push edi
push dword [ebp - 0x764]
mov dword [ebp - 0x450], eax
push ebx
push dword [ebp - 0x76c]
xor esi, esi
call fcn.004c5770
push esi
push dword [ebp - 0x760]
push edx
push eax
call fcn.004c5770
push edi
push dword [ebp - 0x764]
mov dword [ebp - 0x44c], eax
push ebx
push dword [ebp - 0x768]
mov dword [ebp - 0x448], edx
call fcn.004c5770
push esi
push dword [ebp - 0x760]
push edx
push eax
call fcn.004c5770
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], edx
jmp 0x435cbd
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], ebx
mov byte [ebp - 0x43c], bl
mov esi, dword [ebp - 0x774]
lea edi, [ebp - 0x4a4]
call fcn.00435cd5
mov bl, 1
jmp 0x435afb