joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457ae0
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, 0x48
mov eax, dword [0x533014]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm1, qword [0x543170]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x457c5c
jp 0x457c5c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x543180]
mov ecx, dword [0x536e20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x457c81
mov eax, dword [0x543190]
mov ecx, dword [0x536e20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x457cba
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea ebx, [esp + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub esi, dword [0x543188]
sbb edi, dword [0x54318c]
movd xmm0, edi
movd xmm1, esi
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm0, qword [esp + 0x30]
pxor xmm1, xmm1
movsd xmm2, qword [0x521db8]
ucomisd xmm2, xmm0
ja 0x457c5c
mov eax, dword [esp + 8]
sub eax, dword [0x543178]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x54317c]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x521d90]
subpd xmm2, xmmword [0x521da0]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x543170], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.004e3343
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x543180
call fcn.004e2927
add esp, 4
cmp dword [0x543180], 0xffffffff
jne 0x457b52
rdtsc
mov dword [0x543178], eax
mov dword [0x54317c], edx
push 0x543180
call fcn.004e299d
add esp, 4
jmp 0x457b52
push 0x543190
call fcn.004e2927
add esp, 4
cmp dword [0x543190], 0xffffffff
jne 0x457b73
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [0x54318c], ecx
mov dword [0x543188], eax
push 0x543190
call fcn.004e299d
add esp, 4
jmp 0x457b73
Function at 0x458530
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.004e5eb0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.004e2886
add esp, 4
mov esi, eax
mov ebx, dword [ebp - 0x130]
mov eax, dword [0x5431e4]
mov ecx, dword [0x536e20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4585ee
mov ecx, esi
push ebx
push 0x5431c0
push edi
call fcn.00458740
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5431e4
call fcn.004e2927
add esp, 4
cmp dword [0x5431e4], 0xffffffff
jne 0x4585c9
xorps xmm0, xmm0
movups xmmword [0x5431d0], xmm0
movups xmmword [0x5431c0], xmm0
mov dword [0x5431e0], 0
push 0x5431c0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5431e4
call fcn.004e299d
add esp, 4
jmp 0x4585c9

Function at 0x4586a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5431e4]
mov ecx, dword [0x536e20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4586ef
movzx eax, word [0x5431c0]
cmp eax, 0xc
ja case.0x4586cc.1
jmp dword [eax*4 + 0x521ef4]
mov eax, 2
pop ebp
ret
mov eax, 4
pop ebp
ret
mov eax, 1
pop ebp
ret
mov eax, 3
pop ebp
ret
push 0x5431e4
call fcn.004e2927
add esp, 4
cmp dword [0x5431e4], 0xffffffff
jne 0x4586c0
xorps xmm0, xmm0
movups xmmword [0x5431d0], xmm0
movups xmmword [0x5431c0], xmm0
mov dword [0x5431e0], 0
push 0x5431c0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5431e4
call fcn.004e299d
add esp, 4
jmp 0x4586c0
Function at 0x459250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x45927c
test eax, eax
jne 0x45927c
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x45927c
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x4592d3
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x45929b
call fcn.00441920
push dword [esi]
call fcn.0044a090
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x4592c1
call fcn.00441920
push dword [esi + 4]
call fcn.0044a090
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x45931a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4592fe
call fcn.00441920
push dword [esi]
call fcn.0044a090
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x45930d
mov dword [esi], ebx
call fcn.00441920
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x459363
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x459349
call fcn.00441920
push dword [esi + 4]
call fcn.0044a090
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x459359
mov dword [esi + 4], ebx
call fcn.00441920
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x45e5a0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test bl, bl
mov dword [ebp - 0x14], ecx
lea ecx, [eax + ecx]
lea edx, [esi + ebx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
mov dword [ebp - 0x20], ebx
jb 0x45e60d
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 0x45e5e0
cmp edx, 1
jne 0x45e616
jmp 0x45e632
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x45e632
cmp edx, 2
je 0x45e629
cmp edx, 3
jne 0x45e63d
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 - 0x10]
mov ebx, dword [ecx + 4]
xor ecx, ecx
test ebx, ebx
je 0x45e79e
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x45e6a6
lea edx, [ebx - 1]
and edx, edi
jmp 0x45e6b2
mov edx, edi
cmp edi, ebx
jb 0x45e6b2
mov eax, edi
xor edx, edx
div ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x45e79e
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax]
test ebx, ebx
je 0x45e79e
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x14]
cmovns eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x45e705
and eax, dword [ebp - 0x1c]
cmp eax, edx
jne 0x45e79c
mov ebx, dword [ebx]
test ebx, ebx
je 0x45e79c
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x45e760
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x45e719
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x45e6fb
lea ecx, [ebx + 8]
test al, al
jns 0x45e727
mov ecx, dword [ecx]
js 0x45e77e
cmp dword [ebp - 0x14], 0
je 0x45e798
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 8]
cmp dl, byte [esi + ecx]
jne 0x45e6fb
inc ecx
cmp eax, ecx
jne 0x45e740
jmp 0x45e798
cmp dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x10]
jbe 0x45e6f0
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x45e6f3
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
jmp 0x45e6f3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45e798
push eax
push esi
push ecx
call fcn.004e4a1d
add esp, 0xc
test eax, eax
jne 0x45e6fb
mov ecx, ebx
jmp 0x45e79e
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x463864
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x533014]
xor eax, ebp
mov dword [esp + 0x48], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x46388d
mov eax, dword [ecx + 4]
test eax, eax
je 0x4638b2
mov eax, ebx
not eax
test eax, 0x300
je 0x4638b2
cmp edi, 2
mov eax, 0x545f6a
mov ecx, 0x54616a
cmove ecx, eax
cmp word [ecx], 0
je 0x4638c5
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004e3343
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
lea esi, [esp + 0x20]
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x4638b2
cmp byte [0x545f68], 0
setne al
bt ebx, 8
jb 0x4638b2
shr ebx, 9
and ebx, 1
or bl, al
je 0x4638b2
cmp edi, 2
mov eax, 0x522974
mov edx, 0x522988
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0xb]
test bl, bl
js 0x463924
mov ecx, ebx
mov esi, eax
mov eax, ebx
jmp 0x463929
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ecx
mov ebx, dword [edx + 4]
mov edi, eax
sub edi, ebx
jb 0x463977
push ebx
push dword [edx]
push esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.004f75e3
mov edx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x14]
je 0x463987
add edx, 0x14
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x46394a
jmp 0x4639ed
movzx ecx, word [esi + ebx*2]
cmp ecx, 0x5c
je 0x463994
test ecx, ecx
jne 0x463977
lea eax, [esi + ebx*2]
mov ebx, dword [edx + 8]
cmp ebx, 1
je 0x4639b4
cmp ebx, 2
mov esi, ebx
jne 0x4639c2
mov dword [esp + 8], str.WOW6432Node
mov dword [esp + 4], eax
jmp 0x4639c2
mov dword [esp + 8], str.WOW6432Node_
mov dword [esp + 4], esi
mov esi, ebx
mov dword [esp + 0xc], esi
cmp cx, 0x5c
jne 0x4639db
lea esi, [eax + 2]
dec edi
cmp word [eax + 2], 0x5c
mov eax, esi
je 0x4639cc
jmp 0x4639dd
mov esi, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [edx + 0xc]
xor ecx, ecx
mov eax, edi
jmp 0x46397f
cmp dword [esp + 0xc], 0
je 0x4638b2
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x463a05
mov eax, dword [ecx]
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
push dword [esp + 8]
push edx
call fcn.0043a880
jmp 0x4638b2
Function at 0x469160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x469196
push dword [ebp + 8]
call fcn.004774c0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.00410790
add esp, 4
cmp ebx, edi
jbe 0x4691f6
push ebx
call fcn.004774f0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.00410790
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.00410790
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20007469
mov dword [esp + 0x10], 0x6d6d6f63
lea eax, [esp + 0x10]
push eax
call fcn.00410790
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20202000
mov dword [esp + 0x20], 0x657a6973
lea eax, [esp + 0x20]
push eax
call fcn.00410790
add esp, 4
mov ecx, dword [0x547340]
test ecx, ecx
je 0x4692c9
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.0045ede0
int3
Function at 0x46c830
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 [0x533014]
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 0x46c898
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x46c898
cmp dword [ebp - 0x14], 4
jne 0x46c898
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.004e3343
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x46c8b0
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.004e3c60
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.004e5eb0
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x46c986
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x46c939
mov edi, 0x3f4
cmp eax, 1
jne 0x46c986
mov ecx, esi
push ebx
jmp 0x46c97f
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.004e5eb0
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x46c986
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0043a47e
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x46daf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.004e3c60
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x536d24]
cmp eax, 0xffffffff
je 0x46dc4a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x46dc4a
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004e5930
add esp, 0xc
mov ecx, dword [0x536d24]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.004a7570
add esp, 8
test ebx, ebx
je 0x46db6b
push ebx
call fcn.004e28ec
add esp, 4
mov eax, dword [0x5471ec]
mov ecx, dword [0x536e20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46dc6b
mov esi, dword [0x5471e8]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x46dc5f
lea eax, [ebp - 0x1410]
push 0xc00
push 0x5465e8
push eax
call fcn.004e5930
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
jmp 0x46dbd9
mov ecx, dword [ebp - 0x1418]
dec ecx
je 0x46dc3a
test al, 1
je 0x46dc3a
mov dword [ebp - 0x1418], ecx
xor edi, edi
lea ebx, [ebp - 0x1408]
xor eax, eax
jmp 0x46dbfc
inc edi
add ebx, 0xc
cmp edi, 0x100
je 0x46dbd0
mov esi, dword [ebp + edi*8 - 0x810]
test esi, esi
je 0x46dbf0
cmp dword [ebx - 8], 0
je 0x46dbf0
mov ecx, dword [ebp + edi*8 - 0x80c]
cmp ecx, dword [ebx]
jne 0x46dbf0
mov ecx, dword [ebx - 4]
test ecx, ecx
je 0x46dbf0
mov dword [ebp + edi*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x46dbf0
push 2
push dword [ebp - 0x1414]
call fcn.004a7570
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0044eb30
jmp 0x46dba1
push 0x5471ec
call fcn.004e2927
add esp, 4
cmp dword [0x5471ec], 0xffffffff
jne 0x46db8c
push 4
call fcn.004e2886
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.0044eb20
mov dword [0x5471e8], esi
push 0x5471ec
call fcn.004e299d
add esp, 4
jmp 0x46db8c

Function at 0x46dcb0
Capabilities:
Get thread local storage value

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x536d24]
cmp eax, 0xffffffff
je 0x46dcfd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x46dd02
call fcn.0046de00
mov eax, dword [0x5471ec]
mov ecx, dword [0x536e20]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46ddad
mov edi, dword [0x5471e8]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x46dda4
mov ecx, dword [0x5465e4]
inc ecx
xor edx, edx
nop dword [eax]
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5465e8], 0
je 0x46dd5e
inc edx
cmp edx, 0x100
jne 0x46dd40
jmp 0x46dd8e
lea eax, [eax*4 + 0x5465e8]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5465ec], ecx
mov dword [0x5465e4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5465f0]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x46ddf2
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.0044eb30
jmp 0x46dd34
push 0x5471ec
call fcn.004e2927
add esp, 4
cmp dword [0x5471ec], 0xffffffff
jne 0x46dd23
push 4
call fcn.004e2886
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.0044eb20
mov dword [0x5471e8], edi
push 0x5471ec
call fcn.004e299d
add esp, 4
jmp 0x46dd23
int3

Function at 0x46de00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov ecx, dword [0x536d24]
mov dword [ebp - 0x810], ecx
cmp ecx, 0xffffffff
jne 0x46dea4
lea esi, [ebp - 0x810]
push esi
call fcn.004a7540
add esp, 4
test al, al
je 0x46df25
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x46de80
push esi
call fcn.004a7540
add esp, 4
test al, al
je 0x46df28
cmp dword [ebp - 0x810], 0xffffffff
je 0x46df28
push 0xffffffffffffffff
call fcn.004a7560
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x536d24], ecx
je 0x46dea4
push ecx
call fcn.004a7560
add esp, 4
mov ecx, dword [0x536d24]
mov dword [ebp - 0x810], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x46df22
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.004e5eb0
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.004a7570
add esp, 8
push 0x800
call fcn.004e28e3
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.004e5930
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.004a7570
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004e3343
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3
Function at 0x46f3e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00446510
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x46f40e
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
js 0x46f42c
cmp dword [ebp + 8], 0
jne 0x46f441
jmp 0x46f4dc
push dword [ebp - 0x1c]
call fcn.004e28b6
add esp, 4
cmp dword [ebp + 8], 0
je 0x46f4dc
test esi, esi
je 0x46f4dc
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.004e28e3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00446510
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x46f47c
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x46f496
push dword [ebp - 0x1c]
call fcn.004e28b6
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x46f4f5
push edi
call fcn.004fb029
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.00446550
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x46f4c4
push dword [ebx]
call fcn.004e28b6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.004e28ec
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3

Function at 0x470380
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx edx, byte [0x5472b0]
test dl, 1
jne 0x4703a6
test ecx, ecx
je 0x4703a4
push ecx
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4703b1
pop ebp
ret
call fcn.004ae0a0
pop ebp
jmp fcn.00483030
int3