joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038c9
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
movzx ecx, ax
mov ebx, eax
shr ebx, 0x10
mov eax, 1
test esi, esi
je 0x4039df
test edi, edi
je 0x4039d8
mov edx, edi
cmp edi, 0x15b0
jbe 0x403904
mov edx, 0x15b0
sub edi, edx
cmp edx, 0xf
jle 0x40399d
movzx eax, byte [esi]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 1]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 2]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 3]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 4]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 5]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 6]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 7]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 8]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 9]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xa]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xb]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xc]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xd]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xe]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xf]
add ecx, eax
add ebx, ecx
add esi, 0x10
sub edx, 0x10
cmp edx, 0xf
jg 0x40390f
test edx, edx
je 0x4039ac
movzx eax, byte [esi]
add ecx, eax
inc esi
add ebx, ecx
dec edx
jne 0x4039a1
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xfff1
sub ecx, edx
mov eax, 0x80078071
mul ebx
shr edx, 0xf
imul edx, edx, 0xfff1
sub ebx, edx
test edi, edi
jne 0x4038f5
mov eax, ebx
shl eax, 0x10
or eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403b3d
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
mov ebx, dword [esi]
cmp ebx, esi
je 0x403b9c
test edi, edi
jne 0x403b7d
mov dword [esp], ebx
call fcn.0040209d
test eax, eax
je 0x403b7d
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x10], ebx
jmp 0x403b9c
cmp edi, 1
jne 0x403b96
mov dword [esp], ebx
call fcn.004036f1
test eax, eax
je 0x403b96
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x10], ebx
jmp 0x403b9c
mov ebx, dword [ebx]
cmp ebx, esi
jne 0x403b65
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x31ec3008
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.31ec4324
test esi, esi
jne 0x31ec303e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.31ec4414
jmp 0x31ec305c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.31ec2f0c
mov edi, eax
test esi, esi
je 0x31ec305c
cmp dword [ebx], 0
je 0x31ec305c
dec esi
jmp 0x31ec3045
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x31ec3090
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x31eda008], 0x8088405
inc edx
mov dword [ebx + 0x31eda008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x31ec36d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x31eda018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x31ec376c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x31ec374c
xor eax, eax
push ebp
push 0x31ec3745
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x31ec3788
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ec374c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x31eda018]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x31eda018], ax
mov esp, ebp
pop ebp
ret

Function at 0x31ec41a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x31ef4044], 0
je 0x31ec4205
cmp word [0x31ef4218], 0xd7b2
jne 0x31ec41cd
cmp dword [0x31ef4220], 0
jbe 0x31ec41cd
mov eax, 0x31ef4214
call dword [0x31ef4230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x31ec422c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x31eda024], 0
jne 0x31ec4221
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x31ec50c4
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 0x31ec52f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x31ec5147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x31ec52f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x31ec5147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x31ec5310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x31ec51d0
xor eax, eax
push ebp
push 0x31ec51c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.31ec4f00
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 0x31ec51ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x31ec5330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x31ec51ae
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 0x31ec51d0
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 0x31ec52ea
cmp byte [ebp - 0xd], 0
jne 0x31ec5217
cmp byte [ebp - 0x12], 0
je 0x31ec52ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x31ec5230
dec ebx
cmp byte [ebx], 0x2e
je 0x31ec523f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x31ec522f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x31ec52ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x31ec527c
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 0x31ec52ea
cmp byte [ebp - 0xd], 0
je 0x31ec52ea
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 0x31ec52ea
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 0x31ec51d0
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 0x31ec52f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x31ec5147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x31ec52f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x31ec5147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x31ec5310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x31ec51d0
xor eax, eax
push ebp
push 0x31ec51c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.31ec4f00
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 0x31ec51ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x31ec5330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x31ec51ae
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 0x31ec51d0
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 0x31ec52ea
cmp byte [ebp - 0xd], 0
jne 0x31ec5217
cmp byte [ebp - 0x12], 0
je 0x31ec52ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x31ec5230
dec ebx
cmp byte [ebx], 0x2e
je 0x31ec523f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x31ec522f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x31ec52ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x31ec527c
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 0x31ec52ea
cmp byte [ebp - 0xd], 0
je 0x31ec52ea
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 0x31ec52ea
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 0x31ec59f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ecx, 0x31eda7b0
mov ebx, ecx
cmp dword [ecx + 0x18448], 0
je 0x31ec5a2d
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 0x31ec5a0a
xor eax, eax
mov dword [ecx + 0x18448], eax
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x31ec5d44
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.31ec5b68
test esi, esi
je 0x31ec5d92
test ebp, ebp
je 0x31ec5d92
mov eax, esi
call fcn.31ec2c94
mov edi, eax
test edi, edi
je 0x31ec5d92
mov edx, esi
dec edx
test edx, edx
jb 0x31ec5d92
inc edx
xor eax, eax
mov ecx, esi
dec ecx
sub ecx, eax
movzx ecx, byte [ebp + ecx]
mov ebx, eax
imul bx, word [0x31ef2c58]
add bl, 0xda
xor cl, bl
mov byte [edi + eax], cl
inc eax
dec edx
jne 0x31ec5d72
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x31ec62dc
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.31ec31b0
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.31ec4790
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.31ec4414
add esp, 0x104
pop esi
pop ebx
ret
Function at 0x31ec64e4
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.31ec4780
xor eax, eax
push ebp
push 0x31ec66e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x31ec66fc
call fcn.31ec43bc
mov eax, 0x31ec6710
call fcn.31ec7838
test al, al
je 0x31ec6557
lea eax, [ebp - 0xc]
mov edx, 0x31ec6724
call fcn.31ec43bc
jmp 0x31ec6572
mov eax, 0x31ec6738
call fcn.31ec7838
test al, al
je 0x31ec6572
lea eax, [ebp - 0xc]
mov edx, 0x31ec6750
call fcn.31ec43bc
mov edx, dword [ebp - 4]
mov eax, 0x31ec6768
call fcn.31ec5e9c
test al, al
je 0x31ec65bc
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
call fcn.31ec450c
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
call fcn.31ec45cc
mov eax, dword [ebp - 0x114]
call fcn.31ec4790
push eax
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x31ec6605
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x118]
movzx edx, byte [ebp - 0x110]
call fcn.31ec450c
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
call fcn.31ec45cc
mov eax, dword [ebp - 0x118]
call fcn.31ec4790
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.31ec4594
mov eax, dword [ebp - 0x11c]
call fcn.31ec7838
test al, al
jne 0x31ec6638
push 0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_CreateDirectoryA
call fcn.31ec3068
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.31ec4594
push dword [ebp - 0x120]
push 0x31ec6774
mov eax, 0x270f
call fcn.31ec3090
lea edx, [ebp - 0x124]
call fcn.31ec6c04
push dword [ebp - 0x124]
push 0x31ec6780
lea eax, [ebp - 8]
mov edx, 4
call fcn.31ec4694
push 9
mov eax, dword [ebp - 8]
call fcn.31ec4790
push eax
mov eax, dword [ebp - 4]
call fcn.31ec4790
push eax
call sub.kernel32.dll_MoveFileExA
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.31ec71a4
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ec66ea
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.31ec4348
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.31ec4348
ret

Function at 0x31ec6800
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.31ec4780
xor eax, eax
push ebp
push 0x31ec6854
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.31ec4790
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 0x31ec685b
lea eax, [ebp - 4]
call fcn.31ec4324
ret
Function at 0x31ec6864
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 0x31ec68bd
lea eax, [esp + 0xc]
push eax
push 0x31ec68c4
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 0x31ec6a30
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 0x31ec6a50
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.31ec4780
xor eax, eax
push ebp
push 0x31ec6ac2
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.31ec4790
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 0x31ec6a9f
xor esi, esi
cmp esi, 0xffffffff
jne 0x31ec6aa6
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 0x31ec6ac9
lea eax, [ebp - 4]
call fcn.31ec4324
ret

Function at 0x31ec6ad0
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.31ec4780
mov eax, dword [ebp - 8]
call fcn.31ec4780
xor eax, eax
push ebp
push 0x31ec6bc4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x31ec6b23
lea eax, [ebp - 0x24]
mov edx, dword [0x31ef2c14]
call fcn.31ec451c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 4]
call fcn.31ec732c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.31ec4790
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.31ec4790
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 0x31ec6b95
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 0x31ec6bcb
lea eax, [ebp - 0x24]
call fcn.31ec4324
lea eax, [ebp - 8]
mov edx, 2
call fcn.31ec4348
ret
Function at 0x31ec70b0
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.31ec4780
xor eax, eax
push ebp
push 0x31ec7191
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 0x31ec70ec
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x31ec716e
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x7fffffff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.31ec47f0
mov eax, dword [ebp - 0xc]
call fcn.31ec4790
mov ebx, eax
mov eax, esi
test eax, eax
je 0x31ec711b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
test edi, edi
jl 0x31ec715b
inc edi
xor esi, esi
movzx eax, byte [ebx + esi]
cmp al, 0x5c
je 0x31ec7131
cmp al, 0x2f
jne 0x31ec7157
mov byte [ebx + esi], 0
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.31ec451c
mov eax, dword [ebp - 0x10]
call fcn.31ec7838
test al, al
je 0x31ec716e
mov byte [ebx + esi], 0x5c
inc esi
dec edi
jne 0x31ec7125
push 0
push ebx
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebp - 4]
call fcn.31ec7838
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ec7198
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.31ec4348
lea eax, [ebp - 4]
call fcn.31ec4324
ret

Function at 0x31ec71b4
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 0x31ec728b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, 0x104
call fcn.31ec31b0
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.31ec4414
lea edx, [ebp - 0x10c]
mov eax, dword [ebx]
call dword [0x31ef2c60]
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.31ec6d10
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x114]
mov eax, dword [ebx]
call dword [0x31ef2c5c]
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.31ec6eec
mov edx, dword [ebp - 0x110]
mov eax, ebx
pop ecx
call fcn.31ec4618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ec7292
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.31ec4348
ret
Function at 0x31ec7468
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.31ec4780
xor eax, eax
push ebp
push 0x31ec74da
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.31ec4790
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x31ec74b8
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x31ec74bc
xor ebx, ebx
jmp 0x31ec74be
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 0x31ec74e1
lea eax, [ebp - 4]
call fcn.31ec4324
ret

Function at 0x31ec74e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.31ec4780
mov eax, dword [ebp + 0xc]
call fcn.31ec4780
xor eax, eax
push ebp
push 0x31ec7598
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x31ef2c50], 0
je 0x31ec757d
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
call fcn.31ec4790
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x31ec757d
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp + 8]
mov edx, 0x31ec75b0
call fcn.31ec45cc
mov esi, dword [ebp + 8]
test esi, esi
je 0x31ec7561
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebp + 8]
call fcn.31ec4790
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 0x31ec759f
lea eax, [ebp + 8]
mov edx, 2
call fcn.31ec4348
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.31ec4790
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x31ec7851
test al, 0x10
jne 0x31ec7855
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x31ec785c
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.31ec4780
xor eax, eax
push ebp
push 0x31ec78fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x31ec78e5
test edi, edi
je 0x31ec78e5
mov eax, dword [ebp - 4]
call fcn.31ec6800
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.31ec4790
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 0x31ec78c6
cmp dword [ebp - 0x10], 0xffffffff
je 0x31ec78e5
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 0x31ec7902
lea eax, [ebp - 4]
call fcn.31ec4324
ret