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

Disassembly:
mov eax, dword [0x4af588]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x456097
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x4560ad
mov eax, dword [esi + 0xaba]
test eax, eax
jne 0x4560ad
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x4560bb
xor edi, edi
jmp 0x4560ee
cmp ecx, 0x186a0
jle 0x4560dc
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 0x4560e9
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 0x456103
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x9aa], edi
je 0x45619c
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x1ac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0x1a8]
lea eax, [esi + 0x30c]
mov dword [esi + 0x314], ecx
push eax
mov dword [ecx], edi
mov ecx, dword [esi + 0x1a4]
cmp ecx, 0xc8
push 0
mov dword [eax], 0
mov dword [esi + 0x310], 0x164
push 0x4a
jl 0x456182
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4561ff
push esi
mov dword [esi], 1
call fcn.004582c0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.004582c0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1a4]
sub eax, 0x64
je 0x4561ec
sub eax, 0x64
je 0x4561dd
sub eax, 0x64
je 0x4561dd
mov edx, dword [esi + 0xabe]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0xaba]
test eax, eax
je 0x4561ff
push esi
mov ebp, 1
call fcn.004582c0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov ecx, dword [esi + 0xabe]
mov edx, dword [esp + 0x14]
push ecx
push edi
push edx
jmp 0x4561be
mov eax, dword [esi + 0xabe]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0xaba]
push esi
call fcn.004582c0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x456b70
Capabilities:
Write file on windows

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

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x20c
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x456d8d
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x456d8d
lea ecx, [esp + 0x110]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.00458320
add esp, 8
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x456c57
lea eax, [esp + 0x110]
push 0x49f918
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push edx
call esi
mov esi, dword [esp + 0x218]
push 1
lea eax, [esi + 0xf]
push eax
call fcn.00458320
add esp, 8
push eax
push esi
push 0
push 0x43
call fcn.00458320
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x14]
push eax
push str._s__d__s__r_n
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456d8d
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 eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x1c]
push eax
push edx
push esi
call edi
mov eax, dword [esp + 0x224]
mov ecx, dword [eax + 0x4c]
push ecx
push 0
push 0x4a
call fcn.00458320
add esp, 8
lea edx, [esp + 0x18]
push eax
push edx
call ebp
add esp, 0xc
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
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x49f95c
push esi
call edi
mov ecx, dword [esp + 0x224]
mov edx, dword [ecx + 0x50]
push edx
push 0
push 0x4b
call fcn.00458320
add esp, 8
push eax
lea eax, [esp + 0x1c]
push str._s__lx__r_n
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push ecx
push edx
call ebx
push eax
lea eax, [esp + 0x20]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20c
ret
Function at 0x456da0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x20c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x456ea3
mov ecx, dword [eax + 0xaca]
test ecx, ecx
je 0x456ea3
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x65
call fcn.00458320
add esp, 8
lea edx, [esp + 0x110]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x10c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x456e16
lea eax, [esp + 8]
push 0x49f918
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push edx
call esi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456ea3
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 ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x49f95c
push esi
call edi
mov ebx, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x49f95c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x20c
ret
Function at 0x457790
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x45788e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45788e
cmp dword [esi + 0x1c], 0xffffffff
jne 0x457847
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x8f
call fcn.00458320
add esp, 8
lea edx, [esp + 0x114]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x457813
lea eax, [esp + 0xc]
push 0x49f918
push eax
call edi
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
je 0x45788e
mov ecx, dword [esi + 0x1c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x218]
lea edx, [esp + 8]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call edi
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 8]
push 0
push ecx
push 2
push 0x49f95c
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x457cb0
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x164
mov al, byte [0x4acd28]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4af588]
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 0x457dd1
cmp dword [esi + 0x44], ebp
jne 0x457dd1
cmp dword [esi + 0x40], ebp
jne 0x457dd1
push ebx
mov ebx, dword [esp + 0x178]
mov eax, ebx
lea edx, [esi + 0x70]
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 + 0x30], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x24], 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 0x457dc4
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 0x457c70
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 0x457dc4
mov edi, 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x164
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x164
ret

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

Disassembly:
mov eax, dword [0x4af588]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x457e61
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x457e61
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 + 0x2c]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457e4f
test edi, edi
jne 0x457e4f
push esi
call fcn.004582c0
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x457e41
mov edi, 1
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x457e24
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x458320
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x45835b
mov eax, dword [esp + 0x18]
push 0x4acd28
mov ecx, eax
shl ecx, 6
add ecx, eax
lea esi, [ecx*4 + 0x91a6]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jge 0x458367
xor edi, edi
jmp 0x458371
cmp edi, 2
jle 0x458371
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x458429
mov ecx, dword [ebp*8 + 0x4a8080]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x4583c4
mov edx, edi
mov eax, dword [ebp*8 + 0x4a8084]
shl edx, 6
add edx, edi
push 0x103
push eax
lea esi, [ebx + edx*4]
lea ecx, [esi + 0x91a6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x92a9], 0
mov eax, 1
test ecx, ecx
jne 0x4583cd
or ebp, 0xffffffff
jmp 0x4583ce
inc ebp
test eax, eax
je 0x458375
mov eax, dword [ebx + 0xace]
test eax, eax
je 0x458416
lea esi, [ebx + 0x94b2]
push 0x4a1470
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0xad2]
mov ecx, edi
shl ecx, 6
add ecx, edi
push eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [ebx + ecx*4 + 0x91a6]
push edx
push 0
push eax
push 0
push 0xd
call dword [ebx + 0xace]
mov ecx, edi
shl ecx, 6
add ecx, edi
pop edi
pop esi
pop ebp
lea eax, [ebx + ecx*4 + 0x91a6]
pop ebx
ret
test eax, eax
jne 0x4583d2
mov edx, edi
push 0x4acd28
shl edx, 6
add edx, edi
lea esi, [ebx + edx*4 + 0x91a6]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [0x4af588]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x45881c
pop edi
mov eax, 4
pop esi
ret
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x458854
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x458854
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x45884c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x458854
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 + 0x9068], eax
inc eax
neg eax
sbb eax, eax
pop edi
and al, 0xe4
pop esi
add eax, 0x1c
ret
Function at 0x459150
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x459201
mov ecx, dword [esi + 0x9068]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov ax, word [esi + 0xb00]
mov cx, word [esi + 0xb02]
lea edx, [esp + 0x18]
mov dword [esi + 0x9068], 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 0x80000000
push 3
push 0
lea ebx, [esi + 0x75e]
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x459201
mov ecx, dword [esi + 0x966]
or ecx, 0x20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
mov eax, dword [0x4af588]
sub esp, 0x64
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x459230
mov eax, 4
pop edi
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
push esi
test eax, eax
je 0x4592d5
cmp byte [eax], 0
je 0x4592d5
push eax
call fcn.00450ac0
mov esi, eax
mov eax, dword [edi + 0xc7c]
add esp, 4
test eax, eax
je 0x4592d5
push esi
call fcn.00450a60
add esp, 4
test eax, eax
je 0x4592d5
add esi, 0x40
lea ecx, [esp + 0x50]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
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 0x4592d5
mov ebx, 1
mov eax, ebx
pop esi
pop ebx
pop edi
add esp, 0x64
ret

Function at 0x459350
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 0x45937a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459394
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.0045c9e0
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 0x4596a0
Capabilities:
Get thread local storage value

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

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

Disassembly:
mov eax, dword [0x4af588]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x459748
mov edx, dword [eax + 0xcca]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x4a73d4]
xor ecx, edx
mov edx, dword [eax + 0xcce]
mov dword [eax + 0xcca], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0xcd2]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0xcce], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x4a73d4]
xor ecx, edx
mov dword [eax + 0xcd2], ecx
ret

Function at 0x459750
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45979d
mov esi, dword [esp + 8]
mov dword [eax + 0xcca], 0x12345678
mov dword [eax + 0xcce], 0x23456789
mov dword [eax + 0xcd2], 0x34567890
mov al, byte [esi]
test al, al
je 0x45979d
movsx ecx, al
push ecx
call fcn.004596d0
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x459789
pop esi
ret

Function at 0x4597a0
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 + 0x8cde]
test edx, edx
je 0x4597e7
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 + 0x4a73d4]
xor eax, edx
inc ecx
dec esi
jne 0x4597bf
pop esi
mov dword [edi + 0x8cde], eax
pop ebx
pop edi
ret
mov dword [edi + 0x8cde], eax
pop edi
ret
Function at 0x45a9f0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x4af588]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x45aa12
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push esi
push ecx
mov dword [esi + 0x9078], ebx
mov dword [esi + 0x9084], ebx
mov dword [esi + 0x9080], ebx
mov dword [esi + 0x9a6], ebx
xor edi, edi
mov dword [esi + 0x908a], ebx
call fcn.0045a930
add esp, 8
cmp eax, ebx
jne 0x45aa89
mov eax, dword [esi + 0x908a]
cmp eax, edi
jbe 0x45aa50
mov edi, eax
cmp dword [esi], ebx
jne 0x45aa77
cmp dword [esp + 0xc], ebx
jne 0x45aa77
lea edx, [esp + 0xc]
push esi
push edx
mov dword [esi + 0x908a], ebx
call fcn.0045a930
add esp, 8
cmp eax, ebx
je 0x45aa44
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x9078]
push esi
push eax
call fcn.00459d10
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45aed0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x4af588]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x45afad
mov eax, 0xffff6f6e
push ebx
push ebp
sub eax, esi
push edi
mov ebp, 0x3fc0
lea edi, [esi + 0x9191]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x8cf2], 6
jge 0x45af13
push esi
call fcn.00458880
add esp, 4
mov cl, byte [esi + 0x8cee]
mov bl, byte [0x4a77e0]
and cl, bl
xor ebx, ebx
mov byte [edi], cl
mov edx, dword [esi + 0x8cee]
mov ecx, dword [esi + 0x8cf2]
shr edx, 6
add ecx, 0xfffffffa
mov dword [esi + 0x8cee], edx
mov dword [esi + 0x8cf2], ecx
mov al, byte [edi]
test al, al
jbe 0x45af98
cmp dword [esi + 0x8cf2], 8
jge 0x45af5b
push esi
call fcn.00458880
add esp, 4
mov dl, byte [esi + 0x8cee]
mov al, byte [0x4a77e4]
and dl, al
mov eax, dword [esi + 0x908e]
add eax, ebp
mov byte [eax + ebx], dl
mov eax, dword [esi + 0x8cee]
mov edx, dword [esi + 0x8cf2]
shr eax, 8
add edx, 0xfffffff8
mov dword [esi + 0x8cee], eax
mov dword [esi + 0x8cf2], edx
mov al, byte [edi]
inc ebx
cmp bl, al
jb 0x45af49
mov ecx, dword [esp + 0x10]
dec edi
add ecx, edi
sub ebp, 0x40
test ecx, ecx
jge 0x45af01
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x45b3f0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4af588]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45b4c3
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
push esi
jle 0x45b42d
lea ecx, [eax + 0xed8]
or word [ecx], 0x8000
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x45b41a
mov ecx, dword [eax + 0x91a2]
mov esi, 0x101
cmp ecx, esi
jle 0x45b46b
lea edx, [eax + 0xed8]
mov cx, word [edx]
and ecx, 0x7fff
cmp ecx, 0x101
jl 0x45b45d
and word [eax + ecx*2 + 0xcd6], 0x7fff
mov ecx, dword [eax + 0x91a2]
inc esi
add edx, 2
cmp esi, ecx
jl 0x45b442
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
jle 0x45b499
lea ecx, [eax + 0xed8]
test byte [ecx + 1], 0x80
je 0x45b48b
mov word [ecx], 0xffff
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x45b480
mov esi, dword [eax + 0x919e]
mov ecx, 0x101
cmp esi, ecx
jle 0x45b4bc
lea edx, [eax + 0xed8]
cmp word [edx], 0xffff
je 0x45b4bc
inc ecx
add edx, 2
cmp ecx, esi
jl 0x45b4ae
mov dword [eax + 0x91a2], ecx
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45de54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045f27c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x45de77
test byte [esp + 8], 2
je 0x45de77
call fcn.0045f2ef
mov dword [eax], 0xd
call fcn.0045f2f8
mov dword [eax], 5
jmp 0x45de50
xor eax, eax
ret