joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call fcn.00417c10
test al, al
jne 0x417bfd
call fcn.00417cb0
movzx eax, al
push eax
push esi
call fcn.00401fd0
add esp, 8
mov eax, dword [0x6cebec]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x417bb1
inc esi
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x417bf2
mov ecx, dword [0x6cebe4]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x6cebe8]
mov edx, dword [0x6cebe4]
mov dword [eax + edx*8 + 4], ecx
pop esi
pop ebp
ret
push 0x6cebec
call fcn.00510c6d
add esp, 4
cmp dword [0x6cebec], 0xffffffff
jne 0x417b83
mov dword [0x6cebe4], 0xffffffff
xor eax, eax
mov dword [0x6cebe8], eax
mov ecx, 0x6cebe4
push eax
call fcn.0040c200
push 0x6cebec
call fcn.00510d9d
add esp, 4
jmp 0x417b83
test esi, esi
je 0x417bae
call fcn.00404220
jmp 0x417b95
mov eax, 3
jmp 0x417b5c

Function at 0x417c10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6ceb98]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x417c67
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x417c5a
mov ecx, dword [0x6ceb90]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x6ceb94]
jne 0x417c5a
mov eax, dword [eax + ecx*8]
test eax, eax
jne 0x417c5e
xor eax, eax
pop ebp
ret
cmp dword [eax + 0x24], 3
sete al
jmp 0x417c5c
push 0x6ceb98
call fcn.00510c6d
add esp, 4
cmp dword [0x6ceb98], 0xffffffff
jne 0x417c30
xor eax, eax
mov dword [0x6ceb94], eax
mov dword [0x6ceb90], 0xffffffff
mov ecx, 0x6ceb90
push eax
call fcn.0040c200
push 0x6ceb98
call fcn.00510d9d
add esp, 4
jmp 0x417c30

Function at 0x417cb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6ceb98]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x417d07
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x417cfa
mov ecx, dword [0x6ceb90]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x6ceb94]
jne 0x417cfa
mov eax, dword [eax + ecx*8]
test eax, eax
jne 0x417cfe
xor eax, eax
pop ebp
ret
cmp dword [eax + 0x24], 1
sete al
jmp 0x417cfc
push 0x6ceb98
call fcn.00510c6d
add esp, 4
cmp dword [0x6ceb98], 0xffffffff
jne 0x417cd0
xor eax, eax
mov dword [0x6ceb94], eax
mov dword [0x6ceb90], 0xffffffff
mov ecx, 0x6ceb90
push eax
call fcn.0040c200
push 0x6ceb98
call fcn.00510d9d
add esp, 4
jmp 0x417cd0
Function at 0x41b620
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
xor eax, eax
xor ecx, ecx
cpuid
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x41b70f
xor eax, eax
inc eax
xor ecx, ecx
cpuid
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
mov edi, eax
cmp dword [ebp - 0x14], 7
mov ebx, 0
jb 0x41b662
mov eax, 7
xor ecx, ecx
cpuid
and ebx, 0x20
mov dword [esi], edi
mov eax, edi
and eax, 0xf
mov dword [esi + 8], eax
shr edi, 0xc
and edi, 3
mov dword [esi + 4], edi
mov ecx, dword [ebp - 0x18]
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x19
and al, 1
mov byte [esi + 0xd], al
shr ecx, 0x1a
and cl, 1
mov byte [esi + 0xe], cl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [esi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [esi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [esi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [esi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [esi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [esi + 0x19], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x41b73a
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [esi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [esi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [esi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [esi + 0x16], cl
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x41b73e
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [esi + 0x18], dh
test dh, dh
je 0x41b743
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x41b6e6
mov dh, byte [esi + 0x18]
jmp 0x41b72e
cmp byte [esi + 0x19], 0
je 0x41b732
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x41b732
cmp ecx, 0x666f736f
jne 0x41b732
cmp edx, 0x76482074
jne 0x41b732
mov byte [esi + 0x18], 1
jmp 0x41b732
Function at 0x41bc90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0xc]
push 0x27c
push str....._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.004fdcd0
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
push ebx
call fcn.004fa7d0
test byte [0x5f5168], 0x19
jne 0x41bd39
cmp byte [esi + 0xb], 0
mov edi, esi
jns 0x41bd00
mov esi, dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bd53
mov bl, 1
test al, 0x10
je 0x41bd79
test byte [0x5f5168], 0x19
jne 0x41bd97
lea ecx, [esp + 0x20]
call fcn.004f9b80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x1c]
mov dword [eax], ebx
mov ecx, str.ScopedBlockingCall
xor edx, edx
push eax
push 0
call fcn.0056c3d0
add esp, 8
jmp 0x41bcf6
xor eax, eax
dec eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ecx, edi
push ebx
call fcn.0041a7b0
movzx ecx, byte [esp + 0x17]
test cl, cl
jns 0x41bdb9
mov eax, dword [esp + 0x10]
jmp 0x41bdbe
cmp dword [ebp + 0xc], 0
je 0x41bd88
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x41bd12
xor eax, eax
push eax
push eax
push 0x5e2088
push 0x5db484
push 0x5f5168
push 0x45
call fcn.005553e0
add esp, 0x18
jmp 0x41bd1b
mov eax, ecx
and eax, 0x7f
mov dword [esp], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 4], eax
test al, al
jns 0x41bdd2
mov eax, dword [edi + 4]
jmp 0x41bdd9
mov eax, dword [esp + 4]
and eax, 0x7f
cmp dword [esp], eax
jne 0x41be4f
cmp dword [esp], 0
je 0x41be15
mov dword [esp + 8], ebx
test cl, cl
jns 0x41bdf4
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov edx, edi
cmp byte [esp + 4], 0
jns 0x41bdff
mov edx, dword [edi]
xor eax, eax
mov ecx, dword [esp + 8]
movzx ecx, word [ecx + eax*2]
cmp cx, word [edx + eax*2]
jne 0x41be4f
inc eax
cmp dword [esp], eax
jne 0x41be01
mov eax, 0xfffffffc
mov esi, 2
cmp dword [ebp + 0xc], 0
je 0x41be2a
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
cmp byte [esp + 0x17], 0
jns 0x41bd12
push dword [esp + 0xc]
call fcn.0050fc7c
add esp, 4
jmp 0x41bd12
push dword [ebp + 0xc]
push ebx
call fcn.0041bc90
add esp, 8
test al, al
je 0x41be31
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x41be33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
je 0x41be8e
cmp dword [ebp + 0xc], 0
je 0x41be2a
push esi
call fcn.005828f0
add esp, 4
jmp 0x41be25
push edi
call fcn.0056d7d0
add esp, 4
test al, al
jne 0x41be33
jmp 0x41be7d
Function at 0x41d1b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x6cebec]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x41d209
push dword [0x5f50f8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ecx, ecx
and eax, 0xfffffffc
je 0x41d1f9
mov edx, dword [0x6cebe4]
mov esi, dword [eax + edx*8 + 4]
cmp esi, dword [0x6cebe8]
jne 0x41d1f9
mov ecx, dword [eax + edx*8]
lea edx, [ecx - 1]
test ecx, ecx
mov eax, 2
cmovne eax, edx
pop esi
pop ebp
ret
push 0x6cebec
call fcn.00510c6d
add esp, 4
cmp dword [0x6cebec], 0xffffffff
jne 0x41d1d1
mov dword [0x6cebe4], 0xffffffff
xor eax, eax
mov dword [0x6cebe8], eax
mov ecx, 0x6cebe4
push eax
call fcn.0040c200
push 0x6cebec
call fcn.00510d9d
add esp, 4
jmp 0x41d1d1

Function at 0x41d390
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0xc]
push 0x433
push str....._base_files_file_util_win.cc
push 0x5debe8
push ebx
call fcn.004fdcd0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
push ebx
call fcn.004fa7d0
test byte [0x5f5168], 0x19
jne 0x41d433
cmp byte [edi + 0xb], 0
jns 0x41d3fe
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
test byte [0x5f5168], 0x19
jne 0x41d44d
test esi, esi
setne bl
lea ecx, [esp + 0x20]
call fcn.004f9b80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x1c]
mov dword [eax], ebx
mov ecx, str.ScopedBlockingCall
xor edx, edx
push eax
push 0
call fcn.0056c3d0
add esp, 8
jmp 0x41d3f6
xor eax, eax
push eax
push eax
push 0x5e2088
push 0x5db484
push 0x5f5168
push 0x45
call fcn.005553e0
add esp, 0x18
jmp 0x41d410
Function at 0x41e180
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, ecx
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [ecx], edi
mov dword [ecx + 0x90], edi
mov dword [ecx + 0x94], edx
pcmpeqd xmm0, xmm0
mov ebx, esp
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov dword [ebx + 0x20], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
cmova ecx, eax
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], 0x10
mov dword [esi + 0xa0], 0x20
mov dword [esi + 0xa4], edi
lea eax, [esi + 4]
mov dword [esi + 4], edi
xor eax, 0xb37cc16a
mov dword [esi + 8], eax
mov dword [esi + 0xc], esi
pxor xmm0, xmm0
movdqu xmmword [esi + 0x14], xmm0
movdqu xmmword [esi + 0x24], xmm0
movdqu xmmword [esi + 0x34], xmm0
movdqu xmmword [esi + 0x44], xmm0
movdqu xmmword [esi + 0x54], xmm0
movdqu xmmword [esi + 0x64], xmm0
movdqu xmmword [esi + 0x74], xmm0
movdqu xmmword [esi + 0x80], xmm0
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00512ee3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420f30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0xc]
push 0x1c7
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.004fdcd0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
push ebx
call fcn.004fa7d0
test byte [0x5f5168], 0x19
jne 0x420fd4
cmp byte [edi + 0xb], 0
jns 0x420f9e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
test byte [0x5f5168], 0x19
jne 0x420fee
cmp esi, 0xffffffff
setne bl
lea ecx, [esp + 0x20]
call fcn.004f9b80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x1c]
mov dword [eax], ebx
mov ecx, str.ScopedBlockingCall
xor edx, edx
push eax
push 0
call fcn.0056c3d0
add esp, 8
jmp 0x420f96
xor eax, eax
push eax
push eax
push 0x5e2088
push 0x5db484
push 0x5f5168
push 0x45
call fcn.005553e0
add esp, 0x18
jmp 0x420fb0
Function at 0x4c16f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
lea ebx, [ebp - 0x218]
push 0x208
push esi
push ebx
call fcn.005191b0
add esp, 0xc
push 0x104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edi, edi
dec edi
lea esi, [ebp - 0x224]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
push ebx
call fcn.005477d0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4c1760
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
jmp 0x4c1763
and eax, 0x7f
add eax, eax
test eax, eax
je 0x4c18de
lea edx, [eax - 2]
cmp word [esi + eax - 2], 0x5c
mov eax, edx
jne 0x4c1765
cmp edx, 0xfffffffe
je 0x4c18de
sar edx, 1
lea ecx, [ebp - 0x230]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x224]
push eax
push edx
push 0
push esi
call fcn.0040e560
cmp byte [ebp - 0x219], 0
jns 0x4c17c0
push dword [ebp - 0x224]
call fcn.0050fc7c
add esp, 4
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x21c], eax
movsd xmm0, qword [ebp - 0x230]
movsd qword [ebp - 0x224], xmm0
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
cmp byte [ebp - 0x219], 0
js 0x4c1815
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
movsd xmm0, qword [ebp - 0x224]
movsd qword [ebp - 0x230], xmm0
jmp 0x4c182c
lea ecx, [ebp - 0x230]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call fcn.0040ccc0
lea esi, [ebp - 0x230]
mov ecx, esi
push 0x27
push str.User_Data_v3updateconfig_v3update.ini
call fcn.00410600
cmp byte [esi + 0xb], 0
jns 0x4c184c
mov esi, dword [ebp - 0x230]
push esi
push 0
push str.flag
push str.updateflag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, 0xfffffffd
xor esi, esi
cmp eax, 0xfffffffe
jb 0x4c1899
cmp byte [ebp - 0x225], 0
jns 0x4c187a
mov eax, dword [ebp - 0x230]
jmp 0x4c1880
lea eax, [ebp - 0x230]
push eax
push 0x5d8100
push str.flag
push str.updateflag
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor esi, esi
inc esi
cmp byte [ebp - 0x225], 0
jns 0x4c18b0
push dword [ebp - 0x230]
call fcn.0050fc7c
add esp, 4
cmp byte [ebp - 0x219], 0
jns 0x4c18c7
push dword [ebp - 0x224]
call fcn.0050fc7c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
mov eax, esi
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x230]
push 0x5d7d84
call fcn.005477d0
jmp 0x4c17a9
Function at 0x4c2330
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov word [ecx], 0
xor eax, eax
push eax
push 0x26
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call fcn.0053410a
add esp, 8
pop esi
pop ebp
ret
Function at 0x4c4c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x14]
mov dword [edi], esi
push edi
push 1
push esi
push str.Software360360se6Chrome
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c4ca8
mov esi, dword [ebp - 0x14]
je 0x4c4cae
mov bl, 1
jmp 0x4c4ce4
lea eax, [ebp - 0x18]
mov dword [eax], 0xffffffff
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x1c]
push edi
push ecx
push eax
push 0
push str.joininexperience
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x4c4cdd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d2540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5f50f8]
cmp eax, 0xffffffff
je 0x4d2560
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
jmp 0x4d255e

Function at 0x4d2710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d2783
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x4d276d
cmp dword [ebp - 0x18], 4
jne 0x4d276d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x4d276d
Function at 0x4d45b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xa34], 0x8000
jne 0x4d4698
cmp dword [esi + 0x434], 0x200
jne 0x4d469b
push 0x5f6218
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4d469e
cmp byte [0x6cd708], 0
je 0x4d4660
push 0x5f6218
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg dword [0x6cd70c], esi
jne 0x4d46ad
mov dword [0x6cf5a0], 0x583310
add esi, 0x48
mov eax, 0xffffffb0
cmp dword [esi], 0
je 0x4d4694
mov ecx, dword [esi + 0xc]
cmp ecx, 0x81
jb 0x4d4655
cmp ecx, 0x101
jb 0x4d4659
cmp ecx, 0x201
setb cl
shl cl, 4
add cl, 0x10
mov byte [eax + 0x6cd708], cl
add esi, 0x20
inc eax
jne 0x4d4620
jmp 0x4d465d
mov cl, 0x80
jmp 0x4d4647
mov cl, 0x40
jmp 0x4d4647
pop esi
pop ebp
ret
cmp dword [0x6cf598], 0
jne 0x4d46b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4d46b0
mov dword [0x6cd6b4], eax
mov dword [0x6cf59c], eax
mov dword [0x6cf598], 0x50d050
mov byte [0x6cd708], 1
jmp 0x4d45f3
xor ecx, ecx
jmp 0x4d4647
int3
int3
mov ecx, 0x5f6218
call fcn.004ef6b0
jmp 0x4d45ea
int3
int3
int3

Function at 0x4d5840
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax], edx
lea edx, [ecx + ecx*4]
lea edx, [ecx + edx*2]
add edx, 0x67452301
mov dword [eax + 8], edx
imul edx, ecx, 0x47
add edx, 0xefcdab89
mov dword [eax + 0xc], edx
lea edx, [ecx + ecx*8]
lea edx, [ecx + edx*4]
add edx, 0x98badcfe
mov dword [eax + 0x10], edx
imul ecx, ecx, 0x61
add ecx, 0x10325476
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x4d75c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4d75d7
test eax, eax
je 0x4d75d7
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x4d75e5
mov ecx, dword [0x6cf5a0]
test ecx, ecx
jne 0x4d762a
cmp dword [0x6cf598], 0
je 0x4d75d1
mov esi, dword [0x6cf59c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x4d7621
test esi, esi
je 0x4d75d1
mov ecx, dword [0x6cf598]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x4d75d1
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4d7609
call dword [section..00cfg]
call ecx
jmp 0x4d75e5

Function at 0x4d82c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5f3418]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x4d82f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512ee3
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x4d8400
push 0
push eax
push 0x4d82a0
push 0x6cf5c8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4d83ef
cmp dword [0x6cf5cc], 0
jne 0x4d82dc
push dword [0x6cf5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d82dc
mov esi, eax
mov eax, 0x6cf5d4
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x6cf5d8]
mov ebx, dword [0x6cf5dc]
mov eax, dword [0x6cf5e0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x6cf5e4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6cf5e8]
mov dword [ebp - 0x20], eax
mov eax, 0x6cf5d4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x4d8384
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x24]
call edi
add esp, 4
test ebx, ebx
je 0x4d8399
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4d83b1
mov edi, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x4d83c9
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp - 0x1c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x4d83e1
mov edi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x20]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
push esi
call fcn.0050d5a0
add esp, 4
jmp 0x4d82dc
call fcn.0052ce30
int3