joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4235f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x487da2
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
push 0x105
lea eax, [esp + 0x10]
mov dword [esp + 0x124], 0
push 0
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call fcn.0046c870
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42367c
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x120], 0
mov dword [esp + 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4236a4
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004068a0
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00468ce5
add esp, 0x120
ret
Function at 0x423b70
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push str.param.ini
lea eax, [esp + 8]
push 0x4b90c8
push eax
call fcn.00406070
mov eax, dword [eax]
add esp, 0xc
push eax
push 8
push str.FirstRun
push str.PARAM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp esi, 8
sete al
pop esi
pop ecx
ret
Function at 0x425040
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x42504f
push 0x80004005
call fcn.00401db0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x4250b4
mov ecx, dword [edi]
test ecx, ecx
jbe 0x4250b1
mov edx, dword [esp]
test edx, edx
jbe 0x4250ac
cmp edx, 2
jbe 0x4250a5
cmp edx, 7
jne 0x4250ac
cmp ecx, 1
jb 0x4250ac
cmp byte [ecx + esi - 1], 0
jne 0x4250ac
cmp ecx, 1
jbe 0x4250b4
cmp byte [ecx + esi - 2], 0
jmp 0x4250aa
cmp byte [ecx + esi - 1], 0
je 0x4250b4
mov eax, 0xd
mov byte [esi], 0
pop ecx
ret 8

Function at 0x4251c0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 0xc]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push edx
push SysReAllocString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4251f2
mov esi, dword [esp + 8]
test eax, eax
mov ebx, eax
jne 0x425224
test edi, edi
jne 0x425206
push 0x80004005
call fcn.00401db0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test esi, esi
je 0x42522f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x425700
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4867e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [ebx + 0x54], 0
jne 0x425824
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x425747
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x425785
push 0x104
lea ecx, [esp + 0x10]
call fcn.00406390
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x425799
xor eax, eax
jmp 0x4257b1
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4257a0
sub eax, edx
js 0x425836
cmp eax, dword [esi - 8]
jg 0x425836
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.0040a140
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4257f9
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4257f9
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x54], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425824
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.00401db0
int3
Function at 0x427570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b278
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.0040a490
push 1
lea ecx, [esi + 8]
push ecx
mov dword [esp + 0x40], 0
lea ecx, [esi + 4]
mov esi, dword [esi + 0xc]
push 1
lea edx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0040a510
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x427820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b278
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.0040a490
push 0
lea ecx, [esi + 8]
push ecx
mov dword [esp + 0x40], 0
lea ecx, [esi + 4]
mov esi, dword [esi + 0xc]
push 1
lea edx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0040a510
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x429a30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48b118
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x14]
mov dword [esp + 0x20], 1
call fcn.0044de30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x3c]
call fcn.0046713b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00446d76
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esp + 0x2c], esi
call ebx
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x429aa4
sub eax, ecx
mov edi, eax
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x429acb
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
test edi, edi
mov dword [esp + 0x30], 0
jbe 0x429b95
jmp 0x429af0
test esi, esi
jne 0x429af8
xor eax, eax
jmp 0x429b0b
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x429b00
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004068a0
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jl 0x429be0
mov cl, byte [ebp]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
call fcn.00414c30
add esp, 4
test eax, eax
je 0x429b50
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x429b45
jmp 0x429b89
cmp dword [ebp - 0xc], 0
jl 0x429be0
mov al, byte [ebp]
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004297f0
test eax, eax
jne 0x429b77
mov dword [esp + 0x18], eax
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x429b80
sub eax, edx
mov edi, eax
test edi, edi
ja 0x429af0
mov edx, dword [esp + 0x24]
push edx
call fcn.00446d7b
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429bc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x80070057
call fcn.00401db0
int3
Function at 0x429f50
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48b0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x28]
mov dword [esp + 0x24], 1
call fcn.0044de30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x50]
call fcn.0046713b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00446d76
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esp + 0x30], esi
call ebx
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x429fc4
sub eax, ecx
mov edi, eax
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x429feb
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
test edi, edi
mov dword [esp + 0x34], 0
jbe 0x42a0b5
jmp 0x42a010
test esi, esi
jne 0x42a018
xor eax, eax
jmp 0x42a02b
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a020
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004068a0
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jl 0x42a100
mov cl, byte [ebp]
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
push edx
call fcn.00414c30
add esp, 4
test eax, eax
je 0x42a070
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a065
jmp 0x42a0a9
cmp dword [ebp - 0xc], 0
jl 0x42a100
mov al, byte [ebp]
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00429d50
test eax, eax
jne 0x42a097
mov dword [esp + 0x1c], eax
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42a0a0
sub eax, edx
mov edi, eax
test edi, edi
ja 0x42a010
mov edx, dword [esp + 0x28]
push edx
call fcn.00446d7b
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a0e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
push 0x80070057
call fcn.00401db0
int3
Function at 0x42b5f0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4886e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
lea ebp, [esi + 0x78]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x20], ebp
call fcn.0044de30
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x42b763
push edi
mov ecx, esi
call fcn.0042b780
cmp dword [esi + 0x80], ebx
je 0x42b763
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42b667
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ebx
mov esi, dword [esi + 0x80]
cmp esi, ebx
jle 0x42b6ea
lea ecx, [esi - 1]
mov dword [esp + 0x14], ecx
lea ebp, [esi*4 - 4]
jmp 0x42b6a4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x42b779
mov eax, dword [esp + 0x18]
cmp ecx, dword [eax + 8]
jge 0x42b779
mov eax, dword [eax + 4]
add eax, ebp
push eax
lea ecx, [esp + 0x20]
call fcn.00406820
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x42b732
sub dword [esp + 0x14], 1
add ebx, 1
sub ebp, 4
cmp ebx, esi
jl 0x42b6a0
mov ebp, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.0044de30
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42b719
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
call fcn.0044de30
add edi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b763
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
jmp fcn.0044d52a
Function at 0x42c8e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x489fb0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x42c935
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42c94f
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea edi, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004345e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00406820
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], edi
lea ecx, [eax + 0xc]
je 0x42c9e9
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42c9d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42c9fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x42ca10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x486850
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ca4d
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x20]
push str..exe
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00406070
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00406820
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
je 0x42caf7
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42cade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42cb0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x42e5b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4867e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e5ed
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
movsx ecx, bl
push ecx
lea edx, [esp + 0x10]
push str._c:_
push edx
mov dword [esp + 0x24], 0
call fcn.004067e0
mov esi, dword [esp + 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
or edi, 0xffffffff
cmp eax, 4
jne 0x42e662
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42e64b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [0x4b92b0]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x42e69a
movzx ecx, bl
push ecx
push eax
call fcn.0046b659
add esp, 8
test eax, eax
je 0x42e69a
sub eax, dword [0x4b92b0]
cmp eax, edi
je 0x42e69a
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x42e63d
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42e6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x42ef00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489365
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push 0x8c
mov ecx, esi
call fcn.00451578
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.CJieChuDlg.0
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42ef5b
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
mov byte [esp + 0x1c], 1
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42ef89
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x78], eax
mov byte [esp + 0x1c], 2
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42efb7
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7c], eax
mov byte [esp + 0x1c], 3
lea ebp, [esi + 0x90]
call fcn.0044d630
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42efeb
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov eax, vtable.CBrush.0
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], eax
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x9c], eax
lea ecx, [esi + 0xa4]
push ecx
mov byte [esp + 0x20], 6
call fcn.00425280
lea edx, [esi + 0x190]
push edx
mov byte [esp + 0x20], 7
call fcn.00425280
lea edi, [esi + 0x27c]
mov ecx, edi
mov byte [esp + 0x1c], 8
call fcn.00448115
mov dword [edi], vtable.CStatic.0
lea eax, [esi + 0x2d0]
push eax
mov byte [esp + 0x20], 9
call fcn.004462a0
lea ecx, [esi + 0x38c]
push ecx
mov byte [esp + 0x20], 0xa
call fcn.004462a0
lea edx, [esi + 0x448]
push edx
mov byte [esp + 0x20], 0xb
call fcn.004462a0
lea eax, [esi + 0x504]
push eax
mov byte [esp + 0x20], 0xc
call fcn.00425280
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esi + 0x78]
mov byte [esp + 0x20], 0xd
call fcn.00406820
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esi + 0x74]
call fcn.00406820
mov eax, dword [esp + 0x30]
push ebx
push 0x494704
lea ecx, [esi + 0x7c]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], 1
call fcn.004068a0
push ebx
push 0x494704
mov ecx, ebp
call fcn.004068a0
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 0x10