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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486f48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f063
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2a
jmp 0x41f063
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x486f48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486f48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486f48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486f48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x486f48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4017e7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp - 0x48], 0
je 0x4018bd
mov eax, dword [ebp - 0x48]
movsx eax, byte [eax]
cmp eax, 0x22
jne 0x401849
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
movsx eax, byte [eax + ecx]
cmp eax, 0x22
je 0x401844
jmp 0x401823
jmp 0x401882
mov dword [ebp - 0x4c], 0
jmp 0x401858
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
movsx eax, byte [eax + ecx]
cmp eax, 0x20
je 0x401882
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
movsx eax, byte [eax + ecx]
test eax, eax
je 0x401882
jmp 0x401855
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
movsx eax, byte [eax + ecx]
test eax, eax
je 0x4018a7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
movsx eax, byte [eax + ecx + 1]
test eax, eax
jne 0x4018b3
mov dword [ebp - 0x48], 0
jmp 0x4018bd
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
and eax, 0xffff
push eax
mov eax, dword [ebp - 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
jmp 0x4018df
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ef6a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x92000]
mov dword [edi + 0xcf740], 0x80a7f09
push edi
jmp 0x4ef6ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ef6d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef6c0
mov eax, 1
add ebx, ebx
jne 0x4ef6e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ef6f4
jne 0x4ef713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef713
dec eax
add ebx, ebx
jne 0x4ef700
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ef6d8
add ebx, ebx
jne 0x4ef70f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ef765
xor ecx, ecx
sub eax, 3
jb 0x4ef72b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ef79a
sar eax, 1
mov ebp, eax
jmp 0x4ef736
add ebx, ebx
jne 0x4ef736
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef704
inc ecx
add ebx, ebx
jne 0x4ef744
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ef704
add ebx, ebx
jne 0x4ef751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ef746
jne 0x4ef762
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ef746
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ef784
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ef776
jmp 0x4ef6c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ef784
add edi, ecx
jmp 0x4ef6c6
pop esi
mov edi, esi
mov ecx, 0x40f2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ef7a2
cmp byte [edi], 0x19
jne 0x4ef7a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ef7a7
lea edi, [esi + 0xe8000]
mov eax, dword [edi]
or eax, eax
je 0x4ef81f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf961c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf9798]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ef7d4
mov ecx, edi
jns 0x4ef803
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf979c]
or eax, eax
je 0x4ef819
mov dword [ebx], eax
add ebx, 4
jmp 0x4ef7f1
call dword [esi + 0xf97ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ef850
cmp al, 0xef
ja 0x4ef843
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ef825
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ef832
mov ebp, dword [esi + 0xf97a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ef884
sub esp, 0xffffff80
jmp 0x420567
Function at 0x40104e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
test eax, eax
jne 0x401071
leave
ret
push esi
push edi
lea edi, [eax + eax]
lea esi, [ebp - 0x808]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4010a0
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x40107c
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x40109c

Function at 0x4010a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
add esi, esi
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4010d7
add edi, dword [ebp + 0x10]
sub esi, dword [ebp + 0x10]
jne 0x4010b1
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
xor eax, eax
jmp 0x4010d1
Function at 0x1004a39
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1012858
call fcn.01004bc4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1018800
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100484e
cmp eax, esi
jne 0x1004841
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1004851
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004828
xor esi, esi
inc esi
mov eax, dword [0x10187fc]
cmp eax, esi
jne 0x1004864
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100489f
mov eax, dword [0x10187fc]
test eax, eax
jne 0x1004899
mov dword [0x10187fc], esi
push 0x10011e4
push 0x10011d8
call fcn.010047a5
pop ecx
pop ecx
test eax, eax
je 0x100489f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1004969
mov dword [0x1017cb4], esi
mov eax, dword [0x10187fc]
cmp eax, esi
jne 0x10048c3
push 0x10011d4
push 0x10011c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10187fc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10048d0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1018804], ebx
je 0x10048f1
push 0x1018804
call fcn.01004b39
pop ecx
test eax, eax
je 0x10048f1
push ebx
push 2
push ebx
call dword [0x1018804]
push dword [0x1017c9c]
push dword [0x1017ca0]
push dword [0x1017c98]
call fcn.010046b1
add esp, 0xc
mov dword [0x1017cb0], eax
cmp dword [0x1017ca4], ebx
jne 0x100494f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1017cb4], ebx
jne 0x100495d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1017cb0]
call fcn.01004c09
ret
call fcn.01004db7
jmp 0x1004806
Function at 0x100552b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], ebx
je 0x10056b8
cmp dword [ebp + 0xc], ebx
je 0x10056b8
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x10056b8
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x1005588
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10056bb
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10055c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005691
test byte [eax + 0x1c], 2
je 0x1005691
push dword [ebp - 4]
push 0x1001328
push 0x22
jmp 0x1005646
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100560d
push 0xe
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005696
test byte [eax + 0x1c], 2
je 0x1005696
push ecx
push 0x1001328
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x1005696
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005691
test byte [eax + 0x1c], 2
je 0x1005691
push dword [ebp - 4]
push 0x1001328
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x1005691
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x1005687
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x100567e
test byte [eax + 0x1c], 2
je 0x100567e
push 0x1001328
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100523d
mov dword [ebp - 4], 0x1f
jmp 0x1005696
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [edi], eax
cmp dword [ebp - 4], ebx
je 0x10056a4
cmp dword [ebp - 8], ebx
je 0x10056a4
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
cmp dword [ebp + 8], ebx
je 0x10056b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x10056bb
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x10056c6
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x1005825
cmp dword [ebp + 0x10], esi
je 0x1005825
cmp dword [ebp + 0xc], esi
je 0x1005825
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x1005742
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005816
test byte [eax + 0x1c], 2
je 0x1005816
push dword [ebp - 4]
push ebx
push 0x1001328
push 0x76
jmp 0x10057f6
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1005782
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005816
test byte [eax + 0x1c], 2
je 0x1005816
push edi
push 0x1001328
push 0x77
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x1005816
push eax
push edi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10057b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005816
test byte [eax + 0x1c], 2
je 0x1005816
push dword [ebp - 4]
push ebx
push 0x1001328
push 0x78
jmp 0x10057f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001228
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1005803
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005816
test byte [eax + 0x1c], 2
je 0x1005816
push dword [ebp - 4]
push ebx
push 0x1001328
push 0x79
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010053cf
jmp 0x1005816
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
pop ecx
pop edi
jmp 0x1005828
push 0x57
pop eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x100596d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], ebx
cmp dword [0x10144c0], ebx
je 0x1005a4d
push 0xfffffffffffffff5
mov dword [0x10144c0], ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x1017fec], eax
cmp eax, ebx
je 0x1005a23
cmp eax, 0xffffffff
je 0x1005a23
mov esi, dword [sym.imp.KERNEL32.dll_GetFileType]
push eax
call esi
cmp eax, 2
je 0x1005a67
push dword [0x1017fec]
mov dword [0x1017fe8], 1
call esi
cmp eax, 3
je 0x1005a67
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [0x1017fec]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
call edi
test eax, eax
jne 0x1005a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005a5e
test byte [eax + 0x1c], 2
je 0x1005a5e
push esi
push 0x1001328
push 0xce
jmp 0x1005ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005a5e
test byte [eax + 0x1c], 2
je 0x1005a5e
push esi
push 0x1001328
push 0xcd
jmp 0x1005ae8
mov eax, dword [0x1017fec]
cmp eax, ebx
je 0x1005a5b
cmp eax, 0xffffffff
jne 0x1005a6e
push 0x15
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x1017fec]
mov esi, ebx
push ebx
lea ecx, [ebp - 8]
push ecx
cmp dword [0x1017fe8], ebx
jne 0x1005ab3
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1005a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005a5e
test byte [eax + 0x1c], 2
je 0x1005a5e
push esi
push 0x1001328
push 0xcf
jmp 0x1005ae8
mov ecx, dword [ebp + 0xc]
add ecx, ecx
push ecx
push dword [ebp + 8]
push eax
call edi
test eax, eax
jne 0x1005a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005a5e
test byte [eax + 0x1c], 2
je 0x1005a5e
push esi
push 0x1001328
push 0xd0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x1005a5e
Function at 0x1005f49
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x101406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
and dword [ebp - 0x418], 0
and dword [ebp - 0x41c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push ecx
push eax
push 0x1001374
lea eax, [ebp - 0x414]
push 0x208
push eax
mov dword [ebp - 0x424], edx
call fcn.01005bad
add esp, 0x14
mov dword [ebp - 0x420], eax
test eax, eax
jge 0x1005fe2
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1005fd6
test byte [eax + 0x1c], 2
je 0x1005fd6
push dword [ebp - 0x420]
push 0x1001328
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
movzx esi, word [ebp - 0x420]
jmp 0x10060ad
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x1006028
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10060ad
test byte [eax + 0x1c], 2
je 0x10060ad
push esi
push 0x1001328
push 0x17
jmp 0x1006065
push dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
push ebx
push eax
push 0
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x1006072
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10060ad
test byte [eax + 0x1c], 2
je 0x10060ad
push esi
push 0x1001328
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x10060ad
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [ebp - 0x41c]
je 0x10060ad
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10060a8
test byte [eax + 0x1c], 2
je 0x10060a8
push dword [ebp - 0x41c]
push ecx
push 0x1001328
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100546e
mov esi, 0x65d
cmp dword [ebp - 0x418], 0
je 0x10060c2
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004e4d
leave
ret 0x1c
Function at 0x1006330
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x101406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0x10013fc
mov dword [ebp - 0x42c], 0x10013d8
mov dword [ebp - 0x428], 0x10013b0
test eax, eax
je 0x10064ae
test ecx, ecx
je 0x10064ae
push esi
push edi
mov edi, 0x104
test edx, edx
jne 0x10063bb
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1006421
cmp eax, edi
jae 0x1006421
lea eax, [ebp - 0x414]
mov dword [ebp - 0x41c], eax
and dword [ebp - 0x418], 0
push ebx
mov ebx, 0x1001328
mov eax, dword [ebp - 0x418]
mov esi, dword [ebp + eax*4 - 0x430]
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x41c]
call fcn.01005e6f
test eax, eax
je 0x1006450
mov ecx, dword [0x101405c]
cmp ecx, 0x101405c
je 0x100648f
test byte [ecx + 0x1c], 2
je 0x100648f
push eax
push esi
push dword [ebp - 0x41c]
push ebx
push 0x74
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01005302
jmp 0x100648f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10064a8
test byte [eax + 0x1c], 2
je 0x10064a8
push esi
push 0x1001328
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x10064a8
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x420]
push eax
call fcn.010056c6
mov esi, eax
test esi, esi
je 0x10064a7
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x100648f
test byte [eax + 0x1c], 2
je 0x100648f
push esi
push ebx
push 0x75
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
inc dword [ebp - 0x418]
cmp dword [ebp - 0x418], 3
jb 0x10063c8
mov esi, 0x490
pop ebx
pop edi
mov eax, esi
pop esi
jmp 0x10064b1
push 0x57
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004e4d
leave
ret 0xc
Function at 0x10064c4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x210], esi
cmp ebx, esi
jne 0x1006516
push 0x57
pop eax
jmp 0x100661c
mov dword [ebx], esi
cmp dword [ebp + 0x10], esi
je 0x1006564
xor eax, eax
cmp ax, word [0x1017ff0]
jne 0x1006559
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x100660c
test byte [eax + 0x1c], 2
je 0x100660c
push 0x1001328
push 0x7a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100523d
jmp 0x100660c
mov dword [ebx], 0x1017ff0
jmp 0x1006616
mov esi, 0x104
test edi, edi
je 0x1006574
xor ecx, ecx
cmp cx, word [edi]
jne 0x1006590
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10065df
cmp eax, esi
jae 0x10065df
lea eax, [ebp - 0x20c]
push esi
mov esi, 0x1017ff0
push esi
mov edi, str.StartupRepair.etl
push edi
push eax
call fcn.01005e6f
mov dword [ebp - 0x210], eax
test eax, eax
je 0x10065db
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x1006616
test byte [eax + 0x1c], 2
je 0x1006616
push dword [ebp - 0x210]
push edi
push esi
push 0x1001328
push 0x7c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005302
jmp 0x1006616
mov dword [ebx], esi
jmp 0x1006616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x101405c]
cmp ecx, 0x101405c
je 0x100660c
test byte [ecx + 0x1c], 2
je 0x100660c
push eax
push 0x1001328
push 0x7b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01005442
mov dword [ebp - 0x210], 0x490
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004e4d
leave
ret 0xc