joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4253a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x1c9
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.0041fa10
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.004248f0
cmp byte [edi + 0xb], 0
jns 0x4253ea
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.00424a10
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00468d81
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x425420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x4254b8
cmp word [ebp - 0x21a], 0
je 0x425482
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
lea eax, [ecx + 1]
cmp word [ebp + ecx*2 - 0x218], 0
mov ecx, eax
jne 0x425470
jmp 0x425484
xor eax, eax
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.0041e4b0
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.0041f360
mov ecx, dword [ebp + 8]
push edi
call fcn.0041e5b0
mov ecx, edi
call fcn.0041e570
mov ecx, ebx
call fcn.0041e570
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d81
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4254e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0xc], eax
sub esp, 0x14
lea edi, [ebp - 0x214]
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x4959d0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x425549
cmp word [ebp - 0x214], 0
je 0x425549
xor eax, eax
nop
cmp word [ebp + eax*2 - 0x212], 0
lea eax, [eax + 1]
jne 0x425530
mov ecx, esi
push eax
push edi
call fcn.0041e4b0
jmp 0x425584
lea edi, [ebp - 0x220]
mov ecx, edi
call fcn.0041e460
push edi
call fcn.00425420
add esp, 4
mov ecx, esi
test al, al
je 0x42556d
push edi
call fcn.0041e480
jmp 0x425579
push 3
push 0x495a22
call fcn.0041e4b0
lea ecx, [ebp - 0x220]
call fcn.0041e570
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00468d81
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
Function at 0x425680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [esp + 0x258], eax
lea edi, [esp + 0x50]
push 0x38c
push str..._.._base_files_file_util_win.cc
push 0x495a33
push edi
call fcn.0041fa10
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.004248f0
mov word [esp + 0x50], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x103
ja 0x42572f
cmp word [esp + 0x50], 0
je 0x4256ff
xor ecx, ecx
nop
lea eax, [ecx + 1]
cmp word [esp + ecx*2 + 0x52], 0
mov ecx, eax
jne 0x4256f0
jmp 0x425701
xor eax, eax
mov ebx, esp
mov ecx, ebx
push eax
push edi
call fcn.0041e4b0
lea edi, [esp + 0xc]
mov ecx, ebx
push edi
call fcn.0041f360
mov ecx, dword [ebp + 8]
push edi
call fcn.0041e5b0
mov ecx, edi
call fcn.0041e570
mov ecx, ebx
call fcn.0041e570
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x18]
call fcn.00424a10
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.00468d81
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425d60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x425db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x425d9c
call fcn.0041fa40
push dword [esi]
call fcn.004266b0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x425dab
mov dword [esi], ebx
call fcn.0041fa40
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x425dc9
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3

Function at 0x425f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x425f26
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425f28
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x425f48
cmp byte [ebp + 0xc], 0
je 0x425f91
cmp byte [esi + 4], 0
je 0x425f83
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x425f5c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425f5e
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x425f75
xor ebx, ebx
jmp 0x425fff
cmp byte [esi + 4], 0
je 0x425fbf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425fc1
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 4], 0
je 0x425f9f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425fa1
mov eax, dword [esi]
push eax
call fcn.00430210
add esp, 4
mov ecx, dword [0x4c895c]
mov bl, 1
test ecx, ecx
je 0x425fff
push edi
push eax
call fcn.0042ecd0
jmp 0x425fff
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x425fd3
mov edi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x425fe1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x425fe3
mov eax, dword [esi]
push eax
call fcn.00430210
add esp, 4
mov ecx, dword [0x4c895c]
test ecx, ecx
je 0x425ffd
push edi
push eax
call fcn.0042ecd0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d81
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x426520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x4c6f50]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x426588
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x426588
cmp dword [ebp - 0x14], 4
jne 0x426588
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00468d81
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x4265a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.004691d0
mov eax, dword [ebp + 8]
mov edx, dword [0x4c6f50]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea edx, [ebp - 0x1018]
lea ebx, [ebp - 0x810]
lea esi, [ebp - 0x1014]
push edx
push ebx
push esi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x42664d
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x426615
mov esi, 0x3f4
cmp eax, 1
jne 0x42664d
mov ecx, edi
push ebx
jmp 0x426646
lea eax, [ebp - 0x1010]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xffffffff
mov esi, 0xea
cmp eax, 0x3ff
ja 0x42664d
mov ecx, edi
lea eax, [ebp - 0x1010]
push eax
call fcn.0041a336
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d81
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x426670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4c6f50]
xor edx, ebp
mov dword [ebp - 8], edx
lea edx, [ebp + 0xc]
push 4
push edx
push 4
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00468d81
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8
Function at 0x426e00
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x4c86a8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x426f84
jp 0x426f84
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4c86b8]
mov ecx, dword [0x4c8930]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x426fa9
mov eax, dword [0x4c86c8]
mov ecx, dword [0x4c8930]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x426fe2
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea esi, [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0x4c86c0]
sbb ebx, dword [0x4c86c4]
movd xmm0, ebx
movd xmm1, edi
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x492100]
subpd xmm1, xmmword [0x492110]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
divsd xmm0, qword [esp + 0x20]
xorpd xmm1, xmm1
movsd xmm2, qword [0x495b00]
ucomisd xmm2, xmm0
ja 0x426f84
mov eax, dword [esp + 8]
sub eax, dword [0x4c86b0]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x4c86b4]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x492100]
subpd xmm2, xmmword [0x492110]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x4c86a8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00468d81
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c86b8
call fcn.00468dc7
add esp, 4
cmp dword [0x4c86b8], 0xffffffff
jne 0x426e72
rdtsc
mov dword [0x4c86b0], eax
mov dword [0x4c86b4], edx
push 0x4c86b8
call fcn.00468e3d
add esp, 4
jmp 0x426e72
push 0x4c86c8
call fcn.00468dc7
add esp, 4
cmp dword [0x4c86c8], 0xffffffff
jne 0x426e93
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [0x4c86c4], ecx
mov dword [0x4c86c0], eax
push 0x4c86c8
call fcn.00468e3d
add esp, 4
jmp 0x426e93
Function at 0x42b290
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test dl, dl
mov dword [ebp - 0x10], ecx
lea ecx, [eax + ecx]
mov dword [ebp - 0x20], edx
lea edx, [esi + edx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
jb 0x42b2fd
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x42b2d0
cmp edx, 1
jne 0x42b306
jmp 0x42b322
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x42b322
cmp edx, 2
je 0x42b319
cmp edx, 3
jne 0x42b32d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 4]
xor ecx, ecx
test edi, edi
je 0x42b488
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov edx, edi
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
ja 0x42b394
lea edx, [edi - 1]
and edx, ebx
jmp 0x42b3a0
mov edx, ebx
cmp ebx, edi
jb 0x42b3a0
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42b488
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [eax]
test ebx, ebx
je 0x42b488
mov eax, dword [ebp - 0x18]
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x10]
cmovns eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x42b3f6
and eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x42b486
mov ebx, dword [ebx]
test ebx, ebx
je 0x42b486
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x42b450
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x42b40b
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x42b3ec
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x42b468
cmp dword [ebp - 0x10], 0
je 0x42b482
cmp byte [esi], dl
jne 0x42b3ec
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
cmp eax, ecx
je 0x42b482
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x42b430
jmp 0x42b3ec
cmp dword [ebp - 0x28], 1
jbe 0x42b3e0
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x42b3e3
xor edx, edx
div ecx
mov eax, edx
jmp 0x42b3e3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42b482
push eax
push esi
push ecx
call fcn.0046b12d
add esp, 0xc
test eax, eax
jne 0x42b3ec
mov ecx, ebx
jmp 0x42b488
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x42c1e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x218]
mov word [edi], 0
mov ebx, 0xfffffff4
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx + 0x496e60]
mov word [ebp - 0x218], 0
push 0x104
push edi
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x42c240
push dword [ebp + 8]
push eax
push edi
call fcn.0042c174
add esp, 0xc
test al, al
jne 0x42c249
add ebx, 4
jne 0x42c20c
xor ebx, ebx
jmp 0x42c24b
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d81
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42c7c0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test dl, dl
mov dword [ebp - 0x10], ecx
lea ecx, [eax + ecx]
mov dword [ebp - 0x20], edx
lea edx, [esi + edx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
jb 0x42c82d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x42c800
cmp edx, 1
jne 0x42c836
jmp 0x42c852
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x42c852
cmp edx, 2
je 0x42c849
cmp edx, 3
jne 0x42c85d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 4]
xor ecx, ecx
test edi, edi
je 0x42c9b8
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov edx, edi
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
ja 0x42c8c4
lea edx, [edi - 1]
and edx, ebx
jmp 0x42c8d0
mov edx, ebx
cmp ebx, edi
jb 0x42c8d0
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42c9b8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov ebx, dword [eax]
test ebx, ebx
je 0x42c9b8
mov eax, dword [ebp - 0x18]
add eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x10]
cmovns eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x42c926
and eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x42c9b6
mov ebx, dword [ebx]
test ebx, ebx
je 0x42c9b6
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x14], eax
jne 0x42c980
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x42c93b
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x10]
jne 0x42c91c
lea ecx, [ebx + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x42c998
cmp dword [ebp - 0x10], 0
je 0x42c9b2
cmp byte [esi], dl
jne 0x42c91c
add eax, 0xffffffff
xor ecx, ecx
nop dword [eax + eax]
cmp eax, ecx
je 0x42c9b2
movzx edx, byte [ebx + ecx + 9]
lea edi, [ecx + 1]
cmp dl, byte [esi + ecx + 1]
mov ecx, edi
je 0x42c960
jmp 0x42c91c
cmp dword [ebp - 0x28], 1
jbe 0x42c910
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x42c913
xor edx, edx
div ecx
mov eax, edx
jmp 0x42c913
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42c9b2
push eax
push esi
push ecx
call fcn.0046b12d
add esp, 0xc
test eax, eax
jne 0x42c91c
mov ecx, ebx
jmp 0x42c9b8
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x42fc60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.004691d0
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4c6f68]
cmp eax, 0xffffffff
je 0x42fdb6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x42fdb6
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.0046c040
add esp, 0xc
mov ecx, dword [0x4c6f68]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.0044ba80
add esp, 8
test ebx, ebx
je 0x42fcdb
push ebx
call fcn.00468d7c
add esp, 4
mov eax, dword [0x4c956c]
mov ecx, dword [0x4c8930]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42fdcb
mov esi, dword [0x4c9568]
mov ecx, esi
call fcn.00426030
lea eax, [ebp - 0x1410]
push 0xc00
push 0x4c8968
push eax
call fcn.0046c040
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, 0x100
mov al, 1
jmp 0x42fd4a
lea ecx, [edi - 1]
cmp edi, 2
mov edi, ecx
jb 0x42fda6
test al, 1
je 0x42fda6
xor eax, eax
lea esi, [ebp - 0x1408]
xor ebx, ebx
jmp 0x42fd6e
add ebx, 1
add esi, 0xc
cmp ebx, 0x100
je 0x42fd40
mov ecx, dword [ebp + ebx*8 - 0x810]
test ecx, ecx
je 0x42fd60
cmp dword [esi - 8], 0
je 0x42fd60
mov edx, dword [ebp + ebx*8 - 0x80c]
cmp edx, dword [esi]
jne 0x42fd60
mov edx, dword [esi - 4]
test edx, edx
je 0x42fd60
mov dword [ebp + ebx*8 - 0x810], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x42fd60
push 2
push dword [ebp - 0x1414]
call fcn.0044ba80
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d81
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c956c
call fcn.00468dc7
add esp, 4
cmp dword [0x4c956c], 0xffffffff
jne 0x42fcfc
push 4
call fcn.00468d16
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00426020
mov dword [0x4c9568], esi
push 0x4c956c
call fcn.00468e3d
add esp, 4
jmp 0x42fcfc

Function at 0x42fe10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c6f68]
cmp eax, 0xffffffff
je 0x42fe32
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42fe40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x4c6f68]
cmp eax, 0xffffffff
je 0x42fe5d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x42fe62
call fcn.0042ff70
mov eax, dword [0x4c956c]
mov ecx, dword [0x4c8930]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42ff19
mov edi, dword [0x4c9568]
mov ecx, edi
call fcn.00426030
mov eax, dword [0x4c8964]
add eax, 1
mov ecx, 0x100
nop dword [eax]
movzx edx, al
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x4c8968], 0
je 0x42fecd
lea edx, [eax + 1]
movzx edx, dl
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x4c8968], 0
je 0x42fecd
add eax, 2
add ecx, 0xfffffffe
jne 0x42fea0
jmp 0x42fefd
lea eax, [ebx*4 + 0x4c8968]
mov dword [eax], 1
lea eax, [edx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x4c896c], ecx
mov dword [0x4c8964], edx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x4c8970]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x42ff5e
cmp eax, 0x100
jge 0x42ff61
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x4c956c
call fcn.00468dc7
add esp, 4
cmp dword [0x4c956c], 0xffffffff
jne 0x42fe83
push 4
call fcn.00468d16
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00426020
mov dword [0x4c9568], edi
push 0x4c956c
call fcn.00468e3d
add esp, 4
jmp 0x42fe83
int3
int3

Function at 0x42ff70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x4c6f68]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
jne 0x43000e
lea esi, [ebp - 0x810]
push esi
call fcn.0044ba50
add esp, 4
test al, al
je 0x43008f
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x42ffe5
push esi
call fcn.0044ba50
add esp, 4
test al, al
je 0x430092
cmp dword [ebp - 0x810], 0xffffffff
je 0x430092
push 0xffffffffffffffff
call fcn.0044ba70
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x4c6f68], ecx
mov eax, dword [ebp - 0x810]
je 0x43000e
push eax
call fcn.0044ba70
add esp, 4
mov eax, dword [0x4c6f68]
mov dword [ebp - 0x810], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x43008c
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.0046c5c0
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.0044ba80
add esp, 8
push 0x800
call fcn.00468d73
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.0046c040
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.0044ba80
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00468d81
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3