joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001aa10
Capabilities:
Decode data using base64 via winapi
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001ab75
lea ecx, [esp + 0x20]
push ecx
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001ab64
cmp dword [esp + 0x24], esi
jg 0x1001ab64
mov eax, dword [esp + 0x20]
jl 0x1001aa75
cmp eax, 0xfffffffe
jae 0x1001ab64
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
inc eax
push eax
push 0x40
call ebp
mov edi, eax
cmp edi, esi
je 0x1001ab64
mov eax, dword [esp + 0x20]
push esi
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ab5d
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x20]
jne 0x1001ab5d
push esi
push esi
lea edx, [esp + 0x20]
push edx
push esi
push 1
push esi
mov dword [esp + 0x30], esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push edi
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001ab5d
push eax
push 0x40
call ebp
mov ebp, eax
test ebp, ebp
je 0x1001ab5d
push 0
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push 1
push 0
push edi
call esi
test eax, eax
je 0x1001ab56
mov ecx, dword [esp + 0x2c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ab56
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001ab4f
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x18]
jne 0x1001ab4f
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [esp + 0x17]
test bl, bl
jne 0x1001ab84
jmp 0x1001ab79
mov bl, byte [esp + 0x17]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret 4
Function at 0x1001ab90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMControlSet001Control
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov byte [0x101dec00], 0
call esi
test eax, eax
je 0x1001abe5
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControl
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x1001ac8c
push 0xc8
push 0
push 0x101dec01
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0xc7
call fcn.100d4cc0
mov ecx, dword [esp + 0x10]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101dec01
lea eax, [esp + 0x14]
push eax
push 0
push str.SatanKEY
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001ac69
push edi
lea edi, [esp + 0x14]
mov ecx, 0xc7
mov edx, 0x101dec01
call fcn.10004070
pop edi
test eax, eax
jl 0x1001ac62
mov eax, dword [esp + 0x10]
mov edx, 0xc7
sub edx, eax
lea ecx, [eax + 0x101dec01]
mov eax, str.r7nKp9Nwl5g6cSADDSADAAAAAAAA321sdaDA11_ga2__64_7TUqpodB__ivCwyetoSY_JMl__l889sdo1ak7_sADS21kv_I__JJKF__JK_Msad228K_____KKDS1
call fcn.100040d0
mov byte [0x101dec00], 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3c
push 0
push 0x101decca
call fcn.100d4cc0
add esp, 0xc
mov byte [0x101decc9], 0
mov eax, 0x101dec00
pop esi
add esp, 0x10
ret

Function at 0x1001aca0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
test ebp, ebp
je 0x1001ada5
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebp
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
cmp eax, 0x10
jle 0x1001ada5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push ebp
call edi
test eax, eax
je 0x1001ada5
push str..dbger
push ebp
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001ada5
push str._dbger_protonmail.com_
call esi
mov esi, eax
push ebp
add esi, esi
mov edi, str._dbger_protonmail.com_
call ebx
cmp esi, 4
jb 0x1001ad28
mov edi, edi
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x1001ada5
sub esi, 4
add edi, 4
add eax, 4
cmp esi, 4
jae 0x1001ad10
xor ebx, ebx
cmp esi, ebx
je 0x1001ad4e
mov dl, byte [edi]
cmp dl, byte [eax]
jne 0x1001ada5
cmp esi, 1
jbe 0x1001ad4e
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x1001ada5
cmp esi, 2
jbe 0x1001ad4e
mov dl, byte [edi + 2]
cmp dl, byte [eax + 2]
jne 0x1001ada5
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ad87
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
jl 0x1001ada5
jg 0x1001ad99
cmp dword [esp + 0x10], 0x91
jbe 0x1001ada5
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 4
Function at 0x1001b1d0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
cmp byte [0x101dec00], 0
push esi
mov esi, eax
je 0x1001b24d
test esi, esi
je 0x1001b24d
push str..satan
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001b24d
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b233
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x1001b24d
jg 0x1001b246
cmp dword [esp + 8], 0x3e8
jbe 0x1001b24d
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x1001b260
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x1001b30b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
cmp eax, 0x1c
jle 0x1001b30b
push str._sicck_protonmail.com_
call ebx
push eax
push str._sicck_protonmail.com_
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1001b30b
push str..sicck
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001b30b
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b2f0
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x1001b30b
jg 0x1001b303
cmp dword [esp + 8], 0xa1
jbe 0x1001b30b
mov al, 1
pop esi
pop ebx
add esp, 0xc
ret
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x1001beb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xd60
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0xd58], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x56c
lea eax, [esp + 0x25]
push ebx
push eax
mov edi, ecx
mov byte [esp + 0x2c], bl
call fcn.100d4cc0
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001c0cb
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
sub eax, 0x56d
push ebx
sbb ecx, ebx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
lea edx, [esp + 0x20]
push edx
push 0x56d
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov esi, dword [esp + 0x10]
jl 0x1001c0cb
jg 0x1001bf66
cmp esi, 0x56d
jbe 0x1001bfaf
mov dl, 0x5b
cmp byte [esp + 0x20], dl
jne 0x1001bfaf
mov cl, 0x5d
cmp byte [esp + 0x579], cl
jne 0x1001bfaf
cmp byte [esp + 0x57a], 0x3a
jne 0x1001bfaf
cmp byte [esp + 0x57b], dl
jne 0x1001bfaf
cmp byte [esp + 0x58c], cl
jne 0x1001bfaf
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd58]
xor ecx, esp
call fcn.100d0738
add esp, 0xd60
ret
cmp eax, ebx
jl 0x1001c0cb
jg 0x1001bfc5
cmp esi, 0x200
jbe 0x1001c0cb
mov eax, edi
mov ecx, 0x3e8
lea edx, [esp + 0x590]
call fcn.10003cf0
lea ecx, [esp + 0x590]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea edx, [esp + 0x590]
push edx
call edi
test eax, eax
je 0x1001c0cb
lea eax, [esp + 0x590]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
cmp eax, 0x11
jne 0x1001c033
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd58]
xor ecx, esp
call fcn.100d0738
add esp, 0xd60
ret
lea ecx, [esp + 0x590]
push ecx
call edi
push eax
call esi
cmp eax, 0x29
jne 0x1001c0cb
push str._evopro_protonmail.com_
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._evopro_protonmail.com_
lea edx, [esp + 0x598]
push edx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push eax
call ebx
test eax, eax
je 0x1001c0ae
push str._satan_pro_mail.ru_
call esi
push eax
push str._satan_pro_mail.ru_
lea eax, [esp + 0x598]
push eax
call edi
push eax
call ebx
test eax, eax
je 0x1001c0ae
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd58]
xor ecx, esp
call fcn.100d0738
add esp, 0xd60
ret
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd58]
xor ecx, esp
call fcn.100d0738
add esp, 0xd60
ret
mov ecx, dword [esp + 0xd64]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.100d0738
add esp, 0xd60
ret
Function at 0x1001d230
Capabilities:
Encrypt data using aes via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x14], eax
mov ebp, 1
mov dword [esp + 0x10], 0
call fcn.100d0bf0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
lea esi, [ebp + 0x13]
call fcn.100d0c02
cdq
mov ecx, 0xa
idiv ecx
push edx
lea edx, [esp + 0x18]
push edx
mov eax, edx
push str._s_d
push eax
call edi
add esp, 0x10
sub esi, ebp
jne 0x1001d283
lea ecx, [esp + 0xc]
push ecx
push esi
push esi
mov esi, dword [esp + 0x40]
push 0x800c
push esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1001d30c
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001d2d0
sub eax, edx
push 0
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1001d30c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push 1
push edx
push 0x6610
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1001d30e
xor ebp, ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1001d31d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.100d0738
add esp, 0x24
ret
Function at 0x1001d920
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x80014
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x80010], eax
push ebp
push 0x1012a7e8
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov ebp, eax
lea eax, [esp + 8]
push eax
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
test eax, eax
jne 0x1001d974
xor al, al
pop ebp
mov ecx, dword [esp + 0x80010]
xor ecx, esp
call fcn.100d0738
add esp, 0x80014
ret
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x1001da71
mov ebx, dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
lea esp, [esp]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x7ffff
lea eax, [esp + 0x2c]
push eax
push 0
push 9
push ebp
call ebx
test eax, eax
jne 0x1001d9be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x1001da8c
mov edx, dword [esp + 0x10]
cmp edx, 0x38
jb 0x1001da8c
lea esi, [esp + 0x20]
lea ecx, [esp + edx - 0x18]
mov eax, esi
cmp eax, ecx
ja 0x1001da67
mov eax, dword [0x101dd34c]
mov ecx, dword [0x101dd350]
jmp 0x1001d9f0
cmp dword [esi + 0x14], 0x80001775
jne 0x1001da10
cmp eax, 0x400
jae 0x1001da10
mov ebp, dword [esi + 0xc]
mov dword [eax*4 + 0x101d8c18], ebp
inc eax
mov dword [0x101dd34c], eax
cmp dword [esi + 0x14], 0x8000177d
jne 0x1001da58
cmp ecx, 0x400
jae 0x1001da58
mov edx, dword [esi + 0xc]
mov dword [ecx*8 + 0x101d6c18], edx
mov eax, dword [esi + 0x24]
lea ecx, [eax + esi + 8]
push ecx
call fcn.100d3029
mov ecx, dword [0x101dd350]
mov edx, dword [esp + 0x14]
mov dword [ecx*8 + 0x101d6c1c], eax
mov eax, dword [0x101dd34c]
add esp, 4
inc ecx
mov dword [0x101dd350], ecx
add esi, dword [esi]
lea ebp, [esp + edx - 0x18]
inc edi
cmp esi, ebp
jbe 0x1001d9f0
mov ebp, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x1001d990
mov al, 1
mov ecx, dword [esp + 0x80020]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.100d0738
add esp, 0x80014
ret
xor al, al
jmp 0x1001da73

Function at 0x1001da90
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
cmp byte [0x101ded5a], 0
push esi
push edi
mov esi, eax
je 0x1001db15
test esi, esi
je 0x1001db15
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x1001db15
push str..THANATOS
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001db15
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001dafd
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x1001db15
jg 0x1001db0d
cmp dword [esp + 8], 0
jbe 0x1001db15
mov al, 1
pop edi
pop esi
add esp, 0xc
ret
pop edi
xor al, al
pop esi
add esp, 0xc
ret
Function at 0x1001db40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREWOW6432NodeMicrosoft
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
mov byte [0x101e0ae0], bl
call esi
test eax, eax
je 0x1001dba8
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoft
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x1001dc42
push 0x7f
lea edx, [esp + 0x1d]
push ebx
push edx
mov byte [esp + 0x24], bl
call fcn.100d4cc0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x1012a840
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001dc37
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x2e], bl
call fcn.100d338e
fmul qword [0x101306b0]
fdiv qword [0x101306a8]
fadd qword [0x101306a0]
fsub qword [0x10130698]
call fcn.100d6226
push edx
push eax
push str._I64d
push 0x101e06e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov byte [0x101e0ae0], 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x9c]
pop esi
pop ebx
xor ecx, esp
mov eax, 0x101e06e0
call fcn.100d0738
mov esp, ebp
pop ebp
ret

Function at 0x1001dc60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1001dd39
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x1001dd39
push str..Wood
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001dd39
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001dd02
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 8
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
jl 0x1001dd39
jg 0x1001dd11
cmp dword [esp + 0x10], 0xc
jbe 0x1001dd39
push str.Termite
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1001dd39
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100d0738
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.100d0738
add esp, 0x28
ret
Function at 0x1001dd50
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x28], ebp
mov byte [esp + 0x12], bl
cmp eax, ebx
je 0x1001df3d
cmp ebp, ebx
je 0x1001df3d
cmp byte [0x101e0ae0], bl
je 0x1001df3d
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x1001df1d
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
push ebx
push 8
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x1001df10
push ebx
lea ecx, [esp + 0x18]
push ecx
push 8
lea edx, [esp + 0x38]
push edx
push edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x27], bl
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001deec
cmp dword [esp + 0x14], 8
jne 0x1001deec
push 0x101e06e0
push 8
lea eax, [esp + 0x34]
push eax
call fcn.1006a453
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp eax, ebx
jbe 0x1001de44
mov byte [esp + 0x13], 1
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x3c]
push edx
push esi
call ebp
cmp dword [esp + 0x24], ebx
je 0x1001dee8
push ebx
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x38]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001dee8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1001dee8
cmp eax, 8
jne 0x1001deb8
add dword [esp + 0x18], 0xfffffff8
push 0x101e06e0
push eax
adc dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x34]
push edx
call fcn.1006a453
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
push esi
call ebp
jmp 0x1001de64
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ebp, dword [esp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100d0738
add esp, 0x34
ret 8
mov ebp, dword [esp + 0x24]
push ebx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, byte [esp + 0x13]
push esi
mov byte [esp + 0x16], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x12], bl
jne 0x1001df24
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100d0738
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.100d0738
add esp, 0x34
ret 8
Function at 0x1001ea80
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1001eba3
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
cmp word [eax], bx
je 0x1001eba3
push str..xdata
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001eba3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001eba3
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001eb9c
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jl 0x1001eb9c
mov eax, dword [esp + 0x10]
jg 0x1001eb1d
cmp eax, 0x108
jbe 0x1001eb9c
push ebx
add eax, 0xfffffef8
push ebx
adc ecx, 0xffffffff
push ecx
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001eb9c
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 8
lea edx, [esp + 0x28]
xor eax, eax
push edx
push esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001eb9c
cmp dword [esp + 0x18], 8
jne 0x1001eb9c
mov eax, 8
xor ecx, ecx
lea esp, [esp]
mov edx, dword [esp + ecx + 0x1c]
cmp edx, dword [ecx + 0x1012acc4]
jne 0x1001eb9c
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1001eb80
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x20
ret