joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4275d1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x427704
cmp byte [ebp + 0xc], bl
jne 0x42764d
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x427704
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4276f6
call fcn.0043ba40
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0042807e
push dword [ebp + 0xc]
jmp 0x4276e1
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x427704
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4276f3
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x427695
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x42769e
xor esi, esi
jmp 0x4276cf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0043aff0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.0043ba40
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0042807e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x427706
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x427e78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x427ee7
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x427eca
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x427eca
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x427eca
mov byte [ebp - 1], 1
jmp 0x427ee7
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x427ee7
cmp byte [ebp - 1], bl
jne 0x427ee7
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x427ed1
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x42974b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x42975f
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x429793
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00437c90
test al, al
jne 0x4297c6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413be9
lea eax, [ebp - 0x4c]
push 0x46c760
push eax
call fcn.0043bb7a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4297c6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004138a9
lea eax, [ebp - 0x48]
push 0x46c628
push eax
call fcn.0043bb7a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x429b8d
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x429ba9
mov ecx, esi
call fcn.00429bad
pop esi
ret 4

Function at 0x42a73f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46354d
call fcn.0043b410
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ebx, 0x467548
and dword [esi], 0
mov dword [esi + 4], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0xd]
mov edi, 0x467550
push 0
push eax
mov dword [ebp - 0x14], esi
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aaf
and dword [ebp - 4], 0
lea ecx, [esi + 0x30]
lea eax, [ebp - 0xe]
push 0
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aaf
lea ecx, [esi + 0x58]
lea eax, [ebp - 0xd]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aaf
lea ecx, [esi + 0x80]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401aaf
lea ecx, [esi + 0xa8]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 3
mov dword [ecx], ebx
xor ebx, ebx
push ebx
push eax
mov dword [ecx + 0x20], edi
call fcn.00401aaf
mov eax, dword [ebp + 8]
and byte [esi + 0xd8], bl
mov byte [ebp - 4], 4
lea edi, [eax + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040682a
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp + 8], eax
call fcn.00401279
cmp dword [ebp + 8], ebx
setne al
mov byte [esi + 0xd9], al
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
push esi
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 6
call fcn.0042a879
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 7
call dword [eax + 0x2c]
mov al, byte [eax + 0x16]
lea ecx, [esi + 0x154]
push eax
push esi
call fcn.0042a9b3
push esi
lea ecx, [esi + 0x1c4]
mov byte [ebp - 4], 8
call fcn.0042aa2c
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x230], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42b269
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42b284
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x42c726
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4638ce
call fcn.0043b410
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x42c778
lea ecx, [ebp + 8]
call fcn.00419452
test al, al
je 0x42c778
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.004016f7
call fcn.0042c9db
add esp, 0x2c
mov bl, al
jmp 0x42c8f5
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x467548
mov dword [ecx + 0x20], 0x467550
call fcn.00401b24
call fcn.0042f715
add esp, 0x28
cmp eax, 0xffffffff
je 0x42c7c5
test bl, 4
je 0x42c7ad
test al, 0x10
je 0x42c7be
test bl, 8
je 0x42c8f3
test al, 0x10
je 0x42c8f3
mov bl, 1
jmp 0x42c8f5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x42c905
cmp esi, 3
je 0x42c905
push 1
cmp esi, 5
pop ebx
jne 0x42c87a
lea ecx, [ebp - 0x100]
call fcn.0042c94c
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.004016f7
call fcn.0042f649
add esp, 0x2c
cmp eax, 0xffffffff
je 0x42c867
test byte [ebp + 0x30], 4
je 0x42c835
test byte [ebp - 0x100], 0x10
je 0x42c846
test byte [ebp + 0x30], 8
je 0x42c844
test byte [ebp - 0x100], 0x10
jne 0x42c846
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x42c853
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0042c9a5
jmp 0x42c8f5
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.0042c9a5
test byte [ebp + 0x30], 0x20
je 0x42c8f3
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x467578
mov dword [ebp - 0x1c], 0x467570
call fcn.00401b24
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x467f38
call fcn.00413b91
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0042c922
mov eax, dword [ebp - 0x84]
push 0x46c628
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], vtable.is::file_exception.0
lea eax, [ebp - 0x84]
push eax
call fcn.0043bb7a
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401279
mov al, bl
jmp 0x42c913
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401279
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42da64
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], 0x94
and dword [eax], 0
lea eax, [ebp - 0x94]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x42dadf
cmp dword [ebp - 0x8c], 0
je 0x42dad7
cmp dword [ebp - 0x8c], 0xa
je 0x42dac2
cmp dword [ebp - 0x8c], 0x5a
je 0x42dacb
xor al, al
mov dword [esi], 0x80
jmp 0x42db50
call fcn.0042dfa8
test al, al
je 0x42dacf
mov al, 1
jmp 0x42dab7
mov dword [esi], 0x40
jmp 0x42db39
mov dword [esi], 0x10
jmp 0x42db39
cmp dword [ebp - 0x84], 2
jne 0x42db4e
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x42db46
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x42db09
dec eax
je 0x42db2f
xor al, al
mov dword [esi], 0x2000000
jmp 0x42db50
test ecx, ecx
jne 0x42db15
mov dword [esi], 0x100000
jmp 0x42db39
cmp ecx, 1
jne 0x42db22
mov dword [esi], 0x400000
jmp 0x42db39
cmp ecx, 2
jne 0x42db2f
mov dword [esi], 0x800000
jmp 0x42db39
test ecx, ecx
jne 0x42db3d
mov dword [esi], 0x1000000
mov al, 1
jmp 0x42db50
cmp ecx, 1
jne 0x42daff
mov al, cl
jmp 0x42db01
mov dword [esi], 0x10000
jmp 0x42db39
xor al, al
pop esi
leave
ret

Function at 0x42de9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42decc
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42decc
call eax
jmp 0x42dfa3
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x42df18
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x47d774
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42df79
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x42df4d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42df61
cmp esi, ebx
je 0x42df61
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x42df81
cmp dword [ebp - 4], ebx
je 0x42df73
cmp esi, ebx
je 0x42df73
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x42dfa3
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0043d618
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x42dfa0
cmp esi, ebx
je 0x42dfa0
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ed34
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x463d54
call fcn.0043b410
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0041c0f7
mov edi, eax
cmp edi, esi
je 0x42ed7e
cmp dword [ebp - 0x10], esi
je 0x42ed77
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42ee1b
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x42edef
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042ed34
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x42eddc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x42eda1
cmp dword [ebp - 0x10], esi
je 0x42edea
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x42ee1b
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42ee02
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x42ee19
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42ee2c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x463d80
call fcn.0043b410
sub esp, 0x40
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f8a
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c0f7
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x42eef1
push esi
push edi
mov dword [ebp - 0x14], ebx
mov esi, 0x105
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x467548
mov dword [ebp - 0x2c], 0x467550
call fcn.00401aaf
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.004017a8
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.00401f8a
push esi
push eax
push dword [ebp - 0x14]
mov dword [edi + 8], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x24]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004019fd
cmp edi, ebx
jne 0x42eedc
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x4c]
push eax
call fcn.004197f2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401279
inc dword [ebp - 0x14]
cmp edi, ebx
je 0x42ee74
pop edi
pop esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x47d934], eax
sete byte [ebp + 0xb]
cmp dword [ebp - 0x10], ebx
je 0x42ef10
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42ef2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463dd3
call fcn.0043b410
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 0x467548
mov dword [ebp - 0x34], 0x467550
call fcn.00401aaf
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00401f8a
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push dword [ebp + 0x88]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42ef9b
lea ecx, [ebp - 0x14]
call fcn.00409172
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x42f01d
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
lea ecx, [ebp + 0x38]
call fcn.00401f8a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x42f01d
push dword [ebp + 0x88]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push eax
call fcn.004017a8
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.00401f8a
lea ecx, [ebp + 0x38]
mov dword [ebp + 0xc], eax
mov dword [esi + 8], eax
call fcn.00401f8a
lea ecx, [ebp + 0x88]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.004019fd
cmp esi, ebx
mov dword [0x47d934], esi
pop edi
lea eax, [ebp - 0x54]
je 0x42f02e
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x467548
mov dword [esi + 0x20], 0x467550
call fcn.00401b24
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], ebx
je 0x42f05f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.00401279
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401279
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f09e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x463df8
call fcn.0043b410
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00401f8a
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041c0f7
cmp eax, ebx
jne 0x42f0ff
lea ecx, [ebp + 0x34]
call fcn.00401f8a
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x47d934], eax
je 0x42f10e
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], ebx
je 0x42f11f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43248e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x464273
call fcn.0043b410
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43256b
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x4324f8
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x467578
mov esi, 0x467570
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00405541
push 0x4763ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404ca2
lea ecx, [ebp - 0x40]
call fcn.004320d3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b24
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x4325ba
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x467578
mov esi, 0x467570
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00405541
push 0x4763ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404ca2
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b24
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401279
cmp dword [ebp - 0x10], 0
je 0x4325d3
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4325d3
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x432baa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x432bc0
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x432bf5
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004138a9
lea eax, [ebp - 0x48]
push 0x46c628
push eax
call fcn.0043bb7a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x432bfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x432c13
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x432c48
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004138a9
lea eax, [ebp - 0x48]
push 0x46c628
push eax
call fcn.0043bb7a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x43641a
Capabilities:
Hash data with md5

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