joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441fdd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x441ffa
call fcn.00441387
mov dword [eax], 0x16
xor eax, eax
jmp 0x442064
push esi
push 0x88
push 1
call fcn.004429b7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44204f
push esi
call fcn.00442a90
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x44202d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x441f39
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x442063
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0044030b
test ebx, ebx
pop ecx
je 0x442061
push ebx
call fcn.00441399
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44210f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00444226
xor esi, esi
inc esi
cmp dword [0x47e178], esi
pop ecx
jne 0x442137
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x47e174], esi
mov byte [0x47e170], al
jne 0x44219d
mov ecx, dword [0x47f988]
test ecx, ecx
je 0x44217e
mov eax, dword [0x47f984]
sub eax, 4
cmp eax, ecx
jmp 0x442177
mov eax, dword [eax]
test eax, eax
je 0x442169
call eax
mov eax, dword [0x47f984]
sub eax, 4
cmp eax, dword [0x47f988]
mov dword [0x47f984], eax
jae 0x442161
mov eax, 0x47a078
mov esi, 0x47a080
cmp eax, esi
mov edi, eax
jae 0x44219d
mov eax, dword [edi]
test eax, eax
je 0x442196
call eax
add edi, 4
cmp edi, esi
jb 0x44218e
mov eax, 0x47a084
mov esi, 0x47a08c
cmp eax, esi
mov edi, eax
jae 0x4421bc
mov eax, dword [edi]
test eax, eax
je 0x4421b5
call eax
add edi, 4
cmp edi, esi
jb 0x4421ad
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4421cd
push 8
call fcn.00444192
jmp 0x4421df
push dword [ebp + 8]
mov dword [0x47e178], 1
call fcn.00442068
pop ecx
pop ebp
ret
Function at 0x4452ee
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0043f3a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x445383
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x47e138]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x445383
cmp eax, 1
je 0x44539b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x445383
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x445358
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x44537f
xor eax, eax
inc eax
jmp 0x4453b7
cmp esi, ebx
jae 0x445387
xor eax, eax
jmp 0x4453b7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x47e138]
jmp 0x44539d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447075
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x47b978]
je 0x4470a2
inc eax
cmp eax, 0x12
jb 0x447093
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x47b978]
jne 0x4471d6
mov eax, dword [0x47e130]
cmp eax, 1
je 0x4471b1
cmp eax, edx
jne 0x4470d2
cmp dword [0x47b348], 1
je 0x4471b1
cmp ecx, 0xfc
je 0x4471d6
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44710b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00444ba0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004409d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44714d
lea eax, [ebp - 0x10c]
push eax
call fcn.004409d0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x47169c
push edi
call fcn.004493a0
add esp, 0x10
push edi
call fcn.004409d0
push dword [esi + 0x47b97c]
mov ebx, eax
call fcn.004409d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043f3a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00444ba0
push edi
push ebx
call fcn.00444bb0
push 0x471698
push ebx
call fcn.00444bb0
push dword [esi + 0x47b97c]
push ebx
call fcn.00444bb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00449299
add esp, 0x2c
jmp 0x4471d6
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x47b97c]
push dword [esi]
call fcn.004409d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0043eeae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4477e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004402f9
test eax, eax
pop ecx
jne 0x447805
or eax, 0xffffffff
jmp 0x4479e2
mov dword [0x47f620], eax
mov dword [0x47f604], 0x20
lea ecx, [eax + 0x480]
jmp 0x44783a
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x47f620]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x44781c
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x447941
mov eax, dword [esp + 0x48]
test eax, eax
je 0x447941
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x44787b
mov edi, eax
cmp dword [0x47f604], edi
jge 0x4478d1
mov esi, 0x47f624
push ebx
call fcn.004402f9
test eax, eax
pop ecx
je 0x4478cb
add dword [0x47f604], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x4478ba
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x4478a4
add esi, 4
cmp dword [0x47f604], edi
jl 0x447888
jmp 0x4478d1
mov edi, dword [0x47f604]
xor ebx, ebx
test edi, edi
jle 0x447941
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x447936
mov cl, byte [ebp]
test cl, 1
je 0x447936
test cl, 8
jne 0x4478fa
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x447936
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x47f620]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00447aed
test eax, eax
pop ecx
pop ecx
je 0x447961
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x4478d7
xor ebx, ebx
mov ecx, dword [0x47f620]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x4479c3
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x447966
push 0xfffffffffffffff6
pop eax
jmp 0x447970
or eax, 0xffffffff
jmp 0x4479df
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4479bd
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4479bd
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x44799b
or byte [esi + 4], 0x40
jmp 0x4479a4
cmp eax, 3
jne 0x4479a4
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00447aed
test eax, eax
pop ecx
pop ecx
je 0x447961
inc dword [esi + 8]
jmp 0x4479c7
or byte [esi + 4], 0x40
jmp 0x4479c7
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x447943
push dword [0x47f604]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x448025
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4481eb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47f620]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4481eb
test cl, 0x48
je 0x44808b
mov al, byte [eax + 5]
cmp al, 0xa
je 0x44808b
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4480dd
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4480c5
call fcn.00441387
mov dword [eax], 9
call fcn.00441390
mov dword [eax], esi
jmp 0x4480d5
cmp eax, 0x6d
je 0x4481eb
push eax
call fcn.00441399
pop ecx
or eax, 0xffffffff
jmp 0x4481ed
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4481e6
test edx, edx
je 0x448100
cmp byte [ebx], 0xa
jne 0x448100
or al, 4
jmp 0x448102
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4481e0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4481d0
cmp al, 0xd
je 0x448136
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4481c2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x448150
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44814b
add dword [ebp + 0x10], 2
jmp 0x4481a4
mov dword [ebp + 0x10], eax
jmp 0x4481be
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x448178
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4481be
cmp dword [ebp - 0xc], 0
je 0x4481be
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x448199
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4481a4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4481c1
cmp ebx, dword [ebp + 0xc]
jne 0x4481a9
cmp byte [ebp - 1], 0xa
jne 0x4481a9
mov byte [ebx], 0xa
jmp 0x4481c1
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044859f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4481c2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44811a
jmp 0x4481e0
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4481e0
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4481ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44829d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4482c6
xor eax, eax
jmp 0x448434
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x47f620]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4482f9
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00449e2d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4483cb
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x448406
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x448354
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x448345
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x448328
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x448394
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x44839d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x448319
jmp 0x44839f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x44842f
cmp dword [ebp - 8], edi
je 0x448406
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4483f8
call fcn.00441387
mov dword [eax], 9
call fcn.00441390
mov dword [eax], esi
jmp 0x448401
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4483ed
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x44839f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x44839f
push dword [ebp - 8]
call fcn.00441399
pop ecx
or eax, 0xffffffff
jmp 0x448432
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44841b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x44841b
xor eax, eax
jmp 0x448432
call fcn.00441387
mov dword [eax], 0x1c
call fcn.00441390
mov dword [eax], edi
jmp 0x448401
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0043eeae
leave
ret
Function at 0x449299
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47e514], ebx
push esi
push edi
jne 0x449319
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x449354
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x47e514], eax
je 0x449354
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47e518], eax
call esi
cmp dword [0x47e138], 2
mov dword [0x47e51c], eax
jne 0x449319
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47e524], eax
je 0x449319
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x47e520], eax
mov eax, dword [0x47e520]
test eax, eax
je 0x44935e
call eax
test eax, eax
je 0x449345
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47e524]
test eax, eax
je 0x449345
test byte [ebp - 8], 1
jne 0x44935e
cmp dword [0x47e144], 4
jb 0x449358
or byte [ebp + 0x12], 0x20
jmp 0x44937d
xor eax, eax
jmp 0x44938d
or byte [ebp + 0x12], 4
jmp 0x44937d
mov eax, dword [0x47e518]
test eax, eax
je 0x44937d
call eax
mov ebx, eax
test ebx, ebx
je 0x44937d
mov eax, dword [0x47e51c]
test eax, eax
je 0x44937d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47e514]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b0b4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x44b11f
push 0x3d
push dword [ebp + 8]
call fcn.004401a3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x44b11f
cmp dword [ebp + 8], esi
je 0x44b11f
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x47e158]
cmp eax, dword [0x47e15c]
jne 0x44b105
mov edi, eax
call fcn.0044b053
mov dword [0x47e158], eax
cmp eax, ebx
jne 0x44b15e
cmp dword [ebp + 0xc], ebx
je 0x44b127
cmp dword [0x47e160], ebx
je 0x44b127
call fcn.0044a931
test eax, eax
je 0x44b15e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x44b262
push 4
call fcn.004402f9
cmp eax, ebx
pop ecx
mov dword [0x47e158], eax
je 0x44b11f
mov dword [eax], ebx
cmp dword [0x47e160], ebx
jne 0x44b15e
push 4
call fcn.004402f9
cmp eax, ebx
pop ecx
mov dword [0x47e160], eax
je 0x44b11f
mov dword [eax], ebx
mov ebx, dword [0x47e158]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0044b006
mov edi, eax
test edi, edi
pop ecx
jl 0x44b1b7
cmp dword [ebx], 0
je 0x44b1b7
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0044030b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x44b19f
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x44b1ed
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x44b196
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00440a7b
test eax, eax
pop ecx
pop ecx
je 0x44b1ed
jmp 0x44b1e8
cmp dword [ebp - 4], 0
jne 0x44b25b
test edi, edi
jge 0x44b1c7
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00440a7b
test eax, eax
pop ecx
pop ecx
je 0x44b11f
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x47e158], eax
cmp dword [ebp + 0xc], 0
je 0x44b244
push dword [ebp + 8]
call fcn.004409d0
inc eax
inc eax
push eax
call fcn.004402f9
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44b244
push dword [ebp + 8]
push esi
call fcn.00444ba0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x44b23d
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0044030b
pop ecx
cmp dword [ebp - 4], 0
je 0x44b253
push dword [ebp + 8]
call fcn.0044030b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x44b122
push esi
call fcn.0044030b
pop ecx
xor eax, eax
jmp 0x44b122
Function at 0x44c2a1
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45c78b
call fcn.00440a5c
sub esp, 0x14c
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
test eax, eax
jne 0x44c2eb
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
xor eax, eax
jmp 0x44c380
push ebx
call fcn.0044bd3a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0044c25f
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x44c372
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
je 0x44c375
test byte [ebp + 8], 2
jne 0x44c340
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x44c372
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x44c372
push eax
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_lstrcpy]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401f30
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0043eeae
leave
ret 8
Function at 0x450b9c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.00440f60
add esp, 0xc
call fcn.0045672c
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x450c6c
cmp dword [ebp - 8], ebx
je 0x450c67
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x450a6e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00441fdd
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x450c76
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x450c3f
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x450c59
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x450c71
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x450c78
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x450c76
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc