joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x41f310ce
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x153e7b6b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1000122c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001269
cmp byte [ebx], 0x3d
je 0x10001255
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001248
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x1000d010], eax
cmp dword [ebp - 8], 0
jne 0x1000129c
xor eax, eax
jmp 0x10001312
mov ebx, dword [ebp - 0x10]
jmp 0x100012f5
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x100012ef
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x100012d8
jmp 0x10001312
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012a1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000134e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x40000
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, eax
or eax, eax
je 0x100014c2
mov ecx, 0x10000
xor eax, eax
push edi
mov edi, esi
rep stosd dword es:[edi], eax
pop edi
push 0x40000
push esi
push dword [ebp + 8]
call sub.CRTDLL.DLL__read
mov ebx, eax
push 1
push 0xfffffffffffffff0
push dword [ebp + 8]
call sub.CRTDLL.DLL__lseek
add esp, 0x18
lea edi, [esi]
mov dword [ebp - 0x10], 0
jmp 0x10001490
mov eax, ebx
sub eax, 0x10
mov edx, edi
sub edx, esi
sub eax, edx
push eax
movzx eax, byte [0x1000a5a8]
xor eax, 0x4d
push eax
push edi
call sub.CRTDLL.DLL_memchr
add esp, 0xc
mov edi, eax
or eax, eax
je 0x10001490
inc edi
movzx eax, byte [0x1000a5a8]
movzx edx, byte [edi]
mov ecx, eax
xor ecx, 0x53
cmp edx, ecx
jne 0x10001490
movzx edx, byte [edi + 1]
mov ecx, eax
xor ecx, 0x43
cmp edx, ecx
jne 0x10001490
movzx edx, byte [edi + 2]
mov ecx, eax
xor ecx, 0x46
cmp edx, ecx
jne 0x10001490
movzx edx, byte [edi + 3]
cmp edx, eax
jne 0x10001490
movzx edx, byte [edi + 4]
cmp edx, eax
jne 0x10001490
movzx edx, byte [edi + 5]
cmp edx, eax
jne 0x10001490
movzx edx, byte [edi + 6]
cmp edx, eax
jne 0x10001490
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov edx, edi
sub edx, esi
dec edx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 7]
xor eax, dword [0x1000a494]
mov dword [ebp - 0x14], eax
inc dword [ebp - 8]
mov eax, dword [0x1000a5a4]
cmp dword [ebp - 8], eax
jle 0x10001477
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
push esi
call sub.CRTDLL.DLL_free
add esp, 4
xor eax, eax
inc eax
jmp 0x100014c2
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
push 0
push eax
push dword [ebp + 8]
call sub.CRTDLL.DLL__lseek
add esp, 0xc
jmp 0x100014a3
or edi, edi
je 0x100014a3
mov eax, esi
add eax, ebx
sub eax, 0x10
cmp edi, eax
jb 0x100013b4
cmp dword [ebp - 0x10], 0
jne 0x100014b1
mov eax, ebx
sub eax, 0x10
add dword [ebp - 4], eax
or ebx, ebx
jg 0x10001387
push esi
call sub.CRTDLL.DLL_free
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001964
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 0x14], 0
je 0x10001995
mov dword [0x1000a6e0], 1
push dword [ebp + 0x14]
push 0x1000a278
call fcn.10007fd8
push 0x1000a278
call sub.CRTDLL.DLL_remove
add esp, 4
jmp 0x1000199f
mov dword [0x1000a6e0], 0
push dword [ebp + 8]
push 0x1000a5d8
call fcn.10007fd8
mov eax, dword [ebp + 0xc]
mov dword [0x1000a5a4], eax
xor edi, edi
cmp dword [ebp + 0x10], edi
xchg edi, eax
sete al
xchg edi, eax
dec edi
and edi, 0x8d
mov eax, edi
mov byte [0x1000a5a8], al
movzx eax, byte [0x1000a5a8]
mov edi, eax
movzx edi, di
shl edi, 8
mov esi, eax
or esi, edi
mov edi, esi
movzx edi, di
mov esi, edi
shl esi, 0x10
or edi, esi
mov dword [0x1000a494], edi
push 0x1000a488
push 1
push 0x100016a7
push fcn.10001670
push 0x10001620
push 0x1000159a
push fcn.100014c7
push 0x10001340
push 0x10001332
call fcn.10004604
add esp, 0x24
mov dword [0x1000a5a0], eax
xor eax, eax
cmp dword [0x1000a5a0], 0
setne al
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x100035d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x1000361f
cmp edx, 0x10
jl 0x1000360b
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x100035f8
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x1000361f
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x10003617
and edx, 3
cmp edx, 3
jne 0x10003633
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x10003638
cmp edx, 2
jne 0x10003644
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x10003649
cmp edx, 1
jne 0x1000364f
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x41e716d2
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6e95115b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40bf5a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040a347
mov dword [ebp - 0x14], eax
cmp dword [0x41e02c], edi
jne 0x40c04b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40bfd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c12b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c12b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c12b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41e02c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41e030], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41e034], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e03c], eax
test eax, eax
je 0x40c048
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e038], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c070
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c063
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40c085
push 4
pop eax
jmp 0x40c12d
cmp dword [ebp - 0x14], edi
je 0x40c085
push dword [0x41e02c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c06a
mov eax, dword [0x41e038]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40c0e3
cmp dword [0x41e03c], esi
je 0x40c0e3
push eax
call ebx
push dword [0x41e03c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c0e3
test eax, eax
je 0x40c0e3
call ecx
test eax, eax
je 0x40c0d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c0d8
test byte [ebp - 8], 1
jne 0x40c0e3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40c113
mov eax, dword [0x41e030]
cmp eax, esi
je 0x40c110
push eax
call ebx
test eax, eax
je 0x40c110
call eax
mov edi, eax
test edi, edi
je 0x40c110
mov eax, dword [0x41e034]
cmp eax, esi
je 0x40c110
push eax
call ebx
test eax, eax
je 0x40c110
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41e02c]
call ebx
test eax, eax
je 0x40c12b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40c12d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c13c
leave
ret
Function at 0x40170e
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x465a58]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x401861
cmp byte [edi + 1], al
je 0x40185d
cmp byte [edi + 0x31], al
je 0x40176c
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.00402a91
sub esp, 0x14
mov ecx, esp
push 0x459450
call fcn.00402178
call fcn.00413bcc
add esp, 0x30
call fcn.00419105
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x401787
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x4018c1
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.00419329
cmp eax, 1
je 0x4017cd
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4593b4
call fcn.00402178
call fcn.00413bcc
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.0041914b
and dword [edi + 0x4c], 0
jmp 0x4018dd
mov ecx, dword [edi + 0x4c]
call fcn.00419e09
cmp eax, 1
je 0x40180a
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4593b4
call fcn.00402178
call fcn.00413bcc
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.00419552
jmp 0x4017bc
mov ecx, dword [edi + 0x4c]
call fcn.004192a0
mov dword [edi + 0x50], eax
test eax, eax
jne 0x40183f
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4593b4
call fcn.00402178
call fcn.00413bcc
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x4018df
cmp byte [edi + 0x31], 0
je 0x4018dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x4018dd
sub ecx, 0x17
je 0x4018b7
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00414e7e
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.00402a6d
sub esp, 0x14
mov ecx, esp
push 0x4593b4
call fcn.00402178
call fcn.00413bcc
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00402091
jmp 0x4018dd
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402178
sub esp, 0x18
mov ecx, esp
push 0x4593b4
call fcn.00402178
call fcn.00413bcc
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4018e7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.00402020
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
push 0xc
lea esi, [eax + 4]
call fcn.0040214e
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040202d
mov ecx, dword [edi + 0x2c]
push 4
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.0040202d
push 8
lea ecx, [ebp - 0x1c]
mov dword [eax], esi
call fcn.0040202d
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040206e
cmp byte [edi + 1], bl
jne 0x401964
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00402020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402028
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x40199f
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402028
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.004194da
pop ecx
mov esi, eax
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.00402091
lea ecx, [ebp + 0xc]
call fcn.00402091
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x4019f3
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x4c]
call fcn.00419516
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x401a04
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x401a0b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x401a2a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4
Function at 0x401aef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0x54], 0
call fcn.004021c9
mov edi, dword [ebp + 8]
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00402028
push eax
mov ecx, esi
call fcn.00401d26
test al, al
je 0x401c3e
movzx eax, byte [esi + 0x30]
mov ecx, edi
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
add ebx, eax
call fcn.00402020
cmp ebx, eax
jbe 0x401b62
mov ecx, edi
mov bl, 1
call fcn.00402020
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x401b64
xor bl, bl
test bl, bl
jne 0x401c3e
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00402006
push eax
lea ecx, [ebp - 0x28]
call fcn.0040209b
lea ecx, [ebp - 0x40]
call fcn.00402091
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00402006
push eax
lea ecx, [ebp - 0x28]
call fcn.0040209b
lea ecx, [ebp - 0x40]
call fcn.00402091
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x28]
jne 0x401bcd
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004021e0
push esi
call dword [ebp + 0xc]
add esp, 0x1c
jmp 0x401c09
push eax
lea ecx, [esi + 0xc]
call fcn.00402077
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, edi
push 0xffffffffffffffff
add eax, ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402006
push eax
mov ecx, edi
call fcn.0040209b
lea ecx, [ebp - 0x40]
call fcn.00402091
mov ecx, edi
call fcn.00402020
test eax, eax
lea eax, [esi + 0x58]
jne 0x401b13
lea ecx, [ebp - 0x28]
call fcn.00402091
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401d6f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x401e08
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x401d92
mov byte [esi + 0x7c], 1
jmp 0x401dde
cmp byte [0x465a81], 0
je 0x401dde
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00414155
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esp
push eax
call fcn.00402a6d
sub esp, 0x14
mov ecx, esp
push 0x459450
call fcn.00402178
call fcn.00413bcc
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00402091
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x401f6e
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x401e0a
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x404854
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x45fac0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x404860
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x4048a4
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x404881
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4048c3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor edx, edx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x400]
mov ecx, 0x100
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, edx
add esi, 1
je 0x40495b
inc edx
and edx, 0x800000ff
jns 0x4048fd
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x400]
add ebx, eax
and ebx, 0x800000ff
jns 0x404916
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, al
mov eax, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x400], eax
mov ecx, dword [ebp + edx*4 - 0x400]
add ecx, eax
and ecx, 0x800000ff
jns 0x404949
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x400]
mov ecx, dword [ebp + 8]
xor byte [edi + ecx], al
inc edi
cmp edi, esi
jb 0x4048ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404cf3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
lea ecx, [ebp + 8]
push ebx
push esi
push eax
call fcn.00404c42
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404d39
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.004142e7
push 0x54
mov ecx, 0x467dd0
call fcn.004018e7
jmp 0x404dfa
lea ecx, [ebp - 0x18]
call fcn.004021c9
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403509
mov edx, 0x4595d4
mov ecx, eax
call fcn.00406adc
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.004034ff
test bl, bl
je 0x404dc6
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040219f
push eax
lea ecx, [ebp - 0x18]
call fcn.0040209b
lea ecx, [ebp - 0x30]
jmp 0x404dc1
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040219f
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040479d
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040209b
lea ecx, [ebp - 0x30]
call fcn.00402091
lea ecx, [ebp - 0x48]
call fcn.00402091
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404d8c
sub esp, 0x18
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.004021e0
push 0x50
mov ecx, 0x467dd0
call fcn.004018e7
lea ecx, [ebp - 0x18]
call fcn.00402091
lea ecx, [ebp + 8]
call fcn.004034ff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret