joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005bc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, 0x10001368
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x1000135c
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov edi, 0x1000135c
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x10001240
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10001368
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x20]
push 0x105
push ecx
mov dword [esp + 0x18], 0
call eax
push 0x10001344
lea edx, [esp + 0x24]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x20]
push eax
push ecx
call esi
push 0x10001300
lea edx, [esp + 0x24]
push edx
call esi
push 0
lea eax, [esp + 0x12c]
push 0x23
push eax
push 0
call dword [0x100030dc]
lea ecx, [esp + 0x128]
push 0x100012d0
push ecx
lea edx, [esp + 0x130]
push 0x100012c8
push edx
call dword [fcn.10003174]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x138]
push 0x1000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebx, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0x14], 2
mov edx, dword [ebp]
mov ecx, 0x400
xor eax, eax
mov edi, ebx
push edx
push 0x1000
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x10005d44
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x10005d2b
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x10005d08
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x10006090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x130
push esi
mov esi, ecx
mov dl, 0x44
mov cl, 0x73
mov byte [esp + 7], dl
mov byte [esp + 0x1e], dl
mov al, 0x61
mov byte [esp + 6], cl
mov byte [esp + 0x10], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x1d], cl
mov dl, 0x65
mov byte [esp + 0x2f], cl
push edi
mov ecx, esi
mov byte [esp + 8], 0x52
mov byte [esp + 9], al
mov byte [esp + 0xc], 0x69
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0x6c
mov byte [esp + 0xf], 0x50
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x6d
mov byte [esp + 0x15], 0x21
mov byte [esp + 0x16], 0x25
mov byte [esp + 0x18], 0x23
mov byte [esp + 0x19], 0x30
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1c], 0x4c
mov byte [esp + 0x1d], 0x24
mov byte [esp + 0x1e], 0x5f
mov byte [esp + 0x1f], 0x52
mov byte [esp + 0x20], al
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0x66
mov byte [esp + 0x25], al
mov byte [esp + 0x26], 0x75
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], 0x43
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2c], 0x64
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], 0x6e
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x69
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x34], 0x23
mov byte [esp + 0x35], 0x30
mov byte [esp + 0x36], 0
call fcn.10005d70
push eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [fcn.10003174]
add esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call fcn.10005e70
mov edi, eax
test edi, edi
je 0x100061bc
mov ax, word [edi]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, esi
call fcn.10005f00
mov edx, dword [edi + 4]
push edx
call fcn.1000f9ca
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.10005e70
mov edi, eax
test edi, edi
je 0x100061e6
mov cx, word [edi]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, esi
call fcn.10005f00
mov eax, dword [edi + 4]
push eax
call fcn.1000f9ca
pop edi
pop esi
add esp, 0x130
ret
Function at 0x10006d20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100032b0
push 0x100157e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10006e7d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10006dcc
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10006dcc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10006da7
cmp al, 0x5c
je 0x10006da7
push esi
call dword [0x10003170]
mov esi, eax
jmp 0x10006d8f
cmp byte [esi], 0
je 0x10006db0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10006dc5
cmp al, 0x5c
je 0x10006dc5
push esi
call dword [0x10003170]
mov esi, eax
jmp 0x10006dad
cmp byte [esi], 0
je 0x10006deb
jmp 0x10006de7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10006deb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10006deb
cmp al, 0x5c
jne 0x10006deb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10006e41
cmp al, 0x5c
jne 0x10006e33
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10006e26
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10006e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10006e30
push edi
jmp 0x10006e74
and eax, 0x10
cmp al, 0x10
je 0x10006e30
push edi
jmp 0x10006e74
mov byte [esi], 0x5c
push esi
call dword [0x10003170]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10006df1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007090
Capabilities:
Get disk size

Disassembly:
sub esp, 0x790
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x10001438
mov dword [esp + 0x30], ecx
push 0x10001240
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10001420
push 0x10001240
mov dword [esp + 0x40], eax
call esi
push eax
call edi
push 0x10001410
push 0x10001240
mov ebx, eax
call esi
push eax
call edi
push 0x10001404
push 0x10001240
mov dword [esp + 0x38], eax
call esi
push eax
call edi
mov esi, eax
lea eax, [esp + 0x140]
push eax
push 0x100
mov dword [esp + 0x18], esi
mov byte [esp + 0x3a8], 0x67
call ebx
mov al, byte [esp + 0x140]
xor edx, edx
test al, al
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov ebx, 1
je 0x10007277
jmp 0x10007142
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [esp + 0x58]
push 0x410
lea edx, [esp + 0x244]
push 0x160
push edx
push 0x80
push ebp
call dword [0x100030d8]
lea eax, [esp + 0x350]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x3c]
inc edi
push ecx
mov dword [esp + 0x38], edi
call esi
inc eax
mov dword [esp + 0x18], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x100071ec
cmp al, 0x42
je 0x100071ec
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100071ec
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, 0x14
call fcn.100157f0
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.100157f0
mov dword [esp + 0x14], eax
jmp 0x100071f2
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a4], cl
call dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x3a1], al
mov eax, ecx
mov dword [esp + ebx + 0x3a2], esi
lea esi, [esp + 0x350]
lea edi, [esp + ebx + 0x3aa]
mov dword [esp + ebx + 0x3a6], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ebx]
lea esi, [esp + 0x40]
lea edi, [esp + edx + 0x3ae]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [esp + 0x14]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x1000713c
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x3a0]
push ebx
push edx
call fcn.1000a8a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret
Function at 0x100072a0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x20], edi
mov dword [edi + 0x1c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x264]
push 0x10001460
push eax
lea ecx, [esp + 0x164]
push 0x10001458
push ecx
call dword [fcn.10003174]
add esp, 0x10
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10007328
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.1000a8a0
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
push ebx
mov byte [ebp], 0x68
mov ebx, 1
jmp 0x10007338
mov esi, dword [esp + 0x18]
lea edx, [esi - 0x208]
cmp ebx, edx
jbe 0x10007358
add esi, 0x208
push 0x42
push esi
push ebp
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edi, 0x10001454
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10007389
test al, al
je 0x10007385
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10007389
add esi, 2
add edi, 2
test al, al
jne 0x10007361
xor eax, eax
jmp 0x1000738e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007428
mov edi, 0x10001450
lea esi, [esp + 0x4c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x100073c7
test al, al
je 0x100073c3
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x100073c7
add esi, 2
add edi, 2
test al, al
jne 0x1000739f
xor eax, eax
jmp 0x100073cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007428
mov al, byte [esp + 0x20]
lea ecx, [esp + 0x4c]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebx, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebx, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007334
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.1000a8a0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x254
ret 4
Function at 0x10007470
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [fcn.10003174]
push 0x10001460
push esi
push 0x10001458
mov ebp, ecx
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100074ca
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x1000751c
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x100012c8
je 0x10007501
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.10007470
jmp 0x1000751c
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100074ca
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4

Function at 0x10007550
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push 0x80000000
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100075b4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.1000a8a0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x10007650
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x1000766e
call fcn.10007730
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10007699
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x10007711
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.1000a8a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.10007730
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x10007da0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.1000a8a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10008270
Capabilities:
Delete file

Disassembly:
sub esp, 0x504
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x514]
lea ecx, [esp + 0x110]
push eax
push 0x1000147c
push 0x10001458
push ecx
call dword [fcn.10003174]
add esp, 0x10
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x14]
push 0
push eax
push 1
lea ecx, [esp + 0x124]
push 0x100014a0
push ecx
push 0x80000002
call fcn.1000a990
push 3
push 0
push 0
push 1
lea edx, [esp + 0x140]
push 0x100014a0
push edx
push 0x80000002
call fcn.1000ae60
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x3c
xor esi, esi
push 0xbb8
call edi
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jne 0x1000831f
inc esi
cmp esi, 0x19
jl 0x10008307
pop edi
pop esi
pop ebx
add esp, 0x504
ret

Function at 0x10008390
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100083e4
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.10008330
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000844f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x10008580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 0x10], esp
push 0x1f4
xor ebx, ebx
push 0x1000147c
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x234]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x234]
push ecx
push 0x80000002
call dword [fcn.10003030]
cmp eax, ebx
je 0x10008626
lea edx, [ebp - 0x38]
push 0x10016460
push edx
mov dword [ebp - 0x38], 0x10017f74
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x40]
push ecx
push edx
push ebx
push 0x100014c8
push eax
mov dword [ebp - 0x34], 4
call dword [fcn.10003034]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push ecx
call dword [fcn.1000306c]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 0x65
mov dl, 0x75
mov cl, 0x79
cmp esi, ebx
mov byte [ebp - 0x2c], 0x52
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x2a], 0x67
mov byte [ebp - 0x29], 0x51
mov byte [ebp - 0x28], dl
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], cl
mov byte [ebp - 0x24], 0x56
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], dl
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], 0x45
mov byte [ebp - 0x1e], 0x78
mov byte [ebp - 0x1d], 0x28
mov byte [ebp - 0x1c], 0x54
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x1a], 0x70
mov byte [ebp - 0x19], al
mov byte [ebp - 0x18], 0x29
mov byte [ebp - 0x17], bl
je 0x100086cf
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x2c]
push 0x10016460
push eax
mov dword [ebp - 0x3c], edx
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x100086cf
ret
mov ecx, dword [ebp - 0x14]
push ecx
call dword [fcn.1000306c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret