joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor ebx, ebx
push 1
mov edi, ecx
xor esi, esi
push eax
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
call sub.iphlpapi.dll_GetIfTable
cmp eax, 0x32
je 0x4071af
cmp eax, 0x7a
jne 0x40719f
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 4], eax
mov esi, eax
lea eax, [ebp - 0xc]
push 1
push eax
push esi
call sub.iphlpapi.dll_GetIfTable
test eax, eax
je 0x4071b6
xor al, al
jmp 0x407280
xor edx, edx
xor eax, eax
cmp dword [esi], ebx
jbe 0x407204
add esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
mov ecx, 0xd7
lea edi, [ebp - 0x36c]
add dword [ebp - 8], 0x35c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x144]
mov esi, dword [ebp - 0x12c]
mov dword [eax*4 + 0x40a8a8], ecx
add edx, ecx
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x40a8bc], esi
add ebx, esi
inc eax
cmp eax, dword [ecx]
jb 0x4071c4
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x40a898]
mov esi, dword [0x40a89c]
mov eax, edx
sub eax, ecx
mov dword [0x40a8a0], eax
mov eax, ebx
sub eax, esi
test ecx, ecx
mov dword [0x40a8a4], eax
ja 0x40722d
and dword [0x40a8a0], 0
test esi, esi
ja 0x407238
xor eax, eax
mov dword [0x40a8a4], eax
mov esi, dword [ebp + 8]
mov dword [0x40a898], edx
mov dword [0x40a89c], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi], eax
cmp dword [edi + 0x24], 0
je 0x40725b
and dword [edi + 0x24], 0
jmp 0x407270
call ebx
mov ecx, eax
mov eax, dword [esi]
sub ecx, dword [edi + 0x20]
imul eax, eax, 0x3e8
xor edx, edx
div ecx
mov dword [esi], eax
call ebx
push dword [ebp - 4]
mov dword [edi + 0x20], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004016ae
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x408990
Capabilities:
Check if file exists
Copy file
Create process on windows
Get common file path
Get file attributes
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00405200
test al, al
jne 0x4089bf
push str.InitializeSetup___failed
push 0x3d
push str.SetupHandler.cpp
push 0
push str.SetupHandler::Run
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x18
pop esi
ret
cmp byte [esi + 0x3029], 0
jne 0x4089cf
mov ecx, esi
call fcn.004044b0
cmp byte [esi + 0x302b], 0
je 0x4089e3
mov ecx, esi
call fcn.00405680
test al, al
jne 0x4089bd
mov ecx, esi
call fcn.00404a50
test al, al
je 0x4089bd
cmp byte [esi + 0x302e], 0
jne 0x4089ff
mov ecx, esi
pop esi
jmp fcn.00403d10
push 0
call fcn.0043a898
int3
Function at 0x409be0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x409c00
push 0
push 0
call fcn.0043ae4a
add esp, 0x18
mov dword [esi + 0x10], eax
pop esi
ret
Function at 0x40b810
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
mov esi, dword [esp + 0x8c]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0
push 0x80
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.004396df
add esp, 0x84
ret

Function at 0x40b870
Capabilities:
Copy file

Disassembly:
sub esp, 0x804
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push esi
mov esi, dword [esp + 0x810]
test eax, eax
je 0x40b8ee
test esi, esi
je 0x40b8ee
push 0x200
lea ecx, [esp + 0x408]
push ecx
push eax
call fcn.0040fa60
push 0x200
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040fa60
add esp, 0x18
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov al, 1
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004396df
add esp, 0x804
ret
mov ecx, dword [esp + 0x804]
xor al, al
pop esi
xor ecx, esp
call fcn.004396df
add esp, 0x804
ret

Function at 0x40c070
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x434
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x430], eax
push ebp
mov ebp, dword [esp + 0x444]
push esi
mov esi, dword [esp + 0x440]
push edi
mov edi, dword [esp + 0x448]
mov dword [edi], 0
test esi, esi
je 0x40c144
cmp byte [esi], 0
je 0x40c144
push ebx
push 0x200
lea eax, [esp + 0x44]
push eax
push esi
call fcn.0040fa60
lea eax, [esp + 0x4c]
push 0x462cbc
push eax
call fcn.0043a8ac
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40c11e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0043b180
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
inc eax
push eax
call fcn.004167eb
push ebx
push 1
push dword [esp + 0x38]
mov dword [ebp], eax
push eax
call fcn.0043bbb0
mov ecx, dword [ebp]
mov eax, dword [esp + 0x40]
push ebx
mov byte [eax + ecx], 0
call fcn.0043a309
add esp, 0x20
jmp 0x40c143
push esi
push str.Failed_to_open_sFileName__s
push 0x141b
push 0x46360c
push 0
push str.Utility::GetFileData__
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
pop ebx
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004396df
add esp, 0x434
ret
Function at 0x40c160
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x45d121
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00439c50
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x103c], eax
push ebx
push esi
push edi
mov eax, dword [0x483ca0]
xor eax, esp
push eax
lea eax, [esp + 0x1050]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1060]
mov esi, dword [esp + 0x1064]
push 0x2e
push edi
call fcn.0043c4d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c303
sub ebx, edi
lea eax, [esp + 0x4c]
push ebx
push edi
push eax
call fcn.004384c0
add esp, 0xc
cmp ebx, 0x1000
jae 0x40c32b
lea eax, [esp + 0x4c]
mov byte [esp + ebx + 0x4c], 0
push eax
call fcn.0043a280
add esp, 4
test eax, eax
je 0x40c303
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push 0x463664
lea ecx, [esp + 0x38]
mov dword [esp + 0x105c], 0
call fcn.00401403
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x105c], 1
call fcn.00401403
lea eax, [esp + 0x10]
mov byte [esp + 0x1058], 2
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040ddd0
add esp, 0xc
cmp dword [esp + 0x30], 0x10
jb 0x40c26d
push dword [esp + 0x1c]
call fcn.004167f4
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1058], 0
jb 0x40c29d
push dword [esp + 0x34]
call fcn.004167f4
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, 0x2aaaaaab
sub ecx, dword [esp + 0x10]
imul ecx
mov dword [esp + 0x48], 0xf
sar edx, 2
mov eax, edx
mov dword [esp + 0x44], 0
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x34], 0
cmp eax, 4
jne 0x40c2ef
sub esi, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [esi + edi - 1], al
test al, al
jne 0x40c2d2
lea ecx, [esp + 0x10]
call fcn.0040b290
mov al, 1
jmp 0x40c38b
lea ecx, [esp + 0x10]
mov dword [esp + 0x1058], 0xffffffff
call fcn.0040b290
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40c330
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
push eax
push esi
push edi
push str.gethostbyname___failed_for__s:_Error_Code___d__Error___s
push 0x369
jmp 0x40c36f
call fcn.004383dd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40c354
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
sub esi, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x40c343
mov al, 1
jmp 0x40c38b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
push eax
push esi
push edi
push str.uHostent__h_addr_list_returns_NULL_for__s:_Error_Code___d__Error___s
push 0x37a
push 0x46360c
push 3
push str.Utility::GetIPAddressByName
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x28
xor al, al
mov ecx, dword [esp + 0x1050]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x103c]
xor ecx, esp
call fcn.004396df
add esp, 0x104c
ret
Function at 0x40d0f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x630
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x62c], eax
mov eax, dword [esp + 0x634]
lea ecx, [esp + 0x22c]
push ebx
push esi
push 0x200
push ecx
push eax
xor bl, bl
call fcn.0040fa60
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40d184
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d184
lea esp, [esp]
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0043c358
add esp, 8
test eax, eax
je 0x40d182
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d150
jmp 0x40d184
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x634]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.004396df
add esp, 0x630
ret

Function at 0x40d1b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.00438b10
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d202
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d227
cmp dword [esp + 0x10], 2
jne 0x40d227
cmp dword [esp + 4], 5
jbe 0x40d227
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004396df
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004396df
add esp, 0x120
ret

Function at 0x40d240
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.00438b10
add esp, 0xc
mov dword [esp], 0x11c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d292
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d2be
cmp dword [esp + 0x10], 2
jne 0x40d2be
cmp dword [esp + 4], 5
jne 0x40d2be
cmp dword [esp + 8], 1
jne 0x40d2be
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004396df
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004396df
add esp, 0x120
ret
Function at 0x40d2e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x608
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x604], eax
lea eax, [esp]
mov dword [esp], 0x200
push eax
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x200
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x20c]
push eax
call fcn.0040f9f0
lea ecx, [esp + 0x10]
add esp, 0xc
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d330
sub ecx, edx
lea eax, [esp + 4]
push ecx
push eax
call fcn.0040eb60
add esp, 8
lea eax, [esp + 4]
mov ecx, str.SYSTEM
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d370
test dl, dl
je 0x40d36c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d370
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d350
xor eax, eax
jmp 0x40d375
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x604]
test eax, eax
sete al
xor ecx, esp
call fcn.004396df
add esp, 0x608
ret
Function at 0x40d390
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x418
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x414], eax
lea eax, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
lea eax, [esp + 8]
push eax
push 8
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d41c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__u_n
push 0x1265
push 0x46360c
push 0
push str.Utility::IsUserAdmin__
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004396df
add esp, 0x418
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 0
push 2
push dword [esp + 0x20]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d486
call esi
cmp eax, 0x7a
je 0x40d486
push eax
push str.GetTokenInformation_Error__u_n
push 0x1271
push 0x46360c
push 0
push str.Utility::IsUserAdmin__
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004396df
add esp, 0x418
ret
push ebp
push dword [esp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebp
push 2
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x40d4ba
call esi
push eax
push str.GetTokenInformation_Error__u_n
push 0x1281
jmp 0x40d4f0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40d524
call esi
push eax
push str.AllocateAndInitializeSid_Error__u_n
push 0x128f
push 0x46360c
push 0
push str.Utility::IsUserAdmin__
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
xor al, al
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004396df
add esp, 0x418
ret
push ebx
xor edi, edi
xor bl, bl
cmp dword [ebp], edi
jbe 0x40d5aa
lea esi, [ebp + 8]
push dword [esi - 4]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40d5a1
mov eax, dword [esi]
test al, 4
je 0x40d56d
push str.The_group_SID_is_enabled._n
push 0x129e
push 0x46360c
push 0
push str.Utility::IsUserAdmin__
push dword [0x4868e8]
call fcn.0040a4c0
mov bl, 1
jmp 0x40d59e
test al, 0x10
je 0x40d57d
push str.The_group_SID_is_a_deny_only_SID._n
push 0x12a5
jmp 0x40d552
push str.The_group_SID_is_not_enabled._n
push 0x12ac
push 0x46360c
push 0
push str.Utility::IsUserAdmin__
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x18
inc edi
add esi, 8
cmp edi, dword [ebp]
jb 0x40d531
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d5b9
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x424]
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.004396df
add esp, 0x418
ret
Function at 0x40d6b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x40c]
mov edx, 0x200
mov ecx, dword [esp + 0x408]
cmp eax, edx
push ebx
mov ebx, dword [esp + 0x418]
cmovg eax, edx
push esi
push edi
mov edi, dword [esp + 0x41c]
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0040fa60
lea eax, [esp + 0x18]
push 0x464018
push eax
call fcn.0043a8ac
mov esi, eax
mov dword [ebx], 0
add esp, 0x14
mov dword [edi], 0
test esi, esi
je 0x40d776
push 2
push 0
push esi
call fcn.0043c817
push esi
call fcn.0043cc2a
push 0
push 0
push esi
mov dword [edi], eax
call fcn.0043c817
mov eax, dword [edi]
add eax, 0xc00
push eax
call fcn.004167eb
push esi
mov dword [ebx], eax
push dword [edi]
push 1
push eax
call fcn.0043bbb0
push esi
call fcn.0043a309
add esp, 0x34
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004396df
add esp, 0x404
ret
mov ecx, dword [esp + 0x40c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004396df
add esp, 0x404
ret
Function at 0x4101a0
Capabilities:
Check mutex on windows
Read file on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44c]
push ebp
push esi
cmp dword [ebx + 0x400], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x458]
push edi
mov dword [esp + 0x14], eax
jne 0x41033c
push 0x487288
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x200
lea eax, [esp + 0x50]
push eax
push str.TMCacheFileMutex
call fcn.0040fa60
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41025c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.004031d0
push eax
push esi
push str.failed_to_WaitForSingleObject_CACHE_FILE_MUTEX__error_code:__d__error:__s
push 0x38
push str.MyConfigure.cpp
push 3
push str.MyConfigure::ReadConfigure
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x24
lea esi, [ebx + 0x604]
push 0x462cbc
push esi
call fcn.0043a8ac
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4102b7
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx + 0x404]
push eax
push str.failed_to_open__s
push 0x45
push str.MyConfigure.cpp
push 3
push str.MyConfigure::ReadConfigure
push dword [0x4868e8]
call fcn.0040a4c0
add esp, 0x1c
xor al, al
jmp 0x41033e
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0043b180
mov eax, dword [esp + 0x38]
inc eax
push eax
call fcn.004167eb
push ebp
push 1
push dword [esp + 0x44]
mov esi, eax
push esi
call fcn.0043bbb0
push ebp
call fcn.0043a309
push dword [esp + 0x34]
mov eax, dword [esp + 0x54]
push dword [esp + 0x3c]
push dword [esp + 0x38]
mov byte [eax + esi], 0
push esi
call fcn.0040c820
add esp, 0x30
push esi
test al, al
jne 0x410322
call fcn.004167f4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x41033e
call fcn.004167f4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x487288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004396df
add esp, 0x440
ret 0xc
Function at 0x410600
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x100], eax
push 0x100
lea eax, [esp + 4]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
jne 0x41063f
xor al, al
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004396df
add esp, 0x104
ret
push esi
lea eax, [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x410668
xor al, al
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004396df
add esp, 0x104
ret
mov ecx, dword [esi]
mov edx, 0x48b2a8
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x410670
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4106ad
mov eax, dword [eax]
test eax, eax
je 0x4106ad
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
mov ecx, eax
test ecx, ecx
je 0x4106ad
mov edx, 0x48b528
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4106a0
mov ecx, dword [esp + 0x104]
mov al, 1
pop esi
xor ecx, esp
call fcn.004396df
add esp, 0x104
ret

Function at 0x4106d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4107be
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Build
push dword [esp + 0x18]
call esi
test eax, eax
je 0x410749
movq xmm0, qword [str.Not_found]
mov ax, word [0x4646f0]
movq qword [0x48b4c8], xmm0
mov word [0x48b4d0], ax
jmp 0x41075d
push 0x20
lea eax, [esp + 0x10]
push 0x48b4c8
push eax
call fcn.0040f9f0
add esp, 0xc
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Version
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4107a0
movq xmm0, qword [str.Not_found]
mov ax, word [0x4646f0]
movq qword [0x48b4e8], xmm0
mov word [0x48b4f0], ax
jmp 0x4107b4
push 0x20
lea eax, [esp + 0x10]
push 0x48b4e8
push eax
call fcn.0040f9f0
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41083c
lea eax, [esp + 8]
mov dword [esp + 8], 0x50
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.MinorVersion
push dword [esp + 0x18]
call esi
test eax, eax
je 0x41081e
movq xmm0, qword [str.Not_Found]
mov ax, word [0x4619e4]
movq qword [0x48b508], xmm0
mov word [0x48b510], ax
jmp 0x410832
push 0x20
lea eax, [esp + 0x10]
push 0x48b508
push eax
call fcn.0040f9f0
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5c]
mov al, 1
pop esi
xor ecx, esp
call fcn.004396df
add esp, 0x5c
ret