joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482820
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x482837
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x28]
test ebx, ebx
jne 0x48284d
mov eax, dword [esi + 0x4560]
test eax, eax
jne 0x48284d
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x48285b
xor edi, edi
jmp 0x48288e
cmp ecx, 0x186a0
jle 0x48287c
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, dword [esp + 0x1c]
sar ecx, 5
mov edx, ecx
shr edx, 0x1f
add ecx, edx
jmp 0x482889
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
cmp edi, 0x64
mov ebp, eax
jle 0x4828a3
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x3d48], edi
je 0x48293c
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x1e4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0x1e0]
lea eax, [esi + 0x344]
mov dword [esi + 0x34c], ecx
push eax
mov dword [ecx], edi
mov ecx, dword [esi + 0x1dc]
cmp ecx, 0xc8
push 0
mov dword [eax], 0
mov dword [esi + 0x348], 0x164
push 0x4a
jl 0x482922
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4829bb
push esi
mov dword [esi], 1
call fcn.00484d90
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.00484d90
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1dc]
cmp eax, 0x12c
jg 0x48297a
je 0x48299f
sub eax, 0x64
je 0x482957
sub eax, 0x64
je 0x48299f
jmp 0x482986
mov edx, dword [esi + 0x4564]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0x4560]
push esi
call fcn.00484d90
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
sub eax, 0x190
je 0x48299f
sub eax, 0x64
je 0x48299f
mov ecx, dword [esi + 0x4564]
mov edx, dword [esp + 0x14]
push ecx
push edi
push edx
call dword [esi + 0x4560]
test eax, eax
je 0x4829bb
jmp 0x4829b6
mov eax, dword [esi + 0x4564]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0x4560]
test eax, eax
je 0x4829bb
mov ebp, 1
push esi
call fcn.00484d90
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x483340
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
test eax, eax
jl 0x4833a8
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x48338f
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 0x683074
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 0x4833b0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.005c0d00
mov eax, dword [0x6c24b8]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4835a9
mov ecx, dword [eax + 0x4574]
test ecx, ecx
je 0x4835a9
push 0x800
push 0
push 0x65
call fcn.00486400
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.00486550
lea ecx, [esp + 0xd]
cmp eax, ecx
je 0x48346f
lea edx, [esp + 0xc]
push 0x683090
push edx
call fcn.00486500
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x48346f
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 0x48345e
lea eax, [esp + 0x80c]
push 0x683060
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x80c]
push ecx
push edx
call esi
jmp 0x483482
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.00486400
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.00486400
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 0x4835a9
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.00486400
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 0x683074
push esi
call edi
mov eax, dword [esp + 0x101c]
mov ecx, dword [eax + 0x50]
push ecx
push 0
push 0x4b
call fcn.00486400
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 0x4835c0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.005c0d00
mov eax, dword [0x6c24b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483712
mov ecx, dword [eax + 0x4574]
test ecx, ecx
je 0x483712
push 0x800
push 0
push 0x65
call fcn.00486400
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.00486550
lea ecx, [esp + 9]
cmp eax, ecx
je 0x48367e
lea edx, [esp + 8]
push 0x683090
push edx
call fcn.00486500
lea ecx, [esp + 8]
cmp eax, ecx
je 0x48367e
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 0x48366d
lea eax, [esp + 0x808]
push 0x683060
push eax
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x808]
push ecx
push edx
call esi
jmp 0x483691
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 0x483712
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 0x683074
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 0x683074
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 0x4841b0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.005c0d00
mov eax, dword [0x6c24b8]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4842fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4842fd
cmp dword [esi + 0x20], 0xffffffff
jne 0x4842b6
push 0x800
push 0
push 0x8f
call fcn.00486400
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.00486550
lea ecx, [esp + 0xd]
cmp eax, ecx
je 0x48427b
lea edx, [esp + 0xc]
push 0x683090
push edx
call fcn.00486500
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x48427b
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 0x48426a
lea eax, [esp + 0x80c]
push 0x683060
push eax
call edi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x80c]
push ecx
push edx
call edi
jmp 0x48428e
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 0x4842fd
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 0x683074
push ecx
call edi
pop edi
pop esi
add esp, 0x1004
ret

Function at 0x484310
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
sub esp, 8
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x48433c
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 0x484390
mov dword [esp + 0x14], edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x6bb528]
push eax
push 0x65
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test esi, esi
mov edi, eax
je 0x484383
mov esi, dword [esi + 0x1894c]
test esi, esi
je 0x484383
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x484780
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x860
mov al, byte [0x6bb520]
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 [0x6c24b8]
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 0x4848a4
cmp dword [esi + 0x54], ebp
jne 0x4848a4
cmp dword [esi + 0x50], ebp
jne 0x4848a4
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 0x484897
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 0x484740
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 0x484897
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 0x4848b0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x484931
mov eax, dword [esi + 0x30]
test eax, eax
je 0x484931
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 0x48491f
test edi, edi
jne 0x48491f
push esi
call fcn.00484d90
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x484911
mov edi, 1
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4848f4
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 0x484df0
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 0x484e58
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 0x484e5f
mov edi, dword [esp + 0x83c]
sub eax, 2
je 0x484fe6
sub eax, 4
je 0x484fbb
test edi, edi
jne 0x484e83
lea ecx, [esp + 0x14]
push str..zip
push ecx
call ebp
jmp 0x484ea8
cmp edi, 0x64
push edi
jl 0x484e95
lea edx, [esp + 0x18]
push str..zip._03d
push edx
jmp 0x484e9f
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.00486500
mov ebx, eax
test ebx, ebx
je 0x484f04
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 0x484f18
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 0x484f9a
cmp eax, 0xffffffff
jne 0x484f9a
cmp ecx, 0x64
push ecx
jl 0x484f41
lea ecx, [esp + 0x1c]
push str.._03d
push ecx
jmp 0x484f4b
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 0x484f73
lea ecx, [esp + 0x3c]
sub ebx, ecx
lea edx, [ebx + esi + 0x350]
push edx
call ebp
jmp 0x484f7a
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 0x484f9a
lea eax, [esi + 0xb50]
push eax
push edi
call ebp
push edi
call ebx
cmp eax, 0xffffffff
je 0x484fac
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 0x484fe6
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 0x486400
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
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 0x48641f
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jge 0x486427
xor esi, esi
jmp 0x486431
cmp esi, 2
jle 0x486431
mov esi, 2
mov ecx, esi
mov edx, ebx
shl ecx, 0xb
add edx, ecx
push 0x6bb520
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 0x4864dd
mov ecx, dword [esi*8 + 0x683e38]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x486492
mov eax, dword [esi*8 + 0x683e3c]
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 0x48649b
or esi, 0xffffffff
jmp 0x48649c
inc esi
test eax, eax
je 0x486453
mov eax, dword [ebx + 0x4578]
test eax, eax
je 0x4864d6
lea esi, [ebx + 0x1814b]
push 0x6bb520
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 0x4864a0
push 0x6bb520
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [0x6c24b8]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4868cc
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x486904
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x486904
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4868fc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x486904
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 0x4878d0
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x6c24b8]
sub esp, 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x487981
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 0x487970
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 0x487990
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
sub esp, 0x64
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4879b0
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 0x487a70
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x487a70
mov eax, dword [esp + 0x74]
xor ebx, ebx
test eax, eax
je 0x487a70
cmp byte [eax], 0
je 0x487a70
push eax
call fcn.0047b570
mov edi, eax
mov eax, dword [esi + 0x4ee4]
add esp, 4
test eax, eax
je 0x487a70
push edi
call fcn.0047b4f0
add esp, 4
test eax, eax
je 0x487a70
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 0x487a70
mov ebx, 1
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0x64
ret

Function at 0x487af0
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 0x487b1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x487b34
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.005c1160
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 0x487ec0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x487ed1
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 0x487ef0
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x6c24b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x487f68
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 + 0x683108]
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 + 0x683108]
xor ecx, edx
mov dword [eax + 0x4f78], ecx
ret

Function at 0x487f70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x487fbd
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 0x487fbd
movsx ecx, al
push ecx
call fcn.00487ef0
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x487fa9
pop esi
ret

Function at 0x487fc0
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 0x488007
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 + 0x683108]
xor eax, edx
inc ecx
dec esi
jne 0x487fdf
pop esi
mov dword [edi + 0x14f7c], eax
pop ebx
pop edi
ret
mov dword [edi + 0x14f7c], eax
pop edi
ret