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

Disassembly:
push ebx
push esi
push dword [0x408304]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x403590
mov eax, 1
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4035a0
xor eax, eax
pop esi
pop ebx
ret
push 0x408
call fcn.00403310
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4037a0
mov esi, 0x457120
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [0x4552c8]
mov dword [ebx], ecx
mov dword [0x4552c8], ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea eax, [ebx + 0x188]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 0x408308
mov dword [ebx + 0x10], 0x408308
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x180], 0x40830c
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 1
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0xffffffff
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x184], 0
push 0x4085e4
push eax
call fcn.00402390
pop ecx
pop ecx
mov ecx, dword [0x408614]
mov dword [ebx + 0x1b8], ecx
mov edx, dword [0x408618]
mov dword [ebx + 0x1bc], edx
mov eax, dword [0x40861c]
mov dword [ebx + 0x1c0], eax
mov ecx, dword [0x408620]
mov dword [ebx + 0x1c4], ecx
mov edx, dword [0x408624]
mov dword [ebx + 0x1c8], edx
xor eax, eax
mov ecx, dword [eax + 0x4085e0]
mov dword [eax + ebx + 0x184], ecx
mov ecx, dword [eax + 0x4085e4]
mov dword [eax + ebx + 0x188], ecx
mov ecx, dword [eax + 0x4085e8]
mov dword [eax + ebx + 0x18c], ecx
mov ecx, dword [eax + 0x4085ec]
mov dword [eax + ebx + 0x190], ecx
add eax, 0x10
cmp eax, 0x40
jl 0x4036db
mov ecx, dword [0x408620]
mov dword [ebx + 0x1c4], ecx
mov ecx, dword [0x408624]
mov dword [ebx + 0x1c8], ecx
xor edx, edx
mov ecx, dword [edx + 0x40836c]
mov dword [edx + ebx + 0x1d0], ecx
mov ecx, dword [edx + 0x408370]
mov dword [edx + ebx + 0x1d4], ecx
mov ecx, dword [edx + 0x408374]
mov dword [edx + ebx + 0x1d8], ecx
mov ecx, dword [edx + 0x408378]
mov dword [edx + ebx + 0x1dc], ecx
add edx, 0x10
cmp edx, 0x30
jl 0x403731
mov ecx, dword [0x40839c]
mov dword [ebx + 0x200], ecx
mov ecx, dword [0x4083a0]
mov dword [ebx + 0x204], ecx
mov dword [ebx + 0x1cc], 0
push ebx
push dword [0x408304]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop esi
pop ebx
ret
xor eax, eax
pop esi
pop ebx
ret
Function at 0x403dd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
sub esp, 4
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
mov edi, dword [0x4552d8]
test edi, edi
je 0x403e04
mov ecx, dword [edi]
mov eax, dword [ebp + 8]
cmp dword [ecx], eax
jbe 0x403e04
mov edi, dword [edi + 8]
jmp 0x403df2
test edi, edi
je 0x403e70
mov esi, dword [edi]
mov eax, dword [edi + 4]
sub eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
xor edx, edx
cmp eax, 1
mov ebx, eax
je 0x403e3e
lea edi, [edx + ebx]
mov ecx, dword [ebp + 8]
sar edi, 1
add ecx, 0xffffffff
cmp dword [esi + edi*8], ecx
ja 0x403e35
mov edx, edi
jmp 0x403e37
mov ebx, edi
lea ecx, [edx + 1]
cmp ecx, ebx
jne 0x403e21
mov ebx, dword [ebp + 8]
mov ecx, edx
add ebx, 0xffffffff
cmp ebx, dword [esi + ecx*8]
jb 0x403f26
lea ebx, [edx + 1]
cmp ebx, eax
je 0x403e78
mov eax, ebx
mov ebx, dword [ebp + 8]
add ebx, 0xffffffff
cmp ebx, dword [esi + eax*8]
jae 0x403f26
jmp 0x403e78
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [esi + ecx*8 + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
movsx eax, byte [ebx]
test eax, 1
mov esi, edx
jne 0x403f1c
movzx eax, word [ebx + 5]
add esi, 7
xor edi, edi
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x403f1c
mov ebx, dword [esi]
movzx ecx, byte [ebx]
cmp cl, 0xe8
je 0x403f30
cmp cl, 0xcc
je 0x403f30
cmp cl, 0xff
jne 0x403f40
movzx eax, byte [ebx + 1]
mov ecx, eax
sar ecx, 6
and eax, 7
add ebx, 2
cmp ecx, 3
je case.default.0x403ef3
cmp eax, 4
jne 0x403ee6
movzx edx, byte [ebx]
add ebx, 1
and edx, 7
jmp 0x403ee8
xor edx, edx
test ecx, ecx
je 0x403f35
mov eax, ecx
cmp eax, 2
ja case.default.0x403ef3
jmp dword [eax*4 + 0x406024]
cmp edx, 5
jne case.default.0x403ef3
add ebx, 4
jmp case.default.0x403ef3
add ebx, 1
jmp case.default.0x403ef3
add ebx, 4
cmp ebx, dword [ebp + 8]
je 0x403f47
add edi, 1
add esi, 8
cmp edi, dword [ebp - 0x10]
jl 0x403ea6
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
add ebx, 5
jmp case.default.0x403ef3
cmp eax, 5
jne 0x403eec
add ebx, 4
jmp case.default.0x403ef3
call fcn.004051d0
jmp case.default.0x403ef3
mov edx, dword [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], edx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x404750
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x164
mov ebx, dword [0x457178]
add ebx, 0xffffffff
mov esi, dword [0x45717c]
mov eax, dword [esi + ebx*4]
mov dword [ebp - 0x10], eax
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, 0xfffffffe
sub edi, ecx
add edi, dword [ebp - 0x10]
cmp edi, dword [ebp - 0x10]
jbe 0x4047a3
movsx edx, byte [edi - 1]
push edx
push 0x408358
call fcn.00402460
pop ecx
test eax, eax
pop ecx
jne 0x4047a3
sub edi, 1
jmp 0x404784
lea ebx, [ebp - 0x150]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x15c], eax
je 0x404943
lea eax, [ebp - 0x124]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x154], edi
sub dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x158], eax
lea eax, [eax]
test dword [ebp - 0x150], 0x10
jne 0x404915
xor eax, eax
mov edi, dword [ebp - 0x168]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, 0xfffffffe
sub edx, ecx
add edx, dword [ebp - 0x164]
add edx, 1
push edx
call fcn.00403310
mov esi, eax
pop ecx
push dword [ebp - 0x160]
push dword [ebp - 0x10]
push esi
call fcn.004023b0
add esp, 0xc
push dword [ebp - 0x170]
mov ecx, esi
add ecx, dword [ebp - 0x154]
push ecx
call fcn.00402390
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4048f5
push esi
call fcn.00403320
xor eax, eax
pop ecx
mov edi, dword [ebp - 0x16c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, 0xfffffffe
sub esi, ecx
add esi, dword [ebp - 0x164]
add esi, 1
push esi
call fcn.00403310
mov esi, eax
pop ecx
push dword [ebp - 0x160]
push dword [ebp - 0x10]
push esi
call fcn.004023b0
mov edi, dword [ebp - 0x158]
mov eax, edi
add esp, 0xc
cmp byte [eax], 0
je 0x4048df
movsx ebx, byte [edi]
test ebx, ebx
jl 0x4048d5
cmp ebx, 0x100
jl 0x404950
mov byte [edi], bl
add edi, 1
cmp byte [edi], 0
jne 0x4048c6
push dword [ebp - 0x158]
mov eax, esi
add eax, dword [ebp - 0x154]
push eax
call fcn.00402390
pop ecx
pop ecx
call fcn.004046f0
test eax, eax
je 0x404930
mov edx, dword [0x45717c]
mov ecx, dword [0x457178]
mov dword [edx + ecx*4 - 4], esi
add dword [0x457178], 1
lea ebx, [ebp - 0x150]
push ebx
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x404810
sub dword [0x457178], 1
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
call fcn.00403820
mov eax, dword [eax + 0x1bc]
mov edx, dword [eax + 0x10]
pop ecx
movzx ebx, byte [edx + ebx]
jmp 0x4048d5
Function at 0x1002025
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100208f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1002086
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01006849
leave
ret
Function at 0x1002e84
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1002ea5
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edi
mov edi, 0x7fffffff
cmp dword [ebp - 4], 5
jl 0x1002ece
lea eax, [ebp - 0x40]
push eax
call fcn.01002e5c
test eax, eax
jne 0x1002f96
cmp dword [ebp - 4], 0x1f4
jge 0x1002f96
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebx, eax
cmp ebx, edi
je 0x1002ef5
push 0xf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x2c]
push eax
call esi
rdtsc
mov dword [ebp - 0xc], eax
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
call esi
rdtsc
mov dword [ebp - 8], eax
cmp ebx, edi
je 0x1002f21
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
test eax, eax
jge 0x1002f37
fadd dword [0x10013e0]
mov eax, dword [ebp - 0x1c]
fild dword [ebp - 0x1c]
test eax, eax
jge 0x1002f47
fadd dword [0x10013e0]
mov eax, dword [ebp - 0x24]
fmulp st(1)
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
test eax, eax
jge 0x1002f5f
fadd dword [0x10013e0]
fdivp st(1)
fdiv qword [0x10013d8]
call sub.msvcrt.dll__ftol2
mov ecx, eax
push 0xa
xor edx, edx
pop ebx
div ebx
push ebx
mov eax, edx
add eax, ecx
xor edx, edx
pop ecx
div ecx
push 5
pop ebx
mov ecx, eax
mov eax, dword [ebp - 4]
cdq
idiv ebx
inc dword [ebp - 4]
mov dword [ebp + edx*4 - 0x40], ecx
jmp 0x1002eb7
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002fa3
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
lea eax, [ebp - 0x1c]
push eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x100303a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x1002fdb
lea eax, [ebp - 0xc]
push eax
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, edi
jae 0x1002ff4
mov edi, eax
dec dword [ebp - 4]
jne 0x1002fcc
mov eax, dword [ebp - 0x1c]
fild dword [ebp - 0x1c]
test eax, eax
jge 0x1003009
fadd dword [0x10013e0]
mov eax, dword [ebp + 8]
fild dword [ebp + 8]
test eax, eax
jge 0x1003019
fadd dword [0x10013e0]
mov dword [ebp + 8], edi
fmulp st(1)
fild dword [ebp + 8]
test edi, edi
jge 0x100302b
fadd dword [0x10013e0]
fdivp st(1)
fdiv qword [0x10013e8]
call sub.msvcrt.dll__ftol2
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x10030fd
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push 0x52
xor edi, edi
lea eax, [ebp - 0x58]
push esi
inc edi
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x5c], esi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov word [ebx], ax
call fcn.01002972
test eax, eax
je 0x1003170
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.010029a3
xor eax, eax
mov word [ebp - 0x40], ax
push 0x52
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
mov eax, edi
jmp 0x100326f
lea eax, [ebp - 0x5c]
push eax
push 0x20019
push esi
mov edi, 0x10015b8
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0xffff
test eax, eax
jne 0x100324e
cmp dword [ebp - 0x5c], eax
je 0x1003257
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0x1001590
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x80070000
test eax, eax
jne 0x1003203
cmp dword [ebp - 0x68], 1
jne 0x1003209
cmp dword [ebp - 0x60], 1
jbe 0x1003209
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
push ebx
call fcn.0100308e
test eax, eax
jge 0x1003226
push dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
push ecx
and eax, esi
push eax
push 0x1001528
call fcn.01006e3e
add esp, 0x10
jmp 0x1003222
jle 0x1003209
and eax, esi
or eax, edi
push dword [ebp - 0x60]
and eax, esi
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
push eax
push 0x10014b0
call fcn.01006e3e
add esp, 0x14
and dword [ebp - 0x64], 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100326c
jle 0x1003239
and eax, esi
or eax, edi
push dword [ebp - 0x5c]
and eax, esi
push eax
push 0x1001450
call fcn.01006e3e
add esp, 0xc
jmp 0x100326c
jle 0x1003257
and eax, esi
or eax, 0x80070000
push edi
and eax, esi
push eax
push 0x10013f0
call fcn.01006e3e
add esp, 0xc
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006849
leave
ret 4
Function at 0x10032bf
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x18], edi
je 0x10032d6
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.01002972
test eax, eax
je 0x1003349
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0x18]
push eax
push eax
push esi
push 1
call fcn.010029a3
mov eax, dword [esi]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
shr eax, 8
and eax, 0xf
mov dword [ecx], eax
cmp esi, edi
je 0x10033c3
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x80000000
call fcn.010029a3
cmp dword [ebp + 0xc], edi
jne 0x1003330
mov dword [esi], edi
jmp 0x10033c3
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x80000001
call fcn.010029a3
jmp 0x10033c3
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1003357
mov dword [eax], edi
push esi
mov esi, dword [ebp + 8]
pushfd
pop eax
mov ecx, eax
xor eax, 0x40000
push eax
popfd
pushfd
pop eax
xor eax, ecx
mov dword [esi], 3
je 0x100337a
push ecx
popfd
mov dword [esi], 4
pop esi
mov eax, dword [ebp + 8]
cmp dword [eax], 4
jne 0x10033ba
push edi
push 4
call fcn.01003285
mov ecx, eax
call fcn.01003044
push 0x21
test eax, eax
pop eax
jne 0x10033a7
cmp eax, ecx
sbb eax, eax
and eax, 0x10
add eax, 0x440
jmp 0x10033b3
cmp eax, ecx
sbb eax, eax
and eax, 0x20
add eax, 0x410
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10033c3
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x300
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1004683
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebp - 0x22c], 0
push 6
pop ecx
mov esi, 0x1001860
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x228]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], eax
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24c]
push eax
mov word [ebp - 0x232], si
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor esi, esi
push esi
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
cmp eax, esi
jge 0x100471b
or eax, 0x10000000
jmp 0x100474f
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x244]
push eax
push esi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1004757
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100474f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x22c], eax
jmp 0x1004797
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
shrd eax, ecx, 0x14
push eax
push 0xc6d
push ebx
shr ecx, 0x14
call dword [0x10092c4]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x238]
shrd eax, ecx, 0x14
push eax
push 0xc6e
push ebx
shr ecx, 0x14
call dword [0x10092c4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x22c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006849
leave
ret 4
Function at 0x10047b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push 0x1001880
push 0x80000002
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x100483d
jle 0x1004836
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100497f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
push esi
push esi
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], esi
call edi
mov ebx, 0x103
jmp 0x10048fb
cmp eax, esi
jne 0x1004907
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100365b
test eax, eax
jl 0x10048cf
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x220]
cmp dword [ebp - 0x210], eax
jb 0x10048b9
jne 0x10048cf
cmp dword [ebp - 0x214], ecx
jae 0x10048cf
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ecx
inc dword [ebp - 0x218]
push esi
push esi
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call edi
cmp eax, ebx
jne 0x1004875
xor edi, edi
jmp 0x1004915
jle 0x1004913
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
pop ebx
cmp dword [ebp - 0x224], esi
jne 0x1004925
mov edi, 0x80070490
jmp 0x100497f
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp - 0x234]
shr eax, 0x10
push eax
push 0xc51
push esi
call dword [0x10092c4]
movzx eax, word [ebp - 0x210]
push eax
push 0xc52
push esi
call dword [0x10092c4]
mov eax, dword [ebp - 0x214]
shr eax, 0x10
push eax
push 0xc53
push esi
call dword [0x10092c4]
movzx eax, word [ebp - 0x214]
push eax
push 0xc54
push esi
call dword [0x10092c4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006849
leave
ret 4

Function at 0x10049a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10049fe
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x10049fe
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1004a0a
cmp edi, dword [ebp + 8]
jb 0x1004a0a
cmp dword [ebp + 8], 2
jae 0x1004a0c
cmp eax, esi
jle 0x1004a0a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x100511a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x22c], 0xffffffff
or dword [ebp - 0x230], 0xffffffff
and dword [ebp - 0x238], 0
and dword [ebp - 0x234], 0
cmp dword [ebx + 0x20], 2
push esi
push edi
push 7
pop ecx
mov esi, 0x1001ae4
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x100176c
je 0x100516a
mov eax, 0x100175c
push eax
push dword [ebx + 0x2c]
lea eax, [ebp - 0x228]
push 0x1001ad4
push 0x104
push eax
call fcn.01004a72
mov edi, eax
xor esi, esi
add esp, 0x14
cmp edi, esi
jl 0x1005246
push esi
push 0x80
push 3
push esi
push 3
push 0x80100000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
jne 0x10051d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10051cf
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1005242
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10051bb
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
mov edx, eax
or edx, ecx
jne 0x10051fe
mov edi, 0x800703ee
jmp 0x1005246
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 2
push esi
push dword [ebp - 0x22c]
mov dword [ebx + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x230], eax
cmp eax, esi
je 0x10051bb
mov ecx, dword [ebp - 0x22c]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x1c], esi
jne 0x100523c
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x30]
jb 0x100523f
mov eax, dword [ebx + 0x30]
mov dword [ebx + 4], eax
cmp edi, esi
jge 0x1005257
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
call fcn.01003b15
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006849
leave
ret