joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012d0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 0xc], 0x368
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
xor edi, edi
mov dword [ebp - 0x4a4], ebx
push edi
push ebx
call fcn.00416080
add esp, 0xc
xor esi, esi
nop word [eax + eax]
push esi
lea eax, [ebp - 0x28c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.00401690
add esp, 0x14
cmp eax, 1
jne 0x40133f
inc edi
add ebx, 0x368
cmp edi, dword [ebp + 0xc]
je 0x40134a
inc esi
cmp esi, 0x14
jb 0x401310
mov ebx, 0x43
nop
push ebx
lea eax, [ebp - 0x494]
push str.._c:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x494]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4a8], eax
cmp eax, 0xffffffff
je 0x40144a
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push 0xc
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40143e
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x40143e
xor ecx, ecx
test edi, edi
jle 0x40143e
mov edx, dword [ebp - 0x49c]
add eax, 0x2a0
mov esi, dword [ebp - 0x4a0]
nop
cmp esi, 7
jne 0x4013e9
cmp dword [eax], edx
je 0x4013f5
inc ecx
add eax, 0x368
cmp ecx, edi
jl 0x4013e0
jmp 0x40143e
imul esi, ecx, 0x368
lea eax, [ebp - 0x84]
push ebx
push 0x462614
push eax
add esi, dword [ebp - 0x4a4]
mov byte [esi + 0x2a4], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp ebx, 0x43
jne 0x40143e
mov byte [esi + 0x2a5], 1
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x5a
jle 0x401350
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x401aa0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x22c], ebx
call fcn.00407340
mov ecx, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x80]
push ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebx + 0x88]
push eax
push esi
push str.GetDiskInfoByPortID_IN__iCmdType___d__iPort_I64d
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call fcn.00406d40
xor ebx, ebx
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jle 0x401b62
lea edi, [ebx + 0x64]
nop dword [eax + eax]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push esi
call fcn.004057e0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x401b75
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
cdq
idiv dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x224]
push 0
push 0x8030
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x228]
inc ebx
add edi, 0x64
cmp ebx, dword [ebp + 0xc]
jl 0x401b10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x230]
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401690
add esp, 0x14
cmp eax, 1
jne 0x401b62
push str.GetDiskInfoByPortID_Success_OUT
call fcn.00406d40
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x401c00
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ebx
mov dword [edi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ded
push 0
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x188], 0
push eax
push 8
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x190], 0
push eax
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x18c], 0
push eax
push 0x41018
movlpd qword [ebp - 0x1c0], xmm0
push esi
movups xmmword [ebp - 0x1b8], xmm0
mov dword [ebp - 0x1c0], 8
movups xmmword [ebp - 0x1a8], xmm0
movq qword [ebp - 0x198], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x401cff
movzx eax, byte [ebp - 0x1bb]
mov dword [edi + 8], eax
movzx eax, byte [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x84]
push 0x462430
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 0x1c4]
push eax
push 0x28
lea eax, [ebp - 0x1b8]
push eax
push 0xc
lea eax, [ebp - 0x190]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x401de5
mov eax, dword [ebp - 0x19c]
cmp eax, 0x11
jne 0x401d79
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.00401e00
lea eax, [ebp - 0x184]
push str.iaStor
push eax
call fcn.00408710
add esp, 0x10
neg eax
sbb eax, eax
neg eax
add eax, 2
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x401d9c
push esi
call fcn.004047a0
add esp, 4
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x401de5
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.00401e00
lea eax, [ebp - 0x184]
push str.iaStor
push eax
call fcn.00408710
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xffffff04
add eax, 0xff
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xff
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
imul eax, dword [ebp + 0xc], 0x368
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
xor edi, edi
mov dword [ebp - 0x4a4], ebx
push edi
push ebx
call fcn.00416080
add esp, 0xc
xor esi, esi
nop word [eax + eax]
push esi
lea eax, [ebp - 0x28c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.00402720
add esp, 0x14
cmp eax, 1
jne 0x4025ef
inc edi
add ebx, 0x368
cmp edi, dword [ebp + 0xc]
je 0x4025fa
inc esi
cmp esi, 0x14
jb 0x4025c0
mov ebx, 0x43
nop
push ebx
lea eax, [ebp - 0x494]
push str.._c:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x494]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4a8], eax
cmp eax, 0xffffffff
je 0x4026fa
push 0
lea ecx, [ebp - 0x4ac]
push ecx
push 0xc
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4026ee
mov eax, dword [ebp - 0x4a4]
test eax, eax
je 0x4026ee
xor ecx, ecx
test edi, edi
jle 0x4026ee
mov edx, dword [ebp - 0x49c]
add eax, 0x2a0
mov esi, dword [ebp - 0x4a0]
nop
cmp esi, 7
jne 0x402699
cmp dword [eax], edx
je 0x4026a5
inc ecx
add eax, 0x368
cmp ecx, edi
jl 0x402690
jmp 0x4026ee
imul esi, ecx, 0x368
lea eax, [ebp - 0x84]
push ebx
push 0x462614
push eax
add esi, dword [ebp - 0x4a4]
mov byte [esi + 0x2a4], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp ebx, 0x43
jne 0x4026ee
mov byte [esi + 0x2a5], 1
push dword [ebp - 0x4a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 0x5a
jle 0x402600
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x402b30
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x22c], ebx
call fcn.00407340
mov ecx, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x80]
push ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebx + 0x88]
push eax
push esi
push str.GetDiskInfoByPortID_IN__iCmdType___d__iPort_I64d
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call fcn.00406d40
xor ebx, ebx
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jle 0x402bf2
lea edi, [ebx + 0x64]
nop dword [eax + eax]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push esi
call fcn.004057e0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x402c05
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
cdq
idiv dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x224]
push 0
push 0x8030
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x228]
inc ebx
add edi, 0x64
cmp ebx, dword [ebp + 0xc]
jl 0x402ba0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x230]
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call fcn.00402720
add esp, 0x14
cmp eax, 1
jne 0x402bf2
push str.GetDiskInfoByPortID_Success_OUT
call fcn.00406d40
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x402c90
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
mov dword [edi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d87
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], 0
push eax
push 0x28
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
push 0x2d1400
push esi
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x402d7f
mov eax, dword [ebp - 0x1c]
cmp eax, 0xb
jne 0x402d3b
mov dword [edi], 0x10
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x402d58
mov dword [edi], 0x11
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x402d67
cmp eax, 9
je 0x402d67
cmp eax, 0xa
jne 0x402d7f
mov dword [edi], 0x12
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xff
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a46c
mov esp, ebp
pop ebp
ret

Function at 0x403780
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00407340
mov ebx, dword [ebp + 0x18]
push 4
push 0x3000
mov dword [ebp - 8], eax
lea esi, [ebx + 0x30]
mov dword [ebp - 4], 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2d1400
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov dword [edi], 0x31
mov dword [edi + 4], 0
mov dword [edi + 8], 3
mov dword [edi + 0xc], 1
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], 0x28
mov dword [edi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x40382f
push ebx
lea eax, [edi + 0x30]
push eax
push dword [ebp + 0x14]
call fcn.00415b00
add esp, 0xc
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 1
push esi
call fcn.00403a60
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
push 0x8000
push 0
push edi
mov dword [ecx + 0x7540], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xfffffffffffffffc
push esi
call fcn.00403a60
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405540
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x1a
push 0
push 0
push 0x46481c
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
mov dword [ebp - 0xa0], 0x1c
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x405691
push edi
nop
xor eax, eax
push esi
push 0x46481c
mov word [ebp - 0x84], ax
call fcn.004056b0
add esp, 8
mov edi, eax
lea eax, [ebp - 0xbc]
push 0
push eax
push 0xc
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4055fa
push dword [ebp - 0xa8]
lea eax, [ebp - 0x84]
push str..PHYSICALDRIVE_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xb4]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405632
lea eax, [ebp - 0xa0]
inc esi
push eax
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4055a0
jmp 0x405690
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x405647
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
jmp 0x405690
cmp eax, 1
jne 0x405663
push 0
push dword [ebp - 0x8c]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
jmp 0x405690
cmp eax, 2
jne 0x405690
mov esi, dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
lea eax, [ebp - 0xb8]
push 0
push dword [ebp - 0x8c]
push eax
call esi
push 0
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb0]
push eax
call esi
pop edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xb0]
xor ecx, ebp
pop esi
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x406c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
not eax
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x406c9d
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x462910]
sub edx, 1
jne 0x406c83
not eax
pop esi
pop ebp
ret

Function at 0x406cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
jne 0x406ce5
lea eax, [ebp + 0xc]
mov dword [esi + 4], 0
push eax
push 0
push esi
push dword [ebp + 0x10]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x406cf2
mov eax, 1
pop esi
pop ebp
ret
push str.Thread_is_Running
call fcn.00406d40
add esp, 4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x406d40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00407340
cmp dword [eax + 0x7544], 1
jne 0x406ddb
push esi
push str._IG____________middle_
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0x804]
lea esi, [esi + eax*2]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0x3ff
push esi
call fcn.004087b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0043e887
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x406dc4
cmp eax, 0x3ff
ja 0x406dc4
jne 0x406dcd
xor eax, eax
mov word [esi + 0x7fe], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret

Function at 0x4072c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4072ee
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push edi
push 0
test eax, eax
jne 0x407310
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407ea0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x28]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
push 0x46290c
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ecx
push eax
push 0
push dword [ebp - 0x28]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret

Function at 0x408060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push edi
cmp eax, 0x40000000
jne 0x408075
mov ecx, 2
jmp 0x40807c
cmp eax, 4
jne 0x4080bc
mov ecx, eax
push 0
push 0x80
push ecx
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4080bc
push esi
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret

Function at 0x408110
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1254
call fcn.0040a480
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push eax
push ebx
lea eax, [ebp - 0x804]
push 0x462d8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081b9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax + eax]
test byte [ebp - 0x1254], 0x10
jne 0x4081a3
lea eax, [ebp - 0x1228]
push eax
push ebx
lea eax, [ebp - 0x1004]
push 0x462d8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1254]
push eax
push esi
call edi
test eax, eax
jne 0x408170
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str._IG_
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0x804]
lea esi, [esi + eax*2]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0x3ff
push esi
call fcn.004087b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0043e887
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x4083b6
cmp eax, 0x3ff
ja 0x4083b6
jne 0x4083bf
xor eax, eax
mov word [esi + 0x7fe], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a46c
mov esp, ebp
pop ebp
ret

Function at 0x4084b0
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
mov dword [ebp - 0x210], ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408290
add esp, 8
lea eax, [ebp - 0x20c]
push str.ReleasePackage.a
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push esi
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call fcn.00408060
mov esi, dword [ebp - 0x210]
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408580
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret
Function at 0x408580
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call fcn.004111d0
mov ebx, eax
push edi
push ebx
call fcn.00411300
lea eax, [ebp - 0x43c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.00411050
mov edi, dword [ebp - 0x43c]
add esp, 0x1c
xor esi, esi
test edi, edi
jle 0x4085f8
lea eax, [ebp - 0x43c]
push eax
push esi
push ebx
call fcn.00411050
lea eax, [ebp - 0x438]
push eax
push esi
push ebx
call fcn.00411890
inc esi
add esp, 0x18
cmp esi, edi
jl 0x4085d4
push ebx
call fcn.004110b0
add esp, 4
push ebx
test al, al
je 0x40860d
call fcn.004104e0
jmp 0x408612
call fcn.0040c480
add esp, 4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x40862b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a46c
mov esp, ebp
pop ebp
ret