joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5be563
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5be5a0
cmp dword [ebp + 0x14], edi
je 0x5be5a0
cmp ecx, edi
jne 0x5be5a7
call fcn.005bf2a9
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005bdf41
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5be5bb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5be5dc
cmp ebx, 0xffffffff
je 0x5be5cb
push ebx
push edi
push ecx
call fcn.005c0cf0
add esp, 0xc
cmp esi, edi
je 0x5be588
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5be588
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5be5f8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5be5ff
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5be6f0
test word [esi + 0xc], 0x10c
je 0x5be653
mov eax, dword [esi + 4]
test eax, eax
je 0x5be653
jl 0x5be751
cmp ebx, eax
mov edi, ebx
jb 0x5be624
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5be6f8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005bdc30
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5be6e8
cmp ebx, dword [ebp - 0xc]
jb 0x5be6c0
cmp dword [ebp - 0xc], 0
je 0x5be67d
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x5be672
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5be679
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5be688
mov eax, closesocket
cmp ebx, eax
ja 0x5be688
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5be724
push eax
push dword [ebp - 8]
push esi
call fcn.005ca26a
pop ecx
push eax
call fcn.005cc3d6
add esp, 0xc
test eax, eax
je 0x5be763
cmp eax, 0xffffffff
je 0x5be751
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5be6e8
push esi
call fcn.005cbcf5
cmp eax, 0xffffffff
pop ecx
je 0x5be755
cmp dword [ebp - 4], 0
je 0x5be724
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5be607
mov eax, dword [ebp + 0x14]
jmp 0x5be5a2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5be70f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005c0cf0
add esp, 0xc
call fcn.005bf2a9
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5be598
cmp dword [ebp + 0xc], 0xffffffff
je 0x5be73a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005c0cf0
add esp, 0xc
call fcn.005bf2a9
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5be598
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5be5a2
or dword [esi + 0xc], 0x10
jmp 0x5be755
Function at 0x5bfde4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x5bfe11
call fcn.005bf2bc
mov dword [eax], esi
call fcn.005bf2a9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005bdf41
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5bfded
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5bfe40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005bf2cf
pop ecx
call fcn.005bf2a9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x5bfe67
test al, 1
je 0x5bfe67
test byte [esp + 0xc], 2
je 0x5bfe67
call fcn.005bf2bc
mov dword [eax], 5
call fcn.005bf2a9
mov dword [eax], 0xd
jmp 0x5bfe37
xor eax, eax
pop esi
ret
Function at 0x5cb02c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x66d750]
je 0x5cb047
inc edi
cmp edi, 0x17
jb 0x5cb038
cmp edi, 0x17
jae 0x5cb1c7
push ebp
push 3
call fcn.005d6449
cmp eax, 1
pop ecx
je 0x5cb193
push 3
call fcn.005d6449
test eax, eax
pop ecx
jne 0x5cb07b
cmp dword [0x66d4e0], 1
je 0x5cb193
cmp ebx, 0xfc
je 0x5cb1c6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x673550
push ebp
call fcn.005be4fe
add esp, 0xc
test eax, eax
je 0x5cb0b1
push esi
push esi
push esi
push esi
push esi
call fcn.005bde45
add esp, 0x14
push 0x104
mov esi, 0x673569
push esi
push 0
mov byte [0x67366d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5cb0f5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005be4fe
add esp, 0xc
test eax, eax
je 0x5cb0f5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005bde45
add esp, 0x14
push esi
call fcn.005c5740
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5cb13a
push esi
call fcn.005c5740
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x673864
push 0x6118cc
sub ecx, eax
push ecx
push eax
call fcn.005c7094
add esp, 0x14
test eax, eax
je 0x5cb13a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005bde45
add esp, 0x14
jmp 0x5cb13c
xor esi, esi
push 0x6118c8
push ebx
push ebp
call fcn.005c57cb
add esp, 0xc
test eax, eax
je 0x5cb15c
push esi
push esi
push esi
push esi
push esi
call fcn.005bde45
add esp, 0x14
push dword [edi*8 + 0x66d754]
push ebx
push ebp
call fcn.005c57cb
add esp, 0xc
test eax, eax
je 0x5cb17e
push esi
push esi
push esi
push esi
push esi
call fcn.005bde45
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005d628c
add esp, 0xc
jmp 0x5cb1c6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5cb1c6
cmp ebp, 0xffffffff
je 0x5cb1c6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x66d754]
push dword [esi]
call fcn.005c5740
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5d628c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005ca98a
xor ebx, ebx
cmp dword [0x673ab4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5d6362
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5d6442
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x612bbc
push edi
call esi
cmp eax, ebx
je 0x5d6442
push eax
call fcn.005ca91c
mov dword [esp], 0x612bac
push edi
mov dword [0x673ab4], eax
call esi
push eax
call fcn.005ca91c
mov dword [esp], 0x612b98
push edi
mov dword [0x673ab8], eax
call esi
push eax
call fcn.005ca91c
mov dword [0x673abc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005c5454
test eax, eax
pop ecx
pop ecx
je 0x5d6330
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005bde45
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5d6362
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005ca91c
cmp eax, ebx
pop ecx
mov dword [0x673ac4], eax
je 0x5d6362
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005ca91c
pop ecx
mov dword [0x673ac0], eax
mov eax, dword [0x673ac0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5d63e7
cmp dword [0x673ac4], ecx
je 0x5d63e7
push eax
call fcn.005ca993
push dword [0x673ac4]
mov esi, eax
call fcn.005ca993
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5d63e7
cmp edi, ebx
je 0x5d63e7
call esi
cmp eax, ebx
je 0x5d63b4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5d63b4
test byte [ebp - 0x18], 1
jne 0x5d63e7
lea eax, [ebp - 0x10]
push eax
call fcn.005c548b
test eax, eax
pop ecx
je 0x5d63cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005bde45
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5d63de
or dword [ebp + 0x10], 0x200000
jmp 0x5d6422
or dword [ebp + 0x10], 0x40000
jmp 0x5d6422
mov eax, dword [0x673ab8]
cmp eax, dword [ebp - 8]
je 0x5d6422
push eax
call fcn.005ca993
cmp eax, ebx
pop ecx
je 0x5d6422
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5d6422
mov eax, dword [0x673abc]
cmp eax, dword [ebp - 8]
je 0x5d6422
push eax
call fcn.005ca993
cmp eax, ebx
pop ecx
je 0x5d6422
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x673ab4]
call fcn.005ca993
cmp eax, ebx
pop ecx
je 0x5d6442
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5d6444
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5da3ae
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x66d4f4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.005da343
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.005c0cf0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x5da3fd
cmp dword [ebp - 0x1c], 5
jb 0x5da415
jmp 0x5da411
cmp dword [ebp - 0x10], 1
jne 0x5da415
cmp dword [ebp - 0x1c], 4
ja 0x5da411
jne 0x5da415
cmp dword [ebp - 0x18], 0
jbe 0x5da415
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x613c18
call fcn.005da217
test eax, eax
jge 0x5da436
mov byte [0x673fd0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005bd2d7
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4019d5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004020e7
push str.ResetEvent
push 0x41011c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xac]
push ecx
call dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0xb0], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xa8], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401a4d
xor eax, eax
jmp 0x401b28
mov word [ebp - 0x14], 2
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401a91
xor eax, eax
jmp 0x401b28
mov dword [ebp - 0x18], 1
push 4
lea edx, [ebp - 0x18]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401af5
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x20], 0x2710
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x98000004
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xb0], 1
push 1
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x401b2e
push 0
push 0
call fcn.00408778
add esp, 0x1c
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xa4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x4020e7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0xb0
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa8], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40226f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x4022b2
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jb 0x402327
mov dword [ebp - 0x10], 0
jmp 0x4022cc
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jge 0x4022fb
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4022f9
jmp 0x4022fb
jmp 0x4022c3
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jne 0x40230b
or eax, 0xffffffff
jmp 0x402394
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4022a9
cmp dword [ebp - 4], 0
jbe 0x402384
mov dword [ebp - 0x10], 0
jmp 0x40233f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jge 0x40236e
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x40236c
jmp 0x40236e
jmp 0x402336
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jne 0x40237b
or eax, 0xffffffff
jmp 0x402394
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jne 0x402391
mov eax, dword [ebp - 0x18]
jmp 0x402394
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402918
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push edi
mov ax, word [0x410ba0]
mov word [ebp - 0x104], ax
mov cl, byte [0x410ba2]
mov byte [ebp - 0x102], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x101]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dx, word [0x410ba4]
mov word [ebp - 0x204], dx
mov al, byte [0x410ba6]
mov byte [ebp - 0x202], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x201]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov byte [ebp - 0x240], 0x48
mov byte [ebp - 0x23f], 0x41
mov byte [ebp - 0x23e], 0x52
mov byte [ebp - 0x23d], 0x44
mov byte [ebp - 0x23c], 0x57
mov byte [ebp - 0x23b], 0x41
mov byte [ebp - 0x23a], 0x52
mov byte [ebp - 0x239], 0x45
mov byte [ebp - 0x238], 0x5c
mov byte [ebp - 0x237], 0x44
mov byte [ebp - 0x236], 0x45
mov byte [ebp - 0x235], 0x53
mov byte [ebp - 0x234], 0x43
mov byte [ebp - 0x233], 0x52
mov byte [ebp - 0x232], 0x49
mov byte [ebp - 0x231], 0x50
mov byte [ebp - 0x230], 0x54
mov byte [ebp - 0x22f], 0x49
mov byte [ebp - 0x22e], 0x4f
mov byte [ebp - 0x22d], 0x4e
mov byte [ebp - 0x22c], 0x5c
mov byte [ebp - 0x22b], 0x53
mov byte [ebp - 0x22a], 0x79
mov byte [ebp - 0x229], 0x73
mov byte [ebp - 0x228], 0x74
mov byte [ebp - 0x227], 0x65
mov byte [ebp - 0x226], 0x6d
mov byte [ebp - 0x225], 0x5c
mov byte [ebp - 0x224], 0x43
mov byte [ebp - 0x223], 0x65
mov byte [ebp - 0x222], 0x6e
mov byte [ebp - 0x221], 0x74
mov byte [ebp - 0x220], 0x72
mov byte [ebp - 0x21f], 0x61
mov byte [ebp - 0x21e], 0x6c
mov byte [ebp - 0x21d], 0x50
mov byte [ebp - 0x21c], 0x72
mov byte [ebp - 0x21b], 0x6f
mov byte [ebp - 0x21a], 0x63
mov byte [ebp - 0x219], 0x65
mov byte [ebp - 0x218], 0x73
mov byte [ebp - 0x217], 0x73
mov byte [ebp - 0x216], 0x6f
mov byte [ebp - 0x215], 0x72
mov byte [ebp - 0x214], 0x5c
mov byte [ebp - 0x213], 0x30
mov byte [ebp - 0x212], 0
mov dword [ebp - 0x20c], 4
mov dword [ebp - 4], 4
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x208]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402b3d
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x14], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xc]
push eax
push 0x40e808
push 1
push 0
push 0x40e828
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402b7a
xor eax, eax
jmp 0x402c4d
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40e818
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402ba1
xor eax, eax
jmp 0x402c4d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 0x14]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402c44
lea ecx, [ebp - 0x1c]
push ecx
push 0x40e7f8
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 0x24]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x402c33
mov word [ebp - 0x2c], 8
push 0
lea edx, [ebp - 0x2c]
push edx
push str.FriendlyName
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402c27
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 8]
jmp 0x402bad
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x402c6d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov byte [ebp - 0x18], 0x47
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x4e
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x11], 0x76
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x79
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x6d
mov byte [ebp - 9], 0x49
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0x66
mov byte [ebp - 6], 0x6f
mov byte [ebp - 5], 0
lea eax, [ebp - 0x18]
push eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x402d12
lea ecx, [ebp - 0x40]
push ecx
call dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
and edx, 0xffff
cmp edx, 9
je 0x402d0b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
cmp eax, 6
jne 0x402d12
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402ec8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push edi
mov byte [ebp - 0x428], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x428]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x59
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x54
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x428]
push eax
push closesocket
call fcn.00407dac
add esp, 0x20
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x402fea
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov eax, dword [0x410be8]
mov dword [ebp - 0x400], eax
mov ecx, dword [0x410bec]
mov dword [ebp - 0x3fc], ecx
mov edx, dword [0x410bf0]
mov dword [ebp - 0x3f8], edx
mov al, byte [0x410bf4]
mov byte [ebp - 0x3f4], al
mov ecx, 0xfc
xor eax, eax
lea edi, [ebp - 0x3f3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x410bf8
lea edx, [ebp - 0x400]
push edx
push closesocket
call fcn.00407dac
add esp, 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x403083
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
mov esp, ebp
pop ebp
ret