joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e24
Capabilities:
Check if file exists
Copy file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x624], esi
mov dword [ebp - 0x620], edi
cmp word [esi], di
je 0x100cdf1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
xor ecx, ebp
pop esi
call fcn.0100235f
leave
ret
lea eax, [ebp - 0x61c]
push eax
call fcn.0100ce67
cmp eax, edi
mov dword [ebp - 0x620], eax
jl 0x1004e54
push ebx
mov ebx, 0x100ce48
push ebx
lea eax, [ebp - 0x61c]
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
call esi
test eax, eax
je 0x101eedc
push dword [ebp - 0x624]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101dd26
pop ebx
jmp 0x1004e54
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x109831c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101ee91
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x101eedc
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x101eedc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
test eax, eax
je 0x101ee48
push dword [ebp - 0x624]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x101ee91
mov ecx, dword [ebp - 0x624]
push 0x100adf0
push 0x100adcc
push edi
call fcn.0100cc49
jmp 0x100ce3e
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101ee91
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 0x628]
push eax
push 2
lea eax, [ebp - 0x630]
push eax
push ebx
mov dword [ebp - 0x630], 0xfeff
call esi
test eax, eax
jne 0x101eeb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x101eedc
jle 0x101eea7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x620], eax
jmp 0x100ce3e
push edi
lea eax, [ebp - 0x628]
push eax
push 2
lea eax, [ebp - 0x62c]
push eax
push ebx
mov dword [ebp - 0x62c], edi
call esi
test eax, eax
je 0x101ee91
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101dda5
mov dword [ebp - 0x620], 0x80004005
jmp 0x100ce3e
Function at 0x1005550
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x2c], edi
je 0x1005582
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x30]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x1005582
mov eax, edi
pop edi
pop esi
leave
ret 4
lea eax, [esi + 0x10]
push ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.01006491
push dword [ebp + 8]
lea ebx, [esi + 0x30]
push 0x104
push ebx
call fcn.010022e3
mov edi, eax
test edi, edi
jl 0x100565f
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x101ee0d
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005679
mov ebx, dword [ebp - 0x1c]
add ebx, 2
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 8], eax
test eax, eax
je 0x1005679
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100566e
cmp dword [ebp - 8], 2
jb 0x100566e
mov eax, dword [ebp + 8]
or dword [ebp - 0xc], 0xffffffff
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
mov byte [eax + ebx - 2], 0
mov byte [eax + ebx - 1], 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x101eda9
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
test edi, edi
jl 0x1005656
push dword [esi + 0x2c]
mov ecx, esi
call fcn.01005685
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
jmp 0x100557a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101edf6
mov edi, 0x8007000e
jmp 0x1005656
lea eax, [ebx + ebx]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x101ede3
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHAnsiToUnicode]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
js 0x101ede8
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x2c], eax
jmp 0x101ede8
mov edi, 0x8007000e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1005646
test eax, eax
jle 0x1005654
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005654
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101ee21
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100565f
Function at 0x1009821
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
mov esi, ecx
inc dword [esi + 0x2c]
push edi
lea edi, [esi + 8]
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x100984e
push edi
call ebx
test byte [esi + 0x18], 2
jne 0x102035c
lea eax, [ebp - 0x18]
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fldz
cmp dword [ebp - 0xc], 0
fstp dword [ebp - 4]
jl 0x100988d
jg 0x1009871
cmp dword [ebp - 0x10], 0
jbe 0x100988d
mov eax, dword [ebp - 0x18]
sub eax, dword [edi]
mov ecx, dword [ebp - 0x14]
sbb ecx, dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
fild qword [ebp - 0x10]
fdivp st(1)
fstp dword [ebp - 4]
fld dword [ebp - 4]
mov eax, dword [esi]
fdiv dword [esi + 0x10]
push ecx
mov ecx, esi
fstp dword [ebp - 4]
fld dword [ebp - 4]
fstp dword [esp]
call dword [eax + 4]
fld1
fcomp dword [ebp - 4]
fnstsw ax
test ah, 0x41
jnp 0x10098ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x10098c5
push 1
push 1
mov ecx, esi
call fcn.010098d6
mov ecx, esi
call fcn.01009a3f
pop edi
pop esi
pop ebx
leave
ret
push dword [esi + 0x14]
call fcn.01006733
mov ecx, 0x40000000
test ecx, eax
je 0x100984e
push ecx
push ecx
push dword [esi + 0x14]
call fcn.0100a06e
mov byte [esi + 0x28], 1
jmp 0x100984e

Function at 0x100afb0
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x100aff0
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x101e2b7
cmp eax, 0xb7
je 0x101e2d8
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
cmp eax, edi
je 0x101e2ce
jle 0x101e2c7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100afe7
mov edi, 0x80004005
jmp 0x100afe7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x100afe2
Function at 0x100b311
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
add eax, eax
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov dword [ebp + 0x18], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 4], ebx
mov word [esi], ax
cmp dword [ebp + 0xc], ebx
je 0x101f666
lea eax, [ebp - 4]
cmp byte [ebp + 0x1c], bl
jne 0x101f64a
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x101f66c
jle 0x100b36a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x101f6b3
xor eax, eax
cmp edi, ebx
pop edi
pop esi
setge al
pop ebx
leave
ret 0x18
jg 0x100b360
jmp 0x100b36a
push ebx
push eax
push ebx
push 0x20007
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
jmp 0x100b356
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp + 0x1c]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100b385
cmp dword [ebp + 0x1c], 1
je 0x101f69a
mov edi, 0x80004005
jmp 0x100b36c
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jbe 0x100b36c
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
jmp 0x100b36c
cmp eax, dword [ebp + 8]
je 0x100b377
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100b377

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x1098200
call fcn.0100cc03
mov dword [ebp - 4], eax
test eax, eax
jl 0x100bf98
cmp dword [ebp + 8], 0
jne 0x101ef57
push ebx
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.01004e24
mov dword [ebp - 4], eax
test eax, eax
jl 0x100bf97
push edi
mov ecx, ebx
call fcn.0100c879
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100bf5f
test al, 1
jne 0x101ef67
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x240], eax
pop edi
cmp eax, 0xffffffff
je 0x101ef77
mov ecx, ebx
call fcn.0100bfa5
test al, al
jne 0x101efa1
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
push dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.01031c71
jmp 0x100bf2f
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x100bf5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101ef95
jle 0x101ef8d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x100bf97
mov dword [ebp - 4], 0x80004005
jmp 0x100bf97
mov byte [0x10981fc], 1
jmp 0x100bf97
Function at 0x100c1b5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.0100c228
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x100c213
cmp dword [esi + 0xc], edi
jne 0x101f40d
cmp dword [esi + 0x14], edi
jne 0x100c1eb
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
cmp eax, edi
je 0x100c21c
cmp dword [esi + 8], edi
jne 0x100c207
push edi
push edi
push esi
push 0x1006519
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
cmp eax, edi
je 0x100c21c
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
mov ebx, 0x80070006
jmp 0x100c213
mov ebx, 0x800704df
jmp 0x100c213
Function at 0x100c45a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 4], esi
call fcn.0100cab1
mov ecx, esi
mov byte [esi + 0xb], al
call fcn.0100c507
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
jle 0x100c4d5
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push ebx
push edi
or ebx, 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ebx
push 0x100c4e8
push ebx
lea edi, [eax + ecx*4]
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
jne 0x101dfa8
mov eax, dword [ebp - 4]
mov byte [eax], 1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x100c4a1
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
leave
ret
push ebx
push 0x101e060
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101e5e8
push ebx
push 0x101e088
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101e5f4
push ebx
push 0x101e0ac
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101e600
push ebx
push 0x101e0d8
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101e60c
push ebx
push 0x101e0f8
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101e618
push ebx
push 0x101e118
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101e624
push ebx
push 0x101e134
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
jne 0x101e630
mov eax, dword [ebp - 4]
mov byte [eax + 8], 1
jmp 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 1], 1
jmp 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 2], 1
jmp 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 3], 1
jmp 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
jmp 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 5], 1
jmp 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 6], 1
jmp 0x100c4c8
push ebx
push 0x101e678
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
jne 0x101e650
mov eax, dword [ebp - 4]
mov byte [eax + 9], 1
jmp 0x100c4c8
push ebx
push 0x101e694
push ebx
push dword [edi]
push 1
push 0x7f
call esi
cmp eax, 2
jne 0x100c4c8
mov eax, dword [ebp - 4]
mov byte [eax + 0xa], 1
jmp 0x100c4c8
Function at 0x100c7c9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
xor bl, bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x101ddc0
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x14
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp + 0xc]
mov dword [ebp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x100c7f6
jmp 0x100c7f1

Function at 0x100c963
Capabilities:
Check if file exists
Get common file path
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x103
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
jbe 0x1024393
push esi
push edi
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0100235f
leave
ret 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100c9a9
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.010022e3
jmp 0x100c9c0
Function at 0x1010208
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x4000
push esi
mov edi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.01002259
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10245e8
mov ecx, edi
call fcn.01014f08
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x10102a1
push ebx
push 1
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10245f4
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1024600
cmp dword [ebp - 0xc], ebx
setne al
cmp al, bl
je 0x10102a1
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1010264
jmp 0x1024600
push dword [ebp - 0x10]
call fcn.01002277
pop ecx
cmp dword [ebp - 8], ebx
je 0x10102b8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
mov dword [ebp - 4], 0x8007000e
jmp 0x10102b8
mov dword [ebp - 4], 0x80070006
jmp 0x10102a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x102461e
jle 0x1024616
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x10102a1
mov dword [ebp - 4], 0x80004005
jmp 0x10102a1

Function at 0x1012a55
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10980dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x458]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x45c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x100e39c
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01017d45
test eax, eax
jl 0x1012acc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1012ae9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100235f
leave
ret 4
test al, al
je 0x1012afe
jmp 0x1012b04
test byte [ebp - 0x45c], 0x10
je 0x1012b04
cmp dword [ebx + 0xe0], edi
ja 0x10219f1
inc dword [ebp - 0x460]
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1012ae9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1012acc
lea eax, [ebp - 0x430]
push eax
mov ecx, ebx
call fcn.0104cb37
jmp 0x1012ae3
Function at 0x1014af4
Capabilities:
Enumerate files on windows

Disassembly:
test byte [ebp - 0x670], 0x10
je 0x1014acf
test byte [ebp - 0x670], 2
jne 0x1014acf
cmp byte [ebp + 0x14], bl
jne 0x1021a92
push 0x74
call fcn.01002259
pop ecx
mov ecx, eax
mov dword [ebp - 0xa98], ecx
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1014bf1
call fcn.0100ed57
mov esi, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0xa98], esi
cmp esi, ebx
je 0x1021ad3
push ebx
lea eax, [ebp - 0x644]
push eax
push dword [ebp - 0xaa8]
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.01017d45
cmp eax, ebx
mov dword [ebp - 0xa94], eax
jl 0x1021abb
mov ecx, dword [ebp - 0xaa0]
push dword [ecx + 0x50]
mov eax, dword [esi]
lea ecx, [ebp - 0x420]
push ecx
push dword [ebp - 0xaa4]
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
jl 0x1021aa9
push 0x420
lea eax, [ebp - 0xa90]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0xa88], eax
push ebx
lea eax, [ebp - 0xa90]
push eax
mov dword [ebp - 0xa90], 0x420
mov dword [ebp - 0xa8c], 0x8401
call fcn.01003bce
mov ecx, dword [ebp - 0xaac]
lea eax, [ebp - 0x878]
push eax
call fcn.0100deb7
cmp eax, ebx
mov dword [ebp - 0xa94], eax
jl 0x1021abb
push 2
push ebx
push dword [esi + 4]
call fcn.0100a06e
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0xa9c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10149c0
jmp 0x1014ba8
push 0xab0
mov eax, 0x108b575
call fcn.010023ba
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xaa4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x24c
mov dword [ebp - 0xaac], eax
lea eax, [ebp - 0x66c]
push ebx
push eax
mov dword [ebp - 0xaa0], ecx
mov dword [ebp - 0xaa8], esi
mov dword [ebp - 0x670], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xabc], ebx
mov dword [ebp - 0xab8], ebx
mov dword [ebp - 0xab4], ebx
mov dword [ebp - 0xab0], ebx
push ebx
push 0x100e39c
push esi
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xa98], ebx
call fcn.01017d45
cmp eax, ebx
mov dword [ebp - 0xa94], eax
jl 0x1014bbd
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa9c], eax
cmp eax, 0xffffffff
jne 0x10149c0
cmp dword [ebp - 0xa94], ebx
jl 0x1021abb
cmp dword [ebp - 0xa9c], 0xffffffff
jne 0x1014bd6
lea ecx, [ebp - 0xabc]
call fcn.01002487
mov eax, dword [ebp - 0xa94]
call fcn.010024a1
ret 0x10
push dword [ebp - 0xa9c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1014bbd
test al, al
je 0x10149e3
jmp 0x1014acf
xor esi, esi
jmp 0x1014a06
mov ecx, dword [ebp - 0xaa0]
lea eax, [ebp - 0x644]
push eax
call fcn.0104cb37
jmp 0x1014be4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 0xa98], ebx
jmp 0x1014acf
mov ecx, dword [ebp - 0xa98]
cmp ecx, ebx
je 0x1014bb4
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1014bb4
mov dword [ebp - 0xa94], 0x8007000e
jmp 0x1021abb
Function at 0x1014f08
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push ebx
push ebx
push esi
call edi
cmp eax, ebx
je 0x102458b
mov ecx, dword [ebp - 8]
mov edi, ebx
jmp 0x1014f20
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ecx + 0x18]
xor edi, edi
mov dword [ebp - 8], ecx
cmp dword [esi], ebx
je 0x1014ee2
lea eax, [ecx + 0x1c]
cmp dword [eax], ebx
je 0x1014f2e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push eax
push ebx
push ebx
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1014f27
jmp 0x10245ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10245ac
push 0xf0000008
push 1
push ebx
push ebx
push esi
call edi
cmp eax, ebx
jne 0x1014efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x10245c9
jle 0x10245c2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1014f27
mov edi, 0x80004005
jmp 0x1014f27

Function at 0x1017562
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x101f6c8
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
cmp eax, esi
jne 0x101f6c8
cmp dword [ebp - 4], esi
je 0x10175be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
pop edi
setge al
pop esi
leave
ret 0x10
jle 0x101f6d4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10175b0

Function at 0x101ae97
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x101aed4
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
cmp eax, esi
je 0x101aee2
jle 0x101aee0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp dword [ebp - 4], esi
je 0x101aef0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
pop edi
setge al
pop esi
leave
ret 0xc