joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f690
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003be4b
mov eax, dword fs:[0]
push eax
mov eax, 0x2744
call fcn.1000aeb0
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10050de8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x274c], ebx
mov dword [ebp - 0x2748], eax
push ebx
lea ecx, [ebp - 0x2748]
push str..PhysicalDrive_d
push ecx
mov dword [ebp - 4], ebx
call fcn.1001f230
mov edx, dword [ebp - 0x2748]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001f862
xor eax, eax
push ebx
mov dword [ebp - 0x2740], eax
mov dword [ebp - 0x273c], eax
mov dword [ebp - 0x2738], eax
mov dword [ebp - 0x2734], eax
mov dword [ebp - 0x2730], eax
lea eax, [ebp - 0x2750]
push eax
push 0x18
lea ecx, [ebp - 0x2744]
push ecx
push ebx
push ebx
push 0x70000
push esi
mov dword [ebp - 0x2744], ebx
mov dword [ebp - 0x2750], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x1001f853
mov edx, dword [ebp - 0x273c]
push edx
push 0x10045ad0
push edi
call fcn.1001f230
xor eax, eax
mov dword [ebp - 0x272c], eax
mov dword [ebp - 0x2728], eax
push 0x270f
mov dword [ebp - 0x2724], eax
lea eax, [ebp - 0x271f]
push ebx
push eax
mov dword [ebp - 0x272c], ebx
mov dword [ebp - 0x2728], ebx
mov byte [ebp - 0x2720], bl
call fcn.1000ae30
add esp, 0x18
push ebx
lea ecx, [ebp - 0x2750]
push ecx
push 0x2710
lea edx, [ebp - 0x2720]
push edx
push 0xc
lea eax, [ebp - 0x272c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001f853
mov eax, dword [ebp - 0x2710]
cmp eax, ebx
je 0x1001f7f7
lea ecx, [ebp + eax - 0x2720]
push ecx
lea ecx, [edi + 4]
call fcn.1001f550
mov eax, dword [ebp - 0x2708]
cmp eax, ebx
je 0x1001f811
lea edx, [ebp + eax - 0x2720]
push edx
lea ecx, [edi + 8]
call fcn.1001f550
mov eax, dword [ebp - 0x2714]
cmp eax, ebx
je 0x1001f82b
lea eax, [ebp + eax - 0x2720]
push eax
lea ecx, [edi + 0xc]
call fcn.1001f550
mov eax, dword [ebp - 0x270c]
cmp eax, ebx
je 0x1001f845
lea ecx, [ebp + eax - 0x2720]
push ecx
lea ecx, [edi + 0x10]
call fcn.1001f550
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f868
mov edi, dword [ebp - 0x274c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f868
mov edi, dword [ebp - 0x274c]
mov eax, dword [ebp - 0x2748]
lea edx, [eax - 0xc]
cmp edx, dword [0x10050de4]
je 0x1001f890
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001f890
push esi
call fcn.1000b015
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x1001ff60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bfb8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1004f0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1001fff4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001ff91
sub eax, edx
sar eax, 1
je 0x1001fff4
cmp dword [ebp + 0x14], 0
je 0x1001fff4
cmp dword [ebp + 0x18], 1
jb 0x1001fff4
push esi
lea ecx, [ebp + 0x10]
call fcn.100077d0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.10002010
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10020008
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10001fe0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jb 0x1001ffe5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1001ffe5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x18]
cmp edi, ecx
jb 0x10020035
mov edi, ecx
mov edx, dword [ebp + 0x14]
push edi
push eax
push edx
call fcn.1000b030
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10001fe0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020070
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bfe8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10020115
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100200a4
sub eax, esi
sar eax, 1
je 0x10020115
push edx
lea ecx, [ebp + 0x10]
call fcn.100077d0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.10002010
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10020129
lea ecx, [edi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x10050de4]
je 0x10020115
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10020115
push esi
call fcn.1000b015
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, 1
jb 0x1002017b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1002017b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1002017b
mov edx, dword [ebp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002019e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10001fe0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10020174
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10001fe0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100201f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x100201fe
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 3
jb 0x10020279
nop
cmp edx, 4
jbe 0x10020279
movzx ecx, byte [esi]
movzx ebx, byte [esi + 1]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 2]
shl ecx, 8
or ecx, ebx
mov ebx, ecx
shr ebx, 0x12
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov ebx, ecx
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], bl
mov ebx, ecx
shr ebx, 6
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], bl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
sub edi, 3
mov byte [eax + 3], cl
add esi, 3
add eax, 4
sub edx, 4
cmp edi, 3
jae 0x10020210
test edi, edi
je 0x100202ef
cmp edx, 4
jbe 0x100202ef
movzx ecx, byte [esi]
shl ecx, 0x10
mov edx, ecx
shr edx, 0x12
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
cmp edi, 1
jne 0x100202bf
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov byte [eax + 2], 0x3d
add eax, 3
mov byte [eax], 0x3d
pop edi
inc eax
pop esi
mov byte [eax], 0
sub eax, dword [ebp + 0x10]
pop ebx
pop ebp
ret
movzx edx, byte [esi + 1]
shl edx, 8
or ecx, edx
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 6
mov byte [eax + 1], dl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
add eax, 3
mov byte [eax], 0x3d
inc eax
pop edi
pop esi
mov byte [eax], 0
sub eax, dword [ebp + 0x10]
pop ebx
pop ebp
ret
Function at 0x10020450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x84], 0x33323156
mov dword [ebp - 0x80], 0x37363534
mov dword [ebp - 0x7c], 0x62613938
mov dword [ebp - 0x78], 0x66656463
mov dword [ebp - 0x74], 0x6a696867
mov dword [ebp - 0x70], 0x6e6d6c6b
mov dword [ebp - 0x6c], 0x7271706f
mov dword [ebp - 0x68], 0x76757473
mov dword [ebp - 0x64], 0x7a797877
mov dword [ebp - 0x60], 0x44434641
mov dword [ebp - 0x5c], 0x48474245
mov dword [ebp - 0x58], 0x4c494a4b
mov dword [ebp - 0x54], 0x504f4e4d
mov dword [ebp - 0x50], 0x54535251
mov dword [ebp - 0x4c], 0x58573055
mov word [ebp - 0x48], 0x5a59
mov byte [ebp - 0x46], 0
mov dword [ebp - 0x44], 0x6f666442
mov dword [ebp - 0x40], 0x53707773
mov dword [ebp - 0x3c], 0x4d377846
mov dword [ebp - 0x38], 0x365a304b
mov dword [ebp - 0x34], 0x3868546b
mov dword [ebp - 0x30], 0x3472474f
mov dword [ebp - 0x2c], 0x31694a48
mov dword [ebp - 0x28], 0x43744e55
mov dword [ebp - 0x24], 0x587a5035
mov dword [ebp - 0x20], 0x6a443351
mov dword [ebp - 0x1c], 0x7579626e
mov dword [ebp - 0x18], 0x71325756
mov dword [ebp - 0x14], 0x616c4c76
mov dword [ebp - 0x10], 0x63675965
mov dword [ebp - 0xc], 0x39416d52
mov word [ebp - 8], 0x4945
mov byte [ebp - 6], 0
jne 0x10020569
lea ecx, [ebp - 0x44]
lea edi, [ebp - 0x84]
mov dword [ebp - 0x88], ecx
jmp 0x10020578
lea edx, [ebp - 0x84]
lea edi, [ebp - 0x44]
mov dword [ebp - 0x88], edx
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10020585
mov esi, dword [eax]
jmp 0x10020587
mov esi, eax
test ecx, ecx
je 0x100205cc
mov ebx, ecx
lea ecx, [ecx]
mov al, byte [esi]
cmp al, 0x30
jl 0x1002059a
cmp al, 0x39
jle 0x100205aa
cmp al, 0x61
jl 0x100205a2
cmp al, 0x7a
jle 0x100205aa
cmp al, 0x41
jl 0x100205c8
cmp al, 0x5a
jg 0x100205c8
movsx eax, al
push eax
push edi
call fcn.10034640
add esp, 8
test eax, eax
je 0x100205c8
mov ecx, dword [ebp - 0x88]
sub eax, edi
mov dl, byte [eax + ecx]
mov byte [esi], dl
inc esi
dec ebx
jne 0x10020590
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x10020cb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x10020d7a
test edi, edi
je 0x10020d7a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000ae30
add esp, 0xc
push 0x104
push edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10020d7a
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x20c]
push ecx
call esi
test eax, eax
je 0x10020d46
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
jne 0x10020d7a
push str..url
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x10020d7a
lea ecx, [ebp - 0x20c]
push ecx
call esi
test eax, eax
jne 0x10020d31
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x10021890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c09b
mov eax, dword fs:[0]
push eax
sub esp, 0x71c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x1005302c
call fcn.10021850
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x31e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 4], ebx
mov word [ebp - 0x320], ax
call fcn.1000ae30
add esp, 0xc
call fcn.1001d8f0
push 0x104
cmp eax, ebx
je 0x10021947
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10021923
push str.driversetchosts
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1002196e
xor eax, eax
lea esp, [ebp - 0x738]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10021923
push 0x10046f40
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10021923
lea eax, [ebp - 0x320]
push 0x10046f3c
push eax
call fcn.100350a9
mov edi, eax
add esp, 8
mov dword [ebp - 0x728], edi
cmp edi, ebx
je 0x10021ae1
push edi
call fcn.10035d58
add esp, 4
test eax, eax
jne 0x10021ad8
push 0x103
lea ecx, [ebp - 0x117]
push ebx
push ecx
mov byte [ebp - 0x118], bl
call fcn.1000ae30
push edi
lea edx, [ebp - 0x118]
push 0x104
push edx
call fcn.100350c0
push 0x3fe
lea ecx, [ebp - 0x71e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x720], ax
call fcn.1000ae30
add esp, 0x24
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x10021a41
lea eax, [esi + esi]
call fcn.1000c680
mov edi, esp
mov dword [ebp - 0x10], esp
cmp edi, ebx
je 0x10021a3b
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x118]
push ecx
push ebx
xor eax, eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 0x728]
jmp 0x10021a43
mov edi, dword [ebp - 0x728]
xor eax, eax
push 0x200
lea edx, [ebp - 0x720]
push edx
push eax
call fcn.10020b10
add esp, 0xc
test eax, eax
je 0x10021992
lea eax, [ebp - 0x720]
push eax
lea ecx, [ebp - 0x724]
mov dword [ebp - 0x724], ebx
call fcn.10009aa0
mov eax, dword [0x1005302c]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x724]
push ecx
push edx
push eax
mov ecx, 0x1005302c
mov byte [ebp - 4], 1
call fcn.10021730
mov ecx, 0x3ffffffe
sub ecx, dword [0x10053030]
cmp ecx, 1
jae 0x10021ab4
push str.list_T__too_long
call fcn.1002de2d
inc dword [0x10053030]
mov edx, dword [ebp - 0x724]
mov dword [esi], eax
mov ecx, dword [eax + 4]
push edx
mov dword [ecx], eax
mov byte [ebp - 4], bl
call fcn.1000b015
add esp, 4
jmp 0x10021992
push edi
call fcn.1001a6b4
add esp, 4
mov eax, 1
jmp 0x10021925
Function at 0x10021c60
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c0db
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10021e5e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
test eax, eax
je 0x10021e5e
push esi
lea ecx, [ebp - 0x514]
call fcn.100077d0
push 0
push esi
push 0
mov dword [ebp - 4], 0
call sub.urlmon.dll_IsValidURL
test eax, eax
jne 0x10021cfc
mov eax, dword [ebp - 0x514]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10050de4]
je 0x10021cf2
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10021cf2
push esi
call fcn.1000b015
add esp, 4
mov eax, 1
jmp 0x10021e60
push str.localhost
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10021d21
lea ecx, [ebp - 0x514]
call fcn.10001fe0
mov eax, 1
jmp 0x10021e60
cmp dword [ebp + 0xc], 0
je 0x10021d34
push esi
call fcn.10021810
add esp, 4
test eax, eax
jne 0x10021d0c
push esi
call fcn.10021550
add esp, 4
test eax, eax
jne 0x10021d0c
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x50e]
push eax
mov word [ebp - 0x510], dx
call fcn.1000ae30
push 0x38
lea ecx, [ebp - 0x54c]
push 0
push ecx
call fcn.1000ae30
add esp, 0x18
lea eax, [ebp - 0x550]
push eax
push 0x10000000
lea edx, [ebp - 0x510]
push esi
mov dword [ebp - 0x550], 0x3c
mov dword [ebp - 0x54c], edx
mov dword [ebp - 0x548], 0x200
call edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10021e14
xor ecx, ecx
push 0xfe
push ecx
lea edx, [ebp - 0x10e]
push edx
mov word [ebp - 0x110], cx
call fcn.1000ae30
push 0x80
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.100209a0
add esp, 0x18
test eax, eax
je 0x10021df5
lea ecx, [ebp - 0x110]
push ecx
call fcn.10020ae0
add esp, 4
test eax, eax
jne 0x10021d0c
push esi
call fcn.10021b00
add esp, 4
lea ecx, [ebp - 0x514]
test eax, eax
je 0x10021e59
call fcn.10001fe0
mov eax, 1
jmp 0x10021e60
cmp dword [ebp - 0x544], 0xffffffff
jne 0x10021e53
push str.site
lea edx, [ebp - 0x510]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x10021e53
lea eax, [ebp - 0x510]
push eax
call fcn.10020910
add esp, 4
lea ecx, [ebp - 0x514]
mov esi, eax
call fcn.10001fe0
mov eax, esi
jmp 0x10021e60
lea ecx, [ebp - 0x514]
call fcn.10001fe0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x10022a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push ecx
push edx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x10022aa6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10022a9c
xor esi, esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10022ab0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jne 0x10022ac3
mov eax, 1
pop ebp
ret
xor edx, edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], dx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret
Function at 0x10023b20
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x100530b0
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], edi
call fcn.1001b4a0
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push esi
lea edx, [ebp - 4]
push edx
push str.Install
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10023b74
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10023b74
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x10
call fcn.10028a90
add esp, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10023ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x100530b0
lea edi, [eax + eax + 2]
call fcn.1001b4a0
push edi
push esi
push 1
push str.Install
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, eax
call fcn.1001d960
xor ebx, ebx
test eax, eax
je 0x10023c3c
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10023c3c
mov edx, dword [ebp - 0x10]
push ebx
push 2
push 0x1f01ff
push ebx
push edx
push 1
push esi
call fcn.1001e2f0
mov eax, dword [ebp - 0x10]
add esp, 0x1c
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp edi, ebx
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret