joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409500
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x409539
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409539
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x409660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x416e24], 0
jne 0x409674
jmp 0x40974c
mov eax, dword [0x416e24]
shl eax, 3
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
dec ebp
clc
push ecx
call fcn.00408b20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40974c
mov dword [ebp - 0x10], 0
jmp 0x4096aa
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x416e24]
jae 0x4096e4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x416e28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov dword [ecx + eax*8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*4 + 0x416e28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*8 + 4], ecx
jmp 0x4096a1
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push 0x416be0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x409733
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
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_FlushFileBuffers]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3d
push 0x4143b4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp - 4]
push edx
call fcn.00408c70
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x409770
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov byte [ebp - 0x101], 0
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x409807
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x409807
mov dword [ebp - 0x10c], 0
jmp 0x4097ce
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
cmp dword [ecx + edx*4], 0
je 0x409807
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 8]
jne 0x409805
mov byte [ebp - 0x101], 1
jmp 0x409807
jmp 0x4097bf
mov al, byte [ebp - 0x101]
mov esp, ebp
pop ebp
ret
Function at 0x409d40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x416dec
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 8], 0
jmp 0x409d63
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x200
jae 0x409d89
push 0
call fcn.0040be60
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x4143b8]
push edx
call fcn.00409a30
add esp, 0xc
jmp 0x409d5a
push 0
push 0
push 3
push 0
push 0
push connect
push 0x416be0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x409e72
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409e68
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x409e5e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x409e1d

Function at 0x40aa30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x14]
mov cl, byte [eax + 0x100]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x14]
mov al, byte [edx + 0x101]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40aa67
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40ab07
movzx ecx, byte [ebp - 2]
add ecx, 1
and ecx, 0xff
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
add ecx, edx
and ecx, 0xff
mov byte [ebp - 1], cl
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + eax]
mov byte [ebp - 3], dl
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 3]
mov byte [edx + ecx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp - 1]
mov esi, dword [ebp - 8]
movzx ecx, byte [esi + ecx]
add eax, ecx
and eax, 0xff
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
mov byte [ecx], dl
jmp 0x40aa5e
mov edx, dword [ebp + 0x14]
mov al, byte [ebp - 2]
mov byte [edx + 0x100], al
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x101], dl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b610
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
pop es
add dword [eax], eax
add byte [ebx - 0x48f0f7bb], cl
or byte [ebx - 0x7bf0b107], al
clc
add byte [eax], al
add byte [ebx - 0x48f0f7ab], cl
add al, byte [ebx - 0x7bf09108]
jmp 0x8b403587
adc byte [eax + 0x6eac45], al
mov eax, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov edi, 0x41082815
add byte [ecx + 0x7d83f045], cl
lock add byte [esi + 0x24], bh
cmp dword [ebp + 0x1c], 0xffffffff
je 0x40b5e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0x14]
cdq
inc ebp
clc
invalid
push ebp
cld
push 1
push dword [sym.imp.KERNEL32.dll_Sleep]
call dword [0x4100e6]
mov ebx, 0xafff844
xor dword [ebp + 0x10], 0
jne 0x403564
xor eax, eax
sbb dword [ebp + 0x10], 0
sete al
invalid
jne 0x40b59d
in al, dx
xchg esp, ebp
adc al, 0xc7
inc ebp
cld
invalid

Function at 0x40e5c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSASend]
adc eax, 0xc246c8b
mov ecx, dword [ebp + 0x40008260]
push edi
push 0
push esi
push 0
invalid

Function at 0x40eb00
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x38
xlatb
push 0x4c
enter 0xffffffffffff9ff5, 0xffffffffffffffff
dec dword [ebx + 0x5c483f8]
test edi, edi
je 0x240ec86
or dword [esp + 0x18], eax
push eax
mov dword [edi], 0x494f4350
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x2c]
lea eax, [edi - 0x60]
lea ebx, [esi]
or dword [eax - 0x75], edx
push edi
add al, 0xff
adc eax, sym.imp.KERNEL32.dll_InitializeCriticalSection
push 0
push 0
arpl word [ecx], sp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [edi + 0x10], eax
test eax, eax
je 0x440ec7f
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 8], esp
test eax, eax
pinsrw mm2, word [eax], 1
add byte [eax], al
call fcn.0040baf0
mov al, byte [edi + 0xc]
test eax, eax
pop ds
test byte [eax], al
add dword [eax], eax
add byte [edx + 1], cl
push 0
push 2
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x14], eax
sbb eax, 0xffffffbf
dec edi
test dl, ah
add cl, byte [eax]
add byte [edx + 3], ch
lea ecx, [esp + 0xa]
shr dword [edx + 4], 1
push 0xdfff
push eax
invalid
Function at 0x40ef2d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40ef5e
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40ef65
cmp ebx, dword [ebp + 8]
jae 0x40ef65
xor eax, eax
jmp 0x40f14b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ef76
xor eax, eax
inc eax
jmp 0x40f14a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ef88
cmp ecx, edx
jae 0x40efec
cmp dword [eax + 4], 0
je 0x40ef91
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ef7d
cmp dword [ebp + 8], 0
je 0x40efab
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40efec
cmp eax, esi
jae 0x40efec
mov ecx, dword [0x417630]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40efcd
cmp dword [eax*4 + 0x417638], esi
je 0x40eff3
inc eax
cmp eax, ecx
jl 0x40efbf
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f063
mov eax, dword [ebp + 8]
jmp 0x40f065
xor eax, eax
jmp 0x40f14a
test eax, eax
jle 0x40ef6e
xor edx, edx
mov ebx, 0x417678
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40ef6e
cmp dword [eax*4 + 0x417638], esi
je 0x40f042
lea eax, [ecx - 1]
test eax, eax
jl 0x40f02f
cmp dword [eax*4 + 0x417638], esi
je 0x40f02b
dec eax
jns 0x40f01f
test eax, eax
jge 0x40f040
cmp ecx, 0x10
jge 0x40f03b
inc ecx
mov dword [0x417630], ecx
lea eax, [ecx - 1]
jmp 0x40f042
je 0x40f05a
xor edx, edx
test eax, eax
jl 0x40f05a
lea ecx, [edx*4 + 0x417638]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f048
xor eax, eax
xchg dword [ebx], eax
jmp 0x40ef6e
xor eax, eax
test eax, eax
je 0x40f148
cmp dword [ebp - 8], 0x1000000
jne 0x40f148
test byte [ebp - 0xc], 0xcc
je 0x40f0da
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f148
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f148
cmp word [eax + 0x18], 0x10b
jne 0x40f148
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f148
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f0da
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f0da
test byte [ecx + 0x27], 0x80
jne 0x40efec
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x417678
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f14a
mov ecx, dword [0x417630]
test ecx, ecx
mov edx, ecx
jle 0x40f109
lea eax, [ecx*4 + 0x417634]
cmp dword [eax], esi
je 0x40f109
dec edx
sub eax, 4
test edx, edx
jg 0x40f0fd
test edx, edx
jne 0x40f13a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f116
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f12e
lea eax, [edx*4 + 0x417638]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f11c
cmp ecx, 0x10
jge 0x40f13a
inc ecx
mov dword [0x417630], ecx
xor eax, eax
mov ecx, 0x417678
xchg dword [ecx], eax
jmp 0x40ef6e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ed000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
mov ebx, edx
mov dword [esp + 0x14], ecx
push edi
mov dword [esp + 0x1c], ebx
mov esi, ecx
xor eax, eax
nop dword [eax]
mov byte [esp + eax + 0xc], al
inc eax
cmp eax, 8
jb 0x4ed020
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx]
xor eax, ecx
rol ecx, 3
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
xor eax, ecx
rol ecx, 3
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
xor eax, ecx
rol ecx, 3
xor ecx, dword [edx + 0xc]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x28], eax
xor edx, edx
nop
mov eax, ecx
and eax, 3
mov eax, dword [esp + eax*4 + 0x20]
add eax, ecx
sub ecx, 0x61c88647
mov dword [esp + edx*4 + 0x30], eax
mov eax, ecx
sar eax, 0xb
and eax, 3
mov eax, dword [esp + eax*4 + 0x20]
add eax, ecx
mov dword [esp + edx*4 + 0xb0], eax
inc edx
cmp edx, 0x20
jl 0x4ed060
cmp esi, ebx
jae 0x4ed1e2
nop dword [eax + eax]
mov ebx, dword [esp + 0xc]
xor edi, edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
nop
mov edx, eax
mov ecx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
add edx, eax
xor edx, dword [esp + edi*4 + 0x30]
add edx, ebx
mov esi, edx
mov ecx, edx
shl ecx, 4
shr esi, 5
xor esi, ecx
add esi, edx
xor esi, dword [esp + edi*4 + 0xb0]
add esi, eax
mov ecx, esi
mov eax, esi
shl eax, 4
shr ecx, 5
xor ecx, eax
add ecx, esi
xor ecx, dword [esp + edi*4 + 0x34]
add ecx, edx
mov edx, ecx
mov eax, ecx
shl eax, 4
shr edx, 5
xor edx, eax
add edx, ecx
xor edx, dword [esp + edi*4 + 0xb4]
add edx, esi
mov esi, edx
mov eax, edx
shl eax, 4
shr esi, 5
xor esi, eax
add esi, edx
xor esi, dword [esp + edi*4 + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x14]
mov edi, esi
mov eax, esi
shl eax, 4
shr edi, 5
xor edi, eax
add edi, esi
xor edi, dword [esp + ecx*4 + 0xb8]
add edi, edx
mov ebx, edi
mov eax, edi
shl eax, 4
shr ebx, 5
xor ebx, eax
add ebx, edi
xor ebx, dword [esp + ecx*4 + 0x3c]
add ebx, esi
mov eax, ebx
mov ecx, ebx
shr eax, 5
shl ecx, 4
xor eax, ecx
mov ecx, dword [esp + 0x14]
add eax, ebx
xor eax, dword [esp + ecx*4 + 0xbc]
add eax, edi
mov edi, ecx
add edi, 4
mov dword [esp + 0x14], edi
cmp edi, 0x20
jl 0x4ed0b0
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov dl, cl
mov bl, byte [esi]
mov byte [esp + 0xc], ch
xor dl, bl
movzx ecx, byte [esp + 0xe]
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x10], eax
mov byte [esp + 0xd], cl
movzx ecx, byte [esp + 0xf]
mov byte [esp + 0xf], al
mov byte [esp + 0x10], ah
movzx eax, byte [esp + 0x12]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x13]
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], al
movzx ecx, dl
movzx eax, bl
cmovne ecx, eax
mov byte [esi], dl
inc esi
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x1c]
jb 0x4ed0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov ebx, dword [eax + ecx + 0x78]
xor esi, esi
mov eax, dword [ebx + ecx + 0x24]
add ebx, ecx
mov dword [ebp - 8], edx
add eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x20]
add edx, ecx
add edi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x18], esi
jbe 0x4ed3f5
nop dword [eax + eax]
movzx eax, word [eax + esi*2]
cmp eax, dword [ebx + 0x14]
jae 0x4ed3ec
mov edi, dword [edi + esi*4]
mov eax, dword [edx + eax*4]
add edi, ecx
add eax, ecx
mov dword [ebp - 4], eax
xor eax, eax
mov cl, byte [edi]
test cl, cl
je 0x4ed3d1
mov edx, edi
rol eax, 3
lea edx, [edx + 1]
movsx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x4ed3c0
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push edi
call dword [ebp - 8]
add esp, 0x10
test al, al
jne 0x4ed3f5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x4ed3a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ee110
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor eax, 0xd517d72
cmp eax, 0xd517d73
jne 0x4ee273
mov ecx, 0x4ee040
mov eax, ecx
push ebx
mov ebx, 0x4ee040
push edi
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp + 0xc], edx
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 8], edx
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0xc0]
lea eax, [edx + ecx]
neg edx
sbb edx, edx
and edx, eax
mov eax, edx
xor eax, 0x8283d40d
cmp eax, 0x8283d40d
je 0x4ee271
mov eax, dword [edx + 0xc]
push esi
mov dword [ebp - 0x18], eax
xor esi, esi
nop dword [eax]
lea eax, [eax + esi*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
xor eax, 0x15560805
cmp eax, 0x15560805
jne 0x4ee25d
mov eax, entry1
sub eax, 0x200
cmp eax, entry1
jae 0x4ee25d
nop dword [eax]
mov ecx, edi
mov edx, ebx
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor ecx, 0x45ecc763
xor edx, 0
cmp ecx, 0x45ecc763
jne 0x4ee251
test edx, edx
jne 0x4ee251
mov ecx, dword [eax + 8]
xor ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
xor ecx, 0xc3464624
xor edx, dword [ebp - 4]
xor edx, 0
cmp ecx, 0xc3464624
jne 0x4ee251
test edx, edx
jne 0x4ee251
mov ecx, dword [eax + 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [eax + 0x14]
xor ecx, 0x5ce40551
xor edx, dword [ebp - 0xc]
xor edx, 0
cmp ecx, 0x5ce40551
jne 0x4ee251
test edx, edx
jne 0x4ee251
mov ecx, dword [eax + 0x18]
xor ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
xor ecx, 0x15070819
xor edx, dword [ebp - 0x14]
xor edx, 0
cmp ecx, 0x15070819
jne 0x4ee251
test edx, edx
je 0x4ee26b
inc eax
cmp eax, entry1
jb 0x4ee1d0
inc esi
cmp esi, 4
jae 0x4ee270
mov eax, dword [ebp - 0x18]
jmp 0x4ee1a0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000756f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100075c8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100075b9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x100075b5
cmp esi, ecx
jae 0x100075b9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x100075a5
cmp esi, ecx
jb 0x100075bd
xor eax, eax
jmp 0x100075c7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001873f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x110], eax
push edi
mov edi, edx
mov dword [ebp - 0x10c], ecx
mov eax, ebx
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jl 0x1001876a
mov word [ebp - 8], bx
mov esi, ebx
mov dh, bl
mov ebx, dword [ebp - 0x110]
mov dl, byte [ebp + esi - 0x108]
mov eax, esi
and eax, reloc.ACTIVEDS.dll_FreeADsMem
jns 0x1001879c
dec eax
or eax, 0xfffffff0
inc eax
mov al, byte [eax + ebx]
add al, dl
add dh, al
movzx ecx, dh
mov al, byte [ebp + ecx - 0x108]
mov byte [ebp + esi - 0x108], al
inc esi
mov byte [ebp + ecx - 0x108], dl
cmp esi, 0x100
jl 0x10018787
push 0
pop ebx
test edi, edi
jle 0x10018834
mov dl, byte [ebp - 7]
mov dh, byte [ebp - 8]
inc dh
mov byte [ebp - 8], dh
movzx esi, dh
add dl, byte [ebp + esi - 0x108]
mov byte [ebp - 7], dl
mov cl, byte [ebp + esi - 0x108]
movzx edx, dl
mov al, byte [ebp + edx - 0x108]
mov byte [ebp + esi - 0x108], al
mov byte [ebp + edx - 0x108], cl
mov dl, byte [ebp - 7]
mov dh, byte [ebp - 8]
movzx ecx, dl
movzx eax, dh
mov cl, byte [ebp + ecx - 0x108]
add cl, byte [ebp + eax - 0x108]
movzx eax, cl
mov ecx, dword [ebp - 0x10c]
mov al, byte [ebp + eax - 0x108]
xor byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jl 0x100187d1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret
Function at 0x1001d90a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [0x10070634]
mov ebx, 0x10070640
push edi
je 0x1001d971
test esi, esi
je 0x1001d971
cmp dword [esi], 0xffffffff
je 0x1001d971
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
push 0x10
push eax
push 0
push edi
push ebx
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1001d955
sub edi, eax
add ebx, eax
lea eax, [esi + 4]
test edi, edi
jg 0x1001d931
xor eax, eax
inc eax
jmp 0x1001d973
cmp dword [0x1006ef44], 9
jl 0x1001d971
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.error_sending_to_server._WSA_ERROR:__d
call fcn.1001fbc0
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d97a
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x10069410]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push esi
push edi
mov edi, dword [0x10070638]
xor eax, eax
push 0x7fe
mov word [esp + 0x24], ax
xor ebx, ebx
lea eax, [esp + 0x26]
mov esi, ecx
push ebx
push eax
call fcn.1002d750
add esp, 0xc
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x1001d9ca
xor eax, eax
jmp 0x1001db20
push esi
push str.SYSTEMCurrentControlSetServicesEventLog_s
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push 0x400
push eax
call fcn.10002445
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x2001b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x1001da70
cmp dword [0x1006ef44], 1
jl 0x1001da1b
push esi
push str.Cannot_determine_if_log__S_exists___checking_Microsoft_Windows_subscriptions
call fcn.1001fbc0
pop ecx
pop ecx
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionWINEVTChannels_s
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push 0x400
push eax
call fcn.10002445
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x2001b
push 0
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x1001da70
cmp dword [0x1006ef44], 1
jl 0x1001d9c3
push esi
push str.Cannot_determine_if_log__S_exists___openkey_failed
call fcn.1001fbc0
pop ecx
pop ecx
jmp 0x1001d9c3
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x18], ebx
push eax
push ebx
push str.Retention
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001dab7
cmp dword [0x1006ef44], 1
jl 0x1001dad2
push esi
push str.Cannot_check_log_retention_settings___queryvalueex_failed_for_log__S
call fcn.1001fbc0
pop ecx
pop ecx
cmp dword [0x1006ef44], 1
jl 0x1001dad2
push esi
push dword [esp + 0x14]
push str.Log_retention_settings_are_set_to__d_for_log__S
call fcn.1001fbc0
add esp, 0xc
test edi, edi
jne 0x1001db13
cmp dword [esp + 0x10], ebx
je 0x1001db13
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 4
push ebx
push str.Retention
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1001db13
cmp dword [0x1006ef44], 1
jl 0x1001db13
push esi
push str.Cannot_set_log_retention_settings___regsetvalueex_failed_for_log__S
call fcn.1001fbc0
pop ecx
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000adad
mov esp, ebp
pop ebp
ret