joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003535
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1003dd60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.100011b4
mov edi, eax
cmp edi, esi
je 0x10003595
lea ecx, [ebp - 0x208]
call fcn.1000119d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b05b
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100035b3
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.10003535
cmp eax, esi
jne 0x100035fb
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x1000359d
lea ecx, [ebp - 0x208]
call fcn.1000119d
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.1000119d
mov eax, esi
jmp 0x10003584
Function at 0x10004fc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002e07a
call fcn.1001b780
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [0x1003dd34]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x10005031
call fcn.10002e27
mov esi, eax
jmp 0x1000513a
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10005054
call fcn.10002e27
jmp 0x1000512c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x1000504a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x100050b0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005096
lea ecx, [ebp - 0x418]
call fcn.100034e3
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.1000177e
mov eax, esi
call fcn.1001b7dc
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10003b3a
mov dword [ebp - 4], 1
jmp 0x100050de
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x100050ef
mov esi, 0x8007000e
jmp 0x1000512e
call dword [0x1003dd34]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1000504a
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10004bec
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000509b
lea ecx, [ebp - 0x418]
call fcn.100034e3
jmp 0x1000509b

Function at 0x10005e27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005e8f
cmp dword [ebp + 0x10], 1
je 0x10005e68
cmp dword [ebp + 0x10], 2
je 0x10005e68
push 0xd
pop eax
jmp 0x10005e8f
test edi, edi
mov eax, dword [ebp - 4]
je 0x10005e89
test eax, eax
je 0x10005e85
test al, 1
jne 0x10005e63
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10005e89
jmp 0x10005e63
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10006119
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1003dd60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x43
lea eax, [ebp - 0x47]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x48], bl
call fcn.1001ade0
add esp, 0xc
push 1
mov ecx, esi
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
call fcn.100060b0
mov dword [ebp - 0x4c], 2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x1000619b
cmp dword [esi + 4], ebx
jne 0x1000619b
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 4], eax
dec dword [ebp - 0x4c]
jne 0x1000615c
cmp edi, ebx
je 0x100061d4
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x48]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
cmp eax, ebx
mov dword [ebp - 0x4c], eax
je 0x100061cc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x100061c7
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x4c], ebx
jne 0x100061d4
push ebx
mov ecx, esi
call fcn.100060b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b05b
leave
ret
Function at 0x10006a0d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x78]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x10006a28
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [esi + 0xa0]
mov eax, dword [edi]
cmp eax, ebx
je 0x10006a3e
push eax
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [edi], ebx
mov eax, dword [esi + 0x74]
cmp eax, ebx
mov byte [esi + 0x94], bl
je 0x10006a52
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x8c]
cmp ecx, ebx
je 0x10006a61
call fcn.1000c6e5
mov eax, dword [esi + 0x78]
cmp eax, ebx
mov edi, dword [esi + 0x7c]
je 0x10006a72
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
mov ebx, 0x3e8
je 0x10006ad9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x10006aae
cmp dword [ebp + 8], 0x103
jne 0x10006aae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x10006abe
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x7c], 0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x10006ad9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0xfc]
push ebx
call fcn.100119f0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x10006b29
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
mov eax, dword [0x1003dd60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 0x40e
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x412]
push esi
push eax
mov byte [ebp - 0x665], 0
mov word [ebp - 0x414], si
call fcn.1001ade0
lea eax, [ebp - 0x414]
push eax
push 0x208
call fcn.10011220
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
mov dword [ebp - 0x670], eax
jle 0x10006d2c
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x670]
lea eax, [ebp + eax*2 - 0x414]
cmp word [eax - 2], 0x5c
je 0x10006bc3
inc dword [ebp - 0x670]
mov word [eax], 0x5c
push ebx
mov dword [ebp - 0x66c], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x698], str.rqt.tmp
mov dword [ebp - 0x694], str.rsp.tmp
mov dword [ebp - 0x690], str.dlp.tmp
mov dword [ebp - 0x68c], str.ipc.tmp
push edi
cmp byte [ebp - 0x665], 0
jne 0x10006d2a
mov eax, dword [ebp - 0x66c]
mov ebx, dword [ebp - 0x670]
push dword [ebp + eax*4 - 0x698]
lea ebx, [ebp + ebx*2 - 0x414]
push ebx
call esi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x674], eax
je 0x10006d17
push 8
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.1001c3b0
mov ecx, dword [ebp - 0x684]
add esp, 0xc
cmp ecx, dword [ebp - 0x67c]
jb 0x10006cca
mov eax, dword [ebp - 0x688]
ja 0x10006c7c
cmp eax, dword [ebp - 0x680]
jbe 0x10006cca
sub eax, dword [ebp - 0x680]
sbb ecx, dword [ebp - 0x67c]
cmp ecx, 0x10
jb 0x10006cca
ja 0x10006c96
cmp eax, 0xc388d000
jbe 0x10006cca
lea eax, [ebp - 0x638]
push eax
push ebx
call esi
xor eax, eax
push eax
push 0x4000000
push 3
push eax
push eax
push 0xc0010000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10006cca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x678], 0
mov edi, eax
je 0x10006d03
push 0
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10006d03
mov byte [ebp - 0x665], 1
xor edi, edi
test edi, edi
jne 0x10006c46
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp - 0x66c]
cmp dword [ebp - 0x66c], 4
jb 0x10006bf9
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001b05b
leave
ret
Function at 0x10006d39
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x1003dd60]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x61c], 0
push esi
push 0x616
lea eax, [ebp - 0x61a]
push 0
push eax
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
mov esi, 0x30c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.1000150e
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001b05b
leave
ret
Function at 0x1000921f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
xor ebx, ebx
cmp eax, ebx
je 0x10009268
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10009262
cmp dword [ebp - 4], 0x103
je 0x10009268
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x90], ebx
jmp 0x10009268
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.10008c80
test eax, eax
jl 0x100092b6
cmp byte [esi + 0x9c], bl
je 0x100092b6
cmp dword [esi + 0x90], ebx
mov byte [esi + 0x94], 1
jne 0x100092b4
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x1000684d
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.1001c2fb
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x90], eax
jne 0x100092b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100092b6
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x1000a3ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xfc]
push esi
push 0x10009d42
xor ebx, ebx
call fcn.10016350
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1000a3e5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x7c], ebx
jne 0x1000a42a
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x10007525
push 0
push 0
call fcn.1001c2fb
add esp, 0x18
test eax, eax
mov dword [esi + 0x7c], eax
je 0x1000a414
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x1000a42a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000a428
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov esi, dword [esi + 0x78]
test esi, esi
je 0x1000a438
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x1000aa9b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x490], ebx
push edi
mov dword [ebp - 4], 1
jne 0x1000ab7b
push str.LiteUnzip.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x490], eax
je 0x1000ab64
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UnzipOpenFileW
push eax
call edi
push str.UnzipGetItemW
push dword [esi + 0x490]
mov dword [esi + 0x494], eax
call edi
push str.UnzipItemToFileW
push dword [esi + 0x490]
mov dword [esi + 0x498], eax
call edi
push str.UnzipClose
push dword [esi + 0x490]
mov dword [esi + 0x49c], eax
call edi
push str.UnzipFormatMessageW
push dword [esi + 0x490]
mov dword [esi + 0x4a0], eax
call edi
cmp dword [esi + 0x494], ebx
mov dword [esi + 0x4a4], eax
je 0x1000ab5b
cmp dword [esi + 0x498], ebx
je 0x1000ab5b
cmp dword [esi + 0x49c], ebx
je 0x1000ab5b
cmp dword [esi + 0x4a0], ebx
je 0x1000ab5b
cmp eax, ebx
je 0x1000ab5b
mov dword [ebp - 4], ebx
jmp 0x1000ab7b
mov dword [ebp - 4], 0x80004003
jmp 0x1000ab7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000ab78
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [esi + 0x60], ebx
jne 0x1000aba9
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x1000aba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000aba6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
lea edi, [esi + 0x64]
cmp word [edi], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jne 0x1000abe4
push 0x104
push edi
push 0x10000000
call ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.CatVerDB.dic
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [edi], 0
jne 0x1000abe4
mov dword [ebp - 4], 0x80004005
add esi, 0x26e
cmp word [esi], 0
jne 0x1000ac1d
push 0x104
push esi
push 0x10000000
call ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.CatDB.dic
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [esi], 0
jne 0x1000ac1d
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b0be
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push edi
mov edi, ecx
and dword [edi], 0
test eax, eax
je 0x1000b191
cmp word [eax], 0
je 0x1000b191
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
lea ebx, [eax + eax]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [edi], eax
je 0x1000b18f
push 0
lea ecx, [ebp - 8]
call fcn.100021a7
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1000b128
mov dword [ebp - 4], 0x1003170c
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0xc], eax
push 0xa
pop esi
jbe 0x1000b179
cmp esi, dword [ebp - 0x10]
jb 0x1000b141
xor esi, esi
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + esi*2]
cmp dx, cx
jne 0x1000b159
movzx ecx, dx
jmp 0x1000b15e
xor ecx, edx
movzx ecx, cx
test cx, cx
je 0x1000b169
cmp cx, 0x5c
jne 0x1000b16c
push 0x2a
pop ecx
mov edx, dword [edi]
inc esi
mov word [edx + eax*2], cx
inc eax
cmp eax, dword [ebp - 0xc]
jb 0x1000b13a
mov eax, dword [edi]
and word [ebx + eax], 0
cmp dword [ebp - 8], 0
je 0x1000b18f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret 4
Function at 0x1000b1c3
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1003dd60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x494]
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x1000b31a
cmp dword [esi + 0x498], edi
je 0x1000b31a
cmp dword [esi + 0x49c], edi
je 0x1000b31a
cmp dword [esi + 0x4a0], edi
je 0x1000b31a
cmp dword [esi + 0x4a4], edi
je 0x1000b31a
push edi
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x440], edi
call eax
test eax, eax
jne 0x1000b338
push 0x22c
lea eax, [ebp - 0x438]
push edi
push eax
call fcn.1001ade0
or dword [ebp - 0x43c], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
call dword [esi + 0x498]
cmp dword [ebp - 0x43c], edi
jbe 0x1000b32c
cmp eax, edi
jne 0x1000b32c
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
mov dword [ebp - 0x43c], edi
call dword [esi + 0x498]
test eax, eax
jne 0x1000b32c
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x10033a08
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x440]
call dword [esi + 0x49c]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x1000b326
mov ecx, ebx
call fcn.10001b6a
mov dword [ebp - 0x444], edi
jmp 0x1000b32c
mov dword [ebp - 0x444], 0x80004003
jmp 0x1000b338
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x440]
call dword [esi + 0x4a0]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x444]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b05b
leave
ret 8
Function at 0x1000bdfb
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x1002eafe
call fcn.1001b6e1
mov esi, ecx
xor ebx, ebx
push ebx
call fcn.1000bb43
push dword [ebp + 8]
mov ecx, esi
call fcn.1000a567
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x1000bf77
push 0x10
call fcn.1001b944
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1000be46
push dword [ebp + 8]
mov ecx, eax
call fcn.10010a80
mov edi, eax
jmp 0x1000be48
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1000be73
mov ecx, edi
call fcn.1000f8d0
test al, al
jne 0x1000be7a
push 1
mov ecx, edi
mov dword [ebp - 0x10], 0x800700a7
call fcn.1000a519
mov dword [ebp - 0x14], ebx
jmp 0x1000be7a
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], ebx
jl 0x1000bf3f
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000bebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000beb8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jl 0x1000bf30
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x1000bee9
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], ebx
jl 0x1000bf30
mov edi, dword [esi + 0x10]
add edi, dword [esi + 0xc]
push ebx
lea ecx, [ebp - 0x18]
push ecx
push dword [esi + 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000bf19
mov eax, dword [ebp - 0x18]
xor edx, edx
div edi
mov dword [esi + 8], eax
jmp 0x1000bf30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000bf2d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0xffffffff
je 0x1000bf3f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1000bf55
call fcn.1000f920
mov ecx, dword [ebp - 0x14]
push 1
call fcn.1000a519
cmp dword [ebp - 0x10], ebx
jl 0x1000bf77
cmp byte [ebp + 0xc], bl
je 0x1000bf7f
mov ecx, dword [esi]
cmp ecx, ebx
je 0x1000bf7f
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000bf7f
push eax
push ecx
mov ecx, esi
call fcn.1000ad7c
jmp 0x1000bf7f
push ebx
mov ecx, esi
call fcn.1000bb43
mov eax, dword [ebp - 0x10]
call fcn.1001b7b9
ret 8
Function at 0x1000c265
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x1002eb48
call fcn.1001b6e1
mov esi, ecx
xor ebx, ebx
push ebx
call fcn.1000bb43
push dword [ebp + 8]
mov ecx, esi
call fcn.1000a567
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x1000c3e1
push 0x10
call fcn.1001b944
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1000c2b0
push dword [ebp + 8]
mov ecx, eax
call fcn.10010a80
mov edi, eax
jmp 0x1000c2b2
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1000c2dd
mov ecx, edi
call fcn.1000f8d0
test al, al
jne 0x1000c2e4
push 1
mov ecx, edi
mov dword [ebp - 0x10], 0x800700a7
call fcn.1000a519
mov dword [ebp - 0x14], ebx
jmp 0x1000c2e4
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], ebx
jl 0x1000c3a9
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000c325
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000c322
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jl 0x1000c39a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x1000c353
mov dword [ebp - 0x10], 0x8007000e
cmp dword [ebp - 0x10], ebx
jl 0x1000c39a
mov edi, dword [esi + 0x10]
add edi, dword [esi + 0xc]
push ebx
lea ecx, [ebp - 0x18]
push ecx
push dword [esi + 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c383
mov eax, dword [ebp - 0x18]
xor edx, edx
div edi
mov dword [esi + 8], eax
jmp 0x1000c39a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000c397
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0xffffffff
je 0x1000c3a9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1000c3bf
call fcn.1000f920
mov ecx, dword [ebp - 0x14]
push 1
call fcn.1000a519
cmp dword [ebp - 0x10], ebx
jl 0x1000c3e1
cmp byte [ebp + 0xc], bl
je 0x1000c3e9
mov ecx, dword [esi]
cmp ecx, ebx
je 0x1000c3e9
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000c3e9
push eax
push ecx
mov ecx, esi
call fcn.1000ae1e
jmp 0x1000c3e9
push ebx
mov ecx, esi
call fcn.1000bb43
mov eax, dword [ebp - 0x10]
call fcn.1001b7b9
ret 8
Function at 0x1000c6e5
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
push edi
xor edi, edi
cmp eax, edi
je 0x1000c6fa
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x488]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000c739
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000c72b
push 0xffffffffffffffff
push dword [esi + 0x488]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x488]
call ebx
mov dword [esi + 0x488], edi
mov ecx, esi
call fcn.1000bc50
mov eax, dword [esi + 0x490]
cmp eax, edi
je 0x1000c775
push eax
mov dword [esi + 0x494], edi
mov dword [esi + 0x498], edi
mov dword [esi + 0x49c], edi
mov dword [esi + 0x4a0], edi
mov dword [esi + 0x4a4], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x490], edi
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x1000c782
push eax
call ebx
mov dword [esi + 0x60], edi
pop edi
pop esi
pop ebx
ret