joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 0x130]
push edi
lea edi, [ebx + 0x130]
push esi
push dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov ecx, edi
call eax
test al, al
je 0x405e08
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.00408b30
test al, al
je 0x405e08
mov dword [ebx + 0x34c], edi
mov eax, 0x44e470
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebx + 8], edi
cmp dword [eax], edi
je 0x405cb8
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x405c51
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x44e9dc
call fcn.00401e00
push edi
push 0x44ea70
push eax
call fcn.004063a0
add esp, 0xc
cmp byte [esi + 0x11c], 0
je 0x405c8c
add esi, 0xc
jmp 0x405c8f
mov esi, dword [esi + 8]
push 0x44e9f0
mov ecx, ebx
call fcn.00401e00
lea ecx, [esi + 4]
push ecx
push 0x44ea78
push eax
call fcn.004063a0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
push ecx
mov dword [ebp - 4], ecx
mov ecx, esi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
mov edi, 1
cmp eax, 0xffffffff
jne 0x405d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 8]
cmp eax, 0x20
jne 0x405d1f
cmp edi, 3
jge 0x405d87
cmp byte [ebx + 0x350], 0
je 0x405d4a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405d4a
cmp eax, 5
jne 0x405d87
lea ecx, [esi + 8]
cmp edi, 3
jge 0x405d87
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x405d3b
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 0xc]
mov ecx, esi
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x405cf5
push esi
lea ecx, [ebx + 0xc]
call fcn.00402500
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x405dc2
lea esi, [ecx + 4]
cmp byte [ecx + 0x114], al
jne 0x405d98
mov esi, dword [ecx]
mov ecx, dword [ebp + 8]
push 0x44ea00
call fcn.00401e00
lea ecx, [esi + 4]
push ecx
push 0x44ea78
push eax
call fcn.004063a0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ecx + 0x114], 0
lea edi, [ecx + 4]
jne 0x405dd0
mov edi, dword [ecx]
mov ecx, dword [ebp + 8]
push eax
call fcn.004070f0
push 0x44e9f0
mov esi, eax
push 0x44ea78
push esi
call fcn.004063a0
lea ecx, [edi + 4]
push ecx
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 0x44a72c
call fcn.00401e00
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407420
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
mov edi, edx
mov dword [ebp - 8], 0
xor bl, bl
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x407460
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.00429862
add esp, 4
mov esi, eax
push esi
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4074e1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44a728
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4074e1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx eax, word [ecx + 0xa]
mov word [edi], ax
movzx eax, word [ecx + 8]
mov word [edi + 2], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 4], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 6], ax
test edx, edx
je 0x4074df
movzx eax, word [ecx + 0x12]
mov word [edx], ax
movzx eax, word [ecx + 0x10]
mov word [edx + 2], ax
movzx eax, word [ecx + 0x16]
mov word [edx + 4], ax
movzx eax, word [ecx + 0x14]
mov word [edx + 6], ax
mov bl, 1
test esi, esi
je 0x4074ee
push esi
call fcn.00429847
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.00423c20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4075f6
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004298d5
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x20c]
call fcn.00407420
add esp, 0x10
test al, al
je 0x4075f6
movzx eax, word [ebp - 0x214]
mov dword [edi + 4], eax
movzx eax, word [ebp - 0x212]
mov dword [edi + 8], eax
movzx eax, word [ebp - 0x210]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi], 0x114
mov dword [edi + 0x10], 2
mov word [edi + 0x14], ax
test esi, esi
je 0x4075e4
movzx eax, word [ebp - 0x21c]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x21a]
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x218]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], ax
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00421dd5
mov esp, ebp
pop ebp
ret
Function at 0x408da0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
call fcn.00408f20
test al, al
je 0x408e09
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call fcn.0040c7e0
push esi
mov ecx, eax
call fcn.0040c350
mov esi, eax
cmp byte [esi], 0
je 0x408e6e
mov ecx, esi
call fcn.0040c700
mov eax, dword [esi + 4]
test eax, eax
jg 0x408de1
mov dword [esi + 4], 0
pop esi
ret
mov dword [esi + eax*8 + 0xfc8], 0
mov dword [esi + eax*8 + 0xfcc], 0
add dword [esi + 4], 0xffffffff
je 0x408e6e
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret
call fcn.00409230
test al, al
je 0x408e6e
cmp byte [0x4599e6], 0
je 0x408e6e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.0040cba0
mov esi, eax
cmp byte [esi + 4], 0
je 0x408e6e
push ecx
mov ecx, esi
call fcn.0040ccc0
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x408e48
mov dword [esi + 0xc], 0
pop esi
ret
mov dword [esi + eax*8 + 0xfb0], 0
mov dword [esi + eax*8 + 0xfb4], 0
add dword [esi + 0xc], 0xffffffff
je 0x408e6e
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret

Function at 0x4095b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40962e
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x4095f8
mov edi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.00407180
push 0x44ea50
mov esi, eax
push 0x44ea78
push esi
call fcn.004063a0
lea ecx, [edi + 4]
push ecx
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0x18
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], edi
je 0x4096c7
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x40964c
mov eax, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
push 0x4502e8
mov dword [ebp + 0x10], eax
call fcn.00401e00
push 0x4502f8
mov esi, eax
push 0x44ea78
push esi
call fcn.004063a0
push edi
push 0x44ea70
push esi
call fcn.004063a0
push 0x450304
push 0x44ea78
push esi
call fcn.004063a0
push dword [ebp - 4]
push 0x44ea70
push esi
call fcn.004063a0
push 0x450314
push 0x44ea78
push esi
call fcn.004063a0
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0x48
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4096f0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x45604c]
xor eax, esp
mov dword [esp + 0x470], eax
push esi
push 0x44eba8
push ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov esi, edx
call fcn.0042a648
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x409745
xor al, al
pop esi
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret
push eax
push 0x400
lea eax, [esp + 0x78]
mov dword [esp + 0x14], 0
push 1
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042ac67
add esp, 0x10
test eax, eax
je 0x4097ba
nop
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0xc]
call fcn.0040d050
push dword [esp + 8]
lea eax, [esp + 0x78]
push 0x400
push 1
push eax
call fcn.0042ac67
add esp, 0x14
test eax, eax
jne 0x409790
mov edx, esi
lea ecx, [esp + 8]
call fcn.0040d110
push dword [esp + 4]
call fcn.0042a7b4
mov ecx, dword [esp + 0x478]
add esp, 4
mov al, 1
pop esi
xor ecx, esp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret
Function at 0x40bda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40be85
test edi, edi
je 0x40be3b
cmp word [edi], 0
je 0x40be3b
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x40bdf5
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004070f0
push 0x450598
mov esi, eax
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0xc
lea ecx, [ebx + 4]
push ecx
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0xc
push 0x44a728
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0xc
push edi
jmp 0x40be6c
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x40be4a
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.004070f0
push 0x450598
mov esi, eax
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x44ea78
push esi
call fcn.004063a0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
je 0x40bef5
test edi, edi
je 0x40beba
cmp word [edi], 0
je 0x40beba
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x40bea6
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0
call fcn.004070f0
push 0x4505a8
jmp 0x40be03
cmp byte [esi + 0x128], 0
je 0x40bec8
add esi, 0x18
jmp 0x40becb
mov esi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0x4505a8
call fcn.00401e00
lea ecx, [esi + 4]
push ecx
push 0x44ea78
push eax
call fcn.004063a0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
pop edi
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40c7e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456f60], 0
push ebx
mov dword [ebp - 4], 0
je 0x40c917
push dword [0x456f68]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40c847
cmp dword [eax], 0xd
jbe 0x40c847
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40c847
push 0
push 0x45706c
push 0x4570a4
push 0
push eax
call fcn.0043b5d4
add esp, 0x14
test eax, eax
je 0x40c847
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c95a
cmp dword [0x456f60], 0
je 0x40c917
push esi
push edi
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040c9a0
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40c903
push 0x2014
call fcn.00421b46
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040c270
cmp dword [0x456f60], 0
mov esi, eax
je 0x40c903
push dword [0x456f68]
call ebx
test eax, eax
je 0x40c903
cmp dword [eax], 0xd
jbe 0x40c903
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x40c8fd
push 8
call fcn.00421b46
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfManager_.0
mov dword [edi + 4], esi
cmp dword [0x456f60], 0
je 0x40c903
push dword [0x456f68]
call ebx
test eax, eax
je 0x40c903
cmp dword [eax], 0xd
jbe 0x40c903
mov eax, dword [eax + 8]
push 0x45fa80
mov dword [eax + 0x34], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x45fae0]
test eax, eax
jne 0x40c95a
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x45fc18]
cmp eax, dword [ecx + 4]
jg 0x40c95f
push 0x45fa80
mov dword [0x45fae0], 0x45fc20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x45fae0]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x45fc18
call fcn.0042215f
add esp, 4
cmp dword [0x45fc18], 0xffffffff
jne 0x40c940
mov ecx, 0x45fc20
call fcn.0040c270
push 0x43d5f0
call fcn.00421dc0
push 0x45fc18
call fcn.00422115
add esp, 8
jmp 0x40c940

Function at 0x40c9a0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x456f60], 0
push esi
mov esi, edx
je 0x40c9f3
push dword [0x456f68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c9f3
cmp dword [eax], 0xd
jbe 0x40c9f3
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40c9f3
push 0
push 0x45706c
push 0x4570a4
push 0
push eax
call fcn.0043b5d4
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x40c9f3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40cd70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456f60], 0
push ebx
mov dword [ebp - 4], 0
je 0x40cea7
push dword [0x456f68]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40cdd7
cmp dword [eax], 0x17
jbe 0x40cdd7
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40cdd7
push 0
push 0x4570c4
push 0x4570a4
push 0
push eax
call fcn.0043b5d4
add esp, 0x14
test eax, eax
je 0x40cdd7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ceea
cmp dword [0x456f60], 0
je 0x40cea7
push esi
push edi
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040cf30
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40ce93
push 0x202c
call fcn.00421b46
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040caa0
cmp dword [0x456f60], 0
mov esi, eax
je 0x40ce93
push dword [0x456f68]
call ebx
test eax, eax
je 0x40ce93
cmp dword [eax], 0x17
jbe 0x40ce93
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x40ce8d
push 8
call fcn.00421b46
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfCationManager_.0
mov dword [edi + 4], esi
cmp dword [0x456f60], 0
je 0x40ce93
push dword [0x456f68]
call ebx
test eax, eax
je 0x40ce93
cmp dword [eax], 0x17
jbe 0x40ce93
mov eax, dword [eax + 8]
push 0x45fa80
mov dword [eax + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x45fae4]
test eax, eax
jne 0x40ceea
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x463c64]
cmp eax, dword [ecx + 4]
jg 0x40ceef
push 0x45fa80
mov dword [0x45fae4], 0x461c38
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x45fae4]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x463c64
call fcn.0042215f
add esp, 4
cmp dword [0x463c64], 0xffffffff
jne 0x40ced0
mov ecx, 0x461c38
call fcn.0040caa0
push 0x43d620
call fcn.00421dc0
push 0x463c64
call fcn.00422115
add esp, 8
jmp 0x40ced0

Function at 0x40cf30
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x456f60], 0
push esi
mov esi, edx
je 0x40cf83
push dword [0x456f68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40cf83
cmp dword [eax], 0x17
jbe 0x40cf83
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40cf83
push 0
push 0x4570c4
push 0x4570a4
push 0
push eax
call fcn.0043b5d4
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x40cf83
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40da10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c000
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x40da69
push eax
call fcn.00429847
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push ecx
lea ecx, [ebp - 0x370]
call fcn.00405a60
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], 0x4507b0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push ebx
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 0
call fcn.00405c00
test al, al
je 0x40dbff
lea eax, [ebp - 0x378]
mov dword [ebp - 0x378], 0
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x40daee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40dae8
xor eax, eax
jmp 0x40daee
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x36c]
mov dword [ebp - 0x378], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x40db33
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40db2d
xor eax, eax
mov dword [ebp - 0x374], eax
jmp 0x40db33
mov eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.00429862
add esp, 4
mov dword [ebp - 0x378], eax
test eax, eax
jne 0x40db6c
mov dword [edi + 0x24], 2
cmp byte [esi + 0x11c], al
je 0x40db62
add esi, 0xc
push 0x450664
jmp 0x40dbac
mov esi, dword [esi + 8]
push 0x450664
jmp 0x40dbac
push dword [ebp - 0x374]
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.0040e020
test al, al
jne 0x40dbc7
mov ecx, dword [ebp - 0x378]
push ecx
mov dword [edi + 0x24], 3
call fcn.00429847
add esp, 4
cmp byte [esi + 0x11c], 0
je 0x40dba4
add esi, 0xc
jmp 0x40dba7
mov esi, dword [esi + 8]
push 0x44e9f0
mov ecx, ebx
call fcn.00401e00
lea ecx, [esi + 4]
push ecx
push 0x44ea78
push eax
call fcn.004063a0
add esp, 0xc
jmp 0x40dc06
lea ecx, [ebp - 0x370]
call fcn.00405e20
mov ecx, dword [ebp - 0x378]
xor edx, edx
mov eax, dword [ebp - 0x374]
push ecx
push eax
push ecx
mov dword [ecx + eax], edx
mov ecx, edi
push ebx
call fcn.0040dd20
test al, al
jne 0x40dbfb
mov dword [edi + 0x24], 4
jmp 0x40db96
mov bl, 1
jmp 0x40dc08
mov dword [edi + 0x24], 1
xor bl, bl
lea ecx, [ebp - 0x370]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.00405b40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40e110
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e091
cmp byte [esi - 0x22c], al
je 0x40e06c
add esi, 0xfffffcc4
jmp 0x40e072
mov esi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.00407180
push 0x44ea20
mov edi, eax
push 0x44ea78
push edi
call fcn.004063a0
add esp, 0xc
jmp 0x40e0bd
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x40e0d9
cmp byte [esi - 0x22c], cl
je 0x40e0a8
add esi, 0xfffffcc4
jmp 0x40e0ae
mov esi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
push 0x44ea30
call fcn.00401e00
mov edi, eax
lea eax, [esi + 4]
push eax
push 0x44ea78
push edi
call fcn.004063a0
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, edi
je 0x40e110
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x40e0f2
mov eax, dword [esi - 0x340]
add eax, 4
push eax
push ecx
push edi
push str.penc_rN
push dword [ebp + 8]
call fcn.00407050
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411a00
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x45604c]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push esi
push 0x44eba8
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call fcn.0042a648
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
je 0x411b0c
push eax
push 0x400
lea eax, [esp + 0x88]
mov dword [esp + 0x14], 0
push 1
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042ac67
add esp, 0x10
test eax, eax
je 0x411ac1
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0xc]
call fcn.0040d050
push dword [esp + 8]
lea eax, [esp + 0x88]
push 0x400
push 1
push eax
call fcn.0042ac67
add esp, 0x14
test eax, eax
jne 0x411a91
lea edx, [esp + 0x70]
lea ecx, [esp + 8]
call fcn.0040d110
push dword [esp + 4]
call fcn.0042a7b4
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x74]
add esp, 4
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x411b0c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x411ae6
mov al, 1
pop esi
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x484]
xor al, al
pop esi
xor ecx, esp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret