joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c7a5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0xc0de
cmp dword [ebp + 0xc], edi
mov esi, ecx
je 0x100c886
mov ebx, 0xfade0123
cmp dword [ebp + 0xc], ebx
je 0x100c830
mov edi, 0xfade3210
cmp dword [ebp + 0xc], edi
jne 0x100c8ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x2c]
sub eax, ecx
imul eax, eax, 0xff
cdq
mov ecx, 0xfa0
idiv ecx
add eax, 0xff
push eax
call fcn.0100c4ae
push 3
mov byte [ebp + 0xc], al
push dword [ebp + 0xc]
push 0xdeadbe
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
cmp byte [ebp + 0xc], 0
jne 0x100c8ab
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x100c8ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
mov ecx, 0x5dc
imul eax, eax, 0xff
cdq
idiv ecx
push eax
call fcn.0100c4ae
push 3
mov byte [ebp + 0xc], al
push dword [ebp + 0xc]
push 0xdeadbe
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
cmp byte [ebp + 0xc], 0xff
jne 0x100c8ab
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0xea60
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x100c8ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x32
push 0xfade3210
push dword [esi + 4]
mov dword [esi + 0x2c], eax
call dword [sym.imp.USER32.dll_SetTimer]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x100d61a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10431dc]
jne 0x100d62b
test ecx, 0xffff0000
jne 0x100d62b
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1049a18], eax
mov dword [0x1049a14], ecx
mov dword [0x1049a10], edx
mov dword [0x1049a0c], ebx
mov dword [0x1049a08], esi
mov dword [0x1049a04], edi
mov word [0x1049a30], ss
mov word [0x1049a24], cs
mov word [0x1049a00], ds
mov word [0x10499fc], es
mov word [0x10499f8], fs
mov word [0x10499f4], gs
pushfd
pop dword [0x1049a28]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x1049a2c], ecx
mov dword [0x1049a20], eax
mov dword [0x1049968], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x1049924], eax
mov eax, dword [0x10431dc]
mov dword [ebp - 4], eax
mov eax, dword [0x10431d8]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x1049a1c], ecx
mov dword [0x1049918], 0xc0000409
mov dword [0x104991c], edi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1001cb4
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x100da43
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0100d9d8
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0100ddf9
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100da92
cmp dword [ebp - 0x1c], 5
jb 0x100daaa
jmp 0x100daa6
cmp dword [ebp - 0x10], 1
jne 0x100daaa
cmp dword [ebp - 0x1c], 4
ja 0x100daa6
jne 0x100daaa
cmp dword [ebp - 0x18], 0
jbe 0x100daaa
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001d04
call fcn.0100d8ac
test eax, eax
jge 0x100dacb
mov byte [0x1049784], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100d61a
add ebp, 0x78
leave
ret
Function at 0x1013318
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0100f6af
xor ebx, ebx
cmp dword [0x104a3d8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10133ed
push 0x1002450
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1013358
xor eax, eax
jmp 0x10134b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002444
push edi
call esi
cmp eax, ebx
je 0x1013351
push eax
call fcn.0100f64c
mov dword [esp], 0x1002434
push edi
mov dword [0x104a3d8], eax
call esi
push eax
call fcn.0100f64c
mov dword [esp], 0x1002420
push edi
mov dword [0x104a3dc], eax
call esi
push eax
call fcn.0100f64c
mov dword [0x104a3e0], eax
lea eax, [ebp - 8]
push eax
call fcn.0100e906
test eax, eax
pop ecx
pop ecx
je 0x10133bb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01010500
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10133ed
push 0x1002404
push edi
call esi
push eax
call fcn.0100f64c
cmp eax, ebx
pop ecx
mov dword [0x104a3e8], eax
je 0x10133ed
push 0x10023ec
push edi
call esi
push eax
call fcn.0100f64c
pop ecx
mov dword [0x104a3e4], eax
mov eax, dword [0x104a3e4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1013466
cmp dword [0x104a3e8], esi
je 0x1013466
push eax
call fcn.0100f6b8
pop ecx
call eax
cmp eax, ebx
je 0x1013433
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x104a3e8]
call fcn.0100f6b8
pop ecx
call eax
test eax, eax
je 0x1013433
test byte [ebp - 0x18], 1
jne 0x1013466
lea eax, [ebp - 0xc]
push eax
call fcn.0100e93d
test eax, eax
pop ecx
je 0x101344e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01010500
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x101345d
or dword [ebp + 0x10], 0x200000
jmp 0x1013497
or dword [ebp + 0x10], 0x40000
jmp 0x1013497
mov eax, dword [0x104a3dc]
cmp eax, esi
je 0x1013497
push eax
call fcn.0100f6b8
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1013497
mov eax, dword [0x104a3e0]
cmp eax, esi
je 0x1013497
push dword [ebp - 4]
push eax
call fcn.0100f6b8
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x104a3d8]
call fcn.0100f6b8
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1019f92
Capabilities:
Hash data using sha1

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

Function at 0x101a928
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x101a939
mov eax, 0x80070057
jmp 0x101a95c
push esi
push 1
push eax
push eax
push dword [ebp + 8]
xor esi, esi
push 0x1002ea8
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x101a959
mov esi, 0x80004005
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x101a960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x101a972
mov eax, 0x80070057
jmp 0x101a9a8
push edi
push 1
push esi
push esi
push dword [ebp + 8]
xor edi, edi
push 0x1002eb0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x101a9a5
push esi
mov eax, 0x80004005
push eax
push 0x725
push 0x1002e5c
mov edi, eax
call fcn.0101c3d2
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x101a9ad
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x101a9bd
mov eax, 0x80070057
jmp 0x101a9f8
push edi
push 1
xor edi, edi
push edi
push dword [ebp + 8]
push 0x1002ebc
push 0x1002ea8
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x101a9f5
push 0
mov eax, 0x80004005
push eax
push 0x73b
push 0x1002e5c
mov edi, eax
call fcn.0101c3d2
mov eax, edi
pop edi
pop ebp
ret 4

Function at 0x101acac
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x101ada5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x101ada5
push 3
xor edx, edx
pop ecx
lea eax, [esi + 2]
div ecx
mov ecx, dword [ebp + 0x10]
shl eax, 2
test ecx, ecx
jne 0x101ace0
mov ecx, eax
jmp 0x101ad99
mov edx, dword [ebp + 0x14]
cmp eax, dword [edx]
jbe 0x101acf1
mov eax, 0x800700ea
jmp 0x101adaa
test esi, esi
jle 0x101ad99
push ebx
push edi
xor eax, eax
lea edi, [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov al, byte [edi]
inc edi
cmp esi, 1
mov dword [ebp + 8], edi
jbe 0x101ad29
mov dl, byte [edi]
inc edi
cmp esi, 2
mov byte [ebp + 0xd], dl
mov dword [ebp + 8], edi
jbe 0x101ad29
mov bl, byte [edi]
inc dword [ebp + 8]
mov byte [ebp + 0xe], bl
jmp 0x101ad2c
mov bl, byte [ebp + 0xe]
movzx eax, al
mov edx, eax
shr edx, 2
mov dl, byte [edx + 0x1002e10]
mov byte [ecx], dl
movzx edx, byte [ebp + 0xd]
shl eax, 4
mov edi, edx
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + 0x1002e10]
inc ecx
mov byte [ecx], al
inc ecx
cmp esi, 1
jbe 0x101ad72
movzx eax, bl
shr eax, 6
shl edx, 2
or eax, edx
and eax, 0x3f
mov al, byte [eax + 0x1002e10]
jmp 0x101ad74
mov al, 0x3d
mov byte [ecx], al
inc ecx
cmp esi, 2
jbe 0x101ad87
and ebx, 0x3f
mov al, byte [ebx + 0x1002e10]
jmp 0x101ad89
mov al, 0x3d
mov byte [ecx], al
sub esi, 3
inc ecx
test esi, esi
jg 0x101acfb
pop edi
pop ebx
sub ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x101adaa
mov eax, 0x80070057
pop esi
pop ebp
ret 0x10
Function at 0x101af68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], eax
je 0x101b04f
cmp dword [ebp + 0x10], eax
je 0x101b04f
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
push 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0xffff
mov esi, 0x80070000
mov ebx, 0x1002e5c
je 0x101afdb
jle 0x101afc4
and eax, edi
or eax, esi
push 0
push eax
push 0xcc1
push ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], 0
jl 0x101b038
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x101b016
jle 0x101b005
and eax, edi
or eax, esi
push 0
push eax
push 0xccc
push ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], 0
jl 0x101b038
cmp dword [ebp - 0x10], 4
je 0x101b038
push 0
mov eax, 0x80004005
push eax
push 0xcd4
push ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x101b04a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x101b054
mov eax, 0x80070057
leave
ret 0x10

Function at 0x101b1ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
and dword [esi], 0
push edi
mov dword [ebp - 0x210], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x101b210
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b1fb
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x36
push 0x1002e5c
call fcn.0101c3d2
test ebx, ebx
jl 0x101b27c
push dword [ebp - 0x210]
lea eax, [ebp - 0x108]
push eax
push fcn.01002ee8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100a18a
add esp, 0x14
push 0
mov ebx, eax
push ebx
push 0x3c
mov edi, 0x1002e5c
push edi
call fcn.0101c3d2
test ebx, ebx
jl 0x101b27c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
jne 0x101b27c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b26f
and eax, 0xffff
or eax, 0x80070000
push 0
mov ebx, eax
push ebx
push 0x46
push edi
call fcn.0101c3d2
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 8
Function at 0x101b429
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x11c], eax
je 0x101b5f6
cmp eax, ebx
je 0x101b5f6
cmp esi, ebx
je 0x101b5f6
lea ecx, [ebp - 0x111]
call fcn.01020aa5
test eax, eax
jne 0x101b481
mov eax, 0x80004005
jmp 0x101b5fb
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [esi], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x110], ebx
mov byte [ebp - 0x108], bl
call fcn.0100ddf9
push edi
push 0x1002f3c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0100a18a
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jl 0x101b5cf
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x101b506
jle 0x101b504
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x101b5cf
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push dword [ebp - 0x11c]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x101b542
jle 0x101b540
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x101b5cf
cmp dword [ebp - 0x118], 1
je 0x101b558
mov edi, 0x80004005
cmp edi, ebx
jl 0x101b5cf
push dword [ebp - 0x110]
call fcn.0100d5aa
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x101b573
mov edi, 0x8007000e
cmp edi, ebx
jl 0x101b5cf
lea ecx, [ebp - 0x110]
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push dword [ebp - 0x11c]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x101b5ab
jle 0x101b5c9
and eax, 0xffff
or eax, 0x80070000
jmp 0x101b5c9
mov eax, dword [esi]
mov ecx, dword [ebp - 0x110]
mov byte [ecx + eax - 1], bl
mov eax, dword [esi]
mov al, byte [eax]
neg al
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov edi, eax
cmp edi, ebx
jge 0x101b5de
mov eax, dword [esi]
cmp eax, ebx
je 0x101b5de
push eax
call fcn.0100dd74
pop ecx
mov dword [esi], ebx
cmp dword [ebp - 0x10c], ebx
je 0x101b5f2
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x101b5fb
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 0xc
Function at 0x101b8a1
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x101b8c6
mov eax, 0x80070057
jmp 0x101ba9b
push esi
call fcn.0101b60c
mov esi, eax
test esi, esi
jl 0x101ba98
push edi
call dword [0x104a4e8]
test eax, eax
je 0x101b8e8
xor eax, eax
jmp 0x101ba9a
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c00e
mov esi, eax
test esi, esi
jl 0x101ba98
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [0x104a4ec]
test eax, eax
mov ebx, 0x80070000
je 0x101b9ba
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x101b94f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b943
and eax, 0xffff
or eax, ebx
push 0
mov esi, eax
push esi
push 0x454
jmp 0x101b9b0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov eax, dword [0x104a4f8]
test eax, eax
jne 0x101b97f
push eax
mov esi, 0x80004005
push esi
push 0x45e
push 0x1002e5c
call fcn.0101c3d2
jmp 0x101ba97
push 4
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x101b9ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101b9a6
and eax, 0xffff
or eax, ebx
push 0
mov esi, eax
push esi
push 0x464
push 0x1002e5c
call fcn.0101c3d2
test esi, esi
jl 0x101ba97
lea eax, [ebp - 0x20c]
push eax
call dword [0x104a4f4]
test eax, eax
je 0x101ba97
cmp word [eax], 0
je 0x101ba97
push eax
call dword [0x104a4f0]
mov edi, eax
test edi, edi
je 0x101ba27
cmp word [edi], 0
je 0x101ba27
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
cmp eax, 0x7fffffff
jbe 0x101ba0c
mov eax, 0x80070057
jmp 0x101ba3f
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.0101a803
jmp 0x101ba3f
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.0100c00e
mov esi, eax
test esi, esi
jl 0x101ba8d
lea eax, [ebp - 0x414]
push eax
call dword [0x104a4e8]
test eax, eax
jne 0x101ba8d
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101ba8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101ba79
and eax, 0xffff
or eax, ebx
push 0
mov esi, eax
push esi
push 0x484
push 0x1002e5c
call fcn.0101c3d2
test esi, esi
mov eax, edi
jge 0x101b9cf
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100d61a
leave
ret 4
Function at 0x101be63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x101be7d
mov eax, 0x80070057
jmp 0x101bff9
push esi
mov dword [eax], ebx
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0101b157
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x20019
push eax
push ebx
push fcn.01003088
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov edi, 0x1002e5c
je 0x101bee8
jle 0x101bed1
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
push esi
push 0x75b
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push fcn.0100307c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x101bf1f
jle 0x101bf10
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
push esi
push 0x764
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
cmp dword [ebp - 0x10], 1
je 0x101bf3f
push ebx
mov esi, 0x80004005
push esi
push 0x76c
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
push dword [ebp - 0xc]
call fcn.0100d5aa
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x101bf65
push ebx
mov esi, 0x8007000e
push esi
push 0x775
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101bfc0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ebx
push fcn.0100307c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x101bf9e
jle 0x101bf93
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
push esi
push 0x77f
jmp 0x101bfba
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push eax
mov byte [ecx + eax - 1], bl
call fcn.0101a24b
push ebx
mov esi, eax
push esi
push 0x785
push edi
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
je 0x101bfd1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp esi, ebx
jge 0x101bfe7
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, ebx
je 0x101bfe7
push eax
call fcn.0100dd74
pop ecx
mov dword [edi], ebx
cmp dword [ebp - 8], ebx
je 0x101bff5
push dword [ebp - 8]
call fcn.0100dd74
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x101c1b2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
xor ebx, ebx
lea eax, [ebp - 0xa8]
push eax
push fcn.0100312c
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
call fcn.0101b429
test eax, eax
jge 0x101c208
cmp dword [ebp - 0xa8], ebx
je 0x101c237
push dword [ebp - 0xa8]
call fcn.0100e10e
push dword [ebp - 0xa8]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
call fcn.0100dd74
pop ecx
pop ecx
jmp 0x101c306
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0101a713
push ebx
mov esi, eax
push esi
push 0x202
mov edi, 0x1002e5c
push edi
call fcn.0101c3d2
cmp esi, ebx
jl 0x101c305
push 0x98
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.0100ddf9
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101c2ab
movzx eax, byte [ebp - 6]
jmp 0x101c2c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call int.01009d20
push ebx
mov esi, eax
push esi
push 0x213
push edi
call fcn.0101c3d2
mov eax, ebx
cmp esi, ebx
jl 0x101c305
cmp dword [ebp - 0xac], 5
jne 0x101c2ef
cmp dword [ebp - 0xa4], 1
je 0x101c2eb
cmp dword [ebp - 0xa4], ebx
jne 0x101c300
cmp eax, 1
jne 0x101c300
xor esi, esi
jmp 0x101c305
cmp dword [ebp - 0xac], 6
jne 0x101c300
cmp dword [ebp - 0xa4], ebx
jmp 0x101c2e9
mov esi, 0x80004004
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 4
Function at 0x101f1c5
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x10431dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x320], edi
jne 0x101f1f9
mov eax, 0x80070057
jmp 0x101f369
push esi
mov esi, 0x103
push esi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.0100ddf9
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0100ddf9
add esp, 0x18
lea eax, [ebp - 0x318]
push eax
push edi
push 0x1003770
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x318], ebx
call fcn.0101af68
cmp eax, ebx
mov dword [ebp - 0x314], eax
jl 0x101f362
cmp dword [ebp - 0x318], ebx
jne 0x101f267
mov dword [ebp - 0x314], 0x80004005
cmp dword [ebp - 0x314], ebx
jl 0x101f362
lea eax, [ebp - 0x310]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x101f294
mov dword [ebp - 0x314], 0x80004005
cmp dword [ebp - 0x314], ebx
jl 0x101f362
push dword [ebp - 0x320]
lea eax, [ebp - 0x310]
push eax
push 0x1003764
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0100a18a
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x314], eax
jl 0x101f362
cmp byte [ebp + 0xc], bl
je 0x101f32a
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0100ddf9
lea eax, [ebp - 0x108]
push eax
push 0x100375c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100a18a
add esp, 0x1c
test eax, eax
jl 0x101f32a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x31c]
mov dword [ecx + 0x11c], eax
jne 0x101f362
mov dword [ebp - 0x314], 0x80004005
mov eax, dword [ebp - 0x314]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100d61a
leave
ret 8