joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473762
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x473865
push ebx
xor ebx, ebx
inc ebx
cmp byte [esp + 0x10], 0
je 0x4737a1
xor eax, eax
mov word [esp + 0x10], bx
push 4
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0x80
push 0xffff
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [edi + 0xe], 0x20
je 0x473831
mov ecx, dword [edi + 0x54]
test ecx, ecx
jns 0x4737b6
neg ecx
jmp 0x4737b8
xor ecx, ecx
mov esi, dword [edi + 0x90]
test esi, esi
jns 0x4737c6
neg esi
jmp 0x4737c8
xor esi, esi
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
cmp dword [edi + 0xf4], eax
jle 0x473801
lea ebp, [edi + 0xe0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x4737f1
mov eax, ecx
cdq
add dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x14]
adc dword [ebx + 0x30], edx
inc eax
add ebp, 4
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0xf4]
jl 0x4737dd
xor ebx, ebx
cmp dword [edi + 0xf4], ebx
jle 0x47382d
lea ebp, [edi + 0xe0]
mov ecx, dword [ebp]
test ecx, ecx
je 0x473821
mov eax, esi
cdq
add dword [ecx + 0x34], eax
adc dword [ecx + 0x38], edx
inc ebx
add ebp, 4
cmp ebx, dword [edi + 0xf4]
jl 0x473811
xor ebx, ebx
inc ebx
pop ebp
push dword [edi + 4]
call fcn.004750e9
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x473864
cmp byte [edi + 0x18], 6
jb 0x473864
push ebx
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.0047161b
push 0
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.0047161b
pop ebx
and byte [edi + 0xe], 0xdf
cmp byte [edi + 0xe], 0
jge 0x47388e
mov esi, dword [edi + 0xf8]
and dword [edi + 0xf8], 0
test esi, esi
je 0x47388e
push esi
call fcn.004dbf43
push 0
push esi
call fcn.004dc8c0
pop edi
pop esi
ret 4
Function at 0x4743dd
Capabilities:
Terminate process

Disassembly:
mov eax, 0x689336
call fcn.0062921c
sub esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004785a1
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x474402
mov eax, dword [eax]
push eax
push 0x68ea78
push 0x10
call fcn.0048ee9f
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.0042386b
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4749ce
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x474a01
call fcn.004c3f2d
jmp 0x474a0d
lea eax, [ebp - 0x84]
push eax
call fcn.004c3e73
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x474b05
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ecx + 4], 0xffffffff
jne 0x474b19
or eax, 0xffffffff
jmp 0x474b4c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x474b14
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c3e73
movzx eax, word [eax + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x474bd1
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push 0
push 0
push 1
push ebp
call fcn.00461474
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.00474d8c
cmp dword [ebx + 4], 0xffffffff
jne 0x474c0a
xor al, al
jmp 0x474ced
cmp byte [esp + 0x24], 0
push esi
push edi
mov dword [esp + 0x28], 1
je 0x474c5f
push 4
lea eax, [esp + 0x2c]
push eax
push 4
push 0xffff
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x474c5f
call fcn.0063895d
mov esi, eax
call fcn.0063895d
push dword [esi]
mov edi, eax
call fcn.00642724
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.004771df
add esp, 0x14
push ebp
mov ecx, ebx
call fcn.00473312
cmp eax, 0xffffffff
jne 0x474caf
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x474c84
call esi
cmp eax, edi
je 0x474ce1
call esi
cmp eax, edi
jne 0x474ce1
push 5
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x20], ax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
call fcn.00473312
cmp eax, 0xffffffff
je 0x474ce1
jmp 0x474cc0
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.004771df
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x474ce5
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.004771df
add esp, 0xc
xor al, al
jmp 0x474ceb
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x476a58
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x673251
call fcn.0062921c
sub esp, 0x40
push ebx
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 0x6958c4
push 1
push ebx
push 0x6958b4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x476b8e
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 2
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
js 0x476b7d
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 5
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
js 0x476b6c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 9
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
js 0x476b5e
test eax, eax
jne 0x476af4
mov edi, 0x80004005
jmp 0x476b5e
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.00424ff1
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
call fcn.0043bed2
cmp dword [eax + 0x14], 8
jb 0x476b15
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp + 8], esi
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.0042386b
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.0042386b
mov eax, dword [ebp - 0x10]
test esi, esi
jne 0x476b4a
mov edi, 0x8007000e
jmp 0x476b5d
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x24]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
pop esi
mov byte [ebp - 4], 0x19
test eax, eax
je 0x476b6c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x476b7d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x476b8e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x1c
test eax, eax
je 0x476ba2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x477e55
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
mov eax, 0x67f2c1
call fcn.0062921c
sub esp, 0x414
push ebx
push esi
push edi
push 0x104
xor ecx, ecx
lea eax, [ebp - 0x218]
push eax
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push 0x68fc34
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00424ff1
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x477ecb
mov eax, dword [edi]
jmp 0x477ecd
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x477f87
push 0x68fc50
call fcn.00423ad9
pop ecx
push eax
push 0x68fc50
mov ecx, edi
call fcn.00423947
cmp dword [edi + 0x14], 8
jb 0x477f05
mov eax, dword [edi]
jmp 0x477f07
mov eax, edi
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x477f87
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x477f7f
call fcn.0048e1ff
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
push esi
call fcn.00423ad9
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004340c0
cmp dword [edi + 0x14], 8
jb 0x477f5c
mov eax, dword [edi]
jmp 0x477f5e
mov eax, edi
push 0x68fc34
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
push esi
call fcn.00423ad9
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004340c0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x477fa5
cmp dword [edi + 0x14], 8
jb 0x477f91
mov eax, dword [edi]
jmp 0x477f93
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov ecx, dword [ebp + 0xc]
cmp eax, 2
sete dl
or byte [ecx], dl
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x47c340
Capabilities:
Reference l3 dns server

Disassembly:
mov eax, 0x67358a
call fcn.0062921c
sub esp, 0x80
cmp byte [ebp + 8], 2
push esi
jne 0x47c3b3
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7a0690]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x771228]
cmp eax, dword [ecx + 4]
jle 0x47c39f
mov esi, 0x771228
push esi
call fcn.006296ef
cmp dword [0x771228], 0xffffffff
pop ecx
jne 0x47c39f
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [0x771224], eax
call fcn.006296b0
pop ecx
push dword [ebp + 0xc]
push dword [0x771224]
call dword [0x77120c]
jmp 0x47c438
cmp dword [0x771210], 0
jne 0x47c3c3
mov eax, 0x2741
jmp 0x47c438
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x7a0690]
push ebx
mov ebx, 0x77122c
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x771240]
cmp eax, dword [ecx + 4]
jle 0x47c418
push edi
mov edi, 0x771240
push edi
call fcn.006296ef
cmp dword [0x771240], 0xffffffff
pop ecx
jne 0x47c417
push esi
push str.2001:db8::1428:57ab
push ebx
mov dword [ebp - 4], esi
call fcn.004c469f
or dword [ebp - 4], 0xffffffff
push edi
call fcn.006296b0
pop ecx
pop edi
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.00474a16
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call dword [0x771210]
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x47c5b8
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.0047c8db
test al, al
je 0x47c614
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0047c340
test eax, eax
jne 0x47c614
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.0047c4be
lea ecx, [ebp - 0x18]
call fcn.004631cf
test al, al
jne 0x47c614
lea ecx, [ebp - 0x18]
call fcn.004c462f
test al, al
jne 0x47c614
mov eax, dword [ebp + 8]
push esi
push edi
push 5
pop ecx
lea esi, [ebp - 0x18]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x47c674
cmp byte [ebp + 0xc], 2
jne 0x47c669
push 0x100
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47c669
cmp word [eax + 8], 2
jne 0x47c669
cmp word [eax + 0xa], 4
jne 0x47c669
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x47c669
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c3ec7
jmp 0x47c671
mov ecx, dword [ebp + 8]
call fcn.004c3f2d
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x47c8db
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
cmp dword [0x7711fc], 0
push esi
jne 0x47c9ea
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x7711fc], eax
test eax, eax
jne 0x47c905
xor al, al
jmp 0x47c9ec
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetAdaptersInfo
push eax
call esi
mov dword [0x771200], eax
test eax, eax
jne 0x47c931
push dword [0x7711fc]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [0x7711fc], 0
jmp 0x47c8fe
push str.GetIfTable
push dword [0x7711fc]
call esi
mov dword [0x771204], eax
test eax, eax
je 0x47c91c
push str.GetIfEntry
push dword [0x7711fc]
call esi
mov dword [0x771208], eax
test eax, eax
je 0x47c91c
push str.GetBestInterface
push dword [0x7711fc]
call esi
mov dword [0x77120c], eax
test eax, eax
je 0x47c91c
push str.GetBestInterfaceEx
push dword [0x7711fc]
call esi
push str.GetIpAddrTable
push dword [0x7711fc]
mov dword [0x771210], eax
call esi
mov dword [0x771214], eax
test eax, eax
je 0x47c91c
push str.GetAdaptersAddresses
push dword [0x7711fc]
call esi
push 0x69ff74
push dword [0x7711fc]
mov dword [0x771218], eax
call esi
push str.NotifyIpInterfaceChange
push dword [0x7711fc]
mov dword [0x77121c], eax
call esi
mov dword [0x771220], eax
test eax, eax
je 0x47c9ea
lea ecx, [esp + 4]
push ecx
push 0
push 0x74cdb8
push 0x47c8d1
push 2
call eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x47ca87
Capabilities:
Get process image filename
List tcp connections and listeners

Disassembly:
sub esp, 0x234
push ebp
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 4], ebp
call fcn.0047c8db
test al, al
jne 0x47cabc
mov eax, dword [esp + 0x23c]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebp
mov word [eax], cx
jmp 0x47cbf7
push esi
push edi
push 0x1c
pop esi
push esi
call fcn.0045b411
push ebp
push 4
push 2
mov edi, eax
mov dword [esp + 0x18], esi
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x47caf7
push 1
push edi
call fcn.0045b404
push dword [esp + 0xc]
call fcn.0045b411
mov edi, eax
push 0x208
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0062e010
add esp, 0xc
lea eax, [esp + 0xc]
push ebp
push 4
push 2
push 1
push eax
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
jne 0x47cbd5
push ebx
mov ebx, ebp
cmp dword [edi], ebp
jle 0x47cbd4
lea ebp, [edi + 0xc]
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x14], eax
movzx eax, word [ebp]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x24c]
movzx esi, ax
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
call fcn.0047488b
movzx eax, word [eax + 0x10]
cmp esi, eax
jne 0x47cb9c
mov ecx, dword [esp + 0x24c]
call fcn.00474b05
cmp eax, dword [esp + 0x14]
jne 0x47cb9c
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
je 0x47cba6
inc ebx
add ebp, 0x18
cmp ebx, dword [edi]
jl 0x47cb32
jmp 0x47cbd4
push dword [esp + 0x20]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x47cbd4
push 0x104
lea eax, [esp + 0x40]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
push 1
push edi
call fcn.0045b404
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x38]
push eax
call fcn.00424ff1
mov eax, dword [esp + 0x244]
pop edi
pop esi
pop ebp
add esp, 0x234
ret 8
Function at 0x47f94b
Capabilities:
Delete file

Disassembly:
mov eax, 0x68449a
call fcn.0062921c
sub esp, 0x34
mov eax, dword [0x771260]
push esi
mov esi, dword [eax]
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x47fa0d
mov eax, dword [esi + 0x28]
add eax, 0x68
cmp dword [eax + 0x14], 8
jb 0x47f979
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046dfa2
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x28]
and dword [ebp - 4], 0
add eax, 0xcc
push eax
call fcn.00423207
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x47f9b5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x47f9ae
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x78], 0
je 0x47f9d0
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x47f9ca
lea eax, [ebp - 0x40]
push eax
call fcn.0045c1b0
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x28]
push 0
push 1
mov dword [eax + 0x64], 4
call fcn.0042386b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.0042386b
lea ecx, [ebp - 0x10]
call fcn.00497d99
mov esi, dword [ebp - 0x10]
cmp esi, dword [0x771260]
jne 0x47f96b
cmp byte [ebp + 8], 0
pop esi
jne 0x47fa19
call fcn.0046fc62
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x47fb6b
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x771002], 0
je 0x47fb7b
mov eax, 0x80004005
jmp 0x47fbb2
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, esi
sub ecx, 0
je 0x47fbaf
dec ecx
sub ecx, 1
je 0x47fbaf
push dword [esp + 0xc]
push esi
push str.RegKey::DeleteKey_fail___d_:__s_n
call fcn.00477256
add esp, 0xc
mov eax, esi
jmp 0x47fbb1
xor eax, eax
pop esi
ret 8

Function at 0x47fbb5
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x771002], 0
je 0x47fbc2
xor al, al
jmp 0x47fbf3
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, eax
sub ecx, 0
je 0x47fbf1
dec ecx
sub ecx, 1
je 0x47fbf1
push dword [esp + 8]
push eax
push str.RegKey::DeleteTree_fail___d_:__s_n
call fcn.00477256
add esp, 0xc
jmp 0x47fbbe
mov al, 1
ret 8

Function at 0x47fbf6
Capabilities:
Delete registry value

Disassembly:
cmp byte [0x771002], 0
jne 0x47fc26
push dword [esp + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x47fc26
cmp eax, 2
je 0x47fc26
push eax
push dword [esp + 8]
push str.RegKey:_Could_not_delete_value__s:__d_n
call fcn.00477256
add esp, 0xc
ret 4
Function at 0x47fc29
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x6739c7
call fcn.0062921c
sub esp, 0x218
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov ebx, 0x104
mov edi, ecx
push 0x208
mov dword [ebp - 0x14], ebx
call fcn.006298d5
pop ecx
mov esi, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push dword [edi]
call ebx
mov dword [ebp - 0x18], eax
cmp eax, 0xea
jne 0x47fccc
push esi
call fcn.00629331
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006298d5
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push dword [edi]
call ebx
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x68eb70
call fcn.00424ff1
push 0x68eb70
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 1
call fcn.00424ff1
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
jne 0x47fd33
lea eax, [ebp - 0x224]
push eax
call fcn.00423ad9
pop ecx
push eax
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.004340c0
cmp dword [ebp - 0x10], 0
je 0x47fd33
push esi
call fcn.00423ad9
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.004340c0
push esi
call fcn.00629331
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x47fe59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x47fe8a
cmp dword [ebp + 0x14], eax
jne 0x47fe8a
inc esi
cmp eax, 1
jne 0x47fe9a
xor eax, eax
cmp dword [ebp + 0x14], 2
sete al
or esi, eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x47fea6
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test esi, esi
pop esi
setne al
mov esp, ebp
pop ebp
ret 0x14

Function at 0x480392
Capabilities:
Set registry value

Disassembly:
cmp byte [0x771002], 0
jne 0x4803cc
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4803cc
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.RegKey:_Could_not_write_DWORD_valuename__s_value__d__Error__d_n
call fcn.00477256
add esp, 0x10
ret 8

Function at 0x4803cf
Capabilities:
Set registry value

Disassembly:
cmp byte [0x771002], 0
je 0x4803dd
or eax, 0xffffffff
jmp 0x4803f7
push dword [esp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0x10
Function at 0x48238b
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x673e3b
call fcn.0062921c
push ecx
cmp byte [0x77127d], 0
je 0x4823a6
mov al, 1
jmp 0x482432
push esi
push edi
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp byte [0x77127d], 0
jne 0x48242e
push 0x10
mov dword [0x771274], esi
call fcn.006291e1
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4823e8
mov ecx, eax
call fcn.00481d0c
jmp 0x4823ea
mov eax, edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x77126c], 0
mov dword [0x771278], eax
je 0x482400
xor al, al
jmp 0x482430
add eax, 8
push eax
push edi
push edi
push 0x481d64
push edi
push edi
push str.BenchThread::BenchThreadRunner
call fcn.00465d9d
mov ecx, dword [0x771278]
push esi
mov byte [0x77127d], 1
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret