joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422d78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.00422af2
xor edi, edi
inc edi
cmp eax, edi
jne 0x422e8e
push ecx
push 5
push 0x49711c
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.004392e4
test eax, eax
je 0x422e8c
mov edx, dword [eax + 4]
test edx, edx
je 0x422e8c
cmp dword [eax + 0xc], esi
je 0x422e8c
push dword [eax + 0xc]
lea ecx, [ebp - 0xc]
call fcn.0044c18c
pop ecx
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0x10]
push ecx
push esi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
je 0x422e03
xor eax, eax
jmp 0x422e8e
push ecx
push 4
push str.Type
mov ecx, ebx
call fcn.004392e4
test eax, eax
je 0x422e90
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x422e22
mov ecx, 0x4934ec
mov eax, dword [ebp - 0x10]
sub eax, 1
je 0x422e85
sub eax, 1
je 0x422e7e
sub eax, 1
je 0x422e77
sub eax, 1
je 0x422e64
sub eax, 3
je 0x422e5d
dec eax
sub eax, 1
je 0x422e56
dec eax
sub eax, 1
je 0x422e4f
or edi, 0xffffffff
jmp 0x422e90
push 0x497130
jmp 0x422e69
push str.REG_FULL_RESOURCE_DESCRIPTOR
jmp 0x422e69
push 0x497160
jmp 0x422e69
push 0x497124
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb edi, edi
inc edi
jmp 0x422e90
push 0x497144
jmp 0x422e69
push 0x497150
jmp 0x422e69
push 0x49713c
jmp 0x422e69
mov eax, edi
mov edi, eax
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422e9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov edi, edx
mov dword [ebp - 4], ebx
call fcn.00422af2
mov esi, eax
cmp esi, 1
jne 0x422f95
push ecx
push 5
push 0x49711c
mov ecx, edi
call fcn.004392e4
test eax, eax
je 0x422f5c
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov edx, dword [eax + 4]
test edx, edx
je 0x422ef0
mov eax, dword [eax + 0xc]
jmp 0x422ef7
mov eax, ebx
mov edx, 0x4934ec
push eax
lea ecx, [ebp - 0x10]
call fcn.0044c18c
pop ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
jne 0x422f34
cmp dword [ebp - 0x14], 4
je 0x422f34
mov esi, ebx
jmp 0x422f95
push ecx
push 0xa
push str.Comparison
mov ecx, edi
call fcn.004392e4
mov esi, eax
test esi, esi
je 0x422f5c
push ecx
push 4
push 0x497190
mov ecx, edi
call fcn.004392e4
test eax, eax
jne 0x422f61
or esi, 0xffffffff
jmp 0x422f95
mov eax, dword [eax + 4]
test eax, eax
jne 0x422f6d
mov eax, 0x4934ec
mov esi, dword [esi + 4]
test esi, esi
jne 0x422f79
mov esi, 0x4934ec
push 0xa
push ebx
push eax
call dword [sym.imp.msvcrt.dll_strtoul]
add esp, 0xc
mov ecx, esi
push ebx
push eax
push ebx
push dword [ebp - 8]
call fcn.00422cac
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0043b8cb
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423665
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
sub esp, 0xc
mov eax, dword [eax + 0x148]
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
cmp dword [eax + 0x14], edi
je 0x423785
lea eax, [ebp - 8]
push eax
call fcn.00422af2
cmp eax, 1
jne 0x423788
push ecx
push 5
push 0x49711c
mov ecx, ebx
call fcn.004392e4
mov esi, eax
test esi, esi
je 0x423785
call fcn.0043d5bb
push eax
lea ecx, [ebp - 4]
call fcn.0043bbe8
mov edx, dword [esi + 4]
test edx, edx
je 0x4236c9
mov eax, dword [esi + 0xc]
jmp 0x4236d0
mov eax, edi
mov edx, 0x4934ec
push eax
lea ecx, [ebp - 0xc]
call fcn.0044c18c
pop ecx
lea ecx, [ebp - 4]
push ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call fcn.0044dd53
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
je 0x4236ff
mov esi, dword [ebp - 4]
jmp 0x423779
mov eax, 0x104
lea ecx, [ebp - 4]
push eax
push eax
call fcn.0043d810
mov esi, dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0043d8ad
push ecx
push 4
push str.Path
mov ecx, ebx
call fcn.004392e4
test eax, eax
jne 0x42373b
or edi, 0xffffffff
jmp 0x423779
mov edx, dword [eax + 4]
test edx, edx
je 0x423747
mov edi, dword [eax + 0xc]
jmp 0x42374c
mov edx, 0x4934ec
push edi
lea ecx, [ebp - 0xc]
call fcn.0044c18c
pop ecx
lea ecx, [ebp - 4]
mov edx, dword [eax]
call fcn.0044c3a9
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, esi
call fcn.00421c47
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0043d912
mov eax, edi
jmp 0x423788
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42378d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx + 0x14]
push ebx
xor ebx, ebx
push edi
mov eax, dword [eax + 0x148]
mov edi, edx
cmp dword [eax + 0x14], ebx
jne 0x4237d9
push dword [ecx + 0x18]
lea eax, [ebp - 8]
push 0x497330
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push 0x496898
push 2
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
xor eax, eax
inc eax
jmp 0x423848
push esi
push ecx
push 8
push str.WqlQuery
mov ecx, edi
call fcn.004392e4
mov esi, eax
test esi, esi
jne 0x4237f4
or eax, 0xffffffff
jmp 0x423847
push 8
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x423808
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x42380a
mov eax, ebx
push ebx
push ebx
push eax
push 0x4336eb
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp - 4]
test esi, esi
je 0x423845
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4240c3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push edi
push ecx
push 8
mov edi, ecx
mov ecx, edx
push 0x496e68
call fcn.004392e4
test eax, eax
jne 0x4240ea
or eax, 0xffffffff
jmp 0x42421d
mov edx, dword [eax + 4]
push esi
xor esi, esi
test edx, edx
je 0x4240f9
mov eax, dword [eax + 0xc]
jmp 0x424100
mov edx, 0x4934ec
mov eax, esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0044c18c
mov eax, dword [edi + 0x14]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
pop ecx
mov eax, dword [eax + 0x148]
cmp dword [eax + 0x14], esi
je 0x424150
lea eax, [ebp - 0x10]
push eax
push 0x80
push 0x4242ea
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
test eax, eax
jne 0x42413e
or esi, 0xffffffff
jmp 0x42420f
cmp dword [ebp - 8], 1
jbe 0x42420f
mov esi, dword [ebp - 0xc]
jmp 0x42420f
mov dword [ebp - 4], esi
lea edx, [ebp - 4]
mov eax, dword [eax + 0x48]
push edx
push 0x2000000
push str.SYSTEMCurrentControlSetControlMUIUILanguages
mov ecx, dword [eax]
push 0x80000002
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x42417b
or esi, 0xffffffff
jmp 0x424207
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 8], 1
jbe 0x424207
push 0x55
lea eax, [ebp - 0xbc]
mov edi, esi
push eax
push esi
jmp 0x4241f5
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x424204
push 0x5f
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x4241ea
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x424204
push 0x55
lea eax, [ebp - 0xbc]
inc edi
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4241a6
jmp 0x424207
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0043b8cb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0043d912
mov eax, esi
pop esi
pop edi
leave
ret

Function at 0x42579a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push ebx
push ebx
push 3
push ebx
push 5
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x425811
push edi
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x425808
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x425808
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00425821
push edi
mov bl, al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp + 8]
call fcn.0043bb32
pop edi
lea ecx, [ebp - 8]
call fcn.0043bb32
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x425821
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp eax, dword [esi + 8]
je 0x425837
xor al, al
jmp 0x4258d3
cmp dword [esi], 0x20
push edi
mov edi, dword [esi + 0xc]
jne 0x425873
push dword [esi + 4]
push dword [ebp + 8]
push 0
call dword [sym.imp.ntdll.dll_RtlComputeCrc32]
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
cmp eax, edx
sete al
jmp 0x4258d2
push ebx
call fcn.0043d5bb
push eax
lea ecx, [ebp + 0xc]
call fcn.0043bbe8
mov eax, dword [esi + 0xc]
lea ecx, [ebp + 0xc]
mov ebx, dword [eax - 0xc]
push ebx
call fcn.0043b9dd
mov edx, dword [esi + 4]
mov ecx, dword [ebp + 8]
push ebx
push eax
push dword [esi]
mov dword [ebp - 4], eax
call fcn.0044c2f1
add esp, 0xc
test eax, eax
je 0x4258ae
xor bl, bl
jmp 0x4258c4
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0043d912
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x426039
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, edx
push edi
push 0
push 0x2000000
push 3
push 0
push 7
push 0x80000000
push ecx
call esi
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, 0xffffffff
jne 0x426075
call fcn.0044cc8a
mov ebx, eax
jmp 0x42613b
xor eax, eax
push eax
push 0x2000080
push 2
push eax
push eax
push 0x40000000
push ebx
call esi
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
jne 0x42609f
call fcn.0044cc8a
mov ebx, eax
jmp 0x426133
push 0xa00000
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
xor ebx, ebx
mov dword [ebp - 8], eax
push ebx
lea ecx, [ebp - 4]
push ecx
push 0xa00000
push eax
jmp 0x4260e7
cmp dword [ebp - 4], ebx
je 0x4260f9
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4260f2
push 0
lea eax, [ebp - 4]
push eax
push 0xa00000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4260bd
call fcn.0044cc8a
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
test ebx, ebx
jne 0x426133
push 4
push 0x28
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jne 0x426131
push 4
push 0x28
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
xor ebx, ebx
lea ecx, [ebp - 0xc]
call fcn.0043bb32
lea ecx, [ebp - 0x10]
call fcn.0043bb32
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x42614a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov ebx, ecx
mov eax, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp edi, eax
je 0x4261df
push 0x2f
push 0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
add eax, 2
lea ecx, [ebp + 8]
push eax
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + 0x144]
add edx, 8
call fcn.0043baed
mov esi, dword [ebp + 8]
pop ecx
mov ecx, esi
call fcn.0044d9e7
cmp eax, 1
jne 0x4261f6
lea eax, [ebp - 0x1c]
mov edx, 0x8004
push 0x14
push eax
mov ecx, esi
call fcn.0044c1d1
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4261fb
push 0x14
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x4261e8
lea ecx, [esi - 0x10]
call fcn.0043d912
mov ebx, dword [ebp - 8]
add edi, 0x20
cmp edi, dword [ebp - 4]
jne 0x426167
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 0x80070570
jmp 0x4261fb
mov ebx, 0x80070002
lea ecx, [esi - 0x10]
call fcn.0043d912
mov eax, ebx
jmp 0x4261e1
Function at 0x4270db
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [ecx + 0xa]
push dword [ecx + 4]
add word [ecx + 8], ax
movzx eax, word [ecx + 8]
and dword [ecx + 0xc], 0
push 0
push eax
push 0x9478
mov word [ecx + 0xa], dx
call dword [ecx]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push dword [0x4ad198]
push str.SYSTEMSetupMoSetupVolatile
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427135
push str.SetupProgress
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 4]
call fcn.0043b8cb
leave
ret
Function at 0x427432
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.0043d5bb
push eax
lea ecx, [ebp - 0x10]
call fcn.0043bbe8
push 0x5c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x427478
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.0043cad2
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
jmp 0x42760a
sub eax, esi
lea ecx, [ebp - 8]
sar eax, 1
push eax
push esi
call fcn.0043b8e8
mov esi, dword [ebp - 8]
push 0x5f
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4275ef
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
je 0x4275ef
push 0x2a
pop eax
push eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 8]
call fcn.004322fb
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 8]
call fcn.0043d882
mov esi, dword [ebp - 8]
dec edi
push 0x5f
lea eax, [esi + edi*2]
mov edi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push eax
push esi
call edi
push 0x2e
mov dword [ebp - 0xc], eax
lea ecx, [eax - 2]
push ecx
push esi
call edi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4275ef
test eax, eax
je 0x4275ef
push 0x2a
pop edx
mov word [eax + 2], dx
add eax, 4
sub ecx, eax
sub eax, esi
sar ecx, 1
push ecx
sar eax, 1
lea ecx, [ebp - 8]
push eax
call fcn.00432106
lea eax, [ebp - 8]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00431d91
pop ecx
lea ecx, [ebp - 0x26c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x1c], esi
call fcn.0043d912
cmp esi, 0xffffffff
je 0x4275cf
mov edi, dword [ebp - 0x18]
test byte [ebp - 0x26c], 0x10
je 0x4275b6
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043cad2
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043c99e
push edi
lea ecx, [ebp - 0xc]
call fcn.0043ca2b
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0044d9e7
test eax, eax
je 0x4275ab
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043c5cb
lea ecx, [esi - 0x10]
call fcn.0043d912
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427550
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.0043cad2
mov ecx, dword [ebp - 8]
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
jmp 0x427470
mov edi, dword [ebp - 0x10]
lea ecx, [edi - 0x10]
call fcn.0043cad2
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [ebx], eax
call fcn.0043d912
lea ecx, [edi - 0x10]
call fcn.0043d912
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4288e4
Capabilities:
Delete file
Get file size
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, 0x40000000
push ebx
push esi
push ecx
mov ecx, dword [ebp + 8]
push 4
push 1
call fcn.0044ef3f
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x428910
call fcn.0044cc8a
mov ebx, eax
jmp 0x428931
push dword [ebp + 0x20]
mov edx, esi
push dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push str.Mozilla_5.0__Windows_NT_6.3__WOW64__Trident_7.0__rv:11.0__like_Gecko
call fcn.0044e620
add esp, 0x10
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
test ebx, ebx
je 0x42893c
mov eax, ebx
jmp 0x4289c7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov edx, 0x8004
call fcn.0044c1d1
pop ecx
pop ecx
test eax, eax
jne 0x4289c7
push 0x14
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x4289c7
xor esi, esi
push esi
push 0x2000000
push 3
push esi
push 7
push 0x100000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x428991
mov eax, esi
jmp 0x4289af
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jb 0x4289c4
ja 0x4289bb
cmp esi, dword [ebp + 0x10]
jb 0x4289c4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x17
pop eax
pop esi
pop ebx
leave
ret 0x1c
Function at 0x42b3a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 2
xor edi, edi
mov dword [ebp - 0x14], edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x42b47f
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42b47f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42b47f
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
call esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
push ecx
push str.VarFileInfoTranslation
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42b46f
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], edi
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x10]
push str.StringFileInfo_.4x_.4xFileDescription
push eax
call fcn.0044af44
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
push ebx
call esi
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
je 0x42b46f
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x42b476
call fcn.0044cc8a
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x42b486
call fcn.0044cc8a
mov edi, eax
lea ecx, [ebp - 0x18]
call fcn.00439820
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b63d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, 0x200
mov edi, edx
push eax
mov esi, ecx
mov ecx, edi
push eax
call fcn.0043d810
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
mov ecx, edi
push eax
call fcn.0043d882
mov ecx, edi
call fcn.00431ddc
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
je 0x42b731
cmp word [esi], 0x22
jne 0x42b6a6
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push 3
push 0
push esi
call dword [sym.imp.SHELL32.dll_PathResolve]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0043d8ad
jmp 0x42b731
call fcn.0043d5bb
push eax
lea ecx, [ebp - 4]
call fcn.0043bbe8
movzx eax, word [esi]
test ax, ax
je 0x42b6f9
mov ecx, eax
cmp cx, 0x20
jne 0x42b6e0
push 3
push 0
push 0x104
lea ecx, [ebp - 4]
call fcn.0043d810
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
test eax, eax
jne 0x42b711
movzx eax, word [esi]
lea ecx, [ebp - 4]
push eax
call fcn.0043c971
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x42b6be
push 3
push 0
push 0x104
lea ecx, [ebp - 4]
call fcn.0043d810
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0043d8ad
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.0043c5cb
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x42b9da
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 8
push dword [ebp + 0x10]
push ecx
lea ecx, [edi - 0x10]
mov esi, esp
call fcn.0043cad2
push dword [ebp + 8]
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0042aeb8
lea eax, [ebx + 0x1c]
mov dword [ebx], 0x49a554
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [edi - 0x10]
mov dword [ebx + 0x18], eax
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x42bda4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
add eax, 0xfffffff0
push edi
push dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 4], eax
push ecx
mov ecx, eax
mov esi, esp
call fcn.0043cad2
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0042aeb8
and dword [ebp + 0x14], 0
mov dword [ebx], 0x49a52c
sub edi, 6
je 0x42be02
sub edi, 1
jne 0x42be5b
lea edx, [ebp + 0x14]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedStartupFolder
push 0x80000001
jmp 0x42be15
lea edx, [ebp + 0x14]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedStartupFolder
push 0x80000002
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x42be5b
push dword [ebx + 0xc]
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0xc
push ecx
lea ecx, [ebp - 0x10]
xor esi, esi
push ecx
push esi
push esi
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42be5b
test byte [ebp - 0x10], 1
je 0x42be5b
mov dword [ebx + 0x10], esi
lea ecx, [ebp + 0x14]
call fcn.0043b8cb
mov ecx, dword [ebp - 4]
call fcn.0043d912
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10