joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47e750]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418f99
cmp byte [ebx], 0xa
jne 0x418f99
or byte [eax + edi + 0x28], 4
jmp 0x418f9e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41909c
mov al, byte [edx]
cmp al, 0x1a
je 0x41907e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418fcd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418ff2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418ffc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x418faf
jmp 0x41909c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419079
cmp dword [ebp - 0xc], 0
je 0x419079
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e750]
test byte [eax + edi + 0x28], 0x48
je 0x419053
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41903e
mov byte [esi], dl
jmp 0x41904f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e750]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41909c
cmp byte [ebp - 1], 0xa
jne 0x419062
cmp esi, ebx
jne 0x419062
mov byte [esi], 0xa
jmp 0x41909b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419ad9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41909c
mov byte [esi], 0xd
jmp 0x41909b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419098
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41909c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4190a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47e750]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4190e8
cmp word [esi], dx
jne 0x4190e8
or byte [edi + eax + 0x28], 4
jmp 0x4190ed
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419240
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419220
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41912f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419165
cmp eax, edx
jae 0x419171
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419107
jmp 0x419240
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41921c
cmp dword [ebp - 0x14], 0
je 0x41921c
mov eax, dword [ebx*4 + 0x47e750]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4191f4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4191bd
mov word [esi], cx
jmp 0x4191f0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e750]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e750]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e750]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419240
pop ebx
cmp word [ebp - 4], bx
jne 0x419205
cmp esi, dword [ebp + 0xc]
jne 0x419205
mov word [esi], bx
jmp 0x41923d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419ad9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419240
push 0xd
jmp 0x419239
mov ecx, dword [ebx*4 + 0x47e750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419237
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419240
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bd8c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41be29
push ebx
push esi
call fcn.0041bd55
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a9da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bdd6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41be28
push edi
push eax
call fcn.004158e7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41bdf6
call fcn.004146ff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41be27
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a9da
add esp, 0x20
test eax, eax
jne 0x41be15
push edi
call fcn.004146ff
jmp 0x41be1d
push ebx
call fcn.004146ff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4235bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4235bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x425570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edx, str.sioABcuhcuAUIs
mov ecx, 0x47dc38
call fcn.00403800
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x10], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.00403660
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0xc], al
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x4255d8
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0xc]
mov ecx, edi
call fcn.004047b0
mov ecx, edi
call fcn.00403430
push 4
call fcn.00407415
add esp, 4
lea ecx, [esp + 0x18]
mov dword [eax], 0x425440
push ecx
push 0
push eax
push 0x404e30
push 0
push 0
call fcn.0040bc1c
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x4256e8
cmp dword [esp + 0x18], 0
je 0x4256f7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x4256fe
push 0
push ecx
push dword [esp + 0x1c]
call fcn.00406cd2
add esp, 0xc
test eax, eax
jne 0x425705
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
xor ecx, ecx
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 0x20], ecx
lea edi, [eax + 0x64]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov esi, 2
cmp ecx, eax
je 0x425688
mov dword [ecx], 0
add ecx, 4
mov dword [esp + 0x20], ecx
jmp 0x42569f
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404960
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub esi, 1
jne 0x425675
sub edi, 1
jne 0x425670
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4256d9
sub eax, edx
mov ecx, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x4256cf
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x42570c
push eax
push edx
call fcn.00407445
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x425711
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [esp + 0x1c], 0
call fcn.0040501f
push 1
call fcn.0040501f
push 5
call fcn.0040501f
push 2
call fcn.0040501f
call fcn.0040f26f
call fcn.0040e59b
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4c86b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x85000]
push edi
or ebp, 0xffffffff
jmp 0x4c86d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c86d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c86c8
mov eax, 1
add ebx, ebx
jne 0x4c86eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c86fc
jne 0x4c871b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c871b
dec eax
add ebx, ebx
jne 0x4c8708
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c86e0
add ebx, ebx
jne 0x4c8717
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c876d
xor ecx, ecx
sub eax, 3
jb 0x4c8733
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c87a2
sar eax, 1
mov ebp, eax
jmp 0x4c873e
add ebx, ebx
jne 0x4c873e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c870c
inc ecx
add ebx, ebx
jne 0x4c874c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c870c
add ebx, ebx
jne 0x4c8759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c874e
jne 0x4c876a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c874e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c878c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c877e
jmp 0x4c86ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c878c
add edi, ecx
jmp 0x4c86ce
pop esi
mov edi, esi
mov ecx, 0x32e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c87aa
cmp byte [edi], 0x21
jne 0x4c87aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c87af
lea edi, [esi + 0xc5000]
mov eax, dword [edi]
or eax, eax
je 0x4c8827
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc9518]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc9630]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c87dc
mov ecx, edi
jns 0x4c880b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc9634]
or eax, eax
je 0x4c8821
mov dword [ebx], eax
add ebx, 4
jmp 0x4c87f9
call dword [esi + 0xc9644]
mov ebp, dword [esi + 0xc9638]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c885b
sub esp, 0xffffff80
jmp 0x4709b4
Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 4]
push eax
push 4
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401759
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X_in_WriteFile
push 0x4579e4
mov ecx, 0x448290
call fcn.00404b90
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x401760
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401784
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x401779
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1d], 0
mov byte [esi + 0x1c], 0
mov esp, ebp
pop ebp
ret

Function at 0x401790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4017d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X_in_ReadFile
push 0x4579e4
mov ecx, 0x448290
call fcn.00404b90
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4017df
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401803
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x4017f8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1d], 0
mov byte [esi + 0x1c], 0
mov esp, ebp
pop ebp
ret
Function at 0x402550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442488
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4563d4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
lea edi, [ecx + 4]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
push 0x2e
lea edx, [esp + 0x46]
mov dword [esp + 0x84], ebx
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], ebx
mov word [esp + 0x4c], cx
call fcn.004367d0
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x38], 0x30
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [esp + 0x3c], esp
mov word [esi], ax
push 7
mov eax, str.5.1_5.2
call fcn.004047c0
call fcn.00402d70
cmp al, bl
je 0x402625
push str.XP_detected__aborting_KMDF_detect.
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x40261e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042d224
add esp, 4
mov al, 1
jmp 0x402746
mov eax, str.IIF_NODRV
call fcn.00413b90
push str.Preparing_to_check_for_Kernal_Mode_Driver_Framework_1.11_or_higher
push 0x4579e4
mov ecx, 0x44842c
mov byte [esp + 0x1f], al
call fcn.00404b90
add esp, 8
cmp byte [esp + 0x17], bl
je 0x402682
push str.No_Driver_mode_detected__skipping_check.
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x40261e
mov edx, dword [esp + 0x24]
push edx
call fcn.0042d224
add esp, 4
mov al, 1
jmp 0x402746
push 0x2b
mov eax, str.SYSTEMCurrentControlSetControlWdfKmdf1
lea esi, [esp + 0x28]
call fcn.004047c0
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x4026a5
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40271a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push str.Version
push ecx
mov dword [esp + 0x34], 0x30
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x40]
push eax
call fcn.0042dc88
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 4
fcomp qword [0x44ee60]
fnstsw ax
test ah, 1
jne 0x40271a
mov bl, 1
push str.KMDF_1.11_or_higher_detected_
jmp 0x40271f
push str.KMDF_1.11_or_higher_not_detected_.
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 8
cmp dword [esp + 0x38], esi
jb 0x402744
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042d224
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareIntelSetup_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40494f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404960
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, eax
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404980
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x4579e4
call fcn.004047c0
cmp dword [0x4579f8], 8
mov eax, dword [0x4579e4]
jae 0x4049aa
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042dc9b
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x44967c
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
pop esi
call fcn.0042d215
mov esp, ebp
pop ebp
ret 4
Function at 0x404a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.2.5.48
push str.Core_version:__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov edi, dword [0x458d08]
add esp, 0xc
push str.IIF_SETUPVERSION
add edi, 4
call fcn.00413b40
push eax
push str.Setup_version:__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_line:__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0xc
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004367d0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x12c], 1
mov eax, str.64_bit
je 0x404ae7
mov eax, str.32_bit
movzx ecx, byte [ebp - 0xe]
mov edx, dword [ebp - 0x120]
push eax
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x124]
push ecx
push edx
push eax
push str.OS_data:__d__d__d__d__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.System_up_time:__d_sec
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov eax, dword [0x458d08]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x404b51
mov eax, dword [eax]
push eax
call fcn.004048f0
add esp, 4
test al, al
mov eax, 0x4497a0
jne 0x404b68
mov eax, 0x4497a8
push eax
push str.Reboot_pending:__s
push 0x4579e4
mov ecx, 0x44842c
call fcn.00404b90
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.0042d215
mov esp, ebp
pop ebp
ret
Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4563d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
jb 0x404bb0
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404cd0
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x4a]
movzx edx, word [ebp - 0x4c]
movzx eax, word [ebp - 0x4e]
push esi
push ecx
movzx ecx, word [ebp - 0x50]
push edx
movzx edx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x56]
push ecx
movzx ecx, word [ebp - 0x58]
push edx
push eax
push ecx
lea edx, [ebp - 0x48]
push str._d:_02d:_02d__02d:_02d:_02d:_03d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x48]
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c27
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.0042df99
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c6dc
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push edi
call fcn.0042e124
push 0x449824
push esi
push edi
call fcn.0042dcfe
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
jmp 0x404ca0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ca0
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0x5c]
push edx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0042d224
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d215
mov esp, ebp
pop ebp
ret