joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7b0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x40b7d0
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40b7dc
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x40b835
lea ecx, [esp + 8]
call fcn.0040ffa0
lea eax, [esp + 8]
push eax
push esi
call fcn.0040bae0
add esp, 8
test al, al
je 0x40b81e
cmp byte [esp + 0x10], bl
je 0x40b81e
cmp dword [esi + 0x14], 8
jb 0x40b80c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40b828
mov eax, dword [esi]
jmp 0x40b82a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b7d4
cmp dword [esi + 0x14], 8
jb 0x40b83d
mov esi, dword [esi]
mov dl, bl
mov ecx, esi
call fcn.0040b5b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b850
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x40b862
mov eax, dword [esi]
jmp 0x40b864
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x40b871
mov ecx, dword [edi]
jmp 0x40b873
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b885
pop edi
mov al, 1
pop esi
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40b88d
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40b895
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x40b87f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00410330
mov dword [esi], eax
pop edi
xor al, al
pop esi
pop ebp
ret

Function at 0x40b8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40b8de
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x40b8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x4b5870]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
mov dword [esp], 0
push esi
mov esi, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40b920
mov eax, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push 0
push 0x4a7f58
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40b94c
xor al, al
pop esi
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0046f685
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x40b9dd
test eax, eax
je 0x40b9dd
xor ecx, ecx
mov dword [esp + 0x4c], 7
push eax
lea eax, [esp + 0x264]
mov word [esp + 0x3c], cx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], 0
call fcn.00402920
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.0040a4e0
cmp esi, eax
je 0x40b9b6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403730
cmp dword [esp + 0x34], 8
jb 0x40b9c9
push dword [esp + 0x20]
call fcn.0046ec0e
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x40bac8
push dword [esp + 0x38]
jmp 0x40bac0
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [esp + 0x50], ax
jne 0x40b9ff
xor ecx, ecx
jmp 0x40ba15
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba06
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.00402920
xor eax, eax
mov dword [esp + 0x1c], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0
push eax
call fcn.00403730
push 1
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
lea ecx, [esp + 0x14]
call fcn.00407b00
cmp eax, 0xffffffff
je 0x40ba77
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x10]
call fcn.00403d50
lea eax, [esp + 8]
cmp esi, eax
je 0x40ba8b
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403730
cmp dword [esp + 0x1c], 8
jb 0x40ba9e
push dword [esp + 8]
call fcn.0046ec0e
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x34], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x40bac8
push dword [esp + 0x20]
call fcn.0046ec0e
add esp, 4
mov ecx, dword [esp + 0x474]
mov al, 1
pop esi
xor ecx, esp
call fcn.0046f685
mov esp, ebp
pop ebp
ret
Function at 0x40bee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00472480
mov eax, dword [0x4b5870]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x40bf17
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x40bf12
mov eax, dword [ebx]
jmp 0x40bf14
mov eax, ebx
mov byte [eax], 0
call fcn.0040ae10
test al, al
je 0x40bf32
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f685
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040bc20
mov dword [ebp - 0x1000c], eax
test eax, eax
je 0x40bf20
push edi
push eax
push 0x10000
lea eax, [ebp - 0x10004]
xor edi, edi
push 1
push eax
call fcn.004746c4
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10010], esi
test esi, esi
je 0x40bfd3
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x40bfa0
sub eax, edi
lea edx, [ebp - 0x10010]
cmp eax, esi
mov dword [ebp - 0x10014], eax
lea ecx, [ebp - 0x10014]
cmovae ecx, edx
lea eax, [ebp - 0x10004]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.00403380
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, esi
jb 0x40bfef
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
add edi, esi
push 0x10000
push 1
push eax
call fcn.004746c4
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10010], esi
test esi, esi
jne 0x40bf70
mov ebx, dword [ebp - 0x1000c]
push ebx
call fcn.00474794
add esp, 4
test eax, eax
jne 0x40bff5
mov byte [ebp - 0x10005], 1
jmp 0x40bffc
mov ebx, dword [ebp - 0x1000c]
mov byte [ebp - 0x10005], 0
push ebx
call fcn.00474dfd
mov ecx, dword [ebp - 4]
add esp, 4
mov al, byte [ebp - 0x10005]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f685
mov esp, ebp
pop ebp
ret
Function at 0x4100b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [esp + 0xc], eax
push edi
test bl, 0x10
je 0x410110
mov dword [esp + 0x10], 5
jmp 0x410118
test eax, eax
je 0x41025b
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x41013b
or edx, 0x80000000
test ebx, 0x4000
je 0x410149
or edx, 0x100
test ebx, 0x40000
je 0x410157
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x41016c
or ecx, 2
test ebx, 0x8000
je 0x410176
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x41018e
or eax, 0x100
test ebx, 0x1000
je 0x410199
or eax, 2
test ebx, 0x2000
je 0x4101a6
or eax, 0x4000000
test ebx, 0x20000
je 0x4101b3
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4101be
mov edi, dword [edi]
push 0
push eax
push dword [esp + 0x18]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [esi], edi
je 0x4101fc
mov ecx, esi
call fcn.0040be80
test edi, edi
je 0x4101fc
cmp edi, 0xffffffff
je 0x4101fc
mov dword [esi], edi
call fcn.0040fdc0
push eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call fcn.00419b20
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x41024b
cmp eax, 0xffffffff
je 0x41024b
mov eax, ebx
mov dword [esi + 4], 0
shr eax, 0xa
and al, 1
cmp dword [esp + 0x14], 0
mov byte [esi + 9], al
je 0x410239
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 8], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x41025b
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00410330
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4102a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp], 0
movdqu xmmword [esp + 8], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [esp]
mov eax, ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412840
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x4ba8ac]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x4128bc
mov ecx, 1
mov edx, 0x4ba8ac
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x412898
mov eax, dword [0x4ba8ac]
cmp eax, 1
jne 0x4128bc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
mov eax, dword [0x4ba8ac]
cmp eax, 1
je 0x412880
mov eax, dword [0x4ba8ac]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x4ba8b0], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4ba8b0], eax
cmp eax, 0xffffffff
je 0x4128c6
mov dword [0x4ba8ac], 0x4ba8b0
mov eax, dword [0x4ba8ac]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040c210
int3

Function at 0x416290
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x4ba8b8]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x41631c
mov ecx, 1
mov esi, 0x4ba8b8
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x4162e8
mov eax, dword [0x4ba8b8]
cmp eax, 1
jne 0x41631c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
mov eax, dword [0x4ba8b8]
cmp eax, 1
je 0x4162d0
mov eax, dword [0x4ba8b8]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x4ba8bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4ba8bc], eax
cmp eax, 0xffffffff
je 0x416326
mov ecx, 0x416330
mov dword [0x4ba8b8], 0x4ba8bc
test ecx, ecx
je 0x41631c
mov edx, esi
call fcn.00415100
mov eax, dword [0x4ba8b8]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040c210
int3
Function at 0x418040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4b5870]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00417b60
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00404980
mov eax, dword [0x4ba8d8]
test eax, eax
je 0x4180a9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x4181f2
cmp dword [ebx], 2
jl 0x4180e9
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.00473f2d
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.00474913
call fcn.00473f2d
add eax, 0x40
push eax
call fcn.0047420c
add esp, 0x14
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.00417dc0
cmp dword [0x4ba8e0], 0
jne 0x418107
push 0xffffffffffffffff
push dword [0x4ba8c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x418113
push dword [0x4ba8d4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00417ed0
test al, al
je 0x418154
push 2
push 0
push 0
push dword [0x4ba8d0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x4ba8d0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x4ba8e0], 0
jne 0x41816b
push dword [0x4ba8c4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x418177
push dword [0x4ba8d4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x4181f2
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x4181ab
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0046fbc0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004237a0
add esp, 4
cmp dword [0x4ba8dc], 0
je 0x418275
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00404980
lea eax, [esp + 0x28]
push eax
call dword [0x4ba8dc]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x4181f2
push dword [esp + 0x28]
call fcn.0046ec0e
add esp, 4
cmp dword [esp + 0x24], 0x10
jb 0x418205
push dword [esp + 0x10]
call fcn.0046ec0e
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
lea esi, [edi + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x499884
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00402a20
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x49983c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0046e7e0
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046f685
mov esp, ebp
pop ebp
ret
call fcn.0040c210
int3
Function at 0x41d380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call fcn.0041d3c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x41d3b5
mov edx, 1
add ecx, 4
lock xadd dword [ecx], edx
mov esp, ebp
pop ebp
ret

Function at 0x41d3c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x4ba974]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x41d44c
mov ecx, 1
mov esi, 0x4ba974
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x41d418
mov eax, dword [0x4ba974]
cmp eax, 1
jne 0x41d44c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
mov eax, dword [0x4ba974]
cmp eax, 1
je 0x41d400
mov eax, dword [0x4ba974]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x4ba978], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4ba978], eax
cmp eax, 0xffffffff
je 0x41d456
mov ecx, 0x41d460
mov dword [0x4ba974], 0x4ba978
test ecx, ecx
je 0x41d44c
mov edx, esi
call fcn.00415100
mov eax, dword [0x4ba974]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040c210
int3

Function at 0x41d9b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x41d9d5
mov esp, ebp
pop ebp
ret
call fcn.0040c210
int3

Function at 0x41da10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41daa6
cmp dword [0x4ba8cc], 3
jg 0x41da98
lea ebx, [eax + 1]
mov dword [esp + 8], 3
push ebx
push 2
lea ecx, [esp + 0x18]
call fcn.004047d0
mov dword [esp + 0xac], str.k:liebao_src_pool_release.branch_85_src_import_base_threading_thread_local_win.cc
mov dword [esp + 0xb0], 0x23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.k:liebao_src_pool_release.branch_85_src_import_base_threading_thread_local_win.cc
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], eax
call fcn.00418280
lea eax, [esp + 0x10]
push str.Failed_to_TlsSetValue__.
push eax
call fcn.00404220
add esp, 8
test bl, 1
je 0x41daa6
lea ecx, [esp + 8]
call fcn.00418040
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f6e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
mov edi, ecx
mov dword [esp + 8], 0
call fcn.00412840
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x6d], 0
lea eax, [esp + 0x10]
je 0x41f743
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41f73f
push 1
push 0x113
push 0x113
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41f73f
xor bl, bl
jmp 0x41f755
mov bl, 1
jmp 0x41f755
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x41f76d
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.0041f5a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], 0
mov esi, edx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4235a3
cmp dword [0x4bbaa8], 0
jne 0x423590
push 0x44
call fcn.0046ebbd
add esp, 4
test eax, eax
je 0x42356d
mov ecx, eax
call fcn.00428730
mov esi, eax
jmp 0x42356f
xor esi, esi
push 0
push esi
push 0x4bbaa8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x42358d
test esi, esi
je 0x42358d
push ecx
mov ecx, esi
call fcn.004286f0
mov esi, dword [ebp - 4]
mov eax, dword [0x4bbaa8]
cmp dword [eax], 1
jl 0x4235a3
mov dword [ebp - 8], 0x10000
jmp 0x4235a5
xor ebx, ebx
push 8
call fcn.0046ebbd
add esp, 4
mov edi, eax
push 0
push dword [ebp - 8]
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
push 0x423410
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4235e8
push edi
call fcn.0046ec0e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4235fe
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
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 0x423c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00424010
test al, al
je 0x423cfd
mov eax, dword [0x4b6c5c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x423cb5
call fcn.00435940
mov ecx, eax
mov eax, dword [0x4ba9bc]
cmp dword [ecx + eax*4], 0
jne 0x423cfd
push 0x74
call fcn.0046ebbd
add esp, 4
test eax, eax
je 0x423cda
push esi
mov ecx, eax
call fcn.004238c0
mov esi, eax
jmp 0x423cdc
xor esi, esi
mov eax, dword [0x4b6c5c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x423cf5
call fcn.00435940
mov ecx, eax
mov eax, dword [0x4ba9bc]
mov dword [ecx + eax*4], esi
pop esi
ret
Function at 0x423d00
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x4ba9b8], 0
push ebx
push esi
push edi
jne 0x423d12
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4b6c5c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x423d2b
call fcn.00435940
mov ecx, eax
mov eax, dword [0x4ba9bc]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x423dc2
mov ecx, 0x4ba99c
xor edi, edi
xor ebx, ebx
call fcn.00419a40
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4ba990]
test ecx, ecx
je 0x423d6b
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x4ba990], eax
mov dword [ecx + 4], ebx
jmp 0x423d78
mov ebx, dword [0x4ba9d0]
inc ebx
mov dword [0x4ba9d0], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x423d9f
push 0x74
call fcn.0046ebbd
add esp, 4
test eax, eax
je 0x423d9d
push ebx
mov ecx, eax
call fcn.00423a50
mov edi, eax
jmp 0x423d9f
xor edi, edi
mov eax, dword [0x4b6c5c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x423db8
call fcn.00435940
mov ecx, eax
mov eax, dword [0x4ba9bc]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x429e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x429efe
push ebx
push esi
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 + 0x4a7a30]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x4a7a30]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x4a7a30]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x4a7a30]
dec ebx
jne 0x429ea7
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x42b9c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 0x4a8d18
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x204]
mov dword [esi + 0x20], eax
call fcn.00412840
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x42ba37
cmp dword [eax], esi
je 0x42ba33
add eax, 4
cmp eax, edx
jne 0x42ba28
cmp eax, edx
jne 0x42ba40
lea eax, [ebp + 8]
push eax
call fcn.00413010
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x4bb8f5]
lea ecx, [edi + 0x1d0]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00431be0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4