joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004555
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004547
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1004543
cmp esi, eax
jae 0x1004547
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1004535
cmp esi, eax
jb 0x100454b
xor eax, eax
jmp 0x1004554
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1004b45
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10
pop ecx
mov esi, 0x1001910
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x124
xor edi, edi
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
call fcn.0100486c
test al, al
jne 0x1004b89
push dword [ebp - 0x48]
call fcn.0100447d
xor eax, eax
jmp 0x1004bca
push ebx
mov ebx, dword [ebp - 0x48]
push esi
push ebx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x1004bc1
cmp eax, esi
ja 0x1004bc1
push edi
push edi
push 0x10018dc
push ebx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
push ebx
jle 0x1004bc2
call fcn.0100447d
xor eax, eax
inc eax
jmp 0x1004bc9
push ebx
call fcn.0100447d
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100611f
leave
ret

Function at 0x1005d07
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01005c48
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1005d7a
cmp dword [ebp - 0x94], 5
jb 0x1005d9b
jmp 0x1005d97
cmp dword [ebp - 0x88], 1
jne 0x1005d9b
cmp dword [ebp - 0x94], 4
ja 0x1005d97
jne 0x1005d9b
cmp dword [ebp - 0x90], 0
jbe 0x1005d9b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001a98
call fcn.01005adf
test eax, eax
jge 0x1005dbc
mov byte [0x100d2d4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100611f
leave
ret
Function at 0x10060f8
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100a560
call fcn.01006254
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100d750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005eb3
cmp eax, esi
jne 0x1005ea6
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005eb6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005e8d
xor esi, esi
inc esi
mov eax, dword [0x100d74c]
cmp eax, esi
jne 0x1005ec9
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005ef8
mov eax, dword [0x100d74c]
test eax, eax
jne 0x1005ef2
mov dword [0x100d74c], esi
push 0x10013d8
push 0x10013cc
call fcn.01005def
pop ecx
pop ecx
test eax, eax
je 0x1005ef8
jmp 0x100601c
mov dword [0x100d418], esi
mov eax, dword [0x100d74c]
cmp eax, esi
jne 0x1005f1c
push 0x10013c8
push 0x10013b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100d74c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1005f29
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100d75c], ebx
je 0x1005f4a
push 0x100d75c
call fcn.01006479
pop ecx
test eax, eax
je 0x1005f4a
push ebx
push 2
push ebx
call dword [0x100d75c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100601c
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1005fb4
cmp cx, bx
je 0x1005f6f
cmp dword [ebp - 0x1c], ebx
jne 0x1005fb4
movzx ecx, word [eax]
cmp cx, bx
je 0x1005f84
cmp cx, 0x20
ja 0x1005f84
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1005f6f
test byte [ebp - 0x40], 1
je 0x1005f90
movzx ecx, word [ebp - 0x3c]
jmp 0x1005f93
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100d414], eax
cmp dword [0x100d408], ebx
jne 0x1005ff9
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1005fc5
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1005f59
cmp dword [0x100d418], ebx
jne 0x1006007
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100d414]
jmp 0x1006028
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006299
ret
call fcn.010065c6
jmp 0x1005e50
Function at 0x1006975
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x100d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20019
xor esi, esi
push 0x1001b28
mov dword [ebp - 0x90], ecx
push 0x80000002
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
call fcn.0100364e
test eax, eax
jne 0x1006a62
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push dword [ebp - 0x9c]
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x88], esi
call edi
mov ebx, 0x103
jmp 0x1006a5c
lea eax, [ebp - 0x84]
push eax
call fcn.01009359
mov dword [ebp - 0xa0], eax
cmp eax, esi
je 0x1006a2c
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0xa0]
push eax
add ecx, 0x54
call fcn.01006946
inc dword [ebp - 0x88]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push dword [ebp - 0x9c]
call edi
cmp eax, ebx
jne 0x1006a01
pop edi
pop ebx
lea ecx, [ebp - 0x9c]
call fcn.01003630
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
xor ecx, ebp
add eax, 0x54
pop esi
call fcn.0100611f
leave
ret
Function at 0x100734b
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x1001bec
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], ebx
call fcn.01003330
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10074ae
cmp word [esi], bx
je 0x10074ae
lea eax, [ebp - 4]
push eax
push 0x7fffffff
push esi
mov dword [ebp - 4], ebx
call fcn.0100709b
test eax, eax
jl 0x1007489
lea eax, [ebp - 4]
push eax
push 0x104
push dword [ebp - 4]
call fcn.01006add
test eax, eax
jl 0x1007489
push dword [ebp - 4]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0100486c
test al, al
jne 0x10073d7
push dword [ebp + 8]
call fcn.0100447d
mov esi, 0x8007000e
jmp 0x100748e
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, ebx
jne 0x100740c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10073ff
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call fcn.0100447d
jmp 0x100748e
cmp esi, dword [ebp - 4]
jbe 0x100741e
push edi
call fcn.0100447d
mov esi, 0x8007007a
jmp 0x100748e
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
jg 0x100749a
mov eax, dword [section..data]
cmp eax, section..data
je 0x100745d
test byte [eax + 0x1c], 8
je 0x100745d
push edi
push dword [ebp + 8]
push 0x1001bdc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006c8d
cmp edi, 2
jl 0x1007481
cmp edi, 3
jle 0x100746c
cmp edi, 0xb
jne 0x1007481
cmp esi, ebx
jle 0x100747c
and esi, 0xffff
or esi, 0x80070000
push dword [ebp + 8]
jmp 0x1007402
push dword [ebp + 8]
call fcn.0100447d
mov esi, 0x80004005
lea ecx, [ebp - 0x10]
call fcn.01003374
mov eax, esi
jmp 0x10074bb
push dword [ebp + 8]
call fcn.0100447d
lea ecx, [ebp - 0x10]
call fcn.01003374
xor eax, eax
jmp 0x10074bb
lea ecx, [ebp - 0x10]
call fcn.01003374
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1008f28
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2230
call fcn.01006140
mov eax, dword [0x100d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x210]
push eax
push 0x2000
lea eax, [ebp - 0x2230]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x1009098
shr dword [ebp - 0x210], 2
mov eax, 0x800
cmp dword [ebp - 0x210], eax
jbe 0x1008f92
mov dword [ebp - 0x210], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ecx, [ebp - 0x214]
push ecx
push eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x214], edi
call ebx
test eax, eax
je 0x1009097
mov dword [ebp - 0x218], edi
cmp dword [ebp - 0x210], edi
jbe 0x1009091
push esi
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp + edi*4 - 0x2230]
push dword [esi]
call ebx
test eax, eax
je 0x100906c
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x214]
jne 0x100906c
mov esi, dword [esi]
cmp dword [ebp - 0x228], esi
je 0x100906c
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100906c
lea eax, [ebp - 0x230]
push eax
push 4
lea eax, [ebp - 0x21c]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1009065
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push esi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x1009065
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100907b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x1008fd0
jmp 0x1009090
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
mov eax, dword [ebp + edi*4 - 0x2230]
mov dword [ebp - 0x218], eax
pop esi
mov eax, dword [ebp - 0x218]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100611f
leave
ret 8
Function at 0x405020
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x104
call fcn.00472970
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x405069
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x405069
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push eax
push ecx
call fcn.0046b410
add eax, 0x40
push eax
call fcn.00473a80
add esp, 0xc
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004743eb
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4050ea
call fcn.00404f60
test eax, eax
je 0x4050ea
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x104
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x104
ret
Function at 0x4361c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4361d9
mov edi, ebx
mov ebx, eax
jmp 0x4361db
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4361f1
push eax
push esi
call fcn.00409340
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x43620d
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4361f8
cmp eax, dword [edi + 4]
jge 0x436222
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x436212
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x436246
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x436246
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x436235
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x461ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f7c28]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test eax, eax
je 0x461b0c
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
push 0x48
call fcn.00471df6
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x461bab
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.CIEWin_class_CAuthWin__class_ATL::CWinTraits_105382016__0__.0
mov dword [esi + 0xc], vtable.CIEWin_class_CAuthWin__class_ATL::CWinTraits_105382016__0__.1.0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 8], 0
cmp word [0x4ed0e0], 0
jne 0x461b88
and dword [0x4ed0a4], 0xfffffffc
mov dword [esi], vtable.CAuthWin.0
mov dword [esi + 0xc], vtable.CAuthWin.1.0
mov byte [esi + 0x44], 0
mov dword [0x4f7c28], esi
mov dword [0x4f7c2c], 0
jmp 0x461bb1
mov esi, dword [0x4f7c28]
cmp dword [ebp + 8], 0
je 0x461bdb
push ebx
mov ecx, esi
call fcn.00460630
test al, al
jne 0x461bd5
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4f7c28]
push dword [ebp - 0x18]
movaps xmm0, xmmword [0x4c5a70]
lea eax, [esi + 0x2c]
push eax
push 0x4ed0a0
push 0x4f7c40
push 0x4f9ecc
movups xmmword [ebp - 0x14], xmm0
call fcn.0045f7d0
add esp, 0x14
movzx eax, ax
lea ecx, [esi + 0xc]
push 0
push eax
push 0
push 0
push 0x6480080
push str.AuthWin
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004608b0
mov eax, dword [0x4f7c28]
push 5
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
je 0x461af7
mov ecx, dword [0x4f7c28]
call fcn.004619b0
mov ecx, dword [ebp - 4]
mov eax, dword [0x4f7c2c]
xor ecx, ebp
pop esi
pop ebx
call fcn.00472286
mov esp, ebp
pop ebp
ret
Function at 0x4648e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x154]
push esi
mov esi, dword [ebp + 8]
push 0x100
push 0
push eax
call fcn.004768d0
movups xmm0, xmmword [str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002bE10318]
add esp, 0xc
cmp byte [esi], 0
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [0x4c7170]
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [0x4c7180]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x4c7190]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x4c71a0]
movups xmmword [ebp - 0x14], xmm0
je 0x464a11
push esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x154]
push str._s_sConnection
push eax
call fcn.00462bb0
add esp, 0x10
xor esi, esi
push edi
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x158]
xor edi, edi
push eax
push 0x20019
push edi
lea eax, [ebp - 0x154]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4649ef
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], 1
push eax
push ebx
lea eax, [ebp - 0x160]
mov dword [ebp - 0x15c], 0x1000
push eax
push edi
push str.Name
push dword [ebp - 0x158]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x158]
test eax, eax
mov eax, 1
cmove edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4649f9
inc esi
cmp esi, 0x14
jl 0x464970
xor eax, eax
cmp byte [ebx], al
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00472286
mov esp, ebp
pop ebp
ret
Function at 0x464b30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x464b58
mov eax, dword [0x4f7e18]
test eax, eax
jne 0x464d5d
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004768d0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x464ba4
mov dword [0x4f7e18], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
sub eax, 1
je 0x464cf6
sub eax, 1
jne 0x464b89
mov eax, dword [ebp - 0x94]
cmp eax, 4
jbe 0x464b89
cmp eax, 5
jne 0x464c2b
cmp dword [ebp - 0x90], 0
jne 0x464bef
mov dword [0x4f7e18], 4
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x464b89
lea ecx, [ebp - 0x84]
mov eax, ecx
sub esi, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x464c00
mov dword [0x4f7e18], 5
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x464b89
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x464c5c
mov dword [0x4f7e18], 6
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x464c7f
mov dword [0x4f7e18], 7
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x464b89
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 8
push eax
push str.CurrentMajorVersionNumber
call fcn.00464d70
add esp, 0x10
test eax, eax
je 0x464cd8
cmp dword [ebp - 0x9c], 0xa
jb 0x464cd8
mov dword [0x4f7e18], 9
mov eax, 9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov dword [0x4f7e18], 8
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x94]
cmp eax, 4
ja 0x464d4e
jne 0x464d30
mov eax, dword [ebp - 0x90]
cmp eax, 0x5a
jae 0x464d4e
test eax, eax
je 0x464d30
mov dword [0x4f7e18], 2
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov dword [0x4f7e18], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472286
mov esp, ebp
pop ebp
ret
mov dword [0x4f7e18], 3
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00472286
mov esp, ebp
pop ebp
ret
Function at 0x464d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push esi
push eax
xor eax, eax
xor esi, esi
cmp edx, 2
mov ecx, 0x100
cmove eax, ecx
mov ecx, str.SoftwarePdaNetAndroid
or eax, 0x20019
push eax
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
cmovne ecx, eax
xor eax, eax
test edx, edx
push ecx
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x464df0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x10], 4
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
mov dword [ebp + 0x14], 4
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464e70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c426b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4f67c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edx, esi
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x464ed0
lea edi, [ebp - 0x114]
sub esi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x464ee0
mov ecx, esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x218], esi
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x218]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x465007
push str.IsWow64Process
push 0x4c63ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x465043
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x218], 0
je 0x465043
lea eax, [ebp - 0x22c]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x22c], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x23c], ax
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x114]
push eax
call fcn.004620a0
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x23c]
push eax
push str.SetupCopyOEMInf64
call fcn.00465cc0
test eax, eax
je 0x46500b
push dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push str.USB_driver_installation_failed__hr_x__err0x_x
push eax
call fcn.00462bb0
add esp, 0x10
lea eax, [ebp - 0x214]
push 0
push str.Installation_Failed
push eax
push dword [0x4f7c70]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x23c]
push eax
call esi
lea eax, [ebp - 0x22c]
push eax
call esi
xor eax, eax
jmp 0x465028
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x23c]
push eax
call esi
lea eax, [ebp - 0x22c]
push eax
call esi
mov eax, 1
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.00472286
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
test eax, eax
jne 0x465023
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x214]
push str.USB_driver_installation_failed__err0x_x
push eax
call fcn.00462bb0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0
push str.Installation_Failed
push eax
push dword [0x4f7c70]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x465028