joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a4d3
Capabilities:
Create thread

Disassembly:
mov eax, 0x6b4a47
call fcn.0066bd6c
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x10], ebx
push edi
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x46a4f5
lea edi, [ebp - 0x10]
push 0x20
call fcn.0066bada
mov esi, eax
pop ecx
mov dword [ebp + 0x20], esi
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x46a562
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46a521
sub ecx, edx
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0040fe77
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 8]
mov dword [esi], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [esi + 4], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x14], ebx
call fcn.00410204
jmp 0x46a564
mov esi, eax
test bl, 1
je 0x46a5ad
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x46a59e
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x20], ecx
cmp eax, 0x1000
jb 0x46a595
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0042741e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push edi
push dword [ebp + 0x1c]
push esi
push 0x46a91a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
jne 0x46a61b
test esi, esi
je 0x46a61b
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jb 0x46a602
mov ecx, dword [esi + 8]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x20], ecx
cmp eax, 0x1000
jb 0x46a5f9
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0042741e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
and dword [esi + 0x18], 0
push 0x20
push esi
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.0066bb0a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x46b8bc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, 0x6b4a60
call fcn.0066bd6c
sub esp, 0xc
push ebx
push esi
mov eax, 0x7bfd08
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00659c7e
pop ecx
push eax
call fcn.0046b05b
mov eax, dword [0x7c1a8c]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x46b92b
cmp edi, eax
jne 0x46b8fd
mov esi, 0x6e1330
cmp edi, dword [0x7bfd00]
jne 0x46b90a
mov esi, 0x6e1334
cmp edi, dword [0x7bfd04]
jne 0x46b917
mov esi, str.disk
call fcn.00481b71
cmp edi, dword [eax]
jne 0x46b927
mov esi, 0x6e12e8
jmp 0x46b981
test esi, esi
jne 0x46b981
mov edx, 0x811c9dc5
mov ecx, ebx
movzx eax, byte [ebp + ecx + 0x10]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x46b932
push edx
lea eax, [ebp + 0x10]
mov ecx, 0x7bfd50
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00469d3c
mov esi, dword [eax + 4]
mov eax, dword [0x7bfd54]
test esi, esi
jne 0x46b966
mov esi, eax
cmp esi, eax
jne 0x46b972
push edi
push str.NA__d
jmp 0x46b987
add esi, 0x14
cmp dword [esi + 0x14], 0x10
jb 0x46b97d
mov esi, dword [esi]
test esi, esi
je 0x46b99b
push esi
push 0x6d7048
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [ebp + 8]
call fcn.00463add
add esp, 0x10
mov ebx, eax
jmp 0x46b9a0
mov ecx, dword [ebp + 8]
mov byte [ecx], bl
push 0x7bfd08
call fcn.00659ca3
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x46c21d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x797f04]
cmp esi, 0x270
jl 0x46c2df
push ebx
xor esi, esi
mov ebx, SysReAllocString
push edi
mov edx, esi
mov ecx, dword [edx*4 + 0x7bfedc]
xor ecx, dword [edx*4 + 0x7bfed8]
and ecx, ebx
xor ecx, dword [edx*4 + 0x7bfed8]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x798108]
xor ecx, dword [edx*4 + 0x7c050c]
mov dword [edx*4 + 0x7bfed8], ecx
inc edx
cmp edx, 0xe3
jl 0x46c23b
lea edi, [edx*4 + 0x7bfed8]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x798108]
xor eax, dword [edx - 0x390]
xor eax, ecx
mov dword [edi], eax
mov edi, edx
mov eax, dword [edx]
cmp edi, 0x7c0894
jl 0x46c280
mov ecx, dword [0x7bfed8]
xor ecx, dword [0x7c0894]
and ecx, ebx
xor ecx, dword [0x7c0894]
mov eax, ecx
shr ecx, 1
and eax, 1
pop edi
pop ebx
xor ecx, dword [eax*4 + 0x798108]
xor ecx, dword [0x7c0508]
mov dword [0x7c0894], ecx
mov ecx, dword [esi*4 + 0x7bfed8]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x797f04], esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret
Function at 0x46c474
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [0x7bfed8], eax
inc edx
mov eax, dword [edx*4 + 0x7bfed4]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x7bfed8], eax
inc edx
cmp edx, 0x270
jl 0x46c480
mov dword [0x797f04], edx
ret 4

Function at 0x46d378
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x46d3ae
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
cmp dword [ebp + 0x18], 0
je 0x46d39c
or eax, 2
test ecx, eax
je 0x46d3ae
not eax
and eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop ebp
ret 0x14
Function at 0x46d679
Capabilities:
Copy file

Disassembly:
mov eax, 0x6b4c20
call fcn.0066bd6c
sub esp, 0xd0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
and dword [edi], 0
call fcn.00462042
mov ebx, eax
test ebx, ebx
jne 0x46d6c2
push dword [ebp + 8]
call fcn.00458d4c
xor ecx, ecx
test al, al
setne cl
add ecx, 2
xor eax, eax
mov dword [edi], ecx
jmp 0x46d7ff
cmp byte [ebx], 0x64
jne 0x46d7fd
cmp dword [esi], 0x39
jb 0x46d7fd
push 0x11
push str.d10:.fileguard40:
push ebx
call fcn.0066e15e
add esp, 0xc
test eax, eax
je 0x46d700
push 0x11
push str.d10:file_guard40:
push ebx
call fcn.0066e15e
add esp, 0xc
test eax, eax
jne 0x46d7fd
push 0xa
pop ecx
push 1
push 0x28
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
lea esi, [ebx + 0x11]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 0x3c], 0
call fcn.00470bd9
test al, al
jne 0x46d72e
mov eax, str.malformed_guard
jmp 0x46d7b1
mov esi, dword [ebp + 0xc]
add dword [esi], 0xffffffc8
mov eax, dword [esi]
dec eax
push eax
lea eax, [ebx + 0x39]
push eax
lea eax, [ebx + 1]
push eax
call fcn.0066d9b0
mov eax, dword [esi]
lea ecx, [ebp - 0xdc]
add esp, 0xc
mov byte [ebx + eax], 0
call fcn.00469aa8
push dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xdc]
push ebx
call fcn.00469a46
mov edx, eax
lea esi, [ebp - 0x38]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x46d79d
inc ecx
cmp ecx, 5
jne 0x46d772
push dword [ebp + 8]
push str.File_passed_integrity_check:__s
call fcn.00427598
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.00427598
jmp 0x46d7fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00427598
mov eax, str.hash_doesnt_match
push dword [ebp + 8]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.0047d3ef
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.0047d3ef
add esp, 0x10
lea eax, [ebp - 0x24]
push 0x6e2520
push dword [ebp + 8]
push eax
call fcn.0046da68
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x46d7e9
mov eax, dword [ebp - 0x24]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea ecx, [ebp - 0x24]
call fcn.0042756c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x46fa6b
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x46faab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x46faab
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x472f60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6b50d7
call fcn.0066bd6c
push ecx
push ecx
push esi
lea esi, [ecx + 0xf24]
cmp dword [esi + 0x14], 8
mov eax, esi
push edi
jb 0x472f7e
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0066c07b
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x472fb2
mov esi, dword [esi]
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
push edi
call fcn.00428f20
test edi, edi
je 0x472fd1
push edi
call fcn.0066bdae
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x479264
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x479366
push ebp
xor ebp, ebp
inc ebp
cmp byte [esp + 0x10], 0
je 0x4792a3
xor eax, eax
mov word [esp + 0x10], bp
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 0x479332
mov ecx, dword [edi + 0x5c]
test ecx, ecx
jns 0x4792b8
neg ecx
jmp 0x4792ba
xor ecx, ecx
mov esi, dword [edi + 0x9c]
test esi, esi
jns 0x4792c8
neg esi
jmp 0x4792ca
xor esi, esi
mov eax, dword [edi + 0x104]
xor edx, edx
mov dword [esp + 0x10], edx
push ebx
test eax, eax
jle 0x479307
lea ebp, [edi + 0xf0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x4792f5
mov eax, ecx
cdq
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x104]
inc edx
add ebp, 4
mov dword [esp + 0x14], edx
cmp edx, eax
jl 0x4792e1
xor ebp, ebp
test eax, eax
jle 0x47932e
lea ebx, [edi + 0xf0]
mov ecx, dword [ebx]
test ecx, ecx
je 0x479322
mov eax, esi
cdq
add dword [ecx + 0x40], eax
adc dword [ecx + 0x44], edx
inc ebp
add ebx, 4
cmp ebp, dword [edi + 0x104]
jl 0x479313
xor ebp, ebp
inc ebp
pop ebx
push dword [edi + 4]
call fcn.0047ac63
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x479365
cmp byte [edi + 0x18], 6
jb 0x479365
push ebp
push 2
push 0x40
lea ecx, [edi + 0x50]
call fcn.004771f1
push 0
push 2
push 0x40
lea ecx, [edi + 0x50]
call fcn.004771f1
pop ebp
and byte [edi + 0xe], 0xdf
jge 0x47938b
mov esi, dword [edi + 0x108]
and dword [edi + 0x108], 0
test esi, esi
je 0x47938b
push esi
call fcn.004e4a1e
push 0
push esi
call fcn.004e53b8
pop edi
pop esi
ret 4
Function at 0x47a53e
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 0x47a571
call fcn.004ccde3
jmp 0x47a57d
lea eax, [ebp - 0x84]
push eax
call fcn.004ccd29
mov eax, dword [ebp + 8]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ecx + 4], 0xffffffff
je 0x47a6c4
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 0x47a6c4
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004ccd29
movzx eax, word [eax + 0x10]
leave
ret
or eax, 0xffffffff
leave
ret

Function at 0x47a715
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.004652a0
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0047a8dd
cmp dword [ebx + 4], 0xffffffff
jne 0x47a74e
xor al, al
jmp 0x47a830
cmp byte [esp + 0x24], 0
push esi
push edi
mov dword [esp + 0x28], 1
je 0x47a7a2
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 0x47a7a2
call fcn.0067dbcd
mov esi, dword [eax]
call fcn.0067dbcd
push esi
mov edi, eax
call fcn.0068567c
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.0047d375
add esp, 0x14
push ebp
mov ecx, ebx
call fcn.00478e1a
cmp eax, 0xffffffff
jne 0x47a7f2
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x47a7c7
call esi
cmp eax, edi
je 0x47a824
call esi
cmp eax, edi
jne 0x47a824
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.00478e1a
cmp eax, 0xffffffff
je 0x47a824
jmp 0x47a803
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.0047d375
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x47a828
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.0047d375
add esp, 0xc
xor al, al
jmp 0x47a82e
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x47e012
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
mov eax, 0x6af287
call fcn.0066bd6c
sub esp, 0x414
push ebx
push esi
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 0x6d81fc
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00428f20
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x47e087
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
test eax, eax
jne 0x47e0b9
push 0x6d8218
mov ecx, esi
call fcn.00437203
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x47e0ad
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
test cl, cl
jne 0x47e11b
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47e113
call fcn.00494ea6
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push eax
mov ecx, esi
call fcn.00427613
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x47e0fc
mov eax, dword [esi]
push 0x6d81fc
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push eax
mov ecx, esi
call fcn.00427613
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x47e137
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x47e125
mov eax, dword [esi]
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, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x481076
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6b5cc4
call fcn.0066bd6c
push ecx
cmp byte [0x7c536d], 0
push esi
push edi
jne 0x481116
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 [0x7c536d], 0
jne 0x481116
push 0x10
mov dword [0x7c5364], esi
call fcn.0066bada
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4810d0
mov ecx, eax
call fcn.0048078e
jmp 0x4810d2
mov eax, edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x7c535c], 0
mov dword [0x7c5368], eax
je 0x4810e8
xor al, al
jmp 0x481118
add eax, 8
push eax
push edi
push edi
push 0x480801
push edi
push edi
push str.BenchThread::BenchThreadRunner
call fcn.0046a4d3
mov ecx, dword [0x7c5368]
push esi
mov byte [0x7c536d], 1
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x485ae3
Capabilities:
Reference l3 dns server

Disassembly:
mov eax, 0x6b6056
call fcn.0066bd6c
sub esp, 0x80
cmp byte [ebp + 8], 2
push esi
jne 0x485b27
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7f7290]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7c5534]
cmp eax, dword [ecx + 4]
jg 0x485b8d
push dword [ebp + 0xc]
push dword [0x7c5530]
call dword [0x7c5518]
jmp 0x485b7e
cmp dword [0x7c551c], 0
jne 0x485b37
mov eax, 0x2741
jmp 0x485b7e
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x7f7290]
push ebx
mov ebx, 0x7c5538
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7c554c]
cmp eax, dword [ecx + 4]
jg 0x485bc2
jmp 0x485b5e
pop edi
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0047a584
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call dword [0x7c551c]
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
mov esi, 0x7c5534
push esi
call fcn.0066bfa5
cmp dword [0x7c5534], 0xffffffff
pop ecx
jne 0x485b16
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [0x7c5530], eax
call fcn.0066bf5b
pop ecx
jmp 0x485b16
push edi
mov edi, 0x7c554c
push edi
call fcn.0066bfa5
cmp dword [0x7c554c], 0xffffffff
pop ecx
jne 0x485b5d
push esi
push str.2001:db8::1428:57ab
push ebx
mov dword [ebp - 4], esi
call fcn.004cd58d
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0066bf5b
pop ecx
jmp 0x485b5d

Function at 0x485d63
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.0048606d
test al, al
je 0x485dbf
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00485ae3
test eax, eax
jne 0x485dbf
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00485c6a
lea ecx, [ebp - 0x18]
call fcn.00467833
test al, al
jne 0x485dbf
lea ecx, [ebp - 0x18]
call fcn.004cd52b
test al, al
jne 0x485dbf
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 0x485e1f
cmp byte [ebp + 0xc], 2
jne 0x485e14
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 0x485e14
cmp word [eax + 8], 2
jne 0x485e14
cmp word [eax + 0xa], 4
jne 0x485e14
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x485e14
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004ccd7d
jmp 0x485e1c
mov ecx, dword [ebp + 8]
call fcn.004ccde3
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x48606d
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
cmp dword [0x7c5508], 0
push esi
jne 0x48617c
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x7c5508], eax
test eax, eax
jne 0x486097
xor al, al
jmp 0x48617e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetAdaptersInfo
push eax
call esi
mov dword [0x7c550c], eax
test eax, eax
jne 0x4860c3
push dword [0x7c5508]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [0x7c5508], 0
jmp 0x486090
push str.GetIfTable
push dword [0x7c5508]
call esi
mov dword [0x7c5510], eax
test eax, eax
je 0x4860ae
push str.GetIfEntry
push dword [0x7c5508]
call esi
mov dword [0x7c5514], eax
test eax, eax
je 0x4860ae
push str.GetBestInterface
push dword [0x7c5508]
call esi
mov dword [0x7c5518], eax
test eax, eax
je 0x4860ae
push str.GetBestInterfaceEx
push dword [0x7c5508]
call esi
push str.GetIpAddrTable
push dword [0x7c5508]
mov dword [0x7c551c], eax
call esi
mov dword [0x7c5520], eax
test eax, eax
je 0x4860ae
push str.GetAdaptersAddresses
push dword [0x7c5508]
call esi
push 0x6e6760
push dword [0x7c5508]
mov dword [0x7c5524], eax
call esi
push str.NotifyIpInterfaceChange
push dword [0x7c5508]
mov dword [0x7c5528], eax
call esi
mov dword [0x7c552c], eax
test eax, eax
je 0x48617c
lea ecx, [esp + 4]
push ecx
push 0
push 0x79cbb0
push 0x486063
push 2
call eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x4883e2
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b58e1
call fcn.0066bd6c
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x68]
cmp dword [eax + 0x14], 8
jb 0x4883fe
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0047353d
xor edi, edi
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.004274a7
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
je 0x488441
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x48843a
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x78], edi
je 0x488458
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
jb 0x488452
mov eax, dword [ebp - 0x44]
push eax
call fcn.0045f3df
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x64], 4
cmp eax, 8
jb 0x48849a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x488491
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0042756c
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4