joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401be0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401c2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c24
test esi, esi
je 0x401c24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c00
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f38
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e9e
cmp eax, 4
jne 0x401ec0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401eae
cmp edx, 4
je 0x401eae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e10
Function at 0x402f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fb9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402fcb
mov dword [ebp - 0xc], 0x78e0f8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe0
mov ecx, dword [0x7a2fb8]
add ecx, eax
push ecx
call fcn.004031a1
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040318b
test eax, eax
je 0x403179
test byte [ebp + 0x17], 0x80
je 0x403124
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40b858], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40b840], 0xb
mov dword [ebp + 8], eax
jle 0x403181
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403036
mov esi, dword [ebp + 0x14]
mov edi, 0x78a0f8
push esi
push edi
call fcn.0040318b
test eax, eax
je 0x403179
sub dword [ebp + 0x14], esi
mov dword [0x40b830], edi
mov dword [0x40b834], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b830
mov dword [0x40b838], edi
mov dword [0x40b83c], eax
call fcn.0040643a
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40311c
mov esi, dword [0x40b838]
sub esi, edi
call ebx
test byte [0x7a3014], 1
mov edi, eax
je 0x4030d7
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4030a4
cmp dword [ebp + 0x14], 0
jne 0x4030d7
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004050a4
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403110
cmp dword [ebp + 0x10], 0
jne 0x4030f6
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405bbd
test eax, eax
je 0x403120
add dword [ebp - 4], esi
jmp 0x403104
mov eax, dword [0x40b838]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403059
jmp 0x403181
cmp dword [ebp + 0x14], 0
jg 0x403029
jmp 0x403181
push 0xfffffffffffffffc
jmp 0x40317b
push 0xfffffffffffffffe
jmp 0x40317b
test edi, edi
jne 0x403166
cmp dword [ebp + 0x14], edi
jle 0x403181
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40313a
mov esi, ebx
mov edi, 0x78a0f8
push esi
push edi
call fcn.0040318b
test eax, eax
je 0x403179
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405bbd
test eax, eax
je 0x403120
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403130
jmp 0x403181
cmp dword [ebp + 0x14], esi
jge 0x40316e
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040318b
test eax, eax
jne 0x40317e
push 0xfffffffffffffffd
pop eax
jmp 0x403184
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40556a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055bb
xor eax, eax
jmp 0x4055e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4055e2
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055b7
call esi
pop esi
leave
ret 4

Function at 0x40561c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0d48], 0x44
push eax
xor eax, eax
push 0x7a0d48
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40565b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40565f
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4056fd
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405af1
mov edi, eax
cmp edi, 0xffffffff
je 0x40573e
test byte [esp + 0x10], 1
push esi
je 0x405720
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405726
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40572f
xor eax, eax
inc eax
jmp 0x405740
test byte [esp + 0x10], 4
jne 0x40573e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405745
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405a03
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405784
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2fe8], eax
jmp 0x40590e
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40579e
test eax, eax
je 0x4058bc
test bl, 2
je 0x4058bc
mov esi, 0x7a0548
push edi
push esi
call fcn.00405f7d
cmp dword [ebp + 8], 0
je 0x4057bd
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057c3
push edi
call fcn.0040595c
cmp byte [edi], 0
jne 0x4057d1
cmp byte [0x7a0548], 0x5c
jne 0x4057dc
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4058b2
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405940
cmp byte [eax], 0
je 0x405822
cmp byte [ebp - 0x1c], 0
je 0x405822
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405838
mov al, byte [esi + 1]
test al, al
je 0x405891
cmp al, 0x2e
jne 0x405838
cmp byte [esi + 2], 0
je 0x405891
push esi
push ebx
call fcn.00405f7d
test byte [ebp - 0x14c], 0x10
je 0x40585d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405891
push dword [ebp + 0xc]
push edi
call fcn.00405745
jmp 0x405891
push dword [ebp - 4]
push edi
call fcn.004056fd
test eax, eax
jne 0x405889
cmp dword [ebp - 4], eax
je 0x405881
push edi
push 0xfffffffffffffff1
call fcn.004050a4
push 0
push edi
call fcn.00405d5c
jmp 0x405891
inc dword [0x7a2fe8]
jmp 0x405891
push edi
push 0xfffffffffffffff2
call fcn.004050a4
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405800
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058bc
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40590e
cmp dword [ebp - 0xc], esi
jne 0x4058d0
inc dword [0x7a2fe8]
jmp 0x40590e
push edi
call fcn.00406280
test eax, eax
je 0x40590e
push edi
call fcn.00405915
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056fd
test eax, eax
jne 0x405906
cmp dword [ebp - 4], esi
je 0x4058c8
push edi
push 0xfffffffffffffff1
call fcn.004050a4
push esi
push edi
call fcn.00405d5c
jmp 0x40590e
push edi
push 0xffffffffffffffe5
call fcn.004050a4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a03
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0948
push esi
call fcn.00405f7d
push esi
call fcn.004059ae
mov edi, eax
test edi, edi
jne 0x405a24
xor eax, eax
jmp 0x405a76
push edi
call fcn.004061e7
test byte [0x7a2f5c], 0x80
je 0x405a3d
mov al, byte [edi]
test al, al
je 0x405a20
cmp al, 0x5c
je 0x405a20
sub edi, esi
jmp 0x405a55
call fcn.00406280
test eax, eax
je 0x405a4f
test byte [eax], 0x10
je 0x405a20
push esi
call fcn.0040595c
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a41
call fcn.00405915
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405af1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b10
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b16
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b45
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b8a
test edi, edi
jne 0x405b50
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b84
Function at 0x405bec
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a12d0], 0x4c554e
mov edi, 0x400
mov ebp, 0x7a12d0
je 0x405c38
push 1
push 0
push esi
call fcn.00405b16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d57
cmp eax, edi
jg 0x405d57
mov esi, 0x7a16d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d57
cmp eax, edi
jg 0x405d57
push esi
push ebp
push str._s_s_r_n
push 0x7a0ed0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2f54]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f9f
push 4
push 0xc0000000
push esi
call fcn.00405b16
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d57
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d50
push edi
push esi
push ebp
call fcn.00405b8e
test eax, eax
je 0x405d50
push str._Rename__r_n
push esi
call fcn.00405a7b
test eax, eax
jne 0x405cee
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d23
add eax, 0xa
push 0x40a3b8
push eax
call fcn.00405a7b
mov ebp, eax
test ebp, ebp
je 0x405d1f
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d10
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d0a
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d25
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a0ed0
push eax
call fcn.00405ad1
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405bbd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405d5c
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405d7f
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405bec
pop ecx
pop ecx
inc dword [0x7a2ff0]
ret 8

Function at 0x405e64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405e03
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405ed3
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405ed3
cmp dword [ebp + 0xc], 1
je 0x405ed6
cmp dword [ebp + 0xc], 2
je 0x405ed6
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4062a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062cb
xor eax, eax
test eax, eax
je 0x4062dd
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4062dd
xor ecx, ecx
jmp 0x4062e0
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1ad4], 0
push esi
jne 0x406403
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4063dd
mov dword [ecx*4 + 0x7a1ad0], eax
inc ecx
cmp ecx, 0x100
jl 0x4063d8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406434
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1ad0]
xor eax, esi
inc ecx
dec edx
jne 0x406416
pop edi
not eax
pop esi
ret 0xc
Function at 0x10042a4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x10042bf
push 0x80004005
call fcn.01003f3e
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10042c1
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1004be3
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1015184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01004202
mov edi, eax
cmp edi, esi
je 0x1004c55
lea ecx, [ebp - 0x214]
call fcn.0100418f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01010988
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1004c73
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01004be3
cmp eax, esi
jne 0x1004cbe
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1004c5d
lea ecx, [ebp - 0x214]
call fcn.0100418f
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01004109
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0100418f
mov eax, esi
jmp 0x1004c45
Function at 0x100790d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1011e6a
call fcn.01010a89
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1007966
call fcn.0100406a
mov esi, eax
jmp 0x1007a6f
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100797f
call fcn.0100406a
jmp 0x1007a61
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x1007975
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x10079e5
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10079cb
lea ecx, [ebp - 0x418]
call fcn.010048fe
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.010047eb
mov eax, esi
call fcn.01010af4
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.01005907
mov dword [ebp - 4], 1
jmp 0x1007a13
cmp dword [ebp - 0x418], esi
jne 0x1007a22
mov esi, 0x8007000e
jmp 0x1007a63
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1007975
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.01007145
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10079d0
lea ecx, [ebp - 0x418]
call fcn.010048fe
jmp 0x10079d0
Function at 0x10084fe
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1015184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
xor edi, edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp ebx, edi
jne 0x1008554
mov esi, 0x80004003
push esi
push 0x1001e9c
push 0xc4
jmp 0x10085d5
mov dword [ebx], edi
mov dword [esi + 0x428], edi
cmp dword [esi + 0x42c], edi
je 0x100856d
lea eax, [esi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x1008584
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
push edi
push 0x25
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10085ab
mov esi, 0x80004005
push esi
push 0x1001e9c
push 0xe4
jmp 0x10085d5
push 0x1001e84
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01008389
test eax, eax
jge 0x10085eb
mov esi, 0x80004005
push esi
push 0x1001e9c
push 0xec
push 0x1001d88
push 0x1001570
mov ecx, 0x10156c0
call fcn.01011507
jmp 0x1008649
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
cmp eax, edi
jne 0x1008628
push edi
push 0x1001e9c
push 0xf7
push 0x1001d88
push 0x1001570
mov ecx, 0x10156c0
call fcn.01011507
mov esi, 0x80004005
jmp 0x1008649
push 0x1001e78
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008641
mov eax, dword [ebp - 0x214]
mov dword [esi + 0xc], eax
mov dword [ebx], 1
mov esi, edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01010988
leave
ret 4

Function at 0x10092bd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x10092de
xor eax, eax
jmp 0x1009304
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1008fe1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x1009301
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret