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

Disassembly:
mov eax, 0x6d3295
call fcn.006899cc
sub esp, 0xc
push ebx
push esi
mov eax, 0x7e4a40
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00677948
pop ecx
push eax
call fcn.0047c246
mov eax, dword [0x7e67dc]
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x47cb34
cmp edi, eax
jne 0x47cb06
mov esi, 0x6fef88
cmp edi, dword [0x7e4a30]
jne 0x47cb13
mov esi, 0x6fef8c
cmp edi, dword [0x7e4a34]
jne 0x47cb20
mov esi, str.disk
call fcn.0049313c
cmp edi, dword [eax]
jne 0x47cb30
mov esi, 0x6fef78
jmp 0x47cb8a
test esi, esi
jne 0x47cb8a
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 0x47cb3b
push edx
lea eax, [ebp + 0x10]
mov ecx, 0x7e4a88
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0047aef5
mov esi, dword [eax + 4]
mov eax, dword [0x7e4a8c]
test esi, esi
jne 0x47cb6f
mov esi, eax
cmp esi, eax
jne 0x47cb7b
push edi
push str.NA__d
jmp 0x47cb90
add esi, 0x14
cmp dword [esi + 0x14], 0x10
jb 0x47cb86
mov esi, dword [esi]
test esi, esi
je 0x47cba4
push esi
push 0x6f60e8
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [ebp + 8]
call fcn.00474b25
add esp, 0x10
mov ebx, eax
jmp 0x47cba9
mov ecx, dword [ebp + 8]
mov byte [ecx], bl
push 0x7e4a40
call fcn.0067796d
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 0x47d47c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x7bbeec]
cmp esi, 0x270
jl 0x47d53e
push ebx
xor esi, esi
mov ebx, SysReAllocString
push edi
mov edx, esi
mov ecx, dword [edx*4 + 0x7e4c14]
xor ecx, dword [edx*4 + 0x7e4c10]
and ecx, ebx
xor ecx, dword [edx*4 + 0x7e4c10]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x7bc0f0]
xor ecx, dword [edx*4 + 0x7e5244]
mov dword [edx*4 + 0x7e4c10], ecx
inc edx
cmp edx, 0xe3
jl 0x47d49a
lea edi, [edx*4 + 0x7e4c10]
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 + 0x7bc0f0]
xor eax, dword [edx - 0x390]
xor eax, ecx
mov dword [edi], eax
mov edi, edx
mov eax, dword [edx]
cmp edi, 0x7e55cc
jl 0x47d4df
mov ecx, dword [0x7e4c10]
xor ecx, dword [0x7e55cc]
and ecx, ebx
xor ecx, dword [0x7e55cc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop edi
pop ebx
xor ecx, dword [eax*4 + 0x7bc0f0]
xor ecx, dword [0x7e5240]
mov dword [0x7e55cc], ecx
mov ecx, dword [esi*4 + 0x7e4c10]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x7bbeec], 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 0x47d6d3
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [0x7e4c10], eax
inc edx
mov eax, dword [edx*4 + 0x7e4c0c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x7e4c10], eax
inc edx
cmp edx, 0x270
jl 0x47d6df
mov dword [0x7bbeec], edx
ret 4

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

Disassembly:
mov eax, 0x6d3455
call fcn.006899cc
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.00472f8b
mov ebx, eax
test ebx, ebx
jne 0x47e923
push dword [ebp + 8]
call fcn.0047050d
xor ecx, ecx
test al, al
setne cl
add ecx, 2
xor eax, eax
mov dword [edi], ecx
jmp 0x47ea60
cmp byte [ebx], 0x64
jne 0x47ea5e
cmp dword [esi], 0x39
jb 0x47ea5e
push 0x11
push str.d10:.fileguard40:
push ebx
call fcn.0068bdae
add esp, 0xc
test eax, eax
je 0x47e961
push 0x11
push str.d10:file_guard40:
push ebx
call fcn.0068bdae
add esp, 0xc
test eax, eax
jne 0x47ea5e
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.00481f2c
test al, al
jne 0x47e98f
mov eax, str.malformed_guard
jmp 0x47ea12
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.0068b600
mov eax, dword [esi]
lea ecx, [ebp - 0xdc]
add esp, 0xc
mov byte [ebx + eax], 0
call fcn.0047ac67
push dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xdc]
push ebx
call fcn.0047ac05
mov edx, eax
lea esi, [ebp - 0x38]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x47e9fe
inc ecx
cmp ecx, 5
jne 0x47e9d3
push dword [ebp + 8]
push str.File_passed_integrity_check:__s
call fcn.0040f570
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.0040f570
jmp 0x47ea5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.0040f570
mov eax, str.hash_doesnt_match
push dword [ebp + 8]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.0048e961
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.0048e961
add esp, 0x10
lea eax, [ebp - 0x24]
push 0x700188
push dword [ebp + 8]
push eax
call fcn.0047ecc9
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x47ea4a
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.0044823e
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

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

Disassembly:
mov eax, 0x6d38a8
call fcn.006899cc
sub esp, 0x28
push ebx
push esi
push dword [0x7c0bd0]
xor ebx, ebx
mov byte [ebp - 0xd], bl
call fcn.004985b6
mov esi, eax
test esi, esi
jne 0x483e98
push ebx
mov byte [ebp - 0xd], 1
call fcn.004985b6
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], fcn.00497c2d
mov dword [ebp - 4], ebx
test esi, esi
je 0x483f35
push str.campaigncode.txt
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0048fdc9
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x483eca
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call fcn.00497fa8
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.0044823e
test edi, edi
je 0x483f0d
cmp dword [ebp - 0x14], 0
je 0x483f0d
push edi
call fcn.00699eed
pop ecx
mov ecx, 0x7e5850
mov ebx, eax
call fcn.0048437c
test eax, eax
jne 0x483f07
mov dword [0x7e6768], ebx
mov dword [0x7e6764], ebx
cmp byte [ebp - 0xd], 0
je 0x483f24
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x483f1d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 2
test edi, edi
je 0x483f34
push 1
push edi
call fcn.0046f19e
pop edi
mov dword [ebp - 4], 3
test esi, esi
je 0x483f46
push esi
call fcn.00497c2d
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4842f1
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6d391a
call fcn.006899cc
push ecx
push ecx
push esi
lea esi, [ecx + 0xf3c]
cmp dword [esi + 0x14], 8
mov eax, esi
push edi
jb 0x48430f
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.00689cdb
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x484343
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.00449a5e
test edi, edi
je 0x484362
push edi
call fcn.00689a0e
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 0x485d7b
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x6d3b6b
call fcn.006899cc
sub esp, 0x58
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
mov byte [ebp - 0xd], 1
call fcn.00489fdc
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 - 0x18], esi
mov dword [ebp - 0x20], esi
call fcn.0048788e
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
test ecx, ecx
je 0x485fbe
call fcn.0048788e
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x14], eax
mov edx, dword [eax + 8]
jmp 0x485f92
mov ebx, dword [edx + 4]
add ebx, dword [eax]
movzx edx, word [edx + 8]
mov dword [ebp - 0x28], ebx
test dl, 0xe0
je 0x485f89
and edx, 0xf
jmp dword [edx*4 + 0x486353]
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 0x485dee
mov edi, dword [ebp - 0x30]
inc edi
mov dword [ebp - 0x30], edi
call fcn.0048788e
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp edi, ecx
jb 0x485dd9
mov dword [ebp - 4], 5
call fcn.0048a01d
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x48a6a7
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x48a7a9
push ebp
xor ebp, ebp
inc ebp
cmp byte [esp + 0x10], 0
je 0x48a6e6
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 0x48a775
mov ecx, dword [edi + 0x5c]
test ecx, ecx
jns 0x48a6fb
neg ecx
jmp 0x48a6fd
xor ecx, ecx
mov esi, dword [edi + 0x9c]
test esi, esi
jns 0x48a70b
neg esi
jmp 0x48a70d
xor esi, esi
mov eax, dword [edi + 0x104]
xor edx, edx
mov dword [esp + 0x10], edx
push ebx
test eax, eax
jle 0x48a74a
lea ebp, [edi + 0xf0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x48a738
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 0x48a724
xor ebp, ebp
test eax, eax
jle 0x48a771
lea ebx, [edi + 0xf0]
mov ecx, dword [ebx]
test ecx, ecx
je 0x48a765
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 0x48a756
xor ebp, ebp
inc ebp
pop ebx
push dword [edi + 4]
call fcn.0048c150
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x48a7a8
cmp byte [edi + 0x18], 6
jb 0x48a7a8
push ebp
push 2
push 0x40
lea ecx, [edi + 0x50]
call fcn.004885b5
push 0
push 2
push 0x40
lea ecx, [edi + 0x50]
call fcn.004885b5
pop ebp
mov eax, 0xffdf
and word [edi + 0xe], ax
test byte [edi + 0xe], 0x80
je 0x48a7d7
mov esi, dword [edi + 0x108]
and dword [edi + 0x108], 0
test esi, esi
je 0x48a7d7
push esi
call fcn.004f7cfd
push 0
push esi
call fcn.004f8697
pop edi
pop esi
ret 4
Function at 0x48b3ce
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6cf68d
call fcn.006899cc
sub esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0048fdc9
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00457977
push eax
push 0x6f60f4
push 0x10
call fcn.004a72f8
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00448026
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x48ba03
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 0x48ba36
call fcn.004df6ce
jmp 0x48ba42
lea eax, [ebp - 0x84]
push eax
call fcn.004df614
mov eax, dword [ebp + 8]
leave
ret 4

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

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

Function at 0x48bbdb
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.004762ee
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0048bdae
cmp dword [ebx + 4], 0xffffffff
jne 0x48bc14
xor al, al
jmp 0x48bcf7
cmp byte [esp + 0x24], 0
push esi
mov dword [esp + 0x24], 1
je 0x48bc66
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0xffff
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x48bc66
call fcn.0069b508
push dword [eax]
call fcn.006a2f44
mov esi, eax
call fcn.0069b508
push esi
push dword [eax]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.0048e8e7
add esp, 0x14
push edi
push ebp
mov ecx, ebx
call fcn.0048a250
cmp eax, 0xffffffff
jne 0x48bcb7
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x48bc8c
call esi
cmp eax, edi
je 0x48bce9
call esi
cmp eax, edi
jne 0x48bce9
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.0048a250
cmp eax, 0xffffffff
je 0x48bce9
jmp 0x48bcc8
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.0048e8e7
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x48bced
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.0048e8e7
add esp, 0xc
xor al, al
jmp 0x48bcf5
xor ecx, ecx
mov al, 1
mov word [ebx + 0xe], cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x48e0f5
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x6d3fb9
call fcn.006899cc
sub esp, 0x48
push ebx
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 0x6fb800
push 1
push ebx
push 0x6fb7f0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x48e289
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov dword [ebp - 0x18], ebx
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
js 0x48e278
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov dword [ebp - 0x14], ebx
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
js 0x48e267
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov dword [ebp - 0x10], ebx
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
js 0x48e259
test eax, eax
jne 0x48e1a1
mov edi, 0x80004005
jmp 0x48e259
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.004482e2
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0045b945
cmp dword [eax + 0x14], 8
jb 0x48e1d7
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.0044823e
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x14
cmp eax, 8
jb 0x48e22b
mov ecx, dword [ebp - 0x3c]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x1000
jb 0x48e222
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0044810a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.0068976d
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 0x48e245
mov edi, 0x8007000e
jmp 0x48e258
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 0x48e267
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x48e278
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x48e289
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x1c
test eax, eax
je 0x48e29d
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 0x48f594
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
mov eax, 0x6cfb28
call fcn.006899cc
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 0x6f717c
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00449a5e
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x48f609
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
test eax, eax
jne 0x48f63b
push 0x6f7198
mov ecx, esi
call fcn.004578e2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48f62f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne cl
test cl, cl
jne 0x48f69d
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48f695
call fcn.004a6583
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push eax
mov ecx, esi
call fcn.004482e2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48f67e
mov eax, dword [esi]
push 0x6f717c
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push eax
mov ecx, esi
call fcn.004482e2
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x48f6b9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48f6a7
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 0x49266b
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6d4507
call fcn.006899cc
push ecx
cmp byte [0x7ea0bd], 0
push esi
push edi
jne 0x49270b
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 [0x7ea0bd], 0
jne 0x49270b
push 0x10
mov dword [0x7ea0b8], esi
call fcn.0068973d
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4926c5
mov ecx, eax
call fcn.00491d59
jmp 0x4926c7
mov eax, edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x7ea0b0], 0
mov dword [0x7ea0ac], eax
je 0x4926dd
xor al, al
jmp 0x49270d
add eax, 8
push eax
push edi
push edi
push 0x491dcc
push edi
push edi
push str.BenchThread::BenchThreadRunner
call fcn.0047b6cc
mov ecx, dword [0x7ea0ac]
push esi
mov byte [0x7ea0bd], 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 0x4970e8
Capabilities:
Reference l3 dns server

Disassembly:
mov eax, 0x6d4899
call fcn.006899cc
sub esp, 0x80
cmp byte [ebp + 8], 2
push esi
jne 0x49712d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x81c3a0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7ea284]
cmp eax, dword [ecx + 4]
jg 0x497194
push dword [ebp + 0xc]
mov eax, dword [0x7ea268]
push dword [0x7ea280]
call eax
jmp 0x497185
cmp dword [0x7ea26c], 0
jne 0x49713d
mov eax, 0x2741
jmp 0x497185
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x81c3a0]
push ebx
mov ebx, 0x7ea288
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7ea29c]
cmp eax, dword [ecx + 4]
jg 0x4971c9
jmp 0x497164
pop edi
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0048ba49
push dword [ebp + 0xc]
mov eax, dword [0x7ea26c]
lea ecx, [ebp - 0x8c]
push ecx
call eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
mov esi, 0x7ea284
push esi
call fcn.00689c05
cmp dword [0x7ea284], 0xffffffff
pop ecx
jne 0x49711b
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [0x7ea280], eax
call fcn.00689bbb
pop ecx
jmp 0x49711b
push edi
mov edi, 0x7ea29c
push edi
call fcn.00689c05
cmp dword [0x7ea29c], 0xffffffff
pop ecx
jne 0x497163
push esi
push str.2001:db8::1428:57ab
push ebx
mov dword [ebp - 4], esi
call fcn.004dfe78
or dword [ebp - 4], 0xffffffff
push edi
call fcn.00689bbb
pop ecx
jmp 0x497163

Function at 0x49736b
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.00497675
test al, al
je 0x4973c7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004970e8
test eax, eax
jne 0x4973c7
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00497271
lea ecx, [ebp - 0x18]
call fcn.004788c6
test al, al
jne 0x4973c7
lea ecx, [ebp - 0x18]
call fcn.004dfe16
test al, al
jne 0x4973c7
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 0x497427
cmp byte [ebp + 0xc], 2
jne 0x49741c
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 0x49741c
cmp word [eax + 8], 2
jne 0x49741c
cmp word [eax + 0xa], 4
jne 0x49741c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x49741c
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004df668
jmp 0x497424
mov ecx, dword [ebp + 8]
call fcn.004df6ce
mov eax, dword [ebp + 8]
leave
ret 8