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

Disassembly:
push ecx
mov ecx, dword [0x526ad4]
mov eax, dword [0x51cf2c]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x49a6ab
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49a679
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x49a6ab
cmp eax, 0x1a
jg 0x49a6ab
test eax, eax
jne 0x49a68f
call fcn.0049a640
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 0x49a672
xor eax, eax
pop ecx
ret

Function at 0x49a740
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x526ad4]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x49a7a2
mov ecx, dword [eax + 0x97e]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
call fcn.0049fa70
mov bl, al
call fcn.0049fa70
mov byte [esp + 6], al
call fcn.0049fa70
mov byte [esp + 7], al
call fcn.0049fa70
cmp bl, 0x50
pop ebx
jne 0x49a7a2
cmp byte [esp + 2], 0x4b
jne 0x49a7a2
cmp byte [esp + 3], 1
jne 0x49a7a2
cmp al, 2
jne 0x49a7a2
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x49abe0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x526ad4]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
je 0x49ac65
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 0x49ac65
cmp dword [esp + 0xc], ebp
jne 0x49ac65
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x49ac5d
push 0x2e
push esi
call fcn.004b2210
add esp, 8
test eax, eax
je 0x49ac56
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.004b2210
add esp, 8
test eax, eax
jne 0x49ac44
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 0x49acb0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49acc8
or eax, 0xffffffff
pop esi
ret
call fcn.0049ac70
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x49ad00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49ad1a
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 0x49ada2
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x49ad89
push edi
call fcn.004a2f40
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.004a1c80
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x49ada2
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x49adb0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x49ae1e
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 0x49ae1e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0049ae30
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 0x49af10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
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 0x49af37
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.0049f670
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x49af79
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.004a1f10
add esp, 8
push eax
push ebx
call fcn.0049a580
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.0049f810
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x49aff7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.004a1f10
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.0049a580
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x49afe4
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x49b098
jmp 0x49b089
cmp dword [esi + 0x34], edi
je 0x49b04a
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.0049b580
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x49b039
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.004a0520
add esp, 4
test eax, eax
jne 0x49b029
inc dword [ebx + 0x4c]
call fcn.0049b580
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x49b019
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x49b05a
mov dword [esi + 0x98a], edi
jmp 0x49b05a
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 0x49b07f
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x49b098
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x49b0b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
jne 0x49b0e2
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 0x49b1da
test edi, edi
je 0x49b1da
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
call ebx
test eax, eax
je 0x49b1b0
push edi
call ebx
test eax, eax
je 0x49b1b0
push esi
call fcn.0049af10
add esp, 4
test eax, eax
jne 0x49b1fa
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x49b141
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.0049bf20
mov edi, eax
add esp, 4
test edi, edi
jne 0x49b169
push esi
inc ebx
call fcn.0049bf20
mov edi, eax
add esp, 4
test edi, edi
je 0x49b159
cmp edi, 0x30
je 0x49b19a
cmp edi, 2
push esi
jne 0x49b192
call fcn.0049af10
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.0049af10
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.004a1f10
add esp, 8
push eax
push 0xb
call fcn.0049a580
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.004a1f10
add esp, 8
push eax
push 0xb
call fcn.0049a580
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x49c7f0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
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 0x49c810
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x49c845
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.004a1f10
add esp, 8
push eax
push 0x2f
call fcn.0049a580
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.0049f670
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49c87b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.004a1f10
add esp, 8
push eax
push edi
call fcn.0049a580
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 0x49c894
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x49c8ad
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.0049f810
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x49c8f2
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.004a1f10
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.0049a580
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 0x49cf70
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x49cf8c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.004a3340
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.004a3290
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.004a32c0
add esp, 4
inc edi
cmp edi, 0xc
jl 0x49cfa2
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x49cfd8
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x49cfed
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 0x49cffe
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x49d010
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x49d03c
lea edi, [eax + 1]
call fcn.004a3290
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.004a32c0
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x49d020
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x49d050
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x49d070
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.004a24e0
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x49d07d
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x49d0c4
lea eax, [esp + 8]
push eax
call fcn.0049cf70
add esp, 4
test eax, eax
jne 0x49d0c4
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x49d390
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49d3aa
mov eax, 9
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocStringLen
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 0x49f670
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
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 0x49f7fb
cmp dword [ebp + 0x19c], ebx
jne 0x49f7bd
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [ebp + 0x9ae]
push 0x523a30
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.0049ad00
test eax, eax
je 0x49f733
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret
cmp dword [ebp + 0x44], ebx
jne 0x49f740
cmp dword [ebp + 0xc7c], ebx
je 0x49f753
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 0x49f78b
mov eax, dword [ebp + 0x8f18]
mov ecx, dword [ebp + 0x8f3c]
cmp eax, ecx
jne 0x49f78b
mov ecx, dword [ebp + 0x8f20]
mov eax, dword [ebp + 0x8f44]
cmp ecx, eax
je 0x49f7bd
push ebp
mov dword [ebp + 0xc20], ebx
call fcn.0049b850
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.004af1a1
push 0xf001
mov dword [ebp + 0x8ce2], eax
call fcn.004af1a1
mov ecx, dword [ebp + 0x8ce2]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x8f50], eax
mov dword [ebp + 0x8f58], eax
je 0x49f7fb
cmp eax, ebx
je 0x49f7fb
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 0x49f810
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x526ad4]
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 0x49f832
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
cmp dword [esi + 0xc20], ebx
je 0x49f841
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.0049a7b0
add esp, 4
cmp eax, 0xfffffffd
jne 0x49f8c4
cmp edx, edi
jne 0x49f8c4
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.0049b580
pop edi
pop esi
pop ebx
pop ecx
ret
cmp eax, 0xfffffffc
jne 0x49f8d9
cmp edx, edi
jne 0x49f8d9
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 0x49fa60
cmp eax, 0xfffffffe
jne 0x49f93d
cmp edx, edi
jne 0x49f93d
call fcn.0049ac70
push 0x523a30
push edi
push ebx
push 1
push ebx
call fcn.0049fe00
add esp, 0x14
cmp eax, 1
jne 0x49f931
call fcn.0049ad00
test eax, eax
jne 0x49f928
call fcn.0049acb0
test eax, eax
je 0x49f928
push 1
call fcn.0049a7b0
add esp, 4
jmp 0x49f8e5
mov eax, 0xfffffffe
mov edx, edi
jmp 0x49f8e5
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 0x49fa60
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.004a2ed0
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 0x49fa51
cmp dword [esp + 0xc], ebx
je 0x49fa51
cmp word [edi], bx
mov dword [esi + 0xc20], 1
je 0x49fa18
lea edx, [esi + 0x8cfc]
push edx
call fcn.0049a6b0
push eax
call fcn.0049a650
add esp, 8
test eax, eax
jne 0x49f9fe
mov ax, word [edi]
cmp ax, word [esi + 0xc26]
jne 0x49f9fe
mov cx, word [esi + 0xc28]
cmp cx, word [esi + 0xc2a]
jne 0x49f9fe
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 0x49fa41
mov ax, word [esi + 0xc28]
cmp ax, word [esi + 0xc2a]
jne 0x49fa41
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 0x49fa70
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
mov eax, dword [0x526ad4]
sub esp, 8
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x49fab7
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 0x49fab7
mov eax, dword [esp]
test eax, eax
je 0x49fab7
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x49fac0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
je 0x49fc68
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x49fc5f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x49fc5f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49fafb
mov ecx, dword [esi + 0x5c]
jmp 0x49fb01
mov ecx, dword [esi + 0xab6]
mov edi, dword [esp + 0x10]
lea edx, [ecx + 0x3e8]
cmp edi, edx
jbe 0x49fb1c
mov dword [esi], 1
mov dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x49fb31
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x49fc68
test ecx, ecx
jne 0x49fb39
xor edi, edi
jmp 0x49fb6b
cmp ecx, 0x186a0
jbe 0x49fb51
mov eax, 0x51eb851f
mul ecx
mov ecx, edx
mov eax, edi
shr ecx, 5
jmp 0x49fb5a
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 0x49fb6b
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x96a], edi
je 0x49fc0b
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 0x49fbef
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49fbef
push ecx
mov ecx, dword [esi + 0x2c]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x49fc5f
push esi
mov dword [esi], 1
call fcn.004a1eb0
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.004a1eb0
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1a4], 0xc8
jl 0x49fc4a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49fc4a
mov eax, dword [esi + 0xb18]
lea ecx, [esi + 0x9ae]
push eax
push edi
push ecx
call dword [esi + 0xb14]
test eax, eax
je 0x49fc5f
push esi
mov dword [esi], 1
call fcn.004a1eb0
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.004a1eb0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x49fc70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x49fc87
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x49fc9d
mov eax, dword [esi + 0xaba]
test eax, eax
jne 0x49fc9d
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x49fcab
xor edi, edi
jmp 0x49fcde
cmp ecx, 0x186a0
jle 0x49fccc
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 0x49fcd9
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 0x49fcf3
mov edi, 0x64
test ebx, ebx
mov dword [esi + 0x9aa], edi
je 0x49fd8c
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 0x49fd72
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x49fdef
push esi
mov dword [esi], 1
call fcn.004a1eb0
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.004a1eb0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1a4]
sub eax, 0x64
je 0x49fddc
sub eax, 0x64
je 0x49fdcd
sub eax, 0x64
je 0x49fdcd
mov edx, dword [esi + 0xabe]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [esi + 0xaba]
test eax, eax
je 0x49fdef
push esi
mov ebp, 1
call fcn.004a1eb0
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 0x49fdae
mov eax, dword [esi + 0xabe]
mov ecx, dword [esp + 0x14]
push eax
push edi
push ecx
call dword [esi + 0xaba]
push esi
call fcn.004a1eb0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret