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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.101439a0
mov eax, dword [0x101effd8]
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.1016ec86
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1016f0de
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1016f23a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10143e90
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 + 0x101f95b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1017856a
mov ecx, dword [esi*4 + 0x101f95b8]
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 0x1016f233
cmp eax, dword [edi + ecx + 0x24]
jne 0x1016f233
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 0x1016f233
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1017856a
add esp, 0x14
test edx, edx
jl 0x1016f233
jg 0x1016f1a9
test eax, eax
jb 0x1016f233
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1016f233
jl 0x1016f1c3
cmp dword [ebp - 0x1008], eax
ja 0x1016f233
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1016f1e1
test ebx, ebx
je 0x1016f21a
cmp ecx, edi
jae 0x1016f21a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1016f1fb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1016f207
cmp byte [ecx + 1], 0xa
jne 0x1016f207
inc ecx
jmp 0x1016f207
movzx eax, al
movsx eax, byte [eax + 0x101f0288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1016f1e1
cmp edx, ebx
jne 0x1016f1e1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1016f238
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1014306d
leave
ret
Function at 0x10176e2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10176c9b

Function at 0x10177306
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c96b0
push 0x101c96a8
push str.FlsAlloc
push 0x1e
call fcn.10177133
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1017733a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10197958]
call esi
jmp 0x10177340
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10177384
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c96c0
push 0x101c96b8
push str.FlsGetValue
push 0x20
call fcn.10177133
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101773bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10197958]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10177a08
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 + 0x101f95b8]
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 0x10177a48
cmp byte [ebx], 0xa
jne 0x10177a48
or byte [eax + edi + 0x28], 4
jmp 0x10177a4d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10177b4b
mov al, byte [edx]
cmp al, 0x1a
je 0x10177b2d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10177a7c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10177aa1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10177aab
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 0x10177a5e
jmp 0x10177b4b
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 0x10177b28
cmp dword [ebp - 0xc], 0
je 0x10177b28
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x101f95b8]
test byte [eax + edi + 0x28], 0x48
je 0x10177b02
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10177aed
mov byte [esi], dl
jmp 0x10177afe
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101f95b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10177b4b
cmp byte [ebp - 1], 0xa
jne 0x10177b11
cmp esi, ebx
jne 0x10177b11
mov byte [esi], 0xa
jmp 0x10177b4a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10178588
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10177b4b
mov byte [esi], 0xd
jmp 0x10177b4a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x101f95b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10177b47
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10177b4b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10177b54
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 + 0x101f95b8]
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 0x10177b97
cmp word [esi], dx
jne 0x10177b97
or byte [edi + eax + 0x28], 4
jmp 0x10177b9c
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 0x10177cef
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 0x10177ccf
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10177bde
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10177c14
cmp eax, edx
jae 0x10177c20
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 0x10177bb6
jmp 0x10177cef
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 0x10177ccb
cmp dword [ebp - 0x14], 0
je 0x10177ccb
mov eax, dword [ebx*4 + 0x101f95b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10177ca3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10177c6c
mov word [esi], cx
jmp 0x10177c9f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x101f95b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x101f95b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x101f95b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10177cef
pop ebx
cmp word [ebp - 4], bx
jne 0x10177cb4
cmp esi, dword [ebp + 0xc]
jne 0x10177cb4
mov word [esi], bx
jmp 0x10177cec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10178588
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10177cef
push 0xd
jmp 0x10177ce8
mov ecx, dword [ebx*4 + 0x101f95b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10177ce6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10177cef
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 0x1017ccb0
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 0x1017cd4d
push ebx
push esi
call fcn.1017cc79
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.1017cbc2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1017ccfa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017cd4c
push edi
push eax
call fcn.101785e6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1017cd1a
call fcn.101768b7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017cd4b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1017cbc2
add esp, 0x20
test eax, eax
jne 0x1017cd39
push edi
call fcn.101768b7
jmp 0x1017cd41
push ebx
call fcn.101768b7
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 0x1017cd50
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1017cd61
pop esi
ret
push ebx
push edi
push esi
call fcn.1017cc79
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101785e6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1017cd89
push ebx
push esi
push edi
call fcn.1015bf40
add esp, 0xc
push 0
call fcn.101768b7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1017d14d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017cd9e
Function at 0x10185adf
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.10185a5b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10185c57
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10185c57
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10185c06
jg 0x10185b38
test eax, eax
je 0x10185bfc
push 1
push 0x1000
call fcn.10176e35
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10185b5e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10185bf3
push 0x8000
push ebx
call fcn.1018598c
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 0x10185b8a
jg 0x10185b85
cmp ecx, 0x1000
jb 0x10185b8a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101766b7
add esp, 0x10
cmp eax, 0xffffffff
je 0x10185bcf
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 0x10185b85
jl 0x10185bb6
test ecx, ecx
jne 0x10185b77
push dword [ebp - 0xc]
push ebx
call fcn.1018598c
push esi
call fcn.101768b7
add esp, 0xc
xor edi, edi
jmp 0x10185c68
cmp byte [edi + 0x24], 0
je 0x10185be6
cmp dword [edi + 0x20], 5
jne 0x10185be6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10185bf1
mov edi, dword [edi + 0x18]
jmp 0x10185bf3
xor edi, edi
push esi
call fcn.101768b7
pop ecx
jmp 0x10185c68
test ecx, ecx
jg 0x10185bc8
jl 0x10185c06
test eax, eax
jae 0x10185bc8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10178588
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10185c29
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10185bc8
jmp 0x10185c60
push ebx
call fcn.1016f6a3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10185bc8
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 0x10185c68
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10185c65
mov edi, dword [edi + 0x18]
jmp 0x10185c68
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10178588
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10186600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1018662d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1018662d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10004910
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x220], eax
cmp dword [ebx + 0xd008], 2
je 0x1000495d
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x21c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea esi, [ebx + 0xa408]
push esi
push 0x100bc7d0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.1000f0c0
add esp, 0x10
mov edi, dword [ebp + 8]
test edi, edi
je 0x10004a3a
lea ecx, [ebx + 0xa808]
push ecx
push esi
add ebx, 0xb408
push ebx
push 0x100bc7f8
push 0x104
lea edx, [ebp - 0x114]
push edx
call fcn.1000f0c0
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call fcn.100164c0
add esp, 4
mov dword [ebp - 4], 0
push esi
call fcn.10012870
add esp, 4
cmp eax, 4
jne 0x10004a64
push edi
lea eax, [ebp - 0x21c]
push eax
push reloc.WS2_32.dll_bind
call fcn.10010600
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x220], 0xffffffff
jmp 0x10004a88
lea eax, [ebx + 0xa808]
push eax
push esi
add ebx, 0xb008
push ebx
push 0x100bc804
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call fcn.1000f0c0
add esp, 0x18
jmp 0x100049f3
push 0
push esi
call fcn.10012d90
push 0
lea edx, [ebp - 0x114]
push edx
call fcn.10011120
add esp, 0x10
jmp 0x10004a88
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10004aa2
mov eax, dword [ebp - 0x118]
push eax
call fcn.100164f0
add esp, 4
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005050
Capabilities:
Copy file

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x31c], 0
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x218], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x9808]
lea ecx, [esp + 0x31c]
push eax
push 0x100c3620
push 0x100bcabc
push 0x104
push ecx
call fcn.1000f0c0
lea edx, [ebp + 0xa808]
lea esi, [ebp + 0xa408]
push edx
lea eax, [ebp + 0xb008]
push esi
push eax
push 0x100bcac4
lea ecx, [esp + 0x34]
push 0x104
push ecx
call fcn.1000f0c0
lea edx, [esp + 0x244]
push edx
push esi
call fcn.10012f30
push esi
call fcn.10012ad0
lea eax, [esp + 0x250]
push 0
push eax
call fcn.10011120
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x40
xor edi, edi
push esi
call fcn.100128e0
add esp, 4
test eax, eax
push esi
je 0x1000514a
push str._s_Not_Remove_Wait.
push 4
call fcn.1000eeb0
add esp, 0xc
push 0x64
call ebx
inc edi
cmp edi, 0xa
jl 0x10005121
jmp 0x10005159
push str._s_Removed.
push 4
call fcn.1000eeb0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x320]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10005180
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x410
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
cmp byte [esp + 0x10], 0x22
je 0x100051d1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push str.__s_
push 0x104
push ecx
call fcn.1000f0c0
add esp, 0x10
lea edi, [ebp + 0xc408]
lea edx, [esp + 0x114]
push edi
push edx
push esi
call fcn.10012a10
push edi
push esi
call fcn.10012cd0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x100052b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084544
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x220], esi
cmp dword [esi + 0xd008], 4
je 0x100052f9
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10016430
test eax, eax
je 0x10005423
lea eax, [ebp - 0x14]
push eax
call fcn.100164c0
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x21c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x118], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x100bcb18
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call edi
push 0x103
push 0x100bcb24
lea edx, [ebp - 0x21c]
push edx
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
call esi
mov byte [ebp - 0x119], bl
push 0x100bcb38
lea eax, [ebp - 0x21c]
push eax
push str._sdevcon.exe_remove__s
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.1000f0c0
lea edx, [ebp - 0x118]
push edx
call fcn.10016d70
add esp, 0x24
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x100bcb58
call edi
push 0x103
push str._system32driversdevcon.exe
lea ecx, [ebp - 0x21c]
push ecx
call esi
mov byte [ebp - 0x119], bl
push ebx
lea edx, [ebp - 0x21c]
push edx
call fcn.10011120
add esp, 0x14
mov ecx, dword [ebp - 0x220]
call fcn.100062a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
push eax
call fcn.100164f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10013a50
mov ecx, esi
call fcn.100062a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005560
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp dword [ecx + 0xd008], 4
je 0x100055a1
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10016430
test eax, eax
je 0x10005680
lea eax, [ebp - 0x14]
push eax
call fcn.100164c0
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x21c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x118], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x100bcbcc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x103
push 0x100bcbd8
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
mov byte [ebp - 0x119], bl
push 0x100bcbec
lea eax, [ebp - 0x21c]
push eax
push str._sdevcon.exe_enable__s
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.1000f0c0
lea edx, [ebp - 0x118]
push edx
call fcn.10016d70
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
push eax
call fcn.100164f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10013a90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100056a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084562
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp dword [ecx + 0xd008], 4
je 0x100056e1
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10016430
test eax, eax
je 0x100057c0
lea eax, [ebp - 0x14]
push eax
call fcn.100164c0
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x21c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x118], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x100bcc0c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x103
push str._system32drivers
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
mov byte [ebp - 0x119], bl
push 0x100bcc2c
lea eax, [ebp - 0x21c]
push eax
push str._sdevcon.exe_disable__s
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.1000f0c0
lea edx, [ebp - 0x118]
push edx
call fcn.10016d70
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
push eax
call fcn.100164f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10013a80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret