joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4448f8
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
mov dword [ebp - 4], esi
jg 0x444917
xor eax, eax
jmp 0x444adc
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call fcn.0043c57d
lea ecx, [ebp - 0xc]
call fcn.0040dd30
push dword [edi + 4]
mov eax, dword [edi]
push eax
call fcn.0043c605
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x444957
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x44495c
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x444976
mov eax, dword [0x4be324]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x44496f
cmp dword [ebp - 0xc], esi
jne 0x44496f
call eax
mov esi, edi
jmp 0x444acf
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x4a3cc4
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x4449cc
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x4a3cb8
call edi
cmp eax, esi
jg 0x4449cc
mov eax, dword [0x4be324]
cmp eax, esi
je 0x444ace
cmp dword [ebp - 0xc], esi
jne 0x444ace
call eax
jmp 0x444ace
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00439c36
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push str.pecmd_bmp._lu._lu.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x80
push 1
push esi
push 5
push 0x40000000
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 8]
call fcn.0040511c
cmp dword [ebp - 8], esi
jne 0x444a41
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 0x10]
jns 0x4449dd
lea ecx, [ebp - 8]
call fcn.00402b5a
jmp 0x4449af
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov dword [ebp - 0x14], esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 8]
call fcn.00402b5a
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x444aa4
lea eax, [ebp - 0x2e4]
push eax
call fcn.004444b5
mov edi, eax
cmp edi, esi
pop ecx
je 0x444aa4
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x444aa4
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402b5a
mov eax, dword [0x4be324]
cmp eax, esi
je 0x444acc
cmp dword [ebp - 0xc], esi
jne 0x444acc
call eax
mov esi, edi
pop ebx
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x444d2c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
mov ecx, esi
call fcn.0043d4c2
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push eax
push dword [esp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jle 0x444d79
mov eax, dword [esi]
cmp word [eax], 0
jne 0x444d79
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.0043d4c2
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x444e3b
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push 3
pop eax
jge 0x444eef
cmp cx, 0x61
jb 0x444e66
cmp cx, 0x7a
ja 0x444e66
and ecx, 0xffdf
push 0x5c
pop eax
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x14], ax
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], ax
push ebx
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x12], bx
mov word [ebp - 0x24], 0x2e
mov word [ebp - 0x20], cx
mov word [ebp - 0x1e], 0x3a
mov word [ebp - 0x1c], bx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x444f09
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
pop edi
je 0x444ee5
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp dword [ebp + 8], 0xffffffff
je 0x444f09
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0043cb6f
add esp, 0xc
cmp eax, ebx
jne 0x444f11
xor eax, eax
inc eax
jmp 0x444fb0
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x10]
shr eax, 0xe
and al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov word [ebp - 0x240], bx
je 0x444f75
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x444f7b
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x444f84
cmp dword [ebp - 0xc], ebx
je 0x444fa3
push ebx
push ebx
push 0xc8
mov ecx, 0x4bdfa0
call fcn.00413857
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x444fa5
mov al, byte [ebp + 0xb]
jmp 0x444f52
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x446da1
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 4
push 0x2001b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.004389ac
add esp, 0x14
cmp eax, esi
jne 0x446eef
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x446dee
push 0x4a39d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x446e1c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043d49b
cmp dword [ebp - 0xc], esi
jne 0x446edb
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x446e8b
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x446e8b
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x446e85
cmp word [edi], si
je 0x446e88
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x446e88
mov dword [ebp - 0xc], eax
dec ebx
jns 0x446e4b
test byte [ebp + 0x10], 2
je 0x446ed9
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x446ed9
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x446ed3
cmp word [edi], si
je 0x446ed6
push edi
push dword [ebp - 4]
call dword [0x4be110]
cmp eax, esi
je 0x446ed6
mov dword [ebp - 0xc], eax
dec ebx
jns 0x446e99
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00437960
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x446ef2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044581a
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0044581a
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4bdfa0
call fcn.0040f2bd
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00437960
lea ecx, [ebp - 8]
call fcn.00437960
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x4a450a
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x446fcd
cmp byte [eax], 0x2d
jne 0x446fae
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x446fcd
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x448b2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor eax, eax
push edi
inc eax
xor ebx, ebx
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x21c], bx
call fcn.0043d49b
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x448b86
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp eax, ebx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x21c]
je 0x448c96
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x448b99
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4be138]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x448bec
cmp dword [ebp - 0xc], 1
jne 0x448bde
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
call dword [0x4be138]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x448bb2
cmp dword [ebp + 0x14], ebx
jne 0x448bec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x448c87
push edi
push dword [ebp + 0x14]
call dword [0x4be13c]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x448c13
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x4be140]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x448c2f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x448c79
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x448c42
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4be144]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x448c79
cmp dword [ebp - 0xc], 2
jne 0x448c6e
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4be144]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x448c79
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], ebx
je 0x448c87
push dword [ebp - 8]
call dword [0x4be148]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x448c96
push dword [ebp + 0x14]
call dword [0x4be148]
lea ecx, [ebp - 0x10]
call fcn.00437960
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x44909a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x4490cc
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.0043d49b
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.00438b8f
add esp, 0xc
test al, al
jne 0x449125
push 0xc
push edi
push str.DosDevices_
call fcn.00438b8f
add esp, 0xc
test al, al
jne 0x449125
cmp word [edi], bx
je 0x449129
cmp word [edi + 2], bx
je 0x449129
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x449129
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4abfa0
call fcn.00438b8f
mov ebx, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x44914d
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x449174
cmp byte [ebp + 0x18], 0
je 0x44915f
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0043ad1b
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x449185
cmp byte [ebp + 0x18], al
jl 0x4491d1
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x4491ad
cmp byte [ebp + 0x18], 0
jle 0x4491d1
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4491d1
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x4491d1
test esi, esi
jne 0x4491d1
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x44914d
lea ecx, [ebp - 4]
call fcn.00437960
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449e87
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.0043d4c2
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0043d49b
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x449f5c
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x449f5c
and dword [ebp - 4], 0xfffffffc
jmp 0x449f5c
test edx, edx
jl 0x449f61
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x449f59
cmp dword [ebp - 8], 0
je 0x449f2b
movsx ax, cl
push eax
call fcn.0048ef0d
test eax, eax
pop ecx
je 0x449f59
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x449f3f
mov ax, word [ebp + 0xc]
test ax, ax
je 0x449f3f
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x449f59
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x449ef1
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00437960
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44a176
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44a1b9
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x44a1b2
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.0044584c
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x44b1a4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0xa0000
lea ecx, [ebp - 0xc]
call fcn.0043d373
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add edi, 0x20000
xor eax, eax
and edi, 0xfffe0000
cmp byte [ebp + 0x1c], al
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], eax
mov ebx, 0x200
jne 0x44b1e9
mov dword [ebp + 0x18], eax
jmp 0x44b1fb
mov eax, dword [ebp + 0x18]
cdq
push 0
add eax, ecx
push ebx
adc edx, esi
push edx
push eax
call fcn.00491e30
test esi, esi
mov dword [ebp - 8], eax
jl 0x44b2fa
jle 0x44b2f0
cmp dword [ebp + 0x18], 0
jne 0x44b226
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x44b226
jg 0x44b222
cmp dword [ebp + 0x10], eax
jbe 0x44b226
xor dl, dl
jmp 0x44b228
mov dl, 1
cmp dword [ebp + 0x14], 0
jl 0x44b240
jg 0x44b239
cmp dword [ebp + 0x10], 0x10000000
jbe 0x44b240
mov esi, 0x10000000
jmp 0x44b243
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x44b2b3
mov esi, ebx
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x44b262
jg 0x44b25f
cmp esi, dword [ebp + 0x10]
jbe 0x44b262
mov esi, dword [ebp + 0x10]
push 1
push eax
push eax
push dword [ebp + 8]
call fcn.00438aec
add esp, 0x10
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.004125f9
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00438aec
add esp, 0x1c
mov eax, ebx
mov ecx, edi
jmp 0x44b2c1
cmp byte [ebp + 0x1c], 0
je 0x44b2c1
and esi, 0xfffffe00
mov eax, esi
and dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub dword [ebp + 0x10], esi
push 0
pop eax
sbb dword [ebp + 0x14], eax
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
jg 0x44b20c
jl 0x44b2fa
cmp dword [ebp + 0x10], 0
ja 0x44b20c
lea ecx, [ebp - 0xc]
call fcn.00437960
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c0fc
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x44c114
test byte [ecx + 9], 0xf
jne 0x44c114
pop ebp
jmp fcn.0044c004
pop ebp
jmp fcn.0044b30d

Function at 0x44c11a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x44c1dd
cmp esi, edi
je 0x44c140
mov dword [ebp - 4], esi
jmp 0x44c146
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x44c1d6
push ebx
mov ebx, esi
jmp 0x44c15c
cmp ax, 0x3d
je 0x44c166
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x44c156
cmp dword [ebp + 0xc], edi
je 0x44c183
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.00412db7
jmp 0x44c1c6
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.00445801
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.0040ef74
test eax, eax
jne 0x44c1b8
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.00412db7
lea ecx, [ebp - 8]
call fcn.00437960
xor edi, edi
jmp 0x44c1c6
inc esi
inc esi
cmp word [esi], di
jne 0x44c1c4
inc esi
inc esi
cmp word [esi], di
jne 0x44c152
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret
Function at 0x44c4f5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00444e3b
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44c56f
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
je 0x44c55f
cmp ebx, 2
je 0x44c56f
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4bdfa0
call fcn.004491e0
pop ebx
leave
ret
Function at 0x44d0be
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x44d167
cmp dword [ebp + 0xc], edi
jne 0x44d0e8
mov eax, 0x80070057
jmp 0x44d25b
cmp dword [0x4be33c], edi
jle 0x44d259
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44d129
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jne 0x44d25b
jmp 0x44d283
push edi
lea eax, [ebp + 8]
push eax
push dword [0x4be33c]
push dword [0x4beb10]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4beb10]
cmp eax, edi
mov dword [0x4be33c], edi
je 0x44d15c
call fcn.00437949
mov dword [0x4beb10], edi
jmp 0x44d259
cmp dword [ebp + 0x10], edi
je 0x44d274
push dword [ebp + 0x10]
call fcn.0041361c
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x44d283
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub esi, dword [ebx]
sub eax, dword [ebx + 4]
cmp esi, edi
mov dword [ebp - 0x10], eax
jle 0x44d260
cmp eax, edi
jle 0x44d260
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [0x4bde30]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4bde34]
cmp esi, dword [ebp - 8]
jne 0x44d1d3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x44d260
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0043cde9
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x44d283
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], edi
call dword [0x4bde0c]
push 2
push dword [ebp + 8]
call dword [0x4bde40]
push dword [ebp - 0x10]
push esi
push edi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4bde10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0044cd77
add esp, 0xc
cmp ebx, edi
mov esi, eax
je 0x44d24b
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], edi
je 0x44d259
push dword [ebp - 4]
call dword [0x4bde08]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044cd77
add esp, 0xc
mov esi, eax
jmp 0x44d24b
push edi
push ebx
call fcn.0043cde9
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
jne 0x44d231
xor eax, eax
inc eax
jmp 0x44d25b