joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4207d2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x420800
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x420807
cmp ebx, dword [eax + 4]
jae 0x420807
xor eax, eax
jmp 0x4209f7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x420818
xor eax, eax
inc eax
jmp 0x4209f6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42082e
cmp ecx, edx
jae 0x420973
cmp dword [eax + 4], 0
je 0x420837
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42081f
cmp dword [ebp + 8], 0
je 0x420859
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x420973
cmp eax, esi
jae 0x420973
mov eax, dword [0x4356f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42087e
cmp dword [esi*4 + 0x4356f8], edi
je 0x420977
inc esi
cmp esi, eax
jl 0x42086c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4209f3
cmp dword [ebp - 8], 0x1000000
jne 0x4209f3
test byte [ebp - 0xc], 0xcc
je 0x4208fc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4209f3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4209f3
cmp word [eax + 0x18], 0x10b
jne 0x4209f3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4209f3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4208fc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4208fc
test byte [ecx + 0x27], 0x80
jne 0x420973
push 1
push 0x435738
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x420810
mov ecx, dword [0x4356f0]
test ecx, ecx
mov edx, ecx
jle 0x420930
lea eax, [ecx*4 + 0x4356f4]
cmp dword [eax], edi
je 0x420930
dec edx
sub eax, 4
test edx, edx
jg 0x420924
test edx, edx
jne 0x420961
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42093d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x420955
lea eax, [edx*4 + 0x4356f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x420943
cmp ecx, 0x10
jge 0x420961
inc ecx
mov dword [0x4356f0], ecx
push 0
push 0x435738
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x420810
xor eax, eax
jmp 0x4209f6
test esi, esi
jle 0x420810
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x435738
call ebx
test eax, eax
jne 0x420810
cmp dword [esi*4 + 0x4356f8], edi
je 0x4209cd
mov eax, dword [0x4356f0]
lea esi, [eax - 1]
test esi, esi
jl 0x4209bb
cmp dword [esi*4 + 0x4356f8], edi
je 0x4209b7
dec esi
jns 0x4209ab
test esi, esi
jge 0x4209cb
cmp eax, 0x10
jge 0x4209c6
inc eax
mov dword [0x4356f0], eax
lea esi, [eax - 1]
jmp 0x4209cd
je 0x4209e5
xor ecx, ecx
test esi, esi
jl 0x4209e5
lea eax, [ecx*4 + 0x4356f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4209d3
push 0
push 0x435738
call ebx
jmp 0x420810
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4215f4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x435a34]
mov eax, dword [0x434250]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4217ba
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x435a40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4217ba
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x42165e
xor eax, eax
jmp 0x4217ce
test al, 0x20
je 0x42166f
push 2
push edi
push edi
push ecx
call fcn.00425efe
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421744
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x42178b
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4216d1
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4216c2
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4216a4
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421711
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42171d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x421698
jmp 0x42171f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4217b5
cmp dword [ebp + 0x3a4], edi
je 0x42178b
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x42177d
mov dword [0x4356a4], eax
jmp 0x4217c1
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42176f
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x42171f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x42171f
push dword [ebp + 0x3a4]
call fcn.004248a5
pop ecx
jmp 0x4217cb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4217a3
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x421657
mov dword [0x4356a0], 0x1c
mov dword [0x4356a4], edi
jmp 0x4217cb
sub eax, dword [ebp - 0x7c]
jmp 0x4217ce
and dword [0x4356a4], 0
mov dword [0x4356a0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0041d05e
add ebp, 0x39c
leave
ret
Function at 0x424ecf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x434250]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4349b8]
je 0x424f04
inc eax
cmp eax, 0x13
jb 0x424ef5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4349b8]
jne 0x42502a
mov eax, dword [0x435690]
cmp eax, 1
je 0x425002
cmp eax, edx
jne 0x424f34
cmp dword [0x434348], 1
je 0x425002
cmp ecx, 0xfc
je 0x42502a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424f6a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00423100
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004219c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x424f9e
mov eax, edi
push eax
call fcn.004219c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4302d0
push edi
call fcn.0041f750
add esp, 0x10
push edi
call fcn.004219c0
push dword [esi + 0x4349bc]
mov ebx, eax
call fcn.004219c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041cff0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00423100
push edi
push ebx
call fcn.00423110
push 0x4302cc
push ebx
call fcn.00423110
push dword [esi + 0x4349bc]
push ebx
call fcn.00423110
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00425d9d
add esp, 0x2c
jmp 0x42502a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4349bc]
push dword [esi]
call fcn.004219c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041d05e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x425d9d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4359d0], ebx
push esi
push edi
jne 0x425e1d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x425e58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x430f84
push edi
call esi
test eax, eax
mov dword [0x4359d0], eax
je 0x425e58
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4359d4], eax
call esi
cmp dword [0x4356ac], 2
mov dword [0x4359d8], eax
jne 0x425e1d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4359e0], eax
je 0x425e1d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4359dc], eax
mov eax, dword [0x4359dc]
test eax, eax
je 0x425e62
call eax
test eax, eax
je 0x425e49
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4359e0]
test eax, eax
je 0x425e49
test byte [ebp - 8], 1
jne 0x425e62
cmp dword [0x4356b8], 4
jb 0x425e5c
or byte [ebp + 0x12], 0x20
jmp 0x425e81
xor eax, eax
jmp 0x425e91
or byte [ebp + 0x12], 4
jmp 0x425e81
mov eax, dword [0x4359d4]
test eax, eax
je 0x425e81
call eax
mov ebx, eax
test ebx, ebx
je 0x425e81
mov eax, dword [0x4359d8]
test eax, eax
je 0x425e81
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4359d0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427563
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x435a34]
push edi
jae 0x427738
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x435a40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x427738
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x42760e
test dl, 2
jne 0x42760e
test dl, 0x48
je 0x4275d8
cmp byte [eax + 5], 0xa
je 0x4275d8
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x427621
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x427609
mov dword [0x4356a4], ecx
jmp 0x42773f
cmp eax, 0x6d
jne 0x427615
xor eax, eax
jmp 0x42774c
push eax
call fcn.004248a5
pop ecx
jmp 0x427749
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x427733
test eax, eax
je 0x427648
cmp byte [ebx], 0xa
jne 0x427648
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x427651
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x42772d
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x42771d
cmp al, 0xd
je 0x427683
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x42770f
dec ecx
cmp dword [ebp - 8], ecx
jae 0x42769d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x427698
add dword [ebp - 8], 2
jmp 0x4276f1
mov dword [ebp - 8], eax
jmp 0x42770b
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4276c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42770b
cmp dword [ebp - 0x10], 0
je 0x42770b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4276e6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4276f1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42770e
cmp ebx, dword [ebp + 0xc]
jne 0x4276f6
cmp byte [ebp - 1], 0xa
jne 0x4276f6
mov byte [ebx], 0xa
jmp 0x42770e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425955
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42770f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x427667
jmp 0x42772d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42772d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x42774c
and dword [0x4356a4], 0
mov dword [0x4356a0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427abf
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041cff0
mov eax, dword [0x434250]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x435a34]
mov dword [ebp - 4], eax
jae 0x427c02
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x435a40]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x427c02
push 1
push esi
push ebx
call fcn.00425955
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x427c0c
push 2
push esi
push ebx
call fcn.00425955
add esp, 0xc
cmp eax, 0xffffffff
je 0x427c0c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x427bac
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041f880
push 0x8000
push ebx
call fcn.004283e8
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x427b6b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004215f4
add esp, 0xc
cmp eax, 0xffffffff
je 0x427b89
sub edi, eax
test edi, edi
jg 0x427b60
jmp 0x427b9f
cmp dword [0x4356a4], 5
jne 0x427b9c
mov dword [0x4356a0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004283e8
pop ecx
pop ecx
jmp 0x427bec
jge 0x427bec
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00425955
push ebx
call fcn.0042612b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x427bec
mov dword [0x4356a0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4356a4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00425955
add esp, 0xc
mov eax, esi
pop edi
jmp 0x427c0f
mov dword [0x4356a0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041d05e
leave
ret
Function at 0x4288b8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4288d1
or eax, 0xffffffff
jmp 0x428932
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42892e
push 0x3d
push esi
call fcn.00428ab8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42892e
cmp esi, eax
je 0x42892e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4356cc]
sete cl
cmp eax, dword [0x4356d0]
mov dword [ebp - 8], ecx
jne 0x428914
mov edi, eax
call fcn.00428857
mov dword [0x4356cc], eax
cmp eax, ebx
jne 0x42896d
cmp dword [ebp + 0xc], ebx
je 0x428936
cmp dword [0x4356d4], ebx
je 0x428936
call fcn.00427c5a
test eax, eax
je 0x42896d
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42893f
xor eax, eax
jmp 0x428931
push 4
call fcn.0041ccba
cmp eax, ebx
pop ecx
mov dword [0x4356cc], eax
je 0x42892e
mov dword [eax], ebx
cmp dword [0x4356d4], ebx
jne 0x42896d
push 4
call fcn.0041ccba
cmp eax, ebx
pop ecx
mov dword [0x4356d4], eax
je 0x42892e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4356cc]
call fcn.0042880a
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4289ce
cmp dword [esi], ebx
je 0x4289ce
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041cccc
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4289b1
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x428a0f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4289a8
mov eax, edi
shl eax, 2
push eax
push dword [0x4356cc]
call fcn.0041f92c
cmp eax, ebx
pop ecx
pop ecx
je 0x428a0f
jmp 0x428a0a
cmp dword [ebp - 8], ebx
jne 0x428a7a
cmp edi, ebx
jge 0x4289dd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4356cc]
call fcn.0041f92c
cmp eax, ebx
pop ecx
pop ecx
je 0x42892e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4356cc], eax
cmp dword [ebp + 0xc], ebx
je 0x428a64
push dword [ebp - 4]
call fcn.004219c0
inc eax
inc eax
push eax
call fcn.0041ccba
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x428a64
push dword [ebp - 4]
push esi
call fcn.00423100
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x428a5d
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041cccc
pop ecx
cmp dword [ebp - 8], ebx
je 0x428a72
push dword [ebp - 4]
call fcn.0041cccc
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x428931
push dword [ebp - 4]
call fcn.0041cccc
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x42893b
Function at 0x403f90
Capabilities:
Impersonate user

Disassembly:
sub esp, 0x588
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19a]
mov word [esp + 0x198], bx
mov byte [esp + 0x94], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x95]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x54]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
call fcn.00403220
mov ebp, eax
cmp ebp, ebx
je 0x4041ab
push str.NvCplGetUserTokenAndName
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404193
lea ecx, [esp + 0x14]
lea edx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x14]
push edx
push ecx
call eax
add esp, 0xc
cmp eax, 1
jne 0x404193
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x19c]
push eax
push ecx
call fcn.0040e9d7
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x30]
lea edx, [esp + 0x198]
push eax
push ecx
mov dword [esp + 0x38], 0x20
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x404193
mov edx, dword [esp + 0x4c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x40416b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push 0xc
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x6c], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [0x424304]
cmp eax, ebx
je 0x404113
call eax
cmp dword [esp + 0x18], eax
jne 0x4040fd
call dword [0x424304]
cmp eax, 0xffffffff
jne 0x404113
push ebp
call fcn.00403240
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x588
ret
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x59c]
lea ecx, [esp + 0x50]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push edx
push ebx
push eax
call fcn.00401000
test eax, eax
je 0x40415c
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
push ebx
push 0x80000001
call edi
mov esi, 1
jmp 0x40416d
xor esi, esi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
push ebp
call fcn.00403240
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x588
ret
push ebp
xor esi, esi
call fcn.00403240
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x588
ret
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x588
ret
Function at 0x404b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
mov dword [esp + 8], 0x100
push eax
push 1
push 0
push 0x41c368
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
je 0x404b5f
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x208
ret
mov eax, dword [esp]
test eax, eax
jne 0x404b6e
add esp, 0x208
ret
lea edx, [esp + 4]
lea ecx, [esp + 8]
push edx
push ecx
push 0
push 0
push str.LoadLimitedSID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404ba0
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x208
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20c]
lea ecx, [esp + 8]
push ecx
push edx
call fcn.0040eb5e
add esp, 8
mov eax, 1
add esp, 0x208
ret

Function at 0x404bd0
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push 0x41c368
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404c08
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
test eax, eax
jne 0x404c12
pop ecx
ret
push str.LoadLimitedSID
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x404c31
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x404c50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov dword [esp], 0
push eax
push 1
push 0
push 0x41c3e0
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404c86
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
test eax, eax
jne 0x404c92
add esp, 0xc
ret
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push str.EnableThermalHistory
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404cc1
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret

Function at 0x404ce0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
push esi
lea eax, [esp + 0x10]
push str.GPU_1d
push eax
call fcn.0040eb83
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push edi
call ebx
inc esi
cmp esi, 8
jb 0x404cf2
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret