joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004a1290
mov eax, dword [0x5d4074]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x58ee50]
mov esi, eax
test esi, esi
jne 0x426597
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x426524
cmp word [esp + 0x10], ax
jne 0x4264e8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004061c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4264f0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004061c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x426592
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x426577
cmp eax, 0x400
ja 0x426577
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00406170
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret 8

Function at 0x4271f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x42724b
mov ecx, esi
jmp 0x427250
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x427275
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x42725f
mov eax, dword [eax]
jmp 0x427243
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x427590
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x427601
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x427601
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x427645
cmp esi, eax
jne 0x4275f5
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x42762e
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x42767b
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x42769d
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xc]
dec dword [ebx + 8]
call fcn.00405770
push edi
call fcn.00509540
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x427683
mov dword [ecx], edi
jmp 0x42769d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x42769d
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004276c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x428e60
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x79c200]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x428f9f
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x79c4d4]
test cl, 1
jne 0x428ec7
rdtsc
or ecx, 1
mov dword [0x79c4c8], eax
mov dword [0x79c4d4], ecx
mov dword [0x79c4cc], edx
test cl, 2
jne 0x428ef7
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x79c4d4], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x79c4d8], eax
mov eax, dword [ebp - 0xc]
mov dword [0x79c4dc], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x79c4d8]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x79c4dc]
call fcn.0055f360
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.0055f3a0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x5c4268]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x428f7d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x79c4c8]
mov ecx, edi
sbb ebx, dword [0x79c4cc]
mov edx, ebx
call fcn.0055f360
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x79c200], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x429df0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
push 2
mov esi, eax
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
call fcn.0041a790
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x429e7b
cmp eax, 0xffffffff
je 0x429e7b
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x429e7b
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x230], esi
je 0x429e9a
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call edi
test eax, eax
jne 0x429e60
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.0041a720
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a04e0
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x220]
jmp 0x429e7d
Function at 0x42a8d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x42a93b
cmp dword [0x79c4e8], 0
jne 0x42a928
push 0x4c
call fcn.004a04f1
add esp, 4
mov ecx, eax
call fcn.0042e290
mov esi, eax
mov edx, 0x79c4e8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x42a928
test esi, esi
je 0x42a928
lea ecx, [esi + 0x34]
call fcn.00405950
push esi
call fcn.00509540
add esp, 4
mov eax, dword [0x79c4e8]
cmp dword [eax], 1
jl 0x42a93b
mov dword [ebp - 4], 0x10000
jmp 0x42a93d
xor ebx, ebx
push 0xc
call fcn.004a04f1
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x42a810
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42a986
push esi
call fcn.00509540
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42a995
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431890
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov eax, ecx
mov dword [ebp - 8], ebx
mov edi, 8
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 8], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x4318cd
cmp byte [0x79c268], al
jne 0x4318f3
int3
test bl, 1
je 0x4318e0
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.004219d0
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x4318ab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0053141b
int3

Function at 0x433110
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
call fcn.00433450
mov eax, dword [0x786a38]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x433131
call fcn.0043a450
mov edx, eax
mov eax, dword [0x79c2b4]
cmp dword [edx + eax*4], 0
jne 0x433172
push 0x70
call fcn.004a04f1
add esp, 4
mov ecx, eax
push edi
call fcn.00432f00
mov ecx, dword [0x786a38]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43316a
call fcn.0043a450
mov ecx, eax
mov eax, dword [0x79c2b4]
mov dword [ecx + eax*4], edi
pop edi
ret

Function at 0x433180
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x79c2b0]
push ebx
push esi
push edi
test eax, eax
jne 0x433190
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x786a38]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4331a9
call fcn.0043a450
mov ecx, eax
mov eax, dword [0x79c2b4]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x433239
mov ecx, 0x79c274
xor edi, edi
xor ebx, ebx
call fcn.00429070
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x79c298]
test ecx, ecx
je 0x4331e9
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x79c298], eax
mov dword [ecx + 4], ebx
jmp 0x4331f6
mov ebx, dword [0x79c2b8]
inc ebx
mov dword [0x79c2b8], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x433215
push 0x70
call fcn.004a04f1
add esp, 4
mov ecx, eax
push ebx
call fcn.00432fb0
mov edi, eax
mov ecx, dword [0x786a38]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43322f
call fcn.0043a450
mov ecx, eax
mov eax, dword [0x79c2b4]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x433e10
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
nop
push 0x22c
push 0
push edi
call fcn.0052eb40
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x433e48
mov byte [esi + 8], 1
call ebx
jmp 0x433e4e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x433e6a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x433e20
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x434610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.00435620
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov ecx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
call fcn.00440380
lea ecx, [esp + 0x18]
call fcn.00440460
mov esp, ebp
pop ebp
ret

Function at 0x435680
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push dword [ebp + 8]
xor ebx, ebx
push dword [ecx]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4356e1
cmp dword [0x79c13c], 3
jg 0x4356d3
push 3
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.00421910
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00407780
add esp, 8
mov ebx, 1
test bl, 1
je 0x4356e1
lea ecx, [esp + 8]
call fcn.004219d0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x436550
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5d4074]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
xor ebx, ebx
mov byte [esp + 0xb], 1
push edi
mov dword [esp + 0x10], ebx
mov esi, ecx
push ebx
push 2
mov dword [esp + 0x240], 0x5bf968
mov byte [esp + 0x248], bl
mov dword [esp + 0x478], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
lea ecx, [esp + 0x478]
mov dword [esp + 0x240], eax
mov dword [esp + 0x23c], 0x5bf2d0
call fcn.00405880
lea ecx, [esp + 0x238]
call fcn.00433e10
test eax, eax
je 0x4366c2
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [eax + 8]
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov byte [esp + 0x10], 0
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0041a790
call edi
cmp esi, eax
jne 0x436612
cmp byte [0x79c268], 0
jne 0x43670a
int3
test bl, 1
je 0x436623
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.004219d0
test bl, 2
je 0x436634
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.004219d0
cmp byte [esp + 0x10], 0
je 0x43663f
call edi
jmp 0x436643
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
mov byte [esp + 0xe], al
test al, al
je 0x436689
cmp byte [esp + 0x10], 0
je 0x436664
call edi
jmp 0x436668
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43669d
test bl, 4
je 0x43669d
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
jmp 0x436698
test bl, 8
je 0x4366a1
and ebx, 0xfffffff7
lea ecx, [esp + 0x180]
call fcn.00422080
mov al, byte [esp + 0xe]
and byte [esp + 0xf], al
lea ecx, [esp + 0x14]
call fcn.0041a720
lea ecx, [esp + 0x238]
call fcn.00433e10
test eax, eax
jne 0x4365d5
lea ecx, [esp + 0x474]
mov dword [esp + 0x238], 0x5bf2d0
call fcn.00405770
push dword [esp + 0x23c]
mov dword [esp + 0x23c], 0x5bf968
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x494]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret
push 1
call fcn.0053141b
int3

Function at 0x439740
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x43975b
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], eax
call fcn.004235b0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.004236d0
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.004396a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret
Function at 0x4397c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x43982e
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x5bf4d8]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x5bf4d8]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x5bf4d8]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5bf4d8]
sub ebx, 1
jne 0x4397d7
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a450
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x786a38]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x43a4f0
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x43a49d
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x43a4ce
cmp byte [0x79c268], 0
jne 0x43a567
int3
mov ecx, ebx
mov edx, 0x786a38
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x43a4f0
push ebx
call esi
mov ebx, dword [0x786a38]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a505
cmp byte [0x79c268], 0
jne 0x43a575
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0052eb40
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.004a0767
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a04e0
mov esp, ebp
pop ebp
ret
push 1
call fcn.0053141b
push 1
call fcn.0053141b
push 1
call fcn.0053141b
int3
Function at 0x43a580
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x5d4074]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x786a38]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004a0532
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x79c2e0]
xor dl, dl
test esi, esi
jle 0x43a618
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x43a613
mov eax, dword [esi*4 + 0x79b5f0]
test eax, eax
je 0x43a613
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x43a5f0
dec edi
test edi, edi
jle 0x43a621
test dl, dl
jne 0x43a5e0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a04e0
mov esp, ebp
pop ebp
ret

Function at 0x43a650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x786a38]
mov dword [ebp - 4], 0
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x43a675
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x43a67a
call fcn.0043a450
mov eax, 1
mov ecx, 0x79c2e0
lock xadd dword [ecx], eax
inc eax
mov dword [esi + 4], eax
cmp eax, 0x100
jl 0x43a69d
cmp byte [0x79c268], 0
jne 0x43a6b6
int3
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x79b5f0], eax
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 1
call fcn.0053141b
int3

Function at 0x43adf0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push edx
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43ae4e
cmp dword [0x79c13c], 3
jg 0x43ae40
push 3
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.00421910
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00407780
add esp, 8
mov ebx, 1
test bl, 1
je 0x43ae4e
lea ecx, [esp + 8]
call fcn.004219d0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43afd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x5bfbbc
mov dword [edi], 0x5bfbb4
mov dword [edi + 4], 0x5bfbd4
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x240]
mov dword [edi + 0x14], eax
call fcn.00435620
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edi
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x43b043
cmp dword [eax], edi
je 0x43b03f
add eax, 4
cmp eax, edx
jne 0x43b034
cmp eax, edx
jne 0x43b04c
lea eax, [ebp + 8]
push eax
call fcn.00435f50
call fcn.0043f330
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x43b06a
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x79c3f0]
test eax, eax
jne 0x43b078
call fcn.004452d0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push str.ThreadLocalEventBuffer
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.00444b40
test esi, esi
je 0x43b0b8
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x43b0b8
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x204]
call fcn.0043e300
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4