joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5cb074]
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], 0x5b6d40
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], 0x5b66a8
call fcn.00405420
lea ecx, [esp + 0x238]
call fcn.004336e0
test eax, eax
je 0x435f92
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.0041a330
call edi
cmp esi, eax
jne 0x435ee2
cmp byte [0x755538], 0
jne 0x435fda
int3
test bl, 1
je 0x435ef3
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.004214b0
test bl, 2
je 0x435f04
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.004214b0
cmp byte [esp + 0x10], 0
je 0x435f0f
call edi
jmp 0x435f13
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 0x435f59
cmp byte [esp + 0x10], 0
je 0x435f34
call edi
jmp 0x435f38
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x435f6d
test bl, 4
je 0x435f6d
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
jmp 0x435f68
test bl, 8
je 0x435f71
and ebx, 0xfffffff7
lea ecx, [esp + 0x180]
call fcn.00421b60
mov al, byte [esp + 0xe]
and byte [esp + 0xf], al
lea ecx, [esp + 0x14]
call fcn.0041a2c0
lea ecx, [esp + 0x238]
call fcn.004336e0
test eax, eax
jne 0x435ea5
lea ecx, [esp + 0x474]
mov dword [esp + 0x238], 0x5b66a8
call fcn.00405310
push dword [esp + 0x23c]
mov dword [esp + 0x23c], 0x5b6d40
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.0049fa97
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
int3

Function at 0x438eb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x438ecb
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.00423020
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.00423140
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.00438e10
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x438f30
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 0x438f9e
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 + 0x5b68b0]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x5b68b0]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x5b68b0]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5b68b0]
sub ebx, 1
jne 0x438f47
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439bc0
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 [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x73ffe8]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x439c60
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x439c0d
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x439c3e
cmp byte [0x755538], 0
jne 0x439cd7
int3
mov ecx, ebx
mov edx, 0x73ffe8
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x439c60
push ebx
call esi
mov ebx, dword [0x73ffe8]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x439c75
cmp byte [0x755538], 0
jne 0x439ce5
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.005296a0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.0049fd23
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.0049fa97
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
push 1
call fcn.0052bfde
push 1
call fcn.0052bfde
int3
Function at 0x439cf0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x73ffe8]
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.0049faee
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x7555b0]
xor dl, dl
test esi, esi
jle 0x439d88
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x439d83
mov eax, dword [esi*4 + 0x7548c0]
test eax, eax
je 0x439d83
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x439d60
dec edi
test edi, edi
jle 0x439d91
test dl, dl
jne 0x439d50
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.0049fa97
mov esp, ebp
pop ebp
ret

Function at 0x439dc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x73ffe8]
mov dword [ebp - 4], 0
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x439de5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x439dea
call fcn.00439bc0
mov eax, 1
mov ecx, 0x7555b0
lock xadd dword [ecx], eax
inc eax
mov dword [esi + 4], eax
cmp eax, 0x100
jl 0x439e0d
cmp byte [0x755538], 0
jne 0x439e26
int3
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x7548c0], eax
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 1
call fcn.0052bfde
int3

Function at 0x43a560
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 0x43a5be
cmp dword [0x75540c], 3
jg 0x43a5b0
push 3
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.004213f0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00407320
add esp, 8
mov ebx, 1
test bl, 1
je 0x43a5be
lea ecx, [esp + 8]
call fcn.004214b0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a740
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], 0x5b6f94
mov dword [edi], 0x5b6f8c
mov dword [edi + 4], 0x5b6fac
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.00434ef0
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 0x43a7b3
cmp dword [eax], edi
je 0x43a7af
add eax, 4
cmp eax, edx
jne 0x43a7a4
cmp eax, edx
jne 0x43a7bc
lea eax, [ebp + 8]
push eax
call fcn.00435820
call fcn.0043eaa0
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x43a7da
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x7556b0]
test eax, eax
jne 0x43a7e8
call fcn.00444990
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.00444210
test esi, esi
je 0x43a828
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x43a828
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.0043da70
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
Function at 0x43a890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
push esi
lea esi, [ebx + 4]
mov dword [esi], 0x5b6fac
push edi
mov dword [ebx], 0x5b6f8c
call fcn.00434ef0
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call edi
push ebx
lea ecx, [eax + 0x54]
call fcn.00435570
mov eax, dword [0x7556b0]
test eax, eax
jne 0x43a8de
call fcn.00444990
push ecx
push esi
mov ecx, eax
call fcn.004442d0
mov esi, dword [ebx + 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xc], 0
je 0x43a925
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x240]
cmp dword [ebx + 0x14], eax
jne 0x43a925
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
push ecx
mov edx, esp
mov dword [ebx + 0xc], 0
mov dword [edx], eax
mov eax, dword [ecx]
push dword [ebx + 0x10]
call dword [eax + 8]
call fcn.00434ef0
push dword [eax]
call edi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov eax, dword [ebx + 8]
push ecx
add eax, 0x204
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.0043d240
mov edi, dword [esp + 0x1c]
mov eax, edi
mov edx, dword [esp + 0x20]
cmp edi, edx
je 0x43a966
nop dword [eax]
mov eax, dword [eax]
cmp eax, edx
jne 0x43a960
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push edi
push eax
call fcn.0043d310
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 8]
push 0
push dword [eax + 0x1f8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43a9d6
cmp dword [0x75540c], 3
jg 0x43a9c6
push 3
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 2
call fcn.004213f0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00407320
add esp, 8
test byte [esp + 0x10], 2
je 0x43a9d6
lea ecx, [esp + 0x28]
call fcn.004214b0
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x43a9f4
mov ecx, esi
call fcn.004424a0
push esi
call fcn.0049fadb
add esp, 4
pop edi
pop esi
mov dword [ebx], method.std::_Facet_base.virtual_4
mov dword [ebx + 4], 0x5b6f94
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ac70
Capabilities:
Allocate thread local storage
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x7d0
lea eax, [edi + 4]
mov dword [edi], 0x5b6fa0
push eax
call esi
push 0x7d0
lea eax, [edi + 0x1c]
push eax
call esi
mov dword [edi + 0x34], 0
lea ecx, [edi + 0x60]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov byte [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
call fcn.004055f0
lea ecx, [edi + 0x78]
call fcn.004269f0
push ecx
lea eax, [esp + 0xc]
mov dword [edi + 0x98], 0
push eax
lea ecx, [edi + 0x9c]
mov dword [esp + 0x10], 0
call fcn.0043d4b0
lea ecx, [edi + 0xbc]
call fcn.004269f0
lea ecx, [edi + 0xdc]
call fcn.0043cf30
lea ecx, [edi + 0xfc]
call fcn.004269f0
mov dword [edi + 0x120], 0
lea ecx, [edi + 0x14c]
mov dword [edi + 0x124], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x130], 0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x148], 0
call fcn.004055f0
mov dword [edi + 0x164], 1
lea ecx, [edi + 0x170]
mov dword [edi + 0x168], 0
mov dword [edi + 0x16c], 0
call fcn.00442aa0
lea ecx, [edi + 0x1b4]
call fcn.00442aa0
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x1f8], 0
call esi
mov dword [edi + 0x1f8], eax
cmp eax, 0xffffffff
jne 0x43ae13
cmp byte [0x755538], 0
jne 0x43af48
int3
mov dword [edi + 0x1fc], 0
call esi
mov dword [edi + 0x1fc], eax
cmp eax, 0xffffffff
jne 0x43ae38
cmp byte [0x755538], 0
jne 0x43af4f
int3
mov dword [edi + 0x200], 0
call esi
mov dword [edi + 0x200], eax
cmp eax, 0xffffffff
jne 0x43ae5d
cmp byte [0x755538], 0
jne 0x43af56
int3
lea ecx, [edi + 0x204]
call fcn.0043ced0
mov dword [edi + 0x224], 0
mov dword [edi + 0x228], 0
mov dword [edi + 0x22c], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
mov dword [edi + 0x238], 0
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov byte [edi + 0x244], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x130], eax
push 0x100
cdq
push 0x1b3
xor edx, 0xcbf29ce4
xor eax, 0x84222325
push edx
push eax
call fcn.004a01d0
mov ecx, edi
mov dword [edi + 0x128], eax
mov dword [edi + 0x12c], edx
call fcn.0043cd10
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x3c], eax
test ecx, ecx
je 0x43af0b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [0x7556b0]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x43af21
call fcn.00444990
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
lea ecx, [esp + 0x10]
push ecx
push str.TraceLog
push edi
mov ecx, eax
call fcn.00444210
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
call fcn.0052bfde
push 1
call fcn.0052bfde
push 1
call fcn.0052bfde
int3
Function at 0x43b2b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 0x1fc]
call edi
test eax, eax
jne 0x43b314
call fcn.00434ef0
push dword [eax]
call edi
test eax, eax
je 0x43b314
push dword [esi + 0x1f8]
call edi
mov edx, eax
test edx, edx
je 0x43b2f6
mov ecx, dword [edx + 0x14]
cmp ecx, dword [esi + 0x240]
je 0x43b314
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax + 4]
push 0x18
call fcn.0049faa8
add esp, 4
mov ecx, eax
push esi
call fcn.0043a740
push eax
lea ecx, [esi + 0x1f8]
call fcn.00434f50
pop edi
pop esi
pop ebx
ret
Function at 0x43c460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov bl, byte [ecx]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], 0
test bl, bl
je 0x43c659
push dword [edi + 0x200]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x43c659
mov ecx, dword [edi + 0x200]
lea edx, [edi + 0x200]
call fcn.0043a560
call fcn.00428640
test al, al
je 0x43c4d9
lea ecx, [ebp - 0x78]
call fcn.00428580
jmp 0x43c4e4
xorps xmm0, xmm0
lea eax, [ebp - 0x68]
movlpd qword [ebp - 0x68], xmm0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
mov ecx, edi
push eax
call fcn.0043a600
test bl, 8
je 0x43c507
mov ecx, dword [ebp - 0x3c]
call fcn.00441290
lea ecx, [ebp - 0x1c]
call fcn.004055f0
test bl, 1
je 0x43c5c9
push dword [ebp - 0x54]
lea eax, [edi + 4]
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov ecx, edi
lea eax, [ebp - 0x50]
push eax
call fcn.0043cc50
mov edx, eax
test edx, edx
je 0x43c564
mov ecx, dword [ebp - 0x48]
sub ecx, dword [edx]
mov eax, dword [ebp - 0x44]
sbb eax, dword [edx + 4]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
je 0x43c564
mov eax, dword [ebp - 0x5c]
sub eax, dword [edx + 8]
mov ecx, dword [ebp - 0x64]
sbb ecx, dword [edx + 0xc]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [edi + 0x164]
test al, 8
je 0x43c591
push edx
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push 0x45
lea eax, [ebp - 0x34]
push eax
call fcn.0043bf20
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412560
lea ecx, [ebp - 0x34]
call fcn.004054f0
cmp dword [0x755694], 0
je 0x43c5ba
mov eax, dword [0x755694]
test eax, eax
setne al
test al, al
je 0x43c5ba
call fcn.00442a00
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x43c5ba
add ecx, 0xfffffffc
mov dword [eax + 4], ecx
cmp byte [ebp - 0x4c], 0
je 0x43c5c9
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x43c617
cmp dword [0x75540c], 2
jg 0x43c606
push 2
push 0x5b6
push str.e:zmbase_base_trace_event_trace_log.cc
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x38], 2
call fcn.004213f0
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.00414100
add esp, 8
test byte [ebp - 0x38], 2
je 0x43c617
lea ecx, [ebp - 0x128]
call fcn.004214b0
test bl, 4
je 0x43c644
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x43c644
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x6c]
push 0x45
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call eax
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.004054f0
mov ecx, dword [edi + 0x200]
xor edx, edx
call fcn.0043a560
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43cc50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x43cc75
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x1f8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x43cca0
push dword [edi + 0x1f8]
call esi
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.0043a6f0
test eax, eax
jne 0x43ccff
mov esi, dword [ebp + 8]
test esi, esi
je 0x43ccb9
cmp byte [esi + 4], 0
jne 0x43ccb9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x224]
mov edx, dword [ebp + 0x10]
test ecx, ecx
je 0x43ccf3
mov eax, edx
and eax, 0x3ffffff
cmp eax, dword [edi + 0x228]
jne 0x43ccf3
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x1c08]
jne 0x43cc6b
shr edx, 0x1a
imul eax, edx, 0x70
add eax, 8
add eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43d370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x43d38a
mov esi, dword [ebx]
jmp 0x43d38c
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x43d3a8
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x43d397
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp + 0xc], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
cmp edx, edi
jne 0x43d3d0
mov eax, edi
jmp 0x43d3d4
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x43d40d
lea ecx, [esi + 8]
mov edx, ebx
call fcn.00419010
test al, al
jne 0x43d3f0
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x43d3c8
lea edx, [esi + 8]
mov ecx, ebx
call fcn.00419010
test al, al
mov eax, dword [ebp + 8]
cmove esi, edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43de30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [edi + 0x14], 0x10
jb 0x43de46
mov esi, dword [edi]
jmp 0x43de48
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x43de66
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x43de54
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 4]
and eax, edx
lea ecx, [eax*8]
mov dword [ebp - 4], ecx
add ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], ecx
mov eax, dword [ecx]
cmp esi, eax
je 0x43dea8
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x43dea8
nop dword [eax]
mov esi, dword [esi + 4]
mov ecx, edi
lea edx, [esi + 8]
call fcn.00419010
test al, al
jne 0x43deec
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x43de90
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x43ded2
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 ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x43df24
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x43df46
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 + 8]
dec dword [ebx + 8]
call fcn.004054f0
push edi
call fcn.0049fadb
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x43df2c
mov dword [ecx], edi
jmp 0x43df46
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x43df46
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.0043e1e0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43ea10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0xc], ebx
call fcn.0043eaa0
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43ea75
cmp dword [0x75540c], 3
jg 0x43ea67
push 3
push 0x23
push str.e:zmbase_base_threading_thread_local_win.cc
lea ecx, [esp + 0x1c]
lea ebx, [eax + 2]
call fcn.004213f0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00407320
add esp, 8
test bl, 2
je 0x43ea75
lea ecx, [esp + 0x10]
call fcn.004214b0
mov edx, dword [esi]
test edx, edx
je 0x43ea96
lea esi, [edx + 4]
or eax, 0xffffffff
lock xadd dword [esi], eax
sub eax, 1
jne 0x43ea96
xor ecx, ecx
test esi, esi
cmovne ecx, edx
mov eax, dword [ecx]
call dword [eax + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret