joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447b01
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.0043fddf
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 0x447b4e
mov eax, dword [esi]
cmp word [eax], 0
jne 0x447b4e
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.0043fddf
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x447c10
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 0x447cc4
cmp cx, 0x61
jb 0x447c3b
cmp cx, 0x7a
ja 0x447c3b
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 0x447cde
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 0x447cba
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 0x447cde
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0043f3ac
add esp, 0xc
cmp eax, ebx
jne 0x447ce6
xor eax, eax
inc eax
jmp 0x447d85
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 0x447d4a
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x447d50
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x447d59
cmp dword [ebp - 0xc], ebx
je 0x447d78
push ebx
push ebx
push 0xc8
mov ecx, 0x4c9048
call fcn.00414c28
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x447d7a
mov al, byte [ebp + 0xb]
jmp 0x447d27
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 0x449946
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.0043ad24
add esp, 0x14
cmp eax, esi
jne 0x449a94
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 0x449993
push 0x4ae9fc
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 0x4499c1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043fdb8
cmp dword [ebp - 0xc], esi
jne 0x449a80
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x449a30
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x449a30
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 0x449a2a
cmp word [edi], si
je 0x449a2d
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x449a2d
mov dword [ebp - 0xc], eax
dec ebx
jns 0x4499f0
test byte [ebp + 0x10], 2
je 0x449a7e
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x449a7e
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 0x449a78
cmp word [edi], si
je 0x449a7b
push edi
push dword [ebp - 4]
call dword [0x4c9194]
cmp eax, esi
je 0x449a7b
mov dword [ebp - 0xc], eax
dec ebx
jns 0x449a3e
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x449a97
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.004483cf
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.004483cf
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4c9048
call fcn.0041009a
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00439cfd
lea ecx, [ebp - 8]
call fcn.00439cfd
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, 0x4af60a
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x449b72
cmp byte [eax], 0x2d
jne 0x449b53
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x449b72
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 0x44b5a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp byte [0x4c9348], bl
jne 0x44b725
push esi
push edi
push 0x1122
lea ecx, [ebp - 0x18]
call fcn.0043fdb8
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [esi], ebx
push str.TIPSDUMMY
mov dword [esi + 4], ebx
mov word [esi], bx
push str.SOFTWAREPELOGON
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xc], 0x1ffe
call fcn.0043ad75
add esp, 0x18
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x44b61a
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x44b61d
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [esi + eax*2], bx
cmp word [esi], bx
jne 0x44b709
lea eax, [esi + 0x2000]
push 0x104
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str..USRCFG.INI
lea eax, [esi + 0x2000]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
lea eax, [esi + 0x2000]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004054c4
push ebx
lea eax, [ebp - 8]
push eax
push 0x1ffe
push esi
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
shr dword [ebp - 8], 1
mov eax, 0xffe
cmp dword [ebp - 8], eax
jbe 0x44b6a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [esi + eax*2], bx
cmp word [esi], 0xfeff
jne 0x44b6e3
add esi, 2
mov dword [ebp - 4], esi
jmp 0x44b6e3
lea eax, [ebp - 4]
push eax
call fcn.00439c95
mov esi, dword [ebp - 4]
push 0xd
lea eax, [ebp - 4]
push 0xa
push eax
call fcn.0043a11e
push 0xa
push str.TIPSDUMMY:
push esi
call fcn.0040e912
add esp, 0x1c
test al, al
jne 0x44b6ed
mov eax, dword [ebp - 4]
cmp word [eax], bx
jne 0x44b6b6
jmp 0x44b701
mov eax, dword [ebp - 4]
add esi, 0x14
cmp word [eax], bx
je 0x44b6fb
mov word [eax], bx
xor edi, edi
mov dword [ebp - 0x14], esi
inc edi
lea ecx, [ebp - 0x10]
call fcn.00402c5b
xor eax, eax
cmp edi, ebx
setne al
push eax
push dword [ebp - 0x14]
call fcn.0044b521
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00439cfd
pop edi
pop esi
mov eax, dword [0x4c97bc]
pop ebx
leave
ret
Function at 0x44b813
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push edi
xor ebx, ebx
inc ebx
xor edi, edi
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov word [ebp - 0x21c], di
call fcn.0043fdb8
cmp dword [ebp + 0x14], edi
jne 0x44b867
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ebx, eax
cmp ebx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp + 0x14], eax
je 0x44b99a
cmp dword [ebp - 4], edi
push esi
mov esi, 0xa0000000
mov dword [ebp - 0xc], edi
je 0x44b87a
mov esi, 0xe0000000
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4c91c4]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jne 0x44b8d1
cmp dword [ebp - 4], 1
jne 0x44b8c7
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
call dword [0x4c91c4]
test eax, eax
mov dword [ebp - 8], eax
je 0x44b899
cmp dword [ebp - 8], 0
jne 0x44b8d1
call edi
xor ebx, ebx
test ebx, ebx
je 0x44b98a
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [0x4c91c8]
mov ebx, eax
test ebx, ebx
jne 0x44b8ee
call edi
inc ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [0x4c91cc]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x44b905
call edi
xor ebx, ebx
test ebx, ebx
je 0x44b97b
cmp dword [ebp - 4], 0
mov esi, 0x400
jne 0x44b919
mov esi, 0x600
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4c91d0]
mov ebx, eax
call edi
test ebx, ebx
jne 0x44b97b
test esi, 0x400
je 0x44b956
cmp eax, 0x57
jne 0x44b956
and esi, 0xfffffbff
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4c91d0]
mov ebx, eax
call edi
test ebx, ebx
je 0x44b92e
test ebx, ebx
jne 0x44b97b
cmp dword [ebp - 4], 2
jne 0x44b979
or esi, 0x200
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4c91d0]
mov ebx, eax
test ebx, ebx
jne 0x44b97b
call edi
cmp dword [ebp + 0x14], 0
je 0x44b98a
push dword [ebp + 0x14]
call dword [0x4c91d4]
cmp dword [ebp - 8], 0
pop esi
je 0x44b99a
push dword [ebp - 8]
call dword [0x4c91d4]
lea ecx, [ebp - 0x10]
call fcn.00439cfd
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x44bde7
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 0x44be19
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.0043fdb8
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.0043af58
add esp, 0xc
test al, al
jne 0x44be72
push 0xc
push edi
push str.DosDevices_
call fcn.0043af58
add esp, 0xc
test al, al
jne 0x44be72
cmp word [edi], bx
je 0x44be76
cmp word [edi + 2], bx
je 0x44be76
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x44be76
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4b6d2c
call fcn.0043af58
mov ebx, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x44be9a
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x44bec1
cmp byte [ebp + 0x18], 0
je 0x44beac
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0043d3e8
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x44bed2
cmp byte [ebp + 0x18], al
jl 0x44bf1e
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x44befa
cmp byte [ebp + 0x18], 0
jle 0x44bf1e
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x44bf1e
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 0x44bf1e
test esi, esi
jne 0x44bf1e
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x44be9a
lea ecx, [ebp - 4]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44c9c3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0049a8f0
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.0043d51a
cmp eax, esi
pop ecx
pop ecx
jl 0x44c9ff
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x44ca02
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.0043fc43
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.0043ae64
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x44cadd
cmp edx, dword [ebp + 0x10]
jne 0x44cadd
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44cadd
push esi
push ebx
push edi
call fcn.00413203
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x44ca85
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.00413203
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.0043ae64
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x44cadd
cmp edx, dword [ebp + 0x10]
jne 0x44cadd
push dword [ebp - 8]
push ebx
push edi
call fcn.0044006c
add esp, 0xc
test eax, eax
jne 0x44cadd
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 4]
call fcn.00439cfd
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x44cfb9
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.0043fddf
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0043fdb8
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 0x44d08e
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x44d08e
and dword [ebp - 4], 0xfffffffc
jmp 0x44d08e
test edx, edx
jl 0x44d093
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 0x44d08b
cmp dword [ebp - 8], 0
je 0x44d05d
movsx ax, cl
push eax
call fcn.00499e9a
test eax, eax
pop ecx
je 0x44d08b
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x44d071
mov ax, word [ebp + 0xc]
test ax, ax
je 0x44d071
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 0x44d08b
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x44d023
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44d2a8
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 0x44d2eb
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x44d2e4
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.00448401
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 0x44db21
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
movzx esi, word [ebp + 0x1c]
lea eax, [esi - 1]
cdq
push edi
not eax
not edx
push 0xa0000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.0043fc43
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, 0x20000
xor ebx, ebx
and edi, 0xfffe0000
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
jne 0x44db9c
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x44dc8f
jle 0x44dc86
cmp dword [ebp + 0x18], ebx
jne 0x44dbc2
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x44dbc2
jg 0x44db98
cmp dword [ebp + 0x10], eax
jbe 0x44dbc2
xor cl, cl
jmp 0x44dbc4
mov eax, dword [ebp + 0x18]
cdq
add eax, ecx
adc edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049cbd0
mov dword [ebp - 8], eax
jmp 0x44db74
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x44dbdb
jg 0x44dbd4
cmp dword [ebp + 0x10], 0x10000000
jbe 0x44dbdb
mov esi, 0x10000000
jmp 0x44dbde
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x44dc52
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x44dbfd
jg 0x44dbfa
cmp esi, dword [ebp + 0x10]
jbe 0x44dbfd
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043ae64
add esp, 0x10
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp + 0x1c]
push eax
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.00413203
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043ae64
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x44dc5c
cmp dword [ebp + 0x1c], ebx
je 0x44dc5c
and esi, dword [ebp - 0x28]
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x44db83
jl 0x44dc8f
cmp dword [ebp + 0x10], ebx
ja 0x44db83
lea ecx, [ebp - 0xc]
call fcn.00439cfd
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ed7d
Capabilities:
Parse credit card information
Query environment variable

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

Function at 0x44ed9b
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 0x44ee5e
cmp esi, edi
je 0x44edc1
mov dword [ebp - 4], esi
jmp 0x44edc7
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x44ee57
push ebx
mov ebx, esi
jmp 0x44eddd
cmp ax, 0x3d
je 0x44ede7
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x44edd7
cmp dword [ebp + 0xc], edi
je 0x44ee04
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.00413db1
jmp 0x44ee47
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.004483b6
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.0040fd4e
test eax, eax
jne 0x44ee39
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.00413db1
lea ecx, [ebp - 8]
call fcn.00439cfd
xor edi, edi
jmp 0x44ee47
inc esi
inc esi
cmp word [esi], di
jne 0x44ee45
inc esi
inc esi
cmp word [esi], di
jne 0x44edd3
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret
Function at 0x44f176
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00447c10
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44f1f0
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 0x44f1e0
cmp ebx, 2
je 0x44f1f0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4c9048
call fcn.0044bf2d
pop ebx
leave
ret