joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037521
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x10112587
call fcn.100604ea
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xffffffff
lea esi, [edi + 8]
xor ebx, ebx
lea eax, [esi + 8]
push 0x5a0
push ebx
mov dword [edi], ebx
push eax
mov dword [esi], ebx
call fcn.1003e610
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [ebp - 4], ebx
mov dword [edi + 0x5bc], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x1003758d
mov eax, dword [ebp + 8]
mov dword [edi], eax
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.100604b3
ret 4
push 0x10170340
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.1003fbb5
int3
Function at 0x10039f20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x23c], 0
push esi
push edi
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x1003a121
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003a121
push 0
lea eax, [ebp - 0x23c]
push eax
push 0x118
lea eax, [ebp - 0x184]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a121
cmp dword [ebp - 0x184], 0x54444851
jne 0x1003a121
cmp dword [ebp - 0x180], 0x118
ja 0x1003a121
push 0
lea eax, [ebp - 0x23c]
mov ecx, 0x46
push eax
push 0xb4
lea eax, [ebp - 0x238]
push eax
push dword [ebx]
lea edi, [ebx + 0xb8]
lea esi, [ebp - 0x184]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a121
lea eax, [ebp - 0x238]
mov ecx, ebx
push eax
call fcn.1003a140
test eax, eax
je 0x1003a121
mov eax, dword [ebx]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x248], 0
cmp eax, 0xffffffff
je 0x1003a121
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003a121
lea eax, [ebp - 0x240]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003a121
cmp dword [ebp - 0x240], 0
jne 0x1003a121
cmp esi, dword [ebx + 0x3e4]
ja 0x1003a121
push esi
call fcn.100390c2
mov edi, eax
add esp, 4
test edi, edi
je 0x1003a121
push 0
lea eax, [ebp - 0x248]
push eax
push esi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a0ef
push 0xb4
lea eax, [edi + 0x118]
push 0
push eax
call fcn.1003e610
lea eax, [ebp - 0x6c]
push eax
call fcn.1003b9b0
push esi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.1003c100
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1003b8d0
add esp, 0x24
lea edx, [ebx + 4]
lea ecx, [ebp - 0x14]
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003a0ef
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1003a0d4
mov dword [ebp - 0x244], 1
push edi
call fcn.10038d3b
add esp, 4
cmp dword [ebp - 0x244], 0
je 0x1003a121
pop edi
pop esi
mov dword [ebx + 0x3dc], 1
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038cf9
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038cf9
mov esp, ebp
pop ebp
ret
Function at 0x1003a140
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xbc], 0
push dword [edi + 0x3e0]
push 0x80
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1003c1b0
add esp, 0x14
cmp dword [ebp - 0xbc], 0x74
jne 0x1003a219
lea eax, [ebp - 0xa8]
push str.www.360.cn
push eax
call fcn.10043f14
add esp, 8
test eax, eax
jne 0x1003a219
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc0]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1003a219
cmp dword [ebp - 0xc0], 0
jne 0x1003a219
cmp eax, dword [edi + 0x3e4]
ja 0x1003a219
cmp eax, dword [ebp - 0x58]
jne 0x1003a219
lea eax, [edi + 0x1d0]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10043f14
add esp, 8
test eax, eax
jne 0x1003a219
push esi
add edi, 4
lea esi, [ebp - 0xb8]
mov ecx, 0x2d
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038cf9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.10038cf9
mov esp, ebp
pop ebp
ret 4
Function at 0x1003a230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x1c], 0
je 0x1003a3dc
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
mov dword [ebp + 0x1c], ebx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0x10
jb 0x1003a2b0
mov eax, esi
shr eax, 4
mov dword [ebp - 8], eax
sub edx, ebx
mov eax, edi
sub eax, ebx
mov ecx, ebx
mov dword [ebp - 0xc], eax
mov ebx, 4
mov esi, eax
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [esi + ecx - 4], eax
sub ebx, 1
jne 0x1003a274
push dword [ebp + 0x14]
push edi
push edi
call fcn.1003a950
mov esi, dword [ebp - 4]
mov edx, edi
mov ebx, dword [ebp + 0x1c]
sub esi, 0x10
add ebx, 0x10
mov dword [ebp - 4], esi
add esp, 0xc
mov dword [ebp + 0x1c], ebx
add edi, 0x10
sub dword [ebp - 8], 1
jne 0x1003a262
test esi, esi
je 0x1003a3bc
mov ecx, edx
xor eax, eax
sub ecx, ebx
mov dword [ebp - 0xc], ecx
mov ecx, edi
sub ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, 1
sub ecx, ebx
mov dword [ebp - 0x14], ecx
mov ecx, 2
sub ecx, ebx
mov dword [ebp - 0x18], ecx
mov ecx, 3
sub ecx, ebx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0xc]
lea esp, [esp]
cmp eax, esi
jae 0x1003a36c
mov esi, dword [ebp - 0x10]
add ebx, eax
mov cl, byte [ecx + ebx]
xor cl, byte [ebx]
mov byte [esi + ebx], cl
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
add ecx, ebx
cmp ecx, esi
jae 0x1003a36b
mov ecx, dword [ebp + 0x1c]
add ecx, 2
mov dword [ebp - 8], ecx
mov cl, byte [ecx + eax - 1]
xor cl, byte [eax + edx + 1]
mov byte [edi + eax + 1], cl
mov ecx, dword [ebp - 0x18]
add ecx, ebx
cmp ecx, esi
jae 0x1003a366
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax]
xor cl, byte [eax + edx + 2]
mov byte [edi + eax + 2], cl
mov ecx, dword [ebp - 0x1c]
add ecx, ebx
cmp ecx, esi
jae 0x1003a361
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 0x1c]
mov cl, byte [ecx + eax + 1]
xor cl, byte [eax + edx + 3]
mov byte [edi + eax + 3], cl
add eax, 4
mov ecx, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x1003a2f0
jmp 0x1003a38e
add eax, 3
jmp 0x1003a36c
add eax, 2
jmp 0x1003a36c
inc eax
cmp eax, 0x10
jae 0x1003a38e
mov ebx, 0x10
lea ecx, [eax + edi]
sub edx, edi
sub ebx, eax
lea ecx, [ecx]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub ebx, 1
jne 0x1003a380
push dword [ebp + 0x14]
push edi
push edi
call fcn.1003a950
add esp, 0xc
mov edx, edi
cmp esi, 0x10
jbe 0x1003a3bc
mov ebx, dword [ebp + 0x1c]
sub esi, 0x10
add ebx, 0x10
mov dword [ebp - 4], esi
add edi, 0x10
mov dword [ebp + 0x1c], ebx
test esi, esi
jne 0x1003a2b8
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1003a400
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003b610
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x1003aec0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003b0e0
add esp, 0xc
test eax, eax
js 0x1003b0d2
mov eax, dword [esi + 0xf0]
push ebx
push edi
xor ebx, ebx
lea edi, [eax*4]
test edi, edi
jle 0x1003af49
mov eax, dword [ebp + 0x10]
lea esi, [esi + edi*4]
add esi, 8
add eax, 8
nop
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x1003af00
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xf0]
mov ebx, 1
cmp eax, ebx
jle 0x1003b0ce
lea edi, [esi + 4]
lea esp, [esp]
movzx eax, byte [edi + 0xd]
lea edi, [edi + 0x10]
mov edx, dword [edi - 4]
inc ebx
movzx ecx, byte [eax*4 + 0x10128240]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x10129640]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10128e40]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129240]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129a40]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + 0x10128240]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10129240]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129640]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10128e40]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129a40]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + 0x10128240]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10129240]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129640]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10128e40]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129a40]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + 0x10128240]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x10129240]
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129640]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10128e40]
movzx eax, dl
movzx eax, byte [eax*4 + 0x10128240]
xor ecx, dword [eax*4 + 0x10129a40]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0xf0]
jl 0x1003af60
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x1003b9b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x100567cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005664e

Function at 0x1005f5a0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005f5b0
Function at 0x10061b49
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10195208], 0
jne 0x10061c12
push 0x208
lea eax, [ebp - 0x20c]
mov byte [0x10195208], 1
push 0
push eax
call fcn.1003e610
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10193b38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360Protect.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
call fcn.100a00c7
mov dword [0x1019520c], eax
test eax, eax
je 0x10061c12
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreatePromoteToolPage
push eax
call esi
push str.CreateSpeedOptToolPage
push dword [0x1019520c]
call esi
push str.ShowResultBottomPromotePage
push dword [0x1019520c]
call esi
push str.IsUISupportV13Result
push dword [0x1019520c]
call esi
push str.CreateV13ResultToolPage
push dword [0x1019520c]
mov dword [0x10190dac], eax
call esi
mov dword [0x10190da8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038cf9
leave
ret

Function at 0x10061f15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10134b64
movzx eax, dx
mov edi, ecx
push eax
push dword [0x10193b38]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10061f9b
push esi
push dword [0x10193b38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10061f9b
push esi
push dword [0x10193b38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, 0xfeff
cmp word [esi], ax
jne 0x10061f7b
add esi, 2
sub ebx, 2
test esi, esi
je 0x10061f9b
test ebx, ebx
jle 0x10061f9b
call fcn.100029f0
push eax
mov eax, ebx
mov ecx, edi
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.10007ce6
jmp 0x10061fa7
push 0x1013270c
mov ecx, edi
call fcn.100026e3
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10062e8f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10062ecd
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10062ea6
sub ecx, edx
sar ecx, 1
je 0x10062ecd
mov ecx, esi
call fcn.100631cd
test eax, eax
je 0x10062ed6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10062ee1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10008840
test eax, eax
je 0x10062ec2
mov ecx, esi
call fcn.1006300b
test eax, eax
jne 0x10062ecd
mov edi, dword [ebp + 8]
mov edx, edi
push ecx
mov ecx, esi
call fcn.10062f7b
pop ecx
test eax, eax
je 0x10062ecd
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10062f11
push 2
pop eax
jmp 0x10062ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x10062f5a
push ecx
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.1008f588
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10062f68
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10062f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.1008f5c2
test edi, edi
je 0x10062f60
mov dword [edi], ebx
xor eax, eax
inc eax
jmp 0x10062ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10062f3a
lea ecx, [esp + 0x10]
call fcn.1008f5c2
jmp 0x10062f0c

Function at 0x1006318b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call fcn.100081c1
mov esi, eax
test esi, esi
jne 0x100631c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100631c7
push ecx
push ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.1008f588
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.1008f5c2
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10063443
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.10039990
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100635ad
test eax, 0x400
je 0x100635ad
lea eax, [ebp - 0x4018]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x4010]
xor edi, edi
push eax
push str.SeBackupPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push edi
push edi
push 0x10
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4014], 1
push eax
push edi
push dword [ebp - 0x4018]
mov dword [ebp - 0x4008], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x4018]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
xor eax, eax
push eax
push 0x2200000
push 3
push eax
push eax
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100635ad
xor ecx, ecx
lea eax, [ebp - 0x401c]
push ecx
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push ecx
push ecx
push 0x900a8
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100635a8
test dword [ebp - 0x4004], 0x1fff0000
jne 0x100635a8
cmp dword [ebp - 0x4004], 1
jbe 0x100635a8
push esi
call edi
lea eax, [ebp - 0x3ff4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x1006358f
push 0x5c
pop eax
cmp word [ebp - 0x3ff4], ax
jne 0x1006358f
push 0x3f
pop ecx
cmp word [ebp - 0x3ff2], cx
je 0x10063577
cmp word [ebp - 0x3ff2], ax
jne 0x1006358f
cmp word [ebp - 0x3ff0], cx
jne 0x1006358f
cmp word [ebp - 0x3fee], ax
lea eax, [ebp - 0x3fec]
je 0x10063595
lea eax, [ebp - 0x3ff4]
push eax
mov ecx, ebx
call fcn.100026c3
movzx eax, word [ebp - 0x3ffa]
shr eax, 1
jmp 0x100635b7
push esi
call edi
jmp 0x100635b5
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038cf9
leave
ret
Function at 0x10063fe3
Capabilities:
Get common file path

Disassembly:
push 0x620
mov eax, 0x10112c99
call fcn.1006051e
mov esi, ecx
mov eax, dword [0x10195248]
test al, 1
jne 0x10064020
or eax, 1
mov dword [0x10195248], eax
call fcn.100029f0
push eax
mov ecx, 0x1019524c
call fcn.1000281b
push 0x101265d5
call fcn.10038ca3
pop ecx
cmp byte [0x10190e2a], 0
jne 0x100640fb
push 0x10192290
lea ecx, [ebp - 0x62c]
call fcn.10002155
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [0x10190e2a], bl
jne 0x100640e7
xor eax, eax
mov byte [0x10190e2a], 1
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea edx, [ebp - 0x628]
mov edi, 0x208
mov word [ebp - 0x628], ax
push edi
lea ecx, [ebp - 0x218]
call fcn.10064414
pop ecx
test eax, eax
jne 0x100640ab
push ecx
lea eax, [ebp - 0x218]
mov edx, edi
push eax
push ecx
lea ecx, [ebp - 0x628]
call fcn.10061d79
push str.regedit.exe
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x628]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x100640c6
sub edx, edi
lea eax, [ebp - 0x628]
sar edx, 1
mov ecx, 0x1019524c
push edx
push eax
call fcn.1000262a
cmp dword [ebp - 0x62c], ebx
je 0x100640fb
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x1019524c]
push esi
call fcn.10043f14
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
call fcn.100604c8
ret

Function at 0x100645b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push edx
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10064612
cmp dword [ebp - 4], esi
je 0x10064612
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10064609
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x10064617
Capabilities:
Query environment variable

Disassembly:
push 0xc
mov eax, 0x10112d85
call fcn.100604ea
mov esi, edx
mov dword [ebp - 0x14], esi
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x100646e0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x1006465e
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.10001ef7
add eax, 0x10
mov dword [ebx], eax
jmp 0x100646ea
call fcn.100029f0
push eax
lea ecx, [ebp - 0x10]
call fcn.1000281b
and dword [ebp - 4], 0
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.100025c3
test eax, eax
jne 0x1006469c
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.10001ef7
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
add eax, 0x10
mov dword [ebx], eax
call fcn.10002a86
jmp 0x100646ea
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x10]
mov edi, eax
push dword [esi - 8]
push esi
call fcn.100441f3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.100025ff
test edi, edi
jne 0x100646d5
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.10001ef7
lea ecx, [esi - 0x10]
jmp 0x10064690
cmp dword [esi - 0xc], 0
jle 0x100646c3
lea ecx, [esi - 0x10]
jmp 0x100646cb
push 0x1013270c
call fcn.100026e3
mov eax, ebx
call fcn.100604b3
ret

Function at 0x100649ef
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10188074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push 4
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10064a1d
xor eax, eax
jmp 0x10064a9b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10064a92
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x14], edi
jne 0x10064a74
push dword [ebp - 0x18]
push esi
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10064a71
mov ecx, edi
call fcn.10064b3a
test eax, eax
je 0x10064a6a
mov ecx, edi
call fcn.10064aaa
test eax, eax
je 0x10064a85
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10064a3a
jmp 0x10064a8f
push edi
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038cf9
leave
ret