joyce8/EMBER2024-capa huggingface dataset:
Function at 0x577d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x577d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x577d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x577d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x577d94
push eax
push esi
call fcn.0057a20b
add esp, 8
pop esi
ret 0x10

Function at 0x577da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x577e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x577e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x590320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00579dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x577dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x577e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x577ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x577eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x590320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00579dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x577eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x577e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x578000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x578131
push esi
call fcn.0057b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0056a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x578131
push 0
push ebp
call fcn.0056a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0056a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x57808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0056a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x578121
push 0x590918
push edi
call fcn.005793f0
push eax
push ebx
push esi
call fcn.00577f60
push 0x5908f8
push edi
call fcn.005793f0
push eax
push ebx
push esi
call fcn.00577f60
push 0x5908d8
push edi
call fcn.005793f0
push eax
push ebx
push esi
call fcn.00577f60
push 0x5908c0
push edi
call fcn.005793f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00577f60
push 0x5908a0
push edi
call fcn.005793f0
push eax
push ebx
push esi
call fcn.00577f60
push 0x590888
push edi
call fcn.005793f0
push eax
push ebx
push esi
call fcn.00577f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5791b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00579140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00579140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00579140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00579140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x579bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x579c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x58b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x579c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x579c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x487f10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x4880b5
pushal
mov esi, section.UPX1
lea edi, [esi - 0x52000]
push edi
or ebp, 0xffffffff
jmp 0x487f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x487f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487f30
mov eax, 1
add ebx, ebx
jne 0x487f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x487f64
jne 0x487f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487f74
dec eax
add ebx, ebx
jne 0x487f70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x487f48
xor ecx, ecx
sub eax, 3
jb 0x487f8c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x487ffe
sar eax, 1
mov ebp, eax
jmp 0x487f97
add ebx, ebx
jne 0x487f97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x487fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x487fc8
inc ecx
add ebx, ebx
jne 0x487fb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x487fa9
jne 0x487fc5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x487fa9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x487fe8
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x487fd9
jmp 0x487f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x487fe8
add edi, ecx
jmp 0x487f36
pop esi
mov edi, esi
mov ecx, 0x2618
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x488006
cmp byte [edi], 6
jne 0x488006
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x48800b
lea edi, [esi + 0x82000]
mov eax, dword [edi]
or eax, eax
je 0x488083
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8819c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x88264]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x488038
mov ecx, edi
jns 0x488067
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x88268]
or eax, eax
je 0x48807d
mov dword [ebx], eax
add ebx, 4
jmp 0x488055
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4880b4
cmp al, 0xef
ja 0x4880a7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x488089
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x488096
popal
jmp section.UPX0
Function at 0x100038b0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100038d2
push str.__G65DDCAPI_MUTEX__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
Function at 0x10004110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x3c]
cmp eax, ecx
jne 0x1000413c
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
push edi
push 0
push esi
call dword [eax + 0x30]
lea edi, [esi + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1000417b
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x1000416b
mov eax, dword [ecx]
push 3
call dword [eax + 0x1e0]
jmp 0x10004174
push eax
call fcn.1009c380
add esp, 4
mov dword [esi + 0x34], 0
push edi
mov dword [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esi + 0x8c]
test edi, edi
je 0x100041ad
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call fcn.1009c777
add esp, 4
mov dword [esi + 0x8c], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x10004280
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x100042d1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x100042ff
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10004328
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10004314
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10004328
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x1000439e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
lea esi, [edi + 0x44]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x34], 0
jne 0x100043d0
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 6
call ebx
mov dword [ebp + 0x10], 0
jmp 0x10004458
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100043fa
mov ecx, dword [edi + 0x38]
cmp dword [eax], ecx
jae 0x100043f3
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7a
mov dword [eax], ecx
call ebx
mov dword [ebp + 0x10], 0
jmp 0x10004458
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1000440d
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
call ebx
mov dword [ebp + 0x10], 0
jmp 0x10004458
test ecx, ecx
je 0x1000443f
xor ecx, ecx
xor esi, esi
mov dword [ebp + 8], ecx
mov eax, dword [edi + 0x34]
add eax, ecx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp + 8]
inc esi
add ecx, 0x90
add ebx, 0x145
mov dword [ebp + 8], ecx
cmp esi, dword [edi + 0x38]
jb 0x10004418
lea esi, [edi + 0x44]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dword [ecx], eax
call ebx
mov dword [ebp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004480
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x100044ce
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
lea esi, [ebx + 0x44]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x34], 0
jne 0x100044f6
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x10004552
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10004509
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x10004552
xor edi, edi
cmp dword [ebx + 0x38], edi
jbe 0x1000453f
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, dword [ebx + 0x34]
add eax, ecx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
je 0x100044f2
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x10004545
mov ecx, dword [ebp + 8]
inc edi
add ecx, 0x90
mov dword [ebp + 8], ecx
cmp edi, dword [ebx + 0x38]
jb 0x10004515
mov dword [edx], 1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10004580
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x100045d1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x100045ff
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10004628
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10004614
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10004628
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x100046a1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x100046cf
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x100046f8
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x100046e4
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x100046f8
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004a60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10004ab1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x10004adf
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10004b08
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10004af4
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10004b08
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004b30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10004b81
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x10004baf
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10004bd8
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10004bc4
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10004bd8
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004c00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10004c51
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x10004c7f
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10004ca8
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10004c94
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10004ca8
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x10004d1e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
lea esi, [ebx + 0x44]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x34], 0
jne 0x10004d4d
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10004d95
xor edi, edi
cmp dword [ebx + 0x38], edi
jbe 0x10004d84
xor ecx, ecx
mov dword [ebp + 8], ecx
lea esp, [esp]
mov eax, dword [ebx + 0x34]
push dword [ebp + 0xc]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
je 0x10004dbd
mov ecx, dword [ebp + 8]
inc edi
add ecx, 0x90
mov dword [ebp + 8], ecx
cmp edi, dword [ebx + 0x38]
jb 0x10004d60
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp + 8], 0
jmp 0x10004d95