joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43316e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4331b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4331ae
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4331be
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x43317b
jmp 0x4331ce
push edi
push 0x34f
push str.fileutil.cpp
call fcn.0042fdc3
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4331d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0042c7d0
mov eax, dword [0x4510d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push edi
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1008], esi
xor edi, edi
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp ecx, edx
jne 0x433229
cmp dword [ebp + 0x14], edx
jne 0x433229
mov dword [ebp - 0x100c], 0x1000
jmp 0x433257
mov eax, dword [ebp + 0x14]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x43324b
ja 0x43323e
cmp ecx, 0x1000
jbe 0x43324b
mov ecx, 0x1000
mov dword [ebp - 0x100c], edx
jmp 0x433251
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x100c], ecx
push edx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4332e9
cmp dword [ebp - 0x100c], 0
je 0x4332a7
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.0043316e
mov dword [ebp - 0x1008], eax
test eax, eax
js 0x4332d2
add edi, dword [ebp - 0x100c]
adc esi, 0
cmp esi, dword [ebp + 0x14]
ja 0x4332c9
jb 0x4332bc
cmp edi, dword [ebp + 0x10]
jae 0x4332c9
cmp dword [ebp - 0x100c], 0
jne 0x43320f
test ebx, ebx
je 0x4332d2
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425daa
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4332fd
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1008], eax
test eax, eax
jl 0x433311
mov dword [ebp - 0x1008], 0x80004005
push dword [ebp - 0x1008]
push 0x36f
push str.fileutil.cpp
call fcn.0042fdc3
jmp 0x4332d2
Function at 0x433328
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x433401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x43336f
cmp eax, 0x50
je 0x433367
cmp eax, 0xb7
jne 0x43336f
xor edi, edi
inc edi
jmp 0x433401
cmp eax, 3
jne 0x4333f1
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x4333ea
cmp ax, 0x5c
jne 0x433386
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43337e
test esi, esi
je 0x4333ea
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00433fbe
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x433401
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x433401
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4333d2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x433401
push edi
push 0x3b4
push str.fileutil.cpp
call fcn.0042fdc3
jmp 0x433401
mov edi, 0x80070003
jmp 0x433401
cmp eax, esi
jle 0x4333ff
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x43345b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x433475
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x43347e
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x433547
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x4334b5
cmp eax, 0x50
je 0x4334ad
cmp eax, 0xb7
jne 0x4334b5
xor edi, edi
inc edi
jmp 0x433547
cmp eax, 3
jne 0x433537
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x433530
cmp ax, 0x5c
jne 0x4334cc
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4334c4
test esi, esi
je 0x433530
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00433fbe
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x433547
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x433547
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x433518
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x433547
push edi
push 0x427
push str.fileutil.cpp
call fcn.0042fdc3
jmp 0x433547
mov edi, 0x80070003
jmp 0x433547
cmp eax, esi
jle 0x433545
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4335a9
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.004330fb
test eax, eax
je 0x433637
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x433604
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x433604
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4335f6
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x433604
push ebx
push 0x51c
jmp 0x43362b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x433635
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43361f
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x433635
push ebx
push 0x522
push str.fileutil.cpp
call fcn.0042fdc3
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x43363e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x433698
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43367d
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x433698
push esi
push 0x11b
push str.fileutil.cpp
call fcn.0042fdc3
jmp 0x433741
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4336b7
mov esi, 0x8007000e
push esi
push 0x11f
jmp 0x433689
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4336e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4336d8
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x4336e6
push esi
push 0x123
jmp 0x433719
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44dc9c
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x433725
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43370d
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x433725
push esi
push 0x128
push str.fileutil.cpp
call fcn.0042fdc3
jmp 0x433738
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x433d5c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4510d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00425d30
add esp, 0xc
cmp dword [0x452e74], 0
jne 0x433e69
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 0xa]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0x11c], 4
mov dword [0x452e78], eax
jne 0x433ddb
mov dword [0x452e74], 1
jmp 0x433e69
cmp dword [ebp - 0x11c], 5
jne 0x433e28
cmp dword [ebp - 0x118], 0
jne 0x433df9
mov dword [0x452e74], 2
jmp 0x433e69
cmp dword [ebp - 0x118], 1
jne 0x433e0e
mov dword [0x452e74], 3
jmp 0x433e69
xor eax, eax
cmp dword [ebp - 0x118], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x452e74], eax
jmp 0x433e69
cmp dword [ebp - 0x11c], 6
jne 0x433e5f
cmp dword [ebp - 0x118], 0
jne 0x433e48
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x433e21
cmp dword [ebp - 0x118], 1
jne 0x433e5f
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x433e21
mov dword [0x452e74], 9
mov eax, dword [0x452e74]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [0x452e78]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.00425daa
leave
ret 8

Function at 0x433f04
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4510d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.00433e87
cmp dword [ebp - 0x14], ebx
je 0x433f40
mov dword [esi], 1
jmp 0x433f74
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x433f74
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x433f74
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x433f83
push dword [ebp - 0x10]
call fcn.0042dd7e
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00425daa
leave
ret 4

Function at 0x433f93
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x433fb7
test al, 0x10
je 0x433fb7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x433fb4
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x433fbe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x434086
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x434086
cmp eax, 3
je 0x433fff
push edi
push ebx
call fcn.00433f93
test eax, eax
jne 0x434086
movzx eax, word [ebx]
push esi
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x434023
cmp ax, 0x5c
jne 0x434014
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x43400c
test esi, esi
jne 0x434037
mov edi, 0x80070003
push edi
push 0x7d
push str.dirutil.cpp
call fcn.0042fdc3
jmp 0x434085
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.00433fbe
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x434085
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x434083
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434071
xor edi, edi
inc edi
jmp 0x434085
test eax, eax
jle 0x43407f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x434085
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x435224
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x435276
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435261
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x435276
push esi
push 0x23
push str.inetutil.cpp
call fcn.0042fdc3
jmp 0x435282
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x4354c8
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2470
call fcn.0042c7d0
mov eax, dword [0x4510d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x241c], 0
mov dword [ebp - 0x2434], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2430], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2424], eax
mov eax, dword [ebp + 0x20]
push 0x3c
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x24]
pop esi
push esi
mov dword [ebp - 0x2420], eax
lea eax, [ebp - 0x2470]
push 0
push eax
call fcn.00425d30
mov dword [ebp - 0x2470], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x43555c
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2460], eax
mov dword [ebp - 0x245c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x2428], esi
je 0x43557b
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2454], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x435595
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2448], eax
mov eax, 0x801
cmp dword [ebp - 0x242c], esi
je 0x4355b4
lea ecx, [ebp - 0x1414]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2440], eax
cmp dword [ebp - 0x2420], esi
je 0x4355ce
lea ecx, [ebp - 0x2418]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x2470]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2434]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x43562a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4355ff
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x435613
mov dword [ebp - 0x241c], 0x80004005
push dword [ebp - 0x241c]
push 0x61
push str.uriutil.cpp
call fcn.0042fdc3
jmp 0x43570e
cmp ebx, esi
je 0x435636
mov eax, dword [ebp - 0x2464]
mov dword [ebx], eax
cmp edi, esi
je 0x43565a
push dword [ebp - 0x245c]
push dword [ebp - 0x2460]
push edi
call fcn.0042ecb2
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43570e
mov eax, dword [ebp - 0x2430]
cmp eax, esi
je 0x43566e
mov cx, word [ebp - 0x2458]
mov word [eax], cx
cmp dword [ebp - 0x2428], esi
je 0x435697
push dword [ebp - 0x2450]
push dword [ebp - 0x2454]
push dword [ebp - 0x2428]
call fcn.0042ecb2
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43570e
cmp dword [ebp - 0x2424], esi
je 0x4356c0
push dword [ebp - 0x2448]
push dword [ebp - 0x244c]
push dword [ebp - 0x2424]
call fcn.0042ecb2
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43570e
cmp dword [ebp - 0x242c], esi
je 0x4356e9
push dword [ebp - 0x2440]
push dword [ebp - 0x2444]
push dword [ebp - 0x242c]
call fcn.0042ecb2
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x43570e
cmp dword [ebp - 0x2420], esi
je 0x43570e
push dword [ebp - 0x2438]
push dword [ebp - 0x243c]
push dword [ebp - 0x2420]
call fcn.0042ecb2
mov dword [ebp - 0x241c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x241c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425daa
leave
ret 0x20
Function at 0x1002346
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, 0x100122c
push ebx
call fcn.010022ec
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x10023bb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 4]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10023b9
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001228
push edi
call esi
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100281c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push esi
xor esi, esi
neg eax
sbb eax, eax
mov ecx, 0x208
and eax, 6
push ecx
inc eax
push pe_nt_image_headers32
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1002857
xor eax, eax
jmp 0x100295e
cmp dword [ebp + 0xc], esi
je 0x1002866
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push edi
lea eax, [ebp + 0x18]
push eax
xor eax, eax
cmp dword [ebp + 0x10], esi
mov ebx, 0x20019
setne al
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80000001
push 0x1001390
add eax, edi
push eax
call esi
test eax, eax
jne 0x10028b6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x10028f6
lea eax, [ebp + 0x18]
push eax
push ebx
push ecx
push 0x1001318
push edi
call esi
test eax, eax
mov edi, dword [ebp - 4]
jne 0x10028f2
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x10028f9
mov edi, dword [ebp - 4]
cmp word [edi], cx
jne 0x1002902
xor esi, esi
jmp 0x1002953
cmp word [edi], cx
mov esi, edi
mov eax, edi
je 0x1002950
jmp 0x1002919
xor ecx, ecx
jmp 0x1002919
cmp word [esi], 0x2c
je 0x1002924
inc esi
inc esi
cmp word [esi], cx
jne 0x1002911
cmp word [esi], 0x2c
jne 0x100292d
mov word [esi], cx
inc esi
inc esi
jmp 0x100292d
inc eax
inc eax
cmp word [eax], 0x20
je 0x100292b
push dword [ebp - 0x14]
push ecx
push dword [ebp + 0x14]
push ecx
push eax
call fcn.01002534
test eax, eax
je 0x1002948
inc dword [ebp - 8]
cmp word [esi], 0
mov eax, esi
jne 0x100290d
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0x14
Function at 0x100320a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10032f1
push dword [ebp - 0x10]
call fcn.01004be7
test eax, eax
mov dword [ebp - 8], eax
je 0x10032e8
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_wcslen]
push edi
mov ebx, 0x1001848
push ebx
call esi
mov edi, 0x1001224
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 8]
add dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
add ecx, eax
add esp, 0xc
lea eax, [ecx + ecx + 2]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10032dd
push ebx
push esi
call dword [sym.imp.ntdll.dll_wcscpy]
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat]
push esi
call edi
push dword [ebp - 8]
push esi
call edi
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10032d6
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x100163c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call fcn.01004564
pop edi
pop esi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4

Function at 0x100349e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10070f0]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003534
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push str.TempPageFile
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003520
cmp dword [ebp - 0x21c], 4
jne 0x1003520
cmp dword [ebp - 0x218], 4
je 0x1003526
mov dword [ebp - 0x210], edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100353a
mov dword [ebp - 0x210], edi
cmp dword [ebp - 0x210], 1
jne 0x1003571
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x641
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push edi
push 1
lea eax, [ebp - 0x20c]
push eax
push 0x10019a8
call fcn.0100281c
push ebx
call fcn.01002afb
call fcn.01002f7f
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01005225
leave
ret 4