joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18169ff7
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 + 0x181d17a8]
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 0x1816a037
cmp byte [ebx], 0xa
jne 0x1816a037
or byte [eax + edi + 0x28], 4
jmp 0x1816a03c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1816a13a
mov al, byte [edx]
cmp al, 0x1a
je 0x1816a11c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1816a06b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1816a090
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1816a09a
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 0x1816a04d
jmp 0x1816a13a
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 0x1816a117
cmp dword [ebp - 0xc], 0
je 0x1816a117
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x181d17a8]
test byte [eax + edi + 0x28], 0x48
je 0x1816a0f1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1816a0dc
mov byte [esi], dl
jmp 0x1816a0ed
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x181d17a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1816a13a
cmp byte [ebp - 1], 0xa
jne 0x1816a100
cmp esi, ebx
jne 0x1816a100
mov byte [esi], 0xa
jmp 0x1816a139
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.18169ea0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1816a13a
mov byte [esi], 0xd
jmp 0x1816a139
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x181d17a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1816a136
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1816a13a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1816a143
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 + 0x181d17a8]
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 0x1816a186
cmp word [esi], dx
jne 0x1816a186
or byte [edi + eax + 0x28], 4
jmp 0x1816a18b
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 0x1816a2de
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 0x1816a2be
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1816a1cd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1816a203
cmp eax, edx
jae 0x1816a20f
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 0x1816a1a5
jmp 0x1816a2de
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 0x1816a2ba
cmp dword [ebp - 0x14], 0
je 0x1816a2ba
mov eax, dword [ebx*4 + 0x181d17a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1816a292
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1816a25b
mov word [esi], cx
jmp 0x1816a28e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x181d17a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x181d17a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x181d17a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1816a2de
pop ebx
cmp word [ebp - 4], bx
jne 0x1816a2a3
cmp esi, dword [ebp + 0xc]
jne 0x1816a2a3
mov word [esi], bx
jmp 0x1816a2db
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.18169ea0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1816a2de
push 0xd
jmp 0x1816a2d7
mov ecx, dword [ebx*4 + 0x181d17a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1816a2d5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1816a2de
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 0x18171182
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.18170ff3

Function at 0x1817157c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1816bdd0
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1815cc31
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x181715be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1817171a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1816be00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x181d17a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.18169e82
mov ecx, dword [esi*4 + 0x181d17a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x18171713
cmp eax, dword [edi + ecx + 0x24]
jne 0x18171713
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18171713
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18169e82
add esp, 0x14
test edx, edx
jl 0x18171713
jg 0x18171689
test eax, eax
jb 0x18171713
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x18171713
jl 0x181716a3
cmp dword [ebp - 0x1008], eax
ja 0x18171713
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x181716c1
test ebx, ebx
je 0x181716fa
cmp ecx, edi
jae 0x181716fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x181716db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x181716e7
cmp byte [ecx + 1], 0xa
jne 0x181716e7
inc ecx
jmp 0x181716e7
movzx eax, al
movsx eax, byte [eax + 0x181cb9a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x181716c1
cmp edx, ebx
jne 0x181716c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x18171718
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
Function at 0x18171b54
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18171ad0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x18171ccc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x18171ccc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x18171c7b
jg 0x18171bad
test eax, eax
je 0x18171c71
push 1
push 0x1000
call fcn.18159f92
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x18171bd3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x18171c68
push 0x8000
push ebx
call fcn.18170205
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x18171bff
jg 0x18171bfa
cmp ecx, 0x1000
jb 0x18171bff
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.181689cc
add esp, 0x10
cmp eax, 0xffffffff
je 0x18171c44
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x18171bfa
jl 0x18171c2b
test ecx, ecx
jne 0x18171bec
push dword [ebp - 0xc]
push ebx
call fcn.18170205
push esi
call fcn.18159f58
add esp, 0xc
xor edi, edi
jmp 0x18171cdd
cmp byte [edi + 0x24], 0
je 0x18171c5b
cmp dword [edi + 0x20], 5
jne 0x18171c5b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x18171c66
mov edi, dword [edi + 0x18]
jmp 0x18171c68
xor edi, edi
push esi
call fcn.18159f58
pop ecx
jmp 0x18171cdd
test ecx, ecx
jg 0x18171c3d
jl 0x18171c7b
test eax, eax
jae 0x18171c3d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18169ea0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x18171c9e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x18171c3d
jmp 0x18171cd5
push ebx
call fcn.181675f4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18171c3d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x18171cdd
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x18171cda
mov edi, dword [edi + 0x18]
jmp 0x18171cdd
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.18169ea0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3f37e4e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x3f37e4f0
pop dword [ebp - 0x20]
mov eax, 0xadf85f15
sub eax, 0x6ec07a25
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x48167
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x400236ca
sub ecx, 0x4001e1f8
xor esi, esi
add esi, eax
mov edi, 0x3f401000
add edi, dword [ebp - 0x20]
mov edx, 0xb3972abc
xor dword [ebp - 0xc], ebx
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0x41f376c8
xor ebx, edx
sub dword [ebp - 0x1c], 0xf4a1762b
mov dword [esi], ebx
add esi, 4
add edi, 4
loop 0x3f37e540
add eax, 0x981c040f
add eax, 0x67e5420c
mov ebx, eax
add eax, 5
mov ecx, 0x906b0c93
sub ecx, 0x515b0c93
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x3f3845bf
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x110
push esi
push edi
push dword [ebp + 0x7c]
xor esi, esi
push dword [ebp + 0x78]
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x68], esi
call fcn.3f37e4e1
mov edi, eax
cmp edi, esi
je 0x3f384696
push 0x80
lea eax, [ebp - 0x20]
push eax
push 0xc
push dword [0x3f3a32c0]
call dword [sym.imp.user32.dll_LoadStringA]
test eax, eax
jle 0x3f38468f
mov ecx, dword [ebp + 0x64]
push ebx
push dword [ebp + 0x78]
call fcn.3f38958d
push esi
push esi
mov ebx, eax
push 0x81
lea eax, [ebp - 0xa4]
push eax
push ebx
call fcn.3f390cad
pop ecx
inc eax
push eax
push ebx
push esi
push esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xa4]
push eax
push 1
push esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop ebx
jne 0x3f38468f
push 0x80
lea eax, [ebp - 0x20]
push eax
push 0xd
push dword [0x3f3a32c0]
call dword [sym.imp.user32.dll_LoadStringA]
test eax, eax
jle 0x3f38468f
mov ecx, dword [ebp + 0x64]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.3f37e4e1
mov dword [ebp + 0x68], eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x68]
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc
Function at 0x3f38cf7e
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x200
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor ebx, ebx
push ebx
push ebx
push 0x40
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov esi, 0x3f2ff05c
lea edi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x1c]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3f38cfcd
lea edi, [ebp + 0x24]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x3f38cfda
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x74]
cmp edi, ebx
mov esi, 0x3f2ff054
je 0x3f38d015
push dword [ebp + 0x70]
mov eax, edi
push ebx
call fcn.3f37e4e1
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, edi
call fcn.3f37e4e1
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x3f38d040
push dword [ebp + 0x70]
push ebx
call fcn.3f37e4e1
mov eax, dword [ebp + 0x78]
push edi
push 0x3f2ff04c
call fcn.3f37e4e1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x78]
push esi
call fcn.3f37e4e1
push dword [ebp + 0x70]
lea eax, [ebp + 0x24]
push ebx
call fcn.3f37e4e1
cmp edi, ebx
je 0x3f38d05e
push edi
push 0x3f2ff044
lea eax, [ebp + 0x24]
call fcn.3f37e4e1
cmp dword [ebp + 0x78], ebx
je 0x3f38d073
push dword [ebp + 0x78]
lea eax, [ebp + 0x24]
push 0x3f2ff028
call fcn.3f37e4e1
push ebx
push 0x3f2ff018
lea eax, [ebp + 0x24]
call fcn.3f37e4e1
push dword [ebp + 0x7c]
mov esi, 0x3f2ff008
push esi
lea eax, [ebp + 0x24]
call fcn.3f37e4e1
push esi
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x19c]
push 0x3f2ff000
push eax
call fcn.3f37e4e1
add esp, 0x10
push ebx
lea eax, [ebp + 0x78]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x19c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x3f38d0ff
mov esi, 0x3f2feff4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3f38d0d9
sub eax, edx
inc eax
push eax
push esi
push 1
push ebx
push 0x3f2fefe4
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x64
leave
ret 0x14

Function at 0x43b641
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
mov eax, 0x42891f80
sub eax, 0xa7142810
add eax, 0x3d3c4718
call fcn.0043b685
sub edi, eax
sub eax, 0x57be6337
xor dword [esi], ecx
or edi, edi
sub esp, 4
mov dword [esp], edi
pop edi
inc esi
sub eax, eax
cmp esi, ebx
jne fcn.0043b641
and eax, eax
add edi, edi
add eax, edi
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a4db
push eax
mov eax, dword [0x40d040]
mov dword fs:[0], esp
sub esp, 0x90
test eax, eax
jne 0x4011c9
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.00403066
mov ecx, dword [esp + 0xc]
add esp, 4
lea edx, [esp + 0x48]
push ecx
push 0x40d0cc
push edx
call fcn.00403014
add esp, 0xc
push 0x104
push 0x40ffb0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ecx, 0xffffffff
mov edi, str.TempDrvLsnr
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, 0x40ffb0
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40ffb0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x4c], al
mov esi, edi
mov edx, ecx
mov edi, 0x40ffb0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40b1c8]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x10
push 0x40ffb0
lea ecx, [esp + 0x1c]
call fcn.00402361
pop edi
mov dword [esp + 0x9c], 0
lea ecx, [esp + 8]
pop esi
test ecx, ecx
jne 0x401115
xor eax, eax
jmp 0x401120
mov edx, dword [esp + 4]
mov eax, dword [edx + 4]
lea eax, [esp + eax + 4]
test byte [eax + 8], 6
jne 0x4011ac
test eax, eax
je 0x4011ac
lea ecx, [esp + 0x68]
push ecx
call fcn.00402f90
lea edx, [esp + 0x44]
push edx
call fcn.00402f17
add esp, 8
lea ecx, [esp + 4]
push 0x40ffb0
call fcn.004025a1
push 0x401c10
push 0xa
mov ecx, eax
call fcn.0040245a
mov ecx, eax
call fcn.00401bf0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x68]
push eax
push 0x40d0b0
push ecx
lea ecx, [esp + 0x10]
call fcn.004025a1
mov ecx, eax
call fcn.004025a1
mov ecx, eax
call fcn.004025a1
push 0x401c10
push 0xa
mov ecx, eax
call fcn.0040245a
mov ecx, eax
call fcn.00401bf0
lea ecx, [esp + 4]
call fcn.0040242b
lea ecx, [esp + 0xc]
mov dword [esp + 0x98], 0xffffffff
call fcn.00402418
lea ecx, [esp + 0xc]
call fcn.004022de
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
add esp, 0x9c
ret
Function at 0x401440
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x40a546
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
xor eax, eax
push ebx
mov dword [esp + 0x18], eax
push ebp
mov dword [esp + 0x20], eax
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x2c], eax
push 0x94
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
mov dword [esp + 0x34], eax
call fcn.00403521
add esp, 4
mov esi, eax
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x10]
cmp eax, 2
jne 0x4014d1
cmp dword [esi + 4], 5
jne 0x4014d1
push 4
call fcn.00403521
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x3c], ebx
je 0x4014fe
mov ecx, eax
call fcn.00401f70
jmp 0x401500
cmp eax, 1
jne 0x40152f
cmp dword [esi + 8], ebx
jbe 0x40152f
push 4
call fcn.00403521
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x3c], 1
je 0x4014fe
mov ecx, eax
call fcn.00401c20
jmp 0x401500
xor eax, eax
mov edi, eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov edx, dword [edi]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x48], 0xffffffff
call dword [edx + 8]
mov ecx, dword [esp + 0x10]
mov ebp, eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x401533
mov edi, dword [esp + 0x44]
cmp esi, ebx
je 0x401540
push esi
call fcn.00403516
add esp, 4
cmp edi, ebx
je 0x40154d
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4015f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x3c
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x18], eax
push esi
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esp + 0x2c], eax
je 0x401641
push str._log
push edi
call fcn.0040355f
add esp, 8
test eax, eax
je 0x401641
mov dword [0x40d040], ebx
call section..text
push 0x94
call fcn.00403521
add esp, 4
mov ebp, eax
push ebp
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x401688
cmp dword [ebp + 4], 5
jne 0x401688
push 4
call fcn.00403521
add esp, 4
cmp eax, ebx
je 0x4016b1
mov ecx, eax
call fcn.00401f70
jmp 0x4016b3
cmp eax, 1
jne 0x4017e1
cmp dword [ebp + 8], ebx
jbe 0x4017e1
push 4
call fcn.00403521
add esp, 4
cmp eax, ebx
je 0x4016b1
mov ecx, eax
call fcn.00401c20
jmp 0x4016b3
xor eax, eax
cmp edi, ebx
mov esi, eax
je 0x4016ff
push str._kill
push edi
call fcn.0040355f
add esp, 8
test eax, eax
je 0x4016ff
mov edx, dword [esi]
push str.DrvLsnr.exe
mov ecx, esi
call dword [edx]
test eax, eax
je 0x4017ac
push str.process_killed
call fcn.00401330
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push str.DrvLsnr.exe
call dword [eax]
test eax, eax
jne 0x4016de
jmp 0x4017ac
mov edx, dword [esi]
lea eax, [esp + 0x14]
push str.SoundMAX_Integrated_Digital_Audio
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
test eax, eax
jne 0x401726
push str.SoundMax_driver_not_found
call fcn.00401330
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
call fcn.004019a0
test eax, eax
jne 0x401749
push str.SMX_uninstall_key_not_found__exit
call fcn.00401330
add esp, 4
jmp 0x4017ac
mov edi, dword [esp + 0x50]
push edi
call fcn.00401800
push edi
call fcn.00401870
push 0x4100b4
push eax
mov dword [0x4100b8], eax
call fcn.00401570
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
add esp, 0x10
lea eax, [esp + 0x30]
push ebx
push ebx
push ebx
push eax
call edi
test eax, eax
je 0x4017a0
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x30]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x38]
push 0
push edx
call edi
test eax, eax
jne 0x401786
xor ebx, ebx
mov eax, dword [0x4100b4]
push eax
call dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
cmp ebp, ebx
je 0x4017b9
push ebp
call fcn.00403516
add esp, 4
cmp esi, ebx
je 0x4017c6
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
push str.WinMain_finished
call fcn.00401330
mov eax, dword [esp + 0x3c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
push str.Unknown_OS
call fcn.00401330
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10