joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a851
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1046064]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
push edi
mov edi, dword [ebp + 8]
jne 0x1028646
push 4
mov ecx, esi
call fcn.01020348
test eax, eax
je 0x101a8be
cmp dword [edi], 0xffffffff
je 0x101a8bb
mov eax, edi
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x101a8b1
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call fcn.01019201
add edi, 4
cmp dword [edi], 0xffffffff
mov eax, edi
jne 0x101a88a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01001b01
leave
ret 8
push 0
push 0x1034e10
push eax
call dword [fcn.010203dc]
push dword [esi]
call dword [0x1020408]
jmp 0x101a883

Function at 0x101bd73
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, 0x100a6f0
push 0x101bde0
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov ebx, eax
test ebx, ebx
je 0x101bdd8
push ebx
call dword [sym.imp.SHLWAPI.dll_IStream_Reset]
test eax, eax
jl 0x101bdd8
cmp dword [ebp + 8], 0
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
jne 0x1026e31
call fcn.0101d716
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
cmp dword [ebp - 8], 0
jne 0x1026e4a
pop edi
pop esi
pop ebx
leave
ret 0xc
call fcn.01034b65
test eax, eax
jge 0x101bdc8
mov dword [ebp - 8], 1
jmp 0x101bdc8
lea eax, [ebp + 8]
push eax
push 0x20006
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101bdd8
push 0x101bde0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101bdd8
Function at 0x101c4ba
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1046064]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
xor ebx, ebx
push ebx
push 0x101c524
mov edi, 0x100bbe8
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x41c]
cmp eax, 2
jb 0x10236bf
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b01
leave
ret
sub eax, ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
je 0x10236d1
dec eax
je 0x1023749
jmp 0x102375a
push 0x10237ec
push 0x1017090
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x420], 0x104
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x10237d8
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1023749
cmp word [ebp - 0x414], ax
je 0x1023749
push 4
lea eax, [ebp - 0x418]
push eax
push 4
push 0x1029c40
push edi
push esi
mov dword [ebp - 0x418], 1
call ebx
xor eax, eax
cmp dword [ebp - 0x41c], eax
sete al
push eax
call fcn.0103dc85
push 0
push 1
push 0x10237b8
push 0x102379c
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
jne 0x101c517
push 4
lea eax, [ebp - 0x418]
push eax
push 4
push 0x101c524
push edi
push esi
mov dword [ebp - 0x418], 2
call ebx
jmp 0x101c517

Function at 0x101cc32
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x1046064]
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 4], eax
mov eax, 0x1f4
push ecx
push eax
push 0x29
mov dword [ebp - 0x1f8], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x101cc98
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, eax
and cx, 0x3ff
cmp cx, 4
je 0x1024a11
mov dword [ebp - 0x1d0], 0x2bc
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.01001b01
leave
ret 4
shr ax, 0xa
cmp ax, 1
je 0x1024a25
cmp ax, 2
jne 0x101cc7f
mov dword [ebp - 0x1d0], 0x190
jmp 0x101cc89

Function at 0x101d125
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push esi
push 0x200
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSetSettings]
test byte [ebp - 0x28], 0x40
jne 0x1022db8
push esi
call fcn.0101d15a
mov eax, esi
pop esi
leave
ret
call fcn.0101d0b9
cmp eax, 2
jb 0x101d150
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x101d1b0
push dword [0x1047390]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x493e0
sbb esi, esi
neg esi
jne 0x101d150
push 1
jmp 0x101d14b
Function at 0x101d2ab
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1046064]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
xor ebx, ebx
inc ebx
push ebx
mov dword [ebp - 4], eax
push 0x10
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
call esi
push ebx
push 2
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
push ebx
push 0xb
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
push ebx
push 7
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
push ebx
push 8
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
push ebx
push 6
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b01
leave
ret

Function at 0x101d43c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov ebx, 0x101d488
push ebx
mov edi, 0x100bbe8
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
je 0x1023092
cmp eax, 3
je 0x1023092
pop edi
pop esi
pop ebx
leave
ret
push 0x1d
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x102313d
push 0x220
push 0
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x10230df
push 0x225
push eax
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x10230df
push 0x227
push eax
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
jne 0x10230df
push 0x22c
push eax
call sub.SHELL32.dll_SHTestTokenMembership
test eax, eax
je 0x102313d
push 0x102314c
push 0x1014c44
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x102310a
push 0x1023144
push 1
call eax
push 3
push 1
push 0
push 0x100b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x101d481
and dword [ebp - 4], 0
jmp 0x1023127
Function at 0x101d842
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push ebx
push 0x101d674
push 0x100a6f0
push 0x80000001
mov dword [ebp - 4], ecx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov esi, eax
cmp esi, ebx
je 0x101d8d1
push edi
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_IStream_Read]
test eax, eax
jl 0x101d8ca
cmp dword [ebp - 0x18], 0x14
jne 0x101d8ca
mov edi, dword [ebp - 4]
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0101d699
test eax, eax
je 0x101d8ca
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x101d8ca
cmp dword [ebp - 0xc], ebx
jbe 0x101d8ca
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0x14]
test eax, eax
jne 0x101d8ca
push esi
call dword [fcn.0101d8e4]
mov dword [edi + 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ecx + 0x1c], ebx
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x101d935
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1046064]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push 0x101d9c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101d9ab
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x101d9b8
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1022c36
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01001b01
leave
ret
cmp word [ebp - 0x20c], si
je 0x101d99f
push edi
push 0x10
pop ecx
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x268]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x268], 0x44
mov word [ebp - 0x238], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x101d99f
push dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x220]
call esi
jmp 0x101d99f

Function at 0x101f4a9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ecx + 0x74], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 2
push 8
lea eax, [ebp - 8]
push eax
push 3
push 0x1021950
push 0x10218a0
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
leave
ret
Function at 0x101f785
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x1046064]
or dword [ebp + 0x1c], 4
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x614], edi
mov word [ebp - 0x20c], bx
jne 0x1025516
mov dword [ebp - 0x610], ebx
cmp esi, ebx
je 0x1025547
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1025547
cmp word [ebp - 0x20c], bx
je 0x101f815
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x101f815
push eax
call dword [sym.imp.SHELL32.dll_DriveType]
cmp eax, 2
je 0x1025532
cmp eax, 5
je 0x1025532
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1025547
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x100
jne 0x102555d
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x102557b
push dword [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x610]
push dword [ebp - 0x614]
call dword [sym.imp.SHELL32.dll_Ordinal_61]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b01
leave
ret 0x18
movzx eax, word [ebp + 0xc]
push eax
push dword [0x10460c0]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x610], eax
jmp 0x101f7c3
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101f815
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x101f82a
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0x14]
push dword [0x10460c0]
call esi
lea ebx, [ebp - 0x40c]
jmp 0x101f83e
push edi
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x18]
push dword [0x10460c0]
call esi
lea eax, [ebp - 0x60c]
jmp 0x101f849
Function at 0x101fccb
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x1006a92
mov ecx, dword [ebp - 4]
jmp 0x101fcf8
push 1
push edi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
je 0x1006ac3
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x20], 0x20
je 0x10282ed
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1006a92
cmp dword [ebp + 0x10], 0xffffffff
je 0x1006a8a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 4], ecx
jmp 0x101fcf8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
add eax, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
je 0x10282dd
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push dword [ebp + 0x14]
xor ebx, ebx
cmp dword [ebp + 0xc], edi
push ecx
setne bl
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
call esi
cmp eax, ebx
je 0x1006a82
pop esi
pop ebx
pop edi
leave
ret 0x10
or eax, 0xffffffff
cmp ecx, eax
je 0x101fd16
jmp 0x101fcf0
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1006a92

Function at 0x10205f3
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x100e184
push 0x100bbe8
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x1014e83
dec dword [esi + 0x74]
push 3
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi + 0x7c], edi
mov esi, dword [esi + 0x24]
push 0x4e
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xd1
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_Ordinal_178]
pop edi
jmp 0x102061c
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x7c], ebx
jne 0x102061c
cmp dword [esi + 0x74], ebx
je 0x102061c
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1014e40
pop esi
pop ebx
leave
ret
Function at 0x1020c85
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [edi]
xor edx, edx
cmp ecx, edx
je 0x100d6a2
cmp dword [esi], edx
je 0x100d70c
mov eax, dword [esi - 0xc]
cmp eax, edx
mov dword [esi], edx
mov dword [esi - 8], eax
je 0x100d747
mov eax, dword [eax]
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
call dword [sym.imp.SHELL32.dll_ILFree]
and dword [edi], 0
push 4
lea ecx, [esi - 0xc]
call fcn.01020348
test eax, eax
je 0x100d703
push dword [ebp - 8]
push dword [ebx + 0x2c]
call fcn.0100d5da
test eax, eax
mov dword [ebp - 0xc], eax
je 0x100d703
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [edi], eax
lea eax, [esi - 0xc]
push eax
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0100d97a
mov ecx, dword [ebp - 0xc]
call fcn.010209b6
lea eax, [esi - 8]
push eax
call fcn.0100d760
cmp dword [ebx + 4], 0
je 0x1020d7f
cmp dword [esi + 4], 0
jne 0x1020d7f
mov edi, dword [edi]
test edi, edi
je 0x1020d7f
xor eax, eax
inc eax
push eax
push edi
push 0x2381f
push dword [ebp - 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 4]
call fcn.0100bb85
jmp 0x1020d7f
xor eax, eax
jmp 0x100d6b4
lea ecx, [esi - 0xc]
call fcn.0101384a
jmp 0x1020d88
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x580
push 0x28e44000
lea eax, [ebp - 0x14]
push eax
call fcn.01020b05
lea esi, [ebx + 0x20]
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x10287a1
push ebx
push 0x1020b29
push dword [ebx + 0xe0]
call dword [fcn.010203dc]
and dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov ecx, dword [ebp - 4]
shl ecx, 3
mov eax, dword [ecx + 0x10209fc]
mov ecx, dword [ecx + 0x1020a00]
lea edi, [esi - 4]
mov dword [ebx + 0x28], ecx
cmp dword [edi], 0
mov dword [ebp - 0xc], eax
je 0x10287b1
push dword [ebp - 4]
mov ecx, ebx
call fcn.01020a5b
test eax, eax
je 0x1020d88
test byte [ebx + 0x28], 8
je 0x1020d29
push 0x20000
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x10287c6
push dword [ebp - 0xc]
call fcn.01020dae
test eax, eax
jne 0x100d74e
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x100d74e
mov eax, dword [edi]
test eax, eax
je 0x100d696
push dword [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_ILIsEqual]
test eax, eax
je 0x100d696
cmp dword [esi], 0
jne 0x100d696
cmp dword [esi + 4], 0
je 0x100d696
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ILFree]
inc dword [ebp - 4]
add esi, 0x1c
cmp dword [ebp - 4], 6
jb 0x1020cde
pop edi
pop esi
mov dword [ebx + 0xf4], 1
xor eax, eax
pop ebx
leave
ret
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
jmp 0x1020cc5
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [esi], 1
jmp 0x1020d02
or dword [ebx + 0x28], 1
jmp 0x1020d29
Function at 0x1021b2f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, ecx
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x48]
xor ebx, ebx
cmp eax, ebx
je 0x1021b58
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x24]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1021950
push 0x10218a0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
add edi, 0xc
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x1021ba1
mov ecx, esi
mov dword [esi + 0x74], 3
call fcn.010205f3
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x102b4cf
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb00
mov eax, dword [0x1046064]
push ebx
push esi
push edi
push 0x1d
mov dword [ebp - 4], eax
mov edi, 0x1030
mov ebx, 0x21a
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
jne 0x102b4ff
add edi, 4
inc ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x50
lea eax, [ebp - 0xa4]
push eax
push 0x20c
push dword [0x10460c0]
call esi
push 0x400
lea eax, [ebp - 0xaac]
push eax
push ebx
push dword [0x10460c0]
call esi
push edi
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xaac]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x102b5b3
push 0x104
lea eax, [ebp - 0x2ac]
push eax
push 0x102b5c0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0xb00], esi
lea edi, [ebp - 0xafc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xabc]
push eax
lea eax, [ebp - 0xb00]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x102b5b3
push dword [ebp - 0xab8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xabc]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b01
leave
ret

Function at 0x102b695
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1046064]
push 7
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x102b6d9
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push 2
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
mov eax, dword [ebp - 0x34]
jmp 0x102b6dc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.01001b01
leave
ret 4
Function at 0x102b6ed
Capabilities:
Create process on windows
Create process suspended
Create thread
Get common file path
Resume thread
Terminate process
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x1046064]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push esi
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x624], esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
cmp eax, esi
mov dword [ebp - 0x628], eax
je 0x102b8c2
push ebx
push eax
call fcn.0102b277
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x62c], eax
je 0x102b8b9
lea ecx, [ebp - 0x644]
push ecx
push 4
push eax
push 0x102b2c8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 0x620], eax
je 0x102b8b1
push edi
xor eax, eax
mov dword [ebp - 0x63c], esi
lea edi, [ebp - 0x638]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x688], esi
lea edi, [ebp - 0x684]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x102b89a
push 0x102b940
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x102b89a
push dword [ebp - 0x640]
lea eax, [ebp - 0x61c]
push 0x400
push 0x102b8d8
push 0x208
push eax
call fcn.0100ae15
add esp, 0x14
test eax, eax
jl 0x102b89a
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x688]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x688], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x102b89a
push dword [ebp - 0x63c]
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x102b874
push dword [ebp - 0x638]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x624], 1
call edi
push dword [ebp - 0x620]
call edi
cmp dword [ebp + 0xc], esi
je 0x102b882
push 0x4ff
push 0xffffffffffffffff
push dword [ebp - 0x620]
push esi
call fcn.0101fccb
jmp 0x102b882
push 5
push dword [ebp - 0x63c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x63c]
call ebx
push dword [ebp - 0x638]
call ebx
cmp dword [ebp - 0x624], esi
jne 0x102b8a8
push 5
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x620]
call ebx
pop edi
push dword [ebp - 0x62c]
call ebx
push dword [ebp - 0x628]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
pop esi
call fcn.01001b01
leave
ret 8