joyce8/EMBER2024-capa huggingface dataset:
Function at 0x710250c4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x710252f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x71025147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x710252f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x71025147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x71025310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x710251d0
xor eax, eax
push ebp
push 0x710251c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.71024f00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x710251ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x71025330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x710251ae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x710251d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x710252ea
cmp byte [ebp - 0xd], 0
jne 0x71025217
cmp byte [ebp - 0x12], 0
je 0x710252ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x71025230
dec ebx
cmp byte [ebx], 0x2e
je 0x7102523f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x7102522f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x710252ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x7102527c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x710252ea
cmp byte [ebp - 0xd], 0
je 0x710252ea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x710252ea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x710251d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x710252f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x71025147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x710252f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x71025147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x71025310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x710251d0
xor eax, eax
push ebp
push 0x710251c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.71024f00
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x710251ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x71025330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x710251ae
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x710251d0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x710252ea
cmp byte [ebp - 0xd], 0
jne 0x71025217
cmp byte [ebp - 0x12], 0
je 0x710252ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x71025230
dec ebx
cmp byte [ebx], 0x2e
je 0x7102523f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x7102522f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x710252ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x7102527c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x710252ea
cmp byte [ebp - 0xd], 0
je 0x710252ea
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x710252ea
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x710259f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ecx, 0x7103a7b0
mov ebx, ecx
cmp dword [ecx + 0x18448], 0
je 0x71025a2d
mov edx, ecx
xor eax, eax
mov esi, eax
add esi, esi
add esi, esi
inc esi
imul esi, dword [ecx + 0x18448]
xor dword [edx], esi
add edx, 4
inc eax
cmp eax, 0x6112
jne 0x71025a0a
xor eax, eax
mov dword [ecx + 0x18448], eax
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x71025d44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, edx
mov ebp, eax
xor edi, edi
call fcn.71025b68
test esi, esi
je 0x71025d92
test ebp, ebp
je 0x71025d92
mov eax, esi
call fcn.71022c94
mov edi, eax
test edi, edi
je 0x71025d92
mov edx, esi
dec edx
test edx, edx
jb 0x71025d92
inc edx
xor eax, eax
mov ecx, esi
dec ecx
sub ecx, eax
movzx ecx, byte [ebp + ecx]
mov ebx, eax
imul bx, word [0x71052c58]
add bl, 0xda
xor cl, bl
mov byte [edi + eax], cl
inc eax
dec edx
jne 0x71025d72
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x710262dc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x104
call fcn.710231b0
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.71024790
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.71024414
add esp, 0x104
pop esi
pop ebx
ret
Function at 0x710264e4
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor edx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x710266e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x710266fc
call fcn.710243bc
mov eax, 0x71026710
call fcn.71027838
test al, al
je 0x71026557
lea eax, [ebp - 0xc]
mov edx, 0x71026724
call fcn.710243bc
jmp 0x71026572
mov eax, 0x71026738
call fcn.71027838
test al, al
je 0x71026572
lea eax, [ebp - 0xc]
mov edx, 0x71026750
call fcn.710243bc
mov edx, dword [ebp - 4]
mov eax, 0x71026768
call fcn.71025e9c
test al, al
je 0x710265bc
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.7102450c
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
call fcn.710245cc
mov eax, dword [ebp - 0x114]
call fcn.71024790
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x71026605
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x118]
movzx edx, byte [ebp - 0x110]
call fcn.7102450c
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
call fcn.710245cc
mov eax, dword [ebp - 0x118]
call fcn.71024790
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.71024594
mov eax, dword [ebp - 0x11c]
call fcn.71027838
test al, al
jne 0x71026638
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
call fcn.71023068
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.71024594
push dword [ebp - 0x120]
push 0x71026774
mov eax, 0x270f
call fcn.71023090
lea edx, [ebp - 0x124]
call fcn.71026c04
push dword [ebp - 0x124]
push 0x71026780
lea eax, [ebp - 8]
mov edx, 4
call fcn.71024694
push 9
mov eax, dword [ebp - 8]
call fcn.71024790
push eax
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_MoveFileExA
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.710271a4
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x710266ea
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.71024348
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.71024348
ret

Function at 0x71026800
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x71026854
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.71024790
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7102685b
lea eax, [ebp - 4]
call fcn.71024324
ret
Function at 0x71026864
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x710268bd
lea eax, [esp + 0xc]
push eax
push 0x710268c4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
add esp, 0x18
ret

Function at 0x71026a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
pop ecx
pop ebp
ret 8

Function at 0x71026a50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x71026ac2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x48000080
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp ebx, 0xffffffff
jne 0x71026a9f
xor esi, esi
cmp esi, 0xffffffff
jne 0x71026aa6
xor esi, esi
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71026ac9
lea eax, [ebp - 4]
call fcn.71024324
ret

Function at 0x71026ad0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
mov eax, dword [ebp - 8]
call fcn.71024780
xor eax, eax
push ebp
push 0x71026bc4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x71026b23
lea eax, [ebp - 0x24]
mov edx, dword [0x71052c14]
call fcn.7102451c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.7102732c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call sub.kernel32.dll_GetFileTime
test eax, eax
je 0x71026b95
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
push edi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71026bcb
lea eax, [ebp - 0x24]
call fcn.71024324
lea eax, [ebp - 8]
mov edx, 2
call fcn.71024348
ret
Function at 0x710270b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x71027191
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x710270ec
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x7102716e
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.710247f0
mov eax, dword [ebp - 0xc]
call fcn.71024790
mov ebx, eax
mov eax, esi
test eax, eax
je 0x7102711b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
test edi, edi
jl 0x7102715b
inc edi
xor esi, esi
movzx eax, byte [ebx + esi]
cmp al, 0x5c
je 0x71027131
cmp al, 0x2f
jne 0x71027157
mov byte [ebx + esi], 0
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.7102451c
mov eax, dword [ebp - 0x10]
call fcn.71027838
test al, al
je 0x7102716e
mov byte [ebx + esi], 0x5c
inc esi
dec edi
jne 0x71027125
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebp - 4]
call fcn.71027838
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71027198
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.71024348
lea eax, [ebp - 4]
call fcn.71024324
ret

Function at 0x710271b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7102728b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, 0x104
call fcn.710231b0
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
lea edx, [ebp - 0x104]
mov eax, ebx
call fcn.71024414
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call dword [0x71052c60]
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.71026d10
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x114]
mov eax, dword [ebx]
call dword [0x71052c5c]
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.71026eec
mov edx, dword [ebp - 0x110]
mov eax, ebx
pop ecx
call fcn.71024618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71027292
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.71024348
ret
Function at 0x71027468
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x710274da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x710274b8
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x710274bc
xor ebx, ebx
jmp 0x710274be
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x710274e1
lea eax, [ebp - 4]
call fcn.71024324
ret

Function at 0x710274e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.71024780
mov eax, dword [ebp + 0xc]
call fcn.71024780
xor eax, eax
push ebp
push 0x71027598
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x71052c50], 0
je 0x7102757d
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x7102757d
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp + 8]
mov edx, 0x710275b0
call fcn.710245cc
mov esi, dword [ebp + 8]
test esi, esi
je 0x71027561
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebp + 8]
call fcn.71024790
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7102759f
lea eax, [ebp + 8]
mov edx, 2
call fcn.71024348
ret

Function at 0x71027838
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.71024790
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x71027851
test al, 0x10
jne 0x71027855
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x7102785c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x710278fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x710278e5
test edi, edi
je 0x710278e5
mov eax, dword [ebp - 4]
call fcn.71026800
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x710278c6
cmp dword [ebp - 0x10], 0xffffffff
je 0x710278e5
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push esi
mov ebx, dword [ebp - 0x10]
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp edi, dword [ebp - 0x14]
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71027902
lea eax, [ebp - 4]
call fcn.71024324
ret
Function at 0x7102790c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
mov eax, dword [ebp - 8]
call fcn.71024780
xor eax, eax
push ebp
push 0x7102797b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.71024790
push eax
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.71026ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71027982
lea eax, [ebp - 8]
mov edx, 2
call fcn.71024348
ret

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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x71027b11
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.71024780
xor eax, eax
push ebp
push 0x71027bee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [edi], eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.71024790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x71027bd8
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [edi], eax
cmp dword [edi], 0
jne 0x71027b86
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x71027bd8
mov eax, dword [edi]
call fcn.71022c94
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x71027bd8
xor ebx, ebx
jmp 0x71027bce
push 0
lea eax, [ebp - 0xc]
push eax
push 0x2000
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0xc], 0
je 0x71027bd2
lea edx, [ebp - 0x200c]
mov eax, dword [ebp - 8]
add eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.710259a8
add ebx, dword [ebp - 0xc]
cmp ebx, dword [edi]
jb 0x71027b9a
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71027bf5
lea eax, [ebp - 4]
call fcn.71024324
ret

Function at 0x71028608
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
call fcn.71026f2c
test eax, eax
je 0x7102868a
xor esi, esi
lea ecx, [ebp - 0x400]
mov eax, esi
mov edx, 8
test eax, 1
jbe 0x71028641
shr eax, 1
xor eax, 0xedb88320
jmp 0x71028643
shr eax, 1
dec edx
jne 0x71028630
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x71028629
mov ebx, 8
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x71028688
inc eax
xor esi, esi
mov edx, dword [ebp + 8]
movzx edx, byte [edx + esi]
xor dl, bl
movzx edx, dl
mov edx, dword [ebp + edx*4 - 0x400]
shr ebx, 8
and ebx, 0xffffff
xor edx, ebx
mov ebx, edx
inc esi
dec eax
jne 0x71028664
not ebx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8