joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6322de80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jl 0x6322dee8
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x6322decf
push edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x63257ef4
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push 0
push edx
push 5
push str.____r_n
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
pop esi
ret
Function at 0x6322def0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.63212950
mov eax, dword [0x6325fbe0]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6322e0e9
mov ecx, dword [eax + 0x4574]
test ecx, ecx
je 0x6322e0e9
push 0x800
push 0
push 0x65
call fcn.63230f10
add esp, 8
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0xc]
push 0x3a
push edx
mov byte [esp + 0x813], 0
call fcn.63231060
lea ecx, [esp + 0xd]
cmp eax, ecx
je 0x6322dfaf
lea edx, [esp + 0xc]
push 0x63257f10
push edx
call fcn.63231010
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x6322dfaf
lea edx, [esp + 0x80c]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x6322df9e
lea eax, [esp + 0x80c]
push 0x63257ee0
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x80c]
push ecx
push edx
call esi
jmp 0x6322dfc2
lea eax, [esp + 0xc]
lea ecx, [esp + 0x80c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1010]
push 1
lea edx, [esi + 0xf]
push edx
call fcn.63230f10
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.63230f10
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push eax
lea eax, [esp + 0x18]
push str._s__d__s__r_n
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x80c]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x6322e0e9
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push edx
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x101c]
mov eax, dword [edx + 0x4c]
push eax
push 0
push 0x4a
call fcn.63230f10
add esp, 8
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push edx
push eax
call ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push 0
push edx
push 2
push 0x63257ef4
push esi
call edi
mov eax, dword [esp + 0x101c]
mov ecx, dword [eax + 0x50]
push ecx
push 0
push 0x4b
call fcn.63230f10
add esp, 8
lea edx, [esp + 0x18]
push eax
push str._s__lx__r_n
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x1c]
push eax
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1004
ret
Function at 0x6322e100
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.63212950
mov eax, dword [0x6325fbe0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6322e252
mov ecx, dword [eax + 0x4574]
test ecx, ecx
je 0x6322e252
push 0x800
push 0
push 0x65
call fcn.63230f10
add esp, 8
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 8]
push 0x3a
push edx
mov byte [esp + 0x80f], 0
call fcn.63231060
lea ecx, [esp + 9]
cmp eax, ecx
je 0x6322e1be
lea edx, [esp + 8]
push 0x63257f10
push edx
call fcn.63231010
lea ecx, [esp + 8]
cmp eax, ecx
je 0x6322e1be
lea edx, [esp + 0x808]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x6322e1ad
lea eax, [esp + 0x808]
push 0x63257ee0
push eax
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x808]
push ecx
push edx
call esi
jmp 0x6322e1d1
lea eax, [esp + 8]
lea ecx, [esp + 0x808]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x81c]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x6322e252
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x63257ef4
push esi
call edi
mov ebx, dword [esp + 0x1014]
lea ecx, [esp + 0xc]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
push 2
push 0x63257ef4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x1004
ret
Function at 0x6322ecf0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.63212950
mov eax, dword [0x6325fbe0]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x6322ee3d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6322ee3d
cmp dword [esi + 0x20], 0xffffffff
jne 0x6322edf6
push 0x800
push 0
push 0x8f
call fcn.63230f10
add esp, 8
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0xc]
push 0x3a
push edx
mov byte [esp + 0x813], 0
call fcn.63231060
lea ecx, [esp + 0xd]
cmp eax, ecx
je 0x6322edbb
lea edx, [esp + 0xc]
push 0x63257f10
push edx
call fcn.63231010
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x6322edbb
lea edx, [esp + 0x80c]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x6322edaa
lea eax, [esp + 0x80c]
push 0x63257ee0
push eax
call edi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x80c]
push ecx
push edx
call edi
jmp 0x6322edce
lea eax, [esp + 0xc]
lea ecx, [esp + 0x80c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push 4
push 0
push 3
lea edx, [esp + 0x820]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x6322ee3d
mov eax, dword [esi + 0x20]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1010]
lea ecx, [esp + 8]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi + 0x20]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
call edi
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
push 0
push eax
push 2
push 0x63257ef4
push ecx
call edi
pop edi
pop esi
add esp, 0x1004
ret

Function at 0x6322ee50
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
sub esp, 8
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x6322ee7c
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x1894c], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
mov dword [esp + 8], ecx
push eax
push 0x6322eed0
mov dword [esp + 0x14], edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x6325ccb8]
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test esi, esi
mov edi, eax
je 0x6322eec3
mov esi, dword [esi + 0x1894c]
test esi, esi
je 0x6322eec3
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x6322f2c0
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x860
mov al, byte [0x6325ccb0]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x6325fbe0]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x6322f3e4
cmp dword [esi + 0x54], ebp
jne 0x6322f3e4
cmp dword [esi + 0x50], ebp
jne 0x6322f3e4
push ebx
mov ebx, dword [esp + 0x874]
mov eax, ebx
lea edx, [esi + 0xa8]
neg eax
sbb eax, eax
push edx
and al, 0xf5
lea ecx, [esp + 0x74]
add eax, 0x6e
push eax
push str.dzprog32___c__u__T_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x28], ebp
rep stosd dword es:[edi], eax
mov eax, 1
add esp, 0x10
mov word [esp + 0x5c], ax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
push ebp
push 0x20
push ebp
push ebp
lea ecx, [esp + 0x8c]
push ebp
push ecx
push ebp
mov dword [esp + 0x54], 0x44
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x6322f3d7
mov edx, dword [esp + 0x1c]
push 0x2710
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push 0x6322f280
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x6322f3d7
mov edi, 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x860
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x860
ret

Function at 0x6322f3f0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x6322f471
mov eax, dword [esi + 0x30]
test eax, eax
je 0x6322f471
push ebx
push ebp
push edi
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x30]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x6322f45f
test edi, edi
jne 0x6322f45f
push esi
call fcn.6322f8d0
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x6322f451
mov edi, 1
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x6322f434
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x6322f930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x82c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, dword [esp + 0x840]
push edi
mov dword [esp + 0xc], 2
mov ecx, dword [esi + 0x4578]
mov eax, 7
test ecx, ecx
je 0x6322f998
lea eax, [esi + 0xb50]
lea edi, [esi + 0x350]
push eax
push edi
call ebp
mov ecx, dword [esi + 0x457c]
mov eax, dword [esp + 0x840]
lea edx, [esi + 0x1814b]
push ecx
push edx
push edi
mov edi, dword [esp + 0x848]
push eax
push edi
push 3
push 0xf
call dword [esi + 0x4578]
jmp 0x6322f99f
mov edi, dword [esp + 0x83c]
sub eax, 2
je 0x6322fb26
sub eax, 4
je 0x6322fafb
test edi, edi
jne 0x6322f9c3
lea ecx, [esp + 0x14]
push str..zip
push ecx
call ebp
jmp 0x6322f9e8
cmp edi, 0x64
push edi
jl 0x6322f9d5
lea edx, [esp + 0x18]
push str..zip._03d
push edx
jmp 0x6322f9df
lea eax, [esp + 0x18]
push str..zip.z_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esi + 0xb50]
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
call ebp
lea edx, [esp + 0x38]
lea edi, [esi + 0x350]
push edx
push edi
call ebp
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea ecx, [esp + 0x38]
push str..zip
push ecx
call fcn.63231010
mov ebx, eax
test ebx, ebx
je 0x6322fa44
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
sub eax, ecx
push edx
lea edx, [eax + esi + 0x350]
push edx
call ebp
mov dword [esp + 0x14], 1
jmp 0x6322fa58
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x14], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x840]
test ecx, ecx
je 0x6322fada
cmp eax, 0xffffffff
jne 0x6322fada
cmp ecx, 0x64
push ecx
jl 0x6322fa81
lea ecx, [esp + 0x1c]
push str.._03d
push ecx
jmp 0x6322fa8b
lea edx, [esp + 0x1c]
push str..z_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
lea eax, [esp + 0x18]
push eax
je 0x6322fab3
lea ecx, [esp + 0x3c]
sub ebx, ecx
lea edx, [ebx + esi + 0x350]
push edx
call ebp
jmp 0x6322faba
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
cmp eax, 0xffffffff
jne 0x6322fada
lea eax, [esi + 0xb50]
push eax
push edi
call ebp
push edi
call ebx
cmp eax, 0xffffffff
je 0x6322faec
add esi, 0x14fac
push edi
push esi
mov dword [esp + 0x18], 1
call ebp
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x82c
ret
lea edi, [esi + 0x350]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6322fb26
add esi, 0x14fac
push edi
push esi
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x82c
ret
pop edi
pop esi
mov eax, 2
pop ebp
add esp, 0x82c
ret
Function at 0x63230f10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x63230f2f
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jge 0x63230f37
xor esi, esi
jmp 0x63230f41
cmp esi, 2
jle 0x63230f41
mov esi, 2
mov ecx, esi
mov edx, ebx
shl ecx, 0xb
add edx, ecx
push 0x6325ccb0
lea ebp, [esi + edx]
lea edi, [ebp + 0x16948]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
xor eax, eax
test esi, esi
jl 0x63230fed
mov ecx, dword [esi*8 + 0x63258cb8]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x63230fa2
mov eax, dword [esi*8 + 0x63258cbc]
push 0x7ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [ebp + 0x17147], 0
mov eax, 1
test ecx, ecx
jne 0x63230fab
or esi, 0xffffffff
jmp 0x63230fac
inc esi
test eax, eax
je 0x63230f63
mov eax, dword [ebx + 0x4578]
test eax, eax
je 0x63230fe6
lea esi, [ebx + 0x1814b]
push 0x6325ccb0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebx + 0x457c]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edi
push 0
push edx
push 0
push 0xd
call dword [ebx + 0x4578]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test eax, eax
jne 0x63230fb0
push 0x6325ccb0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x632313c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x6325fbe0]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x632313dc
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x63231414
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x63231414
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x6323140c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x63231414
pop edi
mov eax, 0x1c
pop esi
ret
push 0
push 0x8000020
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x16808], eax
inc eax
neg eax
sbb eax, eax
pop edi
and al, 0xe4
pop esi
add eax, 0x1c
ret
Function at 0x632323e0
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x6325fbe0]
sub esp, 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x63232491
mov ecx, dword [esi + 0x16808]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ecx
call ebp
mov ax, word [esi + 0x45d6]
mov cx, word [esi + 0x45d8]
lea edx, [esp + 0x18]
mov dword [esi + 0x16808], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x2cf0]
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x63232480
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
mov ecx, dword [esi + 0x3cf0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret

Function at 0x632324a0
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
sub esp, 0x64
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x632324c0
mov eax, 4
pop esi
add esp, 0x64
ret
mov eax, dword [esi + 0x40]
push ebx
test eax, eax
push edi
mov ebx, 1
jne 0x63232580
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x63232580
mov eax, dword [esp + 0x74]
xor ebx, ebx
test eax, eax
je 0x63232580
cmp byte [eax], 0
je 0x63232580
push eax
call fcn.632260b0
mov edi, eax
mov eax, dword [esi + 0x4ee4]
add esp, 4
test eax, eax
je 0x63232580
push edi
call fcn.63226030
add esp, 4
test eax, eax
je 0x63232580
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add edi, 0x40
push edi
lea ecx, [esp + 0x54]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x63232580
mov ebx, 1
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0x64
ret

Function at 0x63232600
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6323262a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x63232644
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.63214fa0
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x632329d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x632329e1
ret
mov cx, word [eax + 0x4f78]
or cl, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
and eax, 0xffff
shr eax, 8
ret

Function at 0x63232a00
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x6325fbe0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x63232a78
mov edx, dword [eax + 0x4f70]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x63257f88]
xor ecx, edx
mov edx, dword [eax + 0x4f74]
mov dword [eax + 0x4f70], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0x4f78]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0x4f74], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x63257f88]
xor ecx, edx
mov dword [eax + 0x4f78], ecx
ret

Function at 0x63232a80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x63232acd
mov esi, dword [esp + 8]
mov dword [eax + 0x4f70], 0x12345678
mov dword [eax + 0x4f74], 0x23456789
mov dword [eax + 0x4f78], 0x34567890
mov al, byte [esi]
test al, al
je 0x63232acd
movsx ecx, al
push ecx
call fcn.63232a00
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x63232ab9
pop esi
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x14f7c]
test edx, edx
je 0x63232b17
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x63257f88]
xor eax, edx
inc ecx
dec esi
jne 0x63232aef
pop esi
mov dword [edi + 0x14f7c], eax
pop ebx
pop edi
ret
mov dword [edi + 0x14f7c], eax
pop edi
ret
Function at 0x63233df0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x63233e10
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
xor ebp, ebp
push ebx
mov bp, word [esi]
push esi
inc ebp
xor edi, edi
call fcn.632314b0
xor eax, eax
mov edx, dword [esp + 0x28]
mov ax, word [esi]
add esp, 0x10
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
cmp eax, edx
ja 0x63233e81
mov edx, dword [esp + 0x14]
lea edx, [edx + edi*4]
mov dword [edx], ecx
inc edi
add edx, 4
dec eax
jne 0x63233e50
dec ebp
je 0x63233e8b
push ebx
push esi
call fcn.632314b0
xor eax, eax
add esp, 8
mov ax, word [esi]
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
lea edx, [eax + edi]
cmp edx, dword [esp + 0x18]
jbe 0x63233e49
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
mov esi, dword [esp + 0x18]
mov eax, edi
sub eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 4
pop ebx
ret
Function at 0x63235e20
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6325fbe0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x63235efd
mov eax, 0xfffe97cc
push ebx
push ebp
sub eax, esi
push edi
mov ebp, 0x3fc0
lea edi, [esi + 0x16933]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x14fa0], 6
jge 0x63235e63
push esi
call fcn.63231440
add esp, 4
mov cl, byte [esi + 0x14f9c]
mov bl, byte [0x63258394]
and cl, bl
xor ebx, ebx
mov byte [edi], cl
mov edx, dword [esi + 0x14f9c]
mov ecx, dword [esi + 0x14fa0]
shr edx, 6
add ecx, 0xfffffffa
mov dword [esi + 0x14f9c], edx
mov dword [esi + 0x14fa0], ecx
mov al, byte [edi]
test al, al
jbe 0x63235ee8
cmp dword [esi + 0x14fa0], 8
jge 0x63235eab
push esi
call fcn.63231440
add esp, 4
mov dl, byte [esi + 0x14f9c]
mov al, byte [0x63258398]
and dl, al
mov eax, dword [esi + 0x16830]
add eax, ebp
mov byte [eax + ebx], dl
mov eax, dword [esi + 0x14f9c]
mov edx, dword [esi + 0x14fa0]
shr eax, 8
add edx, 0xfffffff8
mov dword [esi + 0x14f9c], eax
mov dword [esi + 0x14fa0], edx
mov al, byte [edi]
inc ebx
cmp bl, al
jb 0x63235e99
mov ecx, dword [esp + 0x10]
dec edi
add ecx, edi
sub ebp, 0x40
test ecx, ecx
jge 0x63235e51
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret