joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10249d8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1005fe8
call fcn.01024c8c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1024a15
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1024a15
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1024a2d
cmp eax, 0x20b
je 0x1024a1a
mov dword [ebp - 0x1c], ebx
jmp 0x1024a41
cmp dword [ecx + 0x84], 0xe
jbe 0x1024a15
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1024a3b
cmp dword [ecx + 0x74], 0xe
jbe 0x1024a15
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1038b2c], 0xffffffff
or dword [0x1038b30], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1038a94]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1038a90]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1038b28], eax
call fcn.0100ab8e
cmp dword [0x1037f80], ebx
jne 0x1024a9c
push fcn.0100ab8e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01024e19
push 0x1037068
push 0x1037064
call sub.msvcrt.dll__initterm
mov eax, dword [0x1038a8c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1038a88]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1037060
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1024b32
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1024b06
cmp al, 0x22
jne 0x1024af8
cmp byte [esi], 0x22
jne 0x1024b0f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1024b19
cmp al, 0x20
jbe 0x1024b0b
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1024b3d
movzx eax, word [ebp - 0x50]
jmp 0x1024b40
cmp byte [esi], 0x20
jbe 0x1024b0f
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1024b32
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1024b5d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1024b92
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01024cc7
ret
Function at 0x10255bd
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1025687
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
push dword [ebp - 8]
call fcn.0100dba4
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1025673
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push dword [ebp - 4]
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x102566a
xor eax, eax
xor esi, esi
cmp dword [edi], ebx
jbe 0x102565e
lea edx, [edi + 0xc]
mov ecx, dword [edx]
test cl, 2
jne 0x1025641
or ecx, 2
xor eax, eax
mov dword [edx], ecx
inc eax
inc esi
add edx, 0xc
cmp esi, dword [edi]
jb 0x1025632
cmp eax, ebx
je 0x102565e
push ebx
push ebx
push ebx
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x102566a
mov dword [ebp - 0xc], 0x80041003
push edi
call fcn.0100dbce
pop ecx
jmp 0x102567a
mov dword [ebp - 0xc], 0x80041006
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
jmp 0x1025694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], 0x80041003
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret

Function at 0x102651a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x1006014
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x1037f8c], 0x40000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102657a
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x1037f8c
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1006050
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1037f8c]
leave
ret

Function at 0x1026586
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push 0x10060ac
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x1038ae4], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10265f8
and dword [ebp - 4], 0
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1006084
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10265ef
mov eax, dword [ebp - 4]
shl eax, 0xa
mov dword [0x1038ae4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1038ae4]
leave
ret
Function at 0x10274ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1037f7c]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
xor ebx, ebx
push ebx
push dword [0x103803c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027577
push dword [0x1038050]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x102751d
and dword [esi + 8], eax
jmp 0x102757c
push dword [0x1038054]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x1027538
mov dword [esi + 8], edi
jmp 0x102757c
push dword [0x1038058]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x1027557
mov dword [esi + 8], 2
jmp 0x102757c
push dword [0x103805c]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esi + 8], eax
jmp 0x102757c
mov ebx, 0x80041012
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.010248c0
leave
ret 4

Function at 0x1027592
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1037f7c]
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push dword [0x1038048]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102767d
push dword [0x1038060]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x1027606
and dword [esi + 0xc], eax
jmp 0x102767d
push dword [0x1038064]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x1027621
mov dword [esi + 0xc], edi
jmp 0x102767d
push dword [0x1038068]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x1027640
mov dword [esi + 0xc], 2
jmp 0x102767d
push dword [0x103806c]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
test eax, eax
jne 0x102765f
mov dword [esi + 0xc], 3
jmp 0x102767d
push dword [0x1038070]
lea eax, [ebp - 0x20c]
push eax
call fcn.010120b0
neg eax
sbb eax, eax
neg eax
add eax, 4
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.010248c0
leave
ret 4
Function at 0x1027692
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push dword [0x1038040]
lea eax, [ebp - 4]
push dword [ebp + 8]
mov esi, ecx
push eax
push 2
call fcn.0102671e
mov ebx, eax
add esp, 0x10
test ebx, ebx
jl 0x1027753
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x644]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x20019
push eax
push 0
push dword [ebp - 4]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102774a
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.010274ab
mov ebx, eax
test ebx, ebx
jl 0x1027719
push dword [ebp + 8]
mov ecx, esi
call fcn.01027592
mov ebx, eax
lea eax, [ebp - 8]
push eax
add esi, 0x2c
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x1038b04]
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1027760
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
push dword [0x1038044]
lea eax, [ebp - 4]
push dword [ebp + 8]
mov esi, ecx
push eax
push 2
call fcn.0102671e
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x102780b
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x644]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x20019
push eax
push 0
push dword [ebp - 4]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027802
and dword [esi + 0xc], 0
inc eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [esi + 8], 2
lea eax, [ebp - 8]
push eax
add esi, 0x234
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x1038b04]
mov dword [ebp - 8], 0x208
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret 4
Function at 0x1027972
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x1027992
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x20], ebx
cmp dword [ebp + 8], ebx
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
je 0x10279a9
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x10279cb
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x10279ba
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x28], ebx
cmp dword [ebp + 0xc], ebx
je 0x10279d5
push dword [ebp + 0xc]
call edi
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x10279d5
mov eax, 0x80041006
jmp 0x1027ab4
push dword [ebp + 8]
lea eax, [ebp - 4]
push dword [0x1038038]
mov dword [ebp - 4], ebx
push eax
push 2
call fcn.0102671e
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1027ab1
push dword [ebp - 4]
mov ecx, esi
call fcn.01027907
push dword [ebp - 4]
mov ecx, esi
call fcn.01027818
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esi + 0x644]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x20019
push eax
push ebx
push dword [ebp - 4]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
inc edi
test eax, eax
jne 0x1027aa0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x43c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x1038b04]
mov dword [ebp - 0xc], edi
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01027874
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1027a97
cmp dword [esi + 0x10], edi
je 0x1027a97
cmp dword [esi + 0x14], edi
je 0x1027a97
mov dword [esi + 0x18], edi
mov dword [esi + 8], 2
mov dword [esi + 0xc], ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp + 8], ebx
jl 0x1027ab1
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1029aa0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1037f7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 4], eax
xor eax, eax
push 4
pop ebx
mov dword [edi], esi
cmp dword [0x1038b08], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], ebx
jne 0x1029b80
lea ecx, [ebp - 0x214]
push ecx
push 0x20019
push eax
push 0x1007318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1029b63
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x1007304
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], 0
jne 0x1029b63
cmp dword [ebp - 0x220], ebx
jne 0x1029b7a
cmp dword [ebp - 0x21c], ebx
jne 0x1029b7a
cmp dword [ebp - 0x224], esi
je 0x1029b6e
mov dword [0x1038b08], esi
jmp 0x1029c37
mov dword [0x1038b08], 2
jmp 0x1029b8c
mov dword [0x1038b08], esi
cmp dword [0x1038b08], esi
je 0x1029c37
mov eax, dword [0x1038b0c]
test eax, eax
jne 0x1029c30
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1029c12
push 0x10040c0
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.01011193
test eax, eax
jl 0x1029c39
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1029c12
push 0x10040b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x218], 0
jne 0x1029c06
mov dword [0x1038b0c], esi
jmp 0x1029c37
mov dword [0x1038b0c], 2
jmp 0x1029c34
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1029c22
call esi
jmp 0x1029c39
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1029c39
cmp eax, esi
je 0x1029c37
and dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010248c0
leave
ret 4
Function at 0x1029c4d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1037f7c]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
inc edi
mov dword [eax], edi
xor esi, esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
call fcn.01029aa0
cmp eax, esi
mov dword [ebp - 0x14], eax
jl 0x1029de0
cmp dword [ebp - 8], edi
jne 0x1029c95
xor eax, eax
jmp 0x1029de0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push 0x1007408
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
test eax, eax
jne 0x1029cf9
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x1029ce7
cmp dword [ebp - 8], 0xea
jne 0x1029cf9
cmp dword [ebp - 0x10], 1
jne 0x1029cf9
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
jmp 0x1029ddf
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push 0x1007398
push ebx
call edi
test eax, eax
jne 0x1029d4b
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x1029d45
cmp dword [ebp - 8], 0xea
jne 0x1029d4b
cmp dword [ebp - 0x10], 1
je 0x1029cf2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [0x10383fc]
push ebx
call edi
cmp eax, esi
jne 0x1029dcd
push 4
pop ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x1038400]
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x1029db3
cmp dword [ebp - 0x10], ebx
jne 0x1029daa
cmp dword [ebp - 8], esi
je 0x1029ddc
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x1029ddc
mov dword [ebp - 0x14], 0x80041001
jmp 0x1029ddc
cmp edi, 2
je 0x1029ddc
cmp edi, esi
jle 0x1029dc8
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x14], edi
jmp 0x1029ddc
jle 0x1029dd9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010248c0
leave
ret 8
Function at 0x102f560
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1037f7c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x102f5a5
cmp dword [ebp - 0x108], 2
jne 0x102f5a5
cmp dword [ebp - 0x114], 5
jb 0x102f5a5
xor eax, eax
inc eax
jmp 0x102f5a7
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010248c0
leave
ret
Function at 0x10036cd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x1003762
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10036eb
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x1003762
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100371c
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x1003742
cmp cx, 0x2f
jne 0x1003749
xor ecx, ecx
mov word [eax], cx
jmp 0x1003731
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1003764
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004145
leave
ret
Function at 0x1003775
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10037b5
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10037ca
sub eax, ecx
sar eax, 1
push 0x1001d40
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x1003825
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x10039b0
mov ecx, 0x1001d3c
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003856
test dx, dx
je 0x1003852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003856
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003830
xor eax, eax
jmp 0x100385b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003976
mov ecx, 0x1001d34
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003894
test dx, dx
je 0x1003890
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003894
add eax, 4
add ecx, 4
test dx, dx
jne 0x100386e
xor eax, eax
jmp 0x1003899
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003976
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x10038da
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.01003c34
test eax, eax
je 0x1003976
cmp dword [edi + 0xc], 0
je 0x1003953
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.010035fa
test eax, eax
je 0x1003953
test byte [ebp - 0x75c], 0x10
je 0x1003976
lea esi, [ebp - 0x30c]
call fcn.010036cd
test eax, eax
je 0x1003976
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.0100343f
jmp 0x1003976
lea esi, [ebp - 0x20c]
call fcn.010036cd
test eax, eax
je 0x1003976
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.01003518
mov esi, eax
test esi, esi
jne 0x1003993
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x1003825
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x10039ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10039ae
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01004145
leave
ret 8