joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450470
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x4504aa
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a5f40]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x450488
pop esi
ret

Function at 0x4506b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4aa19c]
push esi
push edi
xor edi, edi
test eax, eax
je 0x450707
mov eax, dword [0x4ac570]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x450707
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4506ff
push esi
call fcn.004519e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
push ecx
mov ecx, dword [0x4ac570]
mov eax, dword [0x4a6384]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45083b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450809
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x45083b
cmp eax, 0x1a
jg 0x45083b
test eax, eax
jne 0x45081f
call fcn.004507d0
mov cl, byte [esp]
dec al
lea edx, [esp]
add cl, al
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x450802
xor eax, eax
pop ecx
ret

Function at 0x4508d0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x4ac570]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450932
mov ecx, dword [eax + 0x97e]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.00455c00
mov bl, al
call fcn.00455c00
mov byte [esp + 6], al
call fcn.00455c00
mov byte [esp + 7], al
call fcn.00455c00
cmp bl, 0x50
pop ebx
jne 0x450932
cmp byte [esp + 2], 0x4b
jne 0x450932
cmp byte [esp + 3], 1
jne 0x450932
cmp al, 2
jne 0x450932
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x450d70
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x4ac570]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x450df5
mov ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x97e]
lea ecx, [esp + 0xc]
push 0
lea esi, [edi + 0x8f5c]
push ecx
push ebp
push esi
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450df5
cmp dword [esp + 0xc], ebp
jne 0x450df5
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x450ded
push 0x2e
push esi
call fcn.0045d7d0
add esp, 8
test eax, eax
je 0x450de6
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.0045d7d0
add esp, 8
test eax, eax
jne 0x450dd4
mov byte [edi + 0x8f67], 0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x450e40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x450e58
or eax, 0xffffffff
pop esi
ret
call fcn.00450e00
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x450e90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x450eaa
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9070], 0
test eax, eax
mov dword [esi + 0x9074], 0
jne 0x450f32
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x450f19
push edi
call fcn.004590d0
add esp, 4
mov dword [esi + 0x9070], eax
mov dword [esi + 0x9074], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x8f04]
push ecx
push ebx
call fcn.00457e10
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x450f32
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x450f40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x450fae
mov ebp, dword [esp + 0x18]
lea esi, [ebx + 0x8f5c]
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x450fae
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00450fc0
lea eax, [edi + eax + 0x2e]
xor edi, edi
mov di, word [ebx + 0xc56]
add esp, 8
lea ecx, [edi + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push esi
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4510a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x4510c7
mov ecx, dword [esp + 0x10]
mov eax, 4
mov dword [ecx + 0x4c], edi
pop edi
pop esi
pop ebx
ret
lea edx, [esi + 0x318]
mov dword [esi + 0x98e], edi
push edx
call fcn.00455800
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x451109
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.004580a0
add esp, 8
push eax
push ebx
call fcn.00450710
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.004559a0
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x451187
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.004580a0
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.00450710
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x451174
push eax
call fcn.0045c4b8
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x451228
jmp 0x451219
cmp dword [esi + 0x34], edi
je 0x4511da
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.00451710
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x4511c9
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.004566b0
add esp, 4
test eax, eax
jne 0x4511b9
inc dword [ebx + 0x4c]
call fcn.00451710
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x4511a9
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x4511ea
mov dword [esi + 0x98a], edi
jmp 0x4511ea
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 0xc2a]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x8ce2]
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x45120f
push eax
call fcn.0045c4b8
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x451228
push eax
call fcn.0045c4b8
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x451240
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x451272
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x4c], eax
mov eax, 4
add esp, 0x138
ret
mov esi, dword [esp + 0x148]
add eax, 0x318
test eax, eax
mov edi, dword [esi + 0x10]
je 0x45136a
test edi, edi
je 0x45136a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x451340
push edi
call ebx
test eax, eax
je 0x451340
push esi
call fcn.004510a0
add esp, 4
test eax, eax
jne 0x45138a
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4512d1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x138
ret
lea edx, [esp + 0xc]
push esi
xor ebx, ebx
mov dword [esi + 0xc], edx
call fcn.004520b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4512f9
push esi
inc ebx
call fcn.004520b0
mov edi, eax
add esp, 4
test edi, edi
je 0x4512e9
cmp edi, 0x30
je 0x45132a
cmp edi, 2
push esi
jne 0x451322
call fcn.004510a0
add esp, 4
mov edi, eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
call fcn.004510a0
add esp, 4
mov eax, edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x69
call fcn.004580a0
add esp, 8
push eax
push 0xb
call fcn.00450710
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x68
call fcn.004580a0
add esp, 8
push eax
push 0xb
call fcn.00450710
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x452980
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
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 0x4529a0
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x4529d5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.004580a0
add esp, 8
push eax
push 0x2f
call fcn.00450710
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.00455800
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x452a0b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.004580a0
add esp, 8
push eax
push edi
call fcn.00450710
add esp, 0xc
mov eax, edi
mov dword [esi + 0x4c], ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x8ce2]
cmp eax, ebx
je 0x452a24
push eax
call fcn.0045c4b8
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x452a3d
push eax
call fcn.0045c4b8
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.004559a0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x452a82
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.004580a0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.00450710
mov eax, dword [esi + 0x98a]
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0xc34]
pop edi
mov dword [eax + 0x4c], edx
pop esi
xor eax, eax
pop ebx
ret
Function at 0x453100
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x45311c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.004594d0
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.00459420
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.00459450
add esp, 4
inc edi
cmp edi, 0xc
jl 0x453132
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x453168
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x45317d
mov eax, dword [ebx + 0xc4a]
xor ecx, ecx
shr eax, 0x10
mov cl, ah
and ecx, 0xff
mov eax, ecx
and esi, 0xffff
cmp esi, eax
je 0x45318e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x4531a0
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x4531cc
lea edi, [eax + 1]
call fcn.00459420
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.00459450
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x4531b0
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4531e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x453200
mov eax, 4
pop edi
add esp, 0x10
ret
push esi
mov dword [edi + 0xc84], 0
xor esi, esi
lea ecx, [esp + 0xa]
push edi
push ecx
call fcn.00458670
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x45320d
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x453254
lea eax, [esp + 8]
push eax
call fcn.00453100
add esp, 4
test eax, eax
jne 0x453254
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x453520
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x45353a
mov eax, 9
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
dec edx
mov dword [esi + 0x8cf8], eax
and edx, 9
pop esi
mov eax, edx
ret
Function at 0x455800
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x45598b
cmp dword [ebp + 0x19c], ebx
jne 0x45594d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x4a9d28
push ecx
mov dword [ebp + 0x99e], ebx
mov dword [ebp + 0x996], ebx
mov dword [ebp + 0x96a], ebx
mov dword [ebp + 0x9a6], ebx
mov dword [ebp + 0x9aa], ebx
mov dword [ebp + 0x8f58], ebx
mov dword [ebp + 0x8cea], ebx
mov dword [ebp + 0x8cee], ebx
mov dword [ebp + 0x8cf2], ebx
mov byte [ebp + 0x8cf6], bl
mov dword [ebp + 0x9060], ebx
mov dword [ebp + 0x9064], ebx
mov dword [ebp + 0x906c], ebx
mov dword [ebp + 0x982], ebx
mov dword [ebp + 0x986], ebx
mov dword [ebp + 0x98a], ebx
mov dword [ebp + 0x8f4c], ebx
call esi
mov edx, dword [esp + 0x14]
lea eax, [ebp + 0x8cfc]
push edx
push eax
call esi
call fcn.00450e90
test eax, eax
je 0x4558c3
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x4558d0
cmp dword [ebp + 0xc7c], ebx
je 0x4558e3
lea esi, [ebp + 0x8f04]
lea edi, [ebp + 0x8f28]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x8cfc]
lea esi, [ebp + 0x8e00]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45591b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x45591b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x45594d
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.004519e0
add esp, 4
mov dword [ebp + 0x976], ebx
mov ecx, 9
xor eax, eax
lea edi, [ebp + 0x8f28]
mov dword [ebp + 0xc36], ebx
mov dword [ebp + 0x97a], ebx
mov byte [esi], bl
rep stosd dword es:[edi], eax
push 0x2804
call fcn.0045c500
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.0045c500
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x45598b
cmp eax, ebx
je 0x45598b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
Function at 0x4559a0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x4ac570]
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 0x4559c2
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x4559d1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
or edi, 0xffffffff
mov dword [esi + 0x96e], edi
push ecx
mov dword [esi + 0xc7c], ebx
mov dword [esi + 0xc80], ebx
mov dword [esi + 0x972], edi
call fcn.00450940
add esp, 4
cmp eax, 0xfffffffd
jne 0x455a54
cmp edx, edi
jne 0x455a54
mov eax, 1
mov word [esi + 0xc24], di
mov word [esi + 0xc26], bx
mov word [esi + 0xc28], bx
mov word [esi + 0xc2a], 0x7fff
mov dword [esi + 0xc2c], ebx
mov dword [esi + 0xc30], ebx
mov word [esi + 0xc34], bx
mov dword [esi + 0xc20], eax
mov dword [esi + 0xc7c], eax
mov dword [esi + 0xc80], ebx
call fcn.00451710
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x455a69
cmp edx, edi
jne 0x455a69
mov ebx, 5
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
mov ecx, eax
and ecx, edx
cmp ecx, edi
je 0x455bf0
cmp eax, 0xfffffffe
jne 0x455acd
cmp edx, edi
jne 0x455acd
call fcn.00450e00
push 0x4a9d28
push edi
push ebx
push 1
push ebx
call fcn.00455f90
add esp, 0x14
cmp eax, 1
jne 0x455ac1
call fcn.00450e90
test eax, eax
jne 0x455ab8
call fcn.00450e40
test eax, eax
je 0x455ab8
push 1
call fcn.00450940
add esp, 4
jmp 0x455a75
mov eax, 0xfffffffe
mov edx, edi
jmp 0x455a75
mov ebx, 0x30
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
mov ecx, eax
and ecx, edx
cmp ecx, edi
je 0x455bf0
mov dword [esi + 0x96e], eax
add eax, 4
mov dword [esi + 0x972], edx
push ebx
adc edx, ebx
push edx
mov edx, dword [esi + 0x97e]
push eax
push edx
call fcn.00459060
mov ecx, dword [esi + 0x97e]
add esp, 0x10
lea eax, [esp + 0xc]
lea edi, [esi + 0xc24]
push ebx
push eax
push 0x12
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x455be1
cmp dword [esp + 0xc], ebx
je 0x455be1
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x455ba8
lea edx, [esi + 0x8cfc]
push edx
call fcn.00450840
push eax
call fcn.004507e0
add esp, 8
test eax, eax
jne 0x455b8e
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x455b8e
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x455b8e
movsx edx, bx
mov word [edi], bx
mov dword [esi + 0xc7c], ebx
mov word [esi + 0xc26], bx
mov dword [esi + 0xc80], edx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
movsx edx, word [edi]
mov dword [esi + 0xc7c], 1
mov dword [esi + 0xc80], edx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
cmp word [esi + 0xc26], bx
mov dword [esi + 0xc7c], ebx
je 0x455bd1
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x455bd1
mov word [edi], bx
mov word [esi + 0xc26], bx
movsx ecx, word [edi]
mov dword [esi + 0xc80], ecx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
or eax, 0xffffffff
mov dword [esi + 0x96e], eax
mov dword [esi + 0x972], eax
mov ebx, 3
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x455c00
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
mov eax, dword [0x4ac570]
sub esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x455c47
mov eax, dword [eax + 0x97e]
lea ecx, [esp]
push 0
push ecx
lea edx, [esp + 0xc]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x455c47
mov eax, dword [esp]
test eax, eax
je 0x455c47
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x455c50
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x455df8
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x455def
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x455def
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x455c8b
mov ecx, dword [esi + 0x5c]
jmp 0x455c91
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x455cac
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x455cc1
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x455df8
test ecx, ecx
jne 0x455cc9
xor edi, edi
jmp 0x455cfb
cmp ecx, 0x186a0
jbe 0x455ce1
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x455cea
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 2
xor edx, edx
div ecx
mov edi, eax
inc edi
cmp edi, 0x64
jle 0x455cfb
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x455d9b
lea edx, [esi + 0x9ae]
lea eax, [esi + 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x1a8]
lea ecx, [esi + 0x30c]
mov dword [esi + 0x314], eax
mov dword [esi + 0x310], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0x1a4]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x455d7f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x455d7f
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x455def
push esi
mov dword [esi], 1
call fcn.00458040
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 0x2c]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.00458040
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x455dda
mov eax, dword [esi + 0xc]
test eax, eax
je 0x455dda
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x455def
push esi
mov dword [esi], 1
call fcn.00458040
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, dword [esi + 0xb18]
lea eax, [esi + 0x9ae]
push edx
push edi
push eax
call dword [esi + 0xb14]
push esi
call fcn.00458040
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x455e00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4ac570]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x455e17
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x455e2d
mov eax, dword [esi + 0xaba]
test eax, eax
jne 0x455e2d
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x455e3b
xor edi, edi
jmp 0x455e6e
cmp ecx, 0x186a0
jle 0x455e5c
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 0x455e69
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 0x455e83
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x9aa], edi
je 0x455f1c
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 0x455f02
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x455f7f
push esi
mov dword [esi], 1
call fcn.00458040
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.00458040
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1a4]
sub eax, 0x64
je 0x455f6c
sub eax, 0x64
je 0x455f5d
sub eax, 0x64
je 0x455f5d
mov edx, dword [esi + 0xabe]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0xaba]
test eax, eax
je 0x455f7f
push esi
mov ebp, 1
call fcn.00458040
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 0x455f3e
mov eax, dword [esi + 0xabe]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0xaba]
push esi
call fcn.00458040
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret