joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e9dd
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, 0x6aafed
call fcn.00664608
sub esp, 0xc
push ebx
push esi
mov eax, 0x7b5038
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.0065255c
pop ecx
push eax
call fcn.0045e17c
mov eax, dword [0x7b6dbc]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x45ea4c
cmp edi, eax
jne 0x45ea1e
mov esi, 0x6d70e8
cmp edi, dword [0x7b5030]
jne 0x45ea2b
mov esi, 0x6d70ec
cmp edi, dword [0x7b5034]
jne 0x45ea38
mov esi, str.disk
call fcn.00474c72
cmp edi, dword [eax]
jne 0x45ea48
mov esi, 0x6d70a0
jmp 0x45eaa2
test esi, esi
jne 0x45eaa2
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 0x45ea53
push edx
lea eax, [ebp + 0x10]
mov ecx, 0x7b5080
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045ce5d
mov esi, dword [eax + 4]
mov eax, dword [0x7b5084]
test esi, esi
jne 0x45ea87
mov esi, eax
cmp esi, eax
jne 0x45ea93
push edi
push str.NA__d
jmp 0x45eaa8
add esi, 0x14
cmp dword [esi + 0x14], 0x10
jb 0x45ea9e
mov esi, dword [esi]
test esi, esi
je 0x45eabc
push esi
push 0x6ce068
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [ebp + 8]
call fcn.00456bfe
add esp, 0x10
mov ebx, eax
jmp 0x45eac1
mov ecx, dword [ebp + 8]
mov byte [ecx], bl
push 0x7b5038
call fcn.00652581
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 0x45f33e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x78ceec]
cmp esi, 0x270
jl 0x45f400
push ebx
xor esi, esi
mov ebx, SysReAllocString
push edi
mov edx, esi
mov ecx, dword [edx*4 + 0x7b520c]
xor ecx, dword [edx*4 + 0x7b5208]
and ecx, ebx
xor ecx, dword [edx*4 + 0x7b5208]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x78d0f0]
xor ecx, dword [edx*4 + 0x7b583c]
mov dword [edx*4 + 0x7b5208], ecx
inc edx
cmp edx, 0xe3
jl 0x45f35c
lea edi, [edx*4 + 0x7b5208]
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 + 0x78d0f0]
xor eax, dword [edx - 0x390]
xor eax, ecx
mov dword [edi], eax
mov edi, edx
mov eax, dword [edx]
cmp edi, 0x7b5bc4
jl 0x45f3a1
mov ecx, dword [0x7b5208]
xor ecx, dword [0x7b5bc4]
and ecx, ebx
xor ecx, dword [0x7b5bc4]
mov eax, ecx
shr ecx, 1
and eax, 1
pop edi
pop ebx
xor ecx, dword [eax*4 + 0x78d0f0]
xor ecx, dword [0x7b5838]
mov dword [0x7b5bc4], ecx
mov ecx, dword [esi*4 + 0x7b5208]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x78ceec], 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 0x45f595
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [0x7b5208], eax
inc edx
mov eax, dword [edx*4 + 0x7b5204]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x7b5208], eax
inc edx
cmp edx, 0x270
jl 0x45f5a1
mov dword [0x78ceec], edx
ret 4

Function at 0x460499
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 0x4604cf
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
cmp dword [ebp + 0x18], 0
je 0x4604bd
or eax, 2
test ecx, eax
je 0x4604cf
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 0x46079a
Capabilities:
Copy file

Disassembly:
mov eax, 0x6ab1ad
call fcn.00664608
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.00455163
mov ebx, eax
test ebx, ebx
jne 0x4607e3
push dword [ebp + 8]
call fcn.0045270f
xor ecx, ecx
test al, al
setne cl
add ecx, 2
xor eax, eax
mov dword [edi], ecx
jmp 0x460920
cmp byte [ebx], 0x64
jne 0x46091e
cmp dword [esi], 0x39
jb 0x46091e
push 0x11
push str.d10:.fileguard40:
push ebx
call fcn.0066699e
add esp, 0xc
test eax, eax
je 0x460821
push 0x11
push str.d10:file_guard40:
push ebx
call fcn.0066699e
add esp, 0xc
test eax, eax
jne 0x46091e
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.00463cfa
test al, al
jne 0x46084f
mov eax, str.malformed_guard
jmp 0x4608d2
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.006661f0
mov eax, dword [esi]
lea ecx, [ebp - 0xdc]
add esp, 0xc
mov byte [ebx + eax], 0
call fcn.0045cbc9
push dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xdc]
push ebx
call fcn.0045cb67
mov edx, eax
lea esi, [ebp - 0x38]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x4608be
inc ecx
cmp ecx, 5
jne 0x460893
push dword [ebp + 8]
push str.File_passed_integrity_check:__s
call fcn.00427b28
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.00427b28
jmp 0x46091e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00427b28
mov eax, str.hash_doesnt_match
push dword [ebp + 8]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.004704f0
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.004704f0
add esp, 0x10
lea eax, [ebp - 0x24]
push 0x6d82d8
push dword [ebp + 8]
push eax
call fcn.00460b89
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x46090a
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.00427afc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x462b8c
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 0x462bcc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x462bcc
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 0x465bfa
Capabilities:
Delete file

Disassembly:
mov eax, 0x6ab5f2
call fcn.00664608
sub esp, 0x28
push ebx
push esi
push dword [0x791bb0]
xor ebx, ebx
mov byte [ebp - 0xd], bl
call fcn.0047a0cb
mov esi, eax
test esi, esi
jne 0x465c2b
push ebx
mov byte [ebp - 0xd], 1
call fcn.0047a0cb
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], fcn.00479726
mov dword [ebp - 4], ebx
test esi, esi
je 0x465cc8
push str.campaigncode.txt
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
call fcn.00471937
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x465c5d
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call fcn.00479abd
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00427afc
test edi, edi
je 0x465ca0
cmp dword [ebp - 0x14], 0
je 0x465ca0
push edi
call fcn.00674add
pop ecx
mov ecx, 0x7b5e48
mov ebx, eax
call fcn.0046610c
test eax, eax
jne 0x465c9a
mov dword [0x7b6d48], ebx
mov dword [0x7b6d44], ebx
cmp byte [ebp - 0xd], 0
je 0x465cb7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x465cb0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 2
test edi, edi
je 0x465cc7
push 1
push edi
call fcn.004513a7
pop edi
mov dword [ebp - 4], 3
test esi, esi
je 0x465cd9
push esi
call fcn.00479726
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x466081
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6ab664
call fcn.00664608
push ecx
push ecx
push esi
lea esi, [ecx + 0xf24]
cmp dword [esi + 0x14], 8
mov eax, esi
push edi
jb 0x46609f
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.0066490b
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4660d3
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.004294b0
test edi, edi
je 0x4660f2
push edi
call fcn.0066464a
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 0x467b33
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x6ab8b5
call fcn.00664608
sub esp, 0x5c
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
mov byte [ebp - 0xd], 1
call fcn.0046bca7
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 1
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
mov byte [ebx], al
xor esi, esi
mov dword [ebp - 0x30], eax
inc esi
mov edi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call fcn.0046965b
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
test ecx, ecx
je 0x467d86
call fcn.0046965b
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x18], eax
mov edx, dword [eax + 8]
jmp 0x467d5a
mov ebx, dword [edx + 4]
movzx edx, word [edx + 8]
add ebx, dword [eax]
test dl, 0xe0
je 0x467d51
and edx, 0xf
jmp dword [edx*4 + 0x46811b]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
mov edi, dword [edx]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edx
test edi, edi
jne 0x467ba6
mov edi, dword [ebp - 0x30]
inc edi
mov dword [ebp - 0x30], edi
call fcn.0046965b
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp edi, ecx
jb 0x467b91
mov dword [ebp - 4], 5
call fcn.0046bce8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x46c365
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x46c467
push ebp
xor ebp, ebp
inc ebp
cmp byte [esp + 0x10], 0
je 0x46c3a4
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 0x46c433
mov ecx, dword [edi + 0x5c]
test ecx, ecx
jns 0x46c3b9
neg ecx
jmp 0x46c3bb
xor ecx, ecx
mov esi, dword [edi + 0x9c]
test esi, esi
jns 0x46c3c9
neg esi
jmp 0x46c3cb
xor esi, esi
mov eax, dword [edi + 0x104]
xor edx, edx
mov dword [esp + 0x10], edx
push ebx
test eax, eax
jle 0x46c408
lea ebp, [edi + 0xf0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x46c3f6
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 0x46c3e2
xor ebp, ebp
test eax, eax
jle 0x46c42f
lea ebx, [edi + 0xf0]
mov ecx, dword [ebx]
test ecx, ecx
je 0x46c423
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 0x46c414
xor ebp, ebp
inc ebp
pop ebx
push dword [edi + 4]
call fcn.0046dd64
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x46c466
cmp byte [edi + 0x18], 6
jb 0x46c466
push ebp
push 2
push 0x40
lea ecx, [edi + 0x50]
call fcn.0046a2f2
push 0
push 2
push 0x40
lea ecx, [edi + 0x50]
call fcn.0046a2f2
pop ebp
and byte [edi + 0xe], 0xdf
jge 0x46c48c
mov esi, dword [edi + 0x108]
and dword [edi + 0x108], 0
test esi, esi
je 0x46c48c
push esi
call fcn.004d7b93
push 0
push esi
call fcn.004d852d
pop edi
pop esi
ret 4
Function at 0x46d03a
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6a71ec
call fcn.00664608
sub esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00471937
and dword [ebp - 4], 0
mov ecx, eax
call fcn.004377a9
push eax
push 0x6ce074
push 0x10
call fcn.00488dac
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.004278a8
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x46d63f
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 0x46d672
call fcn.004bff34
jmp 0x46d67e
lea eax, [ebp - 0x84]
push eax
call fcn.004bfe7a
mov eax, dword [ebp + 8]
leave
ret 4

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

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

Function at 0x46d816
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.004583c1
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0046d9de
cmp dword [ebx + 4], 0xffffffff
jne 0x46d84f
xor al, al
jmp 0x46d931
cmp byte [esp + 0x24], 0
push esi
push edi
mov dword [esp + 0x28], 1
je 0x46d8a3
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 0x46d8a3
call fcn.0067610d
mov esi, dword [eax]
call fcn.0067610d
push esi
mov edi, eax
call fcn.0067db8c
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.00470476
add esp, 0x14
push ebp
mov ecx, ebx
call fcn.0046bf1b
cmp eax, 0xffffffff
jne 0x46d8f3
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x46d8c8
call esi
cmp eax, edi
je 0x46d925
call esi
cmp eax, edi
jne 0x46d925
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.0046bf1b
cmp eax, 0xffffffff
je 0x46d925
jmp 0x46d904
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.00470476
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x46d929
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.00470476
add esp, 0xc
xor al, al
jmp 0x46d92f
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x46fc8c
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x6abd03
call fcn.00664608
sub esp, 0x48
push ebx
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 0x6d38dc
push 1
push ebx
push 0x6d38cc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x46fe17
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 0x46fe06
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 0x46fdf5
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 0x46fde7
test eax, eax
jne 0x46fd2f
mov edi, 0x80004005
jmp 0x46fde7
push 7
pop edi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov word [ebp - 0x3c], ax
call fcn.00427ba3
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043bb9a
cmp dword [eax + 0x14], 8
jb 0x46fd65
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x54]
call fcn.00427afc
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x14
cmp eax, 8
jb 0x46fdb9
mov ecx, dword [ebp - 0x3c]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x1000
jb 0x46fdb0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004279ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], edi
test esi, esi
jne 0x46fdd3
mov edi, 0x8007000e
jmp 0x46fde6
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 0x46fdf5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x46fe06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x46fe17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x1c
test eax, eax
je 0x46fe2b
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
leave
ret 8
Function at 0x471113
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
mov eax, 0x6a7687
call fcn.00664608
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 0x6cf21c
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.004294b0
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x471188
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
test eax, eax
jne 0x4711ba
push str..old
mov ecx, esi
call fcn.00437714
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4711ae
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
test cl, cl
jne 0x47121c
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x471214
call fcn.00487fd7
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push eax
mov ecx, esi
call fcn.00427ba3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4711fd
mov eax, dword [esi]
push 0x6cf21c
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push eax
mov ecx, esi
call fcn.00427ba3
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x471238
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x471226
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 0x474177
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6ac251
call fcn.00664608
push ecx
cmp byte [0x7ba69d], 0
push esi
push edi
jne 0x474217
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 [0x7ba69d], 0
jne 0x474217
push 0x10
mov dword [0x7ba694], esi
call fcn.00664379
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4741d1
mov ecx, eax
call fcn.0047388f
jmp 0x4741d3
mov eax, edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x7ba68c], 0
mov dword [0x7ba698], eax
je 0x4741e9
xor al, al
jmp 0x474219
add eax, 8
push eax
push edi
push edi
push 0x473902
push edi
push edi
push str.BenchThread::BenchThreadRunner
call fcn.0045d5f4
mov ecx, dword [0x7ba698]
push esi
mov byte [0x7ba69d], 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 0x478be4
Capabilities:
Reference l3 dns server

Disassembly:
mov eax, 0x6ac5e3
call fcn.00664608
sub esp, 0x80
cmp byte [ebp + 8], 2
push esi
jne 0x478c28
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7ec658]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7ba864]
cmp eax, dword [ecx + 4]
jg 0x478c8e
push dword [ebp + 0xc]
push dword [0x7ba860]
call dword [0x7ba848]
jmp 0x478c7f
cmp dword [0x7ba84c], 0
jne 0x478c38
mov eax, 0x2741
jmp 0x478c7f
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x7ec658]
push ebx
mov ebx, 0x7ba868
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7ba87c]
cmp eax, dword [ecx + 4]
jg 0x478cc3
jmp 0x478c5f
pop edi
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0046d685
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call dword [0x7ba84c]
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
mov esi, 0x7ba864
push esi
call fcn.00664835
cmp dword [0x7ba864], 0xffffffff
pop ecx
jne 0x478c17
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [0x7ba860], eax
call fcn.006647eb
pop ecx
jmp 0x478c17
push edi
mov edi, 0x7ba87c
push edi
call fcn.00664835
cmp dword [0x7ba87c], 0xffffffff
pop ecx
jne 0x478c5e
push esi
push str.2001:db8::1428:57ab
push ebx
mov dword [ebp - 4], esi
call fcn.004c06de
or dword [ebp - 4], 0xffffffff
push edi
call fcn.006647eb
pop ecx
jmp 0x478c5e

Function at 0x478e64
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.0047916e
test al, al
je 0x478ec0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00478be4
test eax, eax
jne 0x478ec0
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00478d6b
lea ecx, [ebp - 0x18]
call fcn.0045a954
test al, al
jne 0x478ec0
lea ecx, [ebp - 0x18]
call fcn.004c067c
test al, al
jne 0x478ec0
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 0x478f20
cmp byte [ebp + 0xc], 2
jne 0x478f15
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 0x478f15
cmp word [eax + 8], 2
jne 0x478f15
cmp word [eax + 0xa], 4
jne 0x478f15
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x478f15
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004bfece
jmp 0x478f1d
mov ecx, dword [ebp + 8]
call fcn.004bff34
mov eax, dword [ebp + 8]
leave
ret 8