joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0c30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test esi, esi
je 0x5b0c65
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x5b0f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.005b0cd0
test eax, eax
je 0x5b0f17
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test eax, eax
je 0x5b0f10
lea edx, [esi + 0x10]
mov eax, edx
push edi
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b0f30
sub eax, edi
sar eax, 1
je 0x5b0f54
push edx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x210], eax
push esi
push 0
push 0x5b0d30
call fcn.0061afbd
add esp, 0xc
cmp eax, 1
jne 0x5b0f7e
mov eax, dword [esi + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov dword [esi + 8], eax
call fcn.005b0cd0
test eax, eax
jne 0x5b0fa1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov ecx, esi
call fcn.005b0cd0
test eax, eax
je 0x5b0f92
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b0fb0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
call fcn.005b0cd0
test eax, eax
jne 0x5b0fc5
mov dword [esi + 8], 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x210]
test eax, eax
je 0x5b0fd6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x210]
test eax, eax
je 0x5b1008
push eax
call edi
push 0
mov ecx, esi
call fcn.005b0d00
pop edi
mov dword [esi + 8], 0xffffffff
mov eax, 1
pop esi
ret
Function at 0x5b2f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
sub esp, 0x208
or edx, eax
jge 0x5b2f7c
push 0x104
call fcn.00401400
push ebx
push esi
push edi
push 1
push 0x1a
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x208]
add edi, 0xfffffffe
jmp 0x5b2fa0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5b2fa0
mov ebx, dword [0x66ea40]
mov eax, 0x67fea8
mov dword [edi], ebx
mov edx, eax
jmp 0x5b2fc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b2fc0
lea edi, [ebp - 0x208]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x5b2fd6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x208]
add edi, 0xfffffffe
jmp 0x5b3000
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5b3000
mov eax, str.filters.xml
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b3015
lea edi, [ebp - 0x208]
sub eax, edx
add edi, 0xfffffffe
jmp 0x5b3030
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x5b3030
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebp - 0x208]
pop esi
lea edx, [eax + 2]
pop ebx
jmp 0x5b3060
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b3060
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x208]
push edx
call fcn.00401670
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x5b4010
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66755b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edi, [esi + 0x10]
push eax
mov dword [ebp - 0x10], edi
call fcn.004011f0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
push 0xfe
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.006100a0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0xff
lea ecx, [ebp - 0x114]
push ecx
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [ebp - 0x114]
push edx
push ebx
call fcn.00618506
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5b40d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5b4b30
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x5b4b7f
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 4]
push ecx
mov edi, eax
call esi
test eax, eax
jne 0x5b4b7e
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x8003
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
push 0
test eax, eax
je 0x5b4c1b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5b4bd4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push 2
push eax
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x5b4c0f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x5b8de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x667b00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor edx, edx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 0x35c]
jae 0x5b8e64
mov dword [ebp - 4], edx
wait
mov esi, dword [ecx + eax*4 + 0x1cc]
xor esi, dword [ecx + eax*4 + 0x3c]
mov dword [ebp - 0x20], esi
jne 0x5b8e38
mov dword [ebp - 0x1c], edx
push 0x6d0f54
lea eax, [ebp - 0x1c]
push eax
call fcn.0060fb01
wait
mov dword [ebp - 4], 0xffffffff
inc eax
jmp 0x5b8e08
mov ecx, dword [ecx + 0x360]
cmp eax, ecx
jne 0x5b8eaf
mov edx, ecx
mov dword [ebp - 0x18], edx
cmp eax, edx
je 0x5b8eab
movzx esi, dl
movzx ecx, al
sub ecx, esi
jne 0x5b8ea3
movzx edx, dh
movzx ecx, ah
sub ecx, edx
jne 0x5b8ea3
movzx eax, byte [ebp - 0x16]
movzx ecx, byte [ebp - 0x12]
sub ecx, eax
jne 0x5b8ea3
movzx edx, byte [ebp - 0x15]
movzx ecx, byte [ebp - 0x11]
sub ecx, edx
je 0x5b8eab
sar ecx, 0x1f
or ecx, 1
jne 0x5b8eaf
push 0x1e
jmp 0x5b8eb1
push 0xa
call dword [ebp + 8]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5b9360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e7830
push 0x613498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x224], edi
push 0x204
push edi
lea eax, [ebp - 0x220]
push eax
call fcn.006100a0
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push connect
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x5b94b7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x5b94b7
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x5b94b7
push edi
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 4]
push edx
push eax
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [esi + 4]
jne 0x5b9496
mov ecx, esi
call fcn.005b90f0
test eax, eax
jne 0x5b9467
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0061b5f5
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005b91c0
test eax, eax
jne 0x5b9496
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.0061b5f5
add esp, 8
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.0061b5f5
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
call fcn.005b94d6
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b9540
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x667b51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 2
push 0x190
mov dword [esi + 0x35c], eax
mov dword [esi + 0x360], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x38], eax
lea eax, [esi + 0x3c]
push 0xaaaaaaaa
push eax
call fcn.006100a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5b9d40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [ebp + 0x1c], ecx
test ecx, ecx
je 0x5b9dd6
cmp word [ecx + 8], 2
push ebx
push edi
jne 0x5b9da8
cmp word [ecx + 0xa], 4
jne 0x5b9da8
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x5b9da8
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
call fcn.005b9cd0
mov dword [esi], eax
test eax, eax
je 0x5b9dca
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x5b9d82
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
push 0x400
push edx
push 0x401
push eax
call fcn.00619c49
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x18
pop edi
pop ebx
mov eax, 8
pop esi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x5b9de6.11001
jmp dword [eax*4 + 0x5b9e0c]
mov eax, 0x2af9
pop esi
pop ebp
ret 0x18
mov eax, 0x2afa
pop esi
pop ebp
ret 0x18
mov eax, 0x2afb
pop esi
pop ebp
ret 0x18
Function at 0x5ba540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x715b10], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x5ba060
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x5ba320
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.005ba010
je 0x5ba58d
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x6fda90]
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5ba68a
push ebx
push esi
push edi
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x124]
push 0x10c
push eax
call fcn.00618858
push str.ws2_32
lea ecx, [ebp - 0x124]
push 0x10c
push ecx
call fcn.0061b6c7
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [ebp - 0x124]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x5ba609
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x5ba655
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x124]
push 0x10c
push ecx
call fcn.00618858
push str.wship6
lea edx, [ebp - 0x124]
push 0x10c
push edx
call fcn.0061b6c7
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call edi
mov esi, eax
test esi, esi
je 0x5ba687
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x5ba6a5
xor edi, edi
mov ecx, dword [ebp + edi*8 - 0x18]
push ecx
push esi
call ebx
mov dword [ebp + edi*8 - 0x14], eax
test eax, eax
je 0x5ba6a5
inc edi
cmp edi, 3
jl 0x5ba657
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [0x6fda90], edx
mov dword [0x6fda98], eax
mov dword [fcn.005ba010], ecx
pop edi
pop esi
pop ebx
movzx edx, word [ebp + 8]
mov eax, dword [edx*8 + 0x6fda90]
mov dword [0x715b10], 1
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5ba687
Function at 0x5ba710
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x5ba8db
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5ba728
sub eax, edx
je 0x5ba8db
mov ecx, str.127.0.0.1
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5ba760
test dl, dl
je 0x5ba75c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5ba760
add eax, 2
add ecx, 2
test dl, dl
jne 0x5ba740
xor eax, eax
jmp 0x5ba765
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5ba8db
push 0x66ea64
push esi
call fcn.0061b82d
add esp, 8
test eax, eax
je 0x5ba8db
push str.localhost
push esi
call fcn.0061b82d
add esp, 8
test eax, eax
je 0x5ba8db
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x40], 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x5ba80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x5ba7ee
and eax, 0xffff
or eax, 0x80070000
push str.GetComputerNameA__szLocalHost__dwSize_
push eax
lea ecx, [ebp - 0x24]
call fcn.0040de50
push 0x6ba4dc
lea edx, [ebp - 0x24]
push edx
call fcn.0060fb01
lea ecx, [ebp - 0x14]
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5ba830
test dl, dl
je 0x5ba82c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5ba830
add eax, 2
add ecx, 2
test dl, dl
jne 0x5ba810
xor eax, eax
jmp 0x5ba835
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5ba8db
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.005ba6b0
test eax, eax
je 0x5ba884
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x5ba868
and eax, 0xffff
or eax, 0x80070000
push str.0__WspiapiGetAddrInfo_szLocalHost__0__hints__res_
push eax
lea ecx, [ebp - 0x24]
call fcn.0040de50
push 0x6ba4dc
lea eax, [ebp - 0x24]
push eax
call fcn.0060fb01
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov edi, dword [edx + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push esi
call fcn.005ba6b0
test eax, eax
je 0x5ba8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x5ba8b5
and eax, 0xffff
or eax, 0x80070000
push str.0__WspiapiGetAddrInfo_szHost__0__hints__res_
jmp 0x5ba7f3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx + 4]
push eax
call fcn.005ba6f0
xor eax, eax
cmp esi, edi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5bd150
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd160
sub eax, edx
jne 0x5bd170
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x5bd1b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x5bd1b2
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 8]
push ecx
call esi
test eax, eax
je 0x5bd2ad
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x5bd259
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd1d6
push 0
sub eax, edx
mov edx, dword [ebp - 4]
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x5bd24f
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor eax, eax
push eax
lea edx, [ebp - 0xc]
push edx
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x10]
push eax
push 4
push ecx
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
call edi
mov edx, dword [ebp - 4]
test eax, eax
jne 0x5bd23e
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 2
push edx
call edi
test eax, eax
jne 0x5bd26d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
push edx
call fcn.005fb5ce
mov ecx, dword [ebp - 4]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push 2
push ecx
call edi
test eax, eax
jne 0x5bd2b5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.00611a0b
add esp, 4
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
push ecx
mov dword [edx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5bd4f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push 0
lea ecx, [eax + eax]
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea edx, [ebp - 4]
push edx
mov esi, eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x5bd561
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push esi
push ecx
push edx
call fcn.00611c28
jmp 0x5bd570
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push 0
push ecx
call fcn.006100a0
add esp, 0xc
test esi, esi
je 0x5bd587
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bd730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call fcn.005bd660
add esp, 4
test eax, eax
jne 0x5bd751
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.InstallPath
push ecx
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret