joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418bc9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
test edi, edi
jne 0x418be9
mov eax, 0x80004005
jmp 0x418d13
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax]
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x418c20
mov eax, dword [eax]
push edi
mov esi, dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0x2710
push 0x64
push eax
push edi
push dword [ebp - 8]
call esi
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], 0
mov dword [ebp - 8], eax
je 0x418caa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x418caa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 8], eax
jne 0x418caa
push dword [ebx + 4]
lea ecx, [ebp - 0x18]
push esi
call fcn.00418855
push 0
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp dword [ebp - 0x14], 0
mov esi, eax
je 0x418c92
push dword [ebp - 0x14]
push 0xfffffffffffffffc
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebp - 0x10], 0
je 0x418cc3
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x418cc3
push 0
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp esi, 0x64
jl 0x418d07
cmp esi, 0x2710
jg 0x418d07
push 8
xor eax, eax
mov dword [ebp - 0x3c], 0x24
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 4]
lea eax, [esi - 0x64]
movzx eax, ax
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 1
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
jmp 0x418d12
push dword [ebp + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 8]
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x419e62
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov esi, ecx
push esi
push str.OpenUrlWithDefBrowserInternal__url_s
push 0x426b00
call fcn.00419776
call fcn.00419ed0
push 0x38
mov edi, eax
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x38], 0x100400
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x419eca
test edi, edi
jne 0x419eca
xor al, al
jmp 0x419ecc
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x41a199
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push esi
push str.OpenUrlWithIEInternal__url_s
push 0x426b00
call fcn.00419776
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x41a20f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov eax, str.Internet_ExplorerIEXPLORE.EXE
jne 0x41a214
mov eax, 0x42fa52
push eax
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.0041967c
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a257
xor eax, eax
lea ecx, [ebp - 0x20c]
push str.iexplore.exe
mov edx, 0x104
mov word [ebp - 0x20c], ax
call fcn.0041967c
pop ecx
push 5
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
cmp eax, 0x20
pop edi
setg al
xor ecx, ebp
pop esi
call fcn.004221ab
leave
ret

Function at 0x41a660
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x668]
lea edi, [ecx + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a759
cmp dword [ebp - 0x64c], 0
jne 0x41a6ab
cmp dword [ebp - 0x648], 0x500000
jbe 0x41a752
xor eax, eax
lea ecx, [ebp - 0x418]
mov esi, 0x104
mov word [ebp - 0x418], ax
push edi
mov edx, esi
call fcn.0041967c
xor eax, eax
lea ecx, [ebp - 0x210]
push edi
mov edx, esi
mov word [ebp - 0x210], ax
call fcn.0041967c
push 0x42fa90
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.0041967c
push 0x42fa98
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.0041967c
add esp, 0x10
xor esi, esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41a72b
cmp esi, 2
jge 0x41a725
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x41a707
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221ab
leave
ret
Function at 0x41aad5
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x425994
call fcn.0042318c
mov edi, ecx
mov dword [ebp - 0x14], edi
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [edi + 0x240], ecx
mov dword [edi + 0x244], ecx
mov dword [edi + 0x248], ecx
mov dword [edi + 0x23c], 0x10101
mov dword [edi + 0x22c], ecx
mov dword [edi + 0x230], ecx
mov dword [edi + 0x234], 2
mov dword [edi + 0x238], 0x3e8
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040655d
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00419af3
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040188c
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
sub eax, dword [ebp - 0x20]
inc ebx
sar eax, 2
mov dword [ebp - 0x10], eax
cmp eax, ebx
jbe 0x41ac1a
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x41ac10
cmp word [esi], 0x2f
jne 0x41abb0
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswdigit]
pop ecx
test eax, eax
je 0x41abb0
xor eax, eax
cmp word [esi + 4], ax
jne 0x41abb0
movzx eax, word [esi + 2]
sub eax, 0x30
jmp 0x41abd0
push 0xa
push str._loglevel:
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41abd8
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
pop ecx
mov dword [edi + 0x234], eax
jmp 0x41ac10
push 8
push str._logbuf:
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41ac10
lea edx, [edi + 0x238]
mov ecx, esi
call fcn.00419c95
lea eax, [edi + 0x238]
add dword [eax], 8
cmp dword [eax], 1
ja 0x41ac10
xor eax, eax
mov byte [edi + 0x23d], al
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x41ab7b
mov ecx, edi
call fcn.0041aa3a
test eax, eax
jne 0x41ac2b
mov byte [edi + 0x23c], al
mov ecx, edi
call fcn.0041a768
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x41ac63
mov ebx, dword [ebp - 0x1c]
cmp esi, ebx
je 0x41ac54
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040188c
add esi, 4
cmp esi, ebx
jne 0x41ac40
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, esi
sub edx, esi
and edx, 0xfffffffc
call fcn.004082f6
mov eax, edi
call fcn.00423155
ret
Function at 0x41ac6b
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1900c
call fcn.00423310
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1900c], edi
cmp byte [edi + 0x23f], 0
jne 0x41ae44
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ebx, [edi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19008], esi
cmp esi, 0xffffffff
jne 0x41ad5c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41ad03
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19008], esi
cmp esi, 0xffffffff
jne 0x41ad5c
xor edi, edi
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19008], esi
cmp esi, 0xffffffff
jne 0x41ad39
inc edi
cmp edi, 3
jb 0x41ad05
cmp edi, 3
mov edi, dword [ebp - 0x1900c]
jne 0x41ad57
cmp esi, 0xffffffff
je 0x41ad50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41ae8e
cmp esi, 0xffffffff
je 0x41ad69
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
lea eax, [ebp - 0x19004]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x244]
xor ebx, ebx
mov ecx, dword [edi + 0x240]
add esp, 0xc
and dword [ebp - 0x1900c], ebx
sub eax, ecx
sar eax, 2
test eax, eax
je 0x41ae25
mov esi, dword [ebp - 0x1900c]
mov edx, dword [ecx + esi*4]
mov dword [ebp - 0x1900c], edx
mov ecx, dword [edx]
lea eax, [ecx + ebx]
cmp eax, 0x19000
jbe 0x41add8
push ebx
lea eax, [ebp - 0x19004]
push eax
lea ecx, [ebp - 0x19008]
call fcn.0041a638
mov edx, dword [ebp - 0x1900c]
xor ebx, ebx
mov ecx, dword [edx]
push ecx
push edx
cmp ecx, 0x19000
jbe 0x41adef
lea ecx, [ebp - 0x19008]
call fcn.0041a638
jmp 0x41ae09
lea eax, [ebp - 0x19004]
add eax, ebx
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [ebp - 0x1900c]
add esp, 0xc
add ebx, dword [eax]
mov eax, dword [edi + 0x244]
inc esi
mov ecx, dword [edi + 0x240]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x41ada6
mov esi, dword [ebp - 0x19008]
push ebx
lea eax, [ebp - 0x19004]
push eax
lea ecx, [ebp - 0x19008]
call fcn.0041a638
cmp esi, 0xffffffff
je 0x41ae44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x244]
xor esi, esi
mov edx, dword [edi + 0x240]
sub eax, edx
sar eax, 2
test eax, eax
je 0x41ae85
push dword [edx + esi*4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x240]
pop ecx
and dword [eax + esi*4], 0
inc esi
mov ecx, dword [edi + 0x244]
mov edx, dword [edi + 0x240]
sub ecx, edx
sar ecx, 2
cmp esi, ecx
jb 0x41ae5b
xor eax, eax
mov dword [edi + 0x244], edx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221ab
leave
ret 4
Function at 0x41b886
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
lea eax, [edi + 2]
cmp eax, 0xc0000000
jae 0x41b995
push 3
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp + 0xc]
shl eax, 2
cmp dword [ecx], eax
jb 0x41b995
push esi
mov esi, dword [ebp + 8]
cmp edi, 2
jbe 0x41b927
push 3
pop ecx
xor edx, edx
lea eax, [edi - 3]
div ecx
push ecx
lea edx, [eax + 1]
pop eax
movzx ecx, byte [ebx]
shr ecx, 2
push 3
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
movzx ecx, byte [ebx]
and ecx, eax
movzx eax, byte [ebx + 1]
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
pop eax
add ebx, eax
sub edi, eax
sub edx, 1
jne 0x41b8ca
test edi, edi
je 0x41b983
movzx eax, byte [ebx]
shr eax, 2
push 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
pop eax
and ecx, eax
shl ecx, 4
cmp edi, 1
jbe 0x41b971
movzx eax, byte [ebx + 1]
shr eax, 4
mov al, byte [eax + ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x41b980
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub eax, dword [ebp + 8]
mov byte [esi], 0
pop esi
mov dword [ecx], eax
xor eax, eax
jmp 0x41b998
or eax, 0xffffffff
pop edi
pop ebx
pop ebp
ret
Function at 0x41bfc2
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c097
push 0xc
push esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_memset]
lea eax, [ebp - 0x410]
push eax
call esi
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x404]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41c090
lea esi, [ebp - 0x404]
add esi, dword [ebp - 0x3f4]
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
pop ecx
test eax, eax
je 0x41c090
push esi
mov ecx, ebx
call fcn.0041c5c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x41c099
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221ab
leave
ret 4

Function at 0x41ca34
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push str.M_GetAdaptersAddresses_begin.
push str.bugreport
mov ebx, ecx
call fcn.00419776
and dword [ebp - 4], 0
xor esi, esi
and dword [ebp - 8], esi
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x41cadc
test esi, esi
je 0x41ca7b
push esi
call fcn.004224a3
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x120
push eax
call fcn.0042246a
mov esi, eax
pop ecx
test esi, esi
je 0x41cac3
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x41ca58
test esi, esi
je 0x41caa7
push esi
call fcn.004224a3
pop ecx
push edi
push str.GetAdaptersAddresses_failed___ld_.
push str.bugreport
call fcn.00419776
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
push str.bugreport
call fcn.00419776
add esp, 0xc
test edi, edi
jne 0x41ca9c
test esi, esi
je 0x41caa7
push esi
mov ecx, ebx
call fcn.0041cb0f
mov edi, eax
test edi, edi
je 0x41cb04
mov ecx, ebx
call fcn.0041cf3e
push ecx
mov ecx, ebx
call fcn.0041d1dd
xor edi, edi
inc edi
push esi
call fcn.004224a3
pop ecx
mov eax, edi
jmp 0x41cabc
Function at 0x41d801
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push ebx
push edi
mov ebx, edx
mov edi, ecx
jle 0x41d86a
sub ebx, dword [ebp + 8]
push esi
inc byte [edi + 0x100]
movzx esi, byte [edi + 0x100]
mov al, byte [esi + edi]
add byte [edi + 0x101], al
movzx edx, byte [edi + 0x101]
mov cl, byte [esi + edi]
mov al, byte [edx + edi]
mov byte [esi + edi], al
mov byte [edx + edi], cl
movzx eax, byte [edi + 0x100]
movzx ecx, byte [edi + 0x101]
mov al, byte [eax + edi]
add al, byte [ecx + edi]
mov ecx, dword [ebp + 8]
movzx eax, al
mov al, byte [eax + edi]
xor al, byte [ebx + ecx]
mov byte [ecx], al
inc ecx
sub dword [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jne 0x41d814
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x401024
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40101d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret

Function at 0x401030
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x24]
cmp esi, 1
push edi
jae 0x401049
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push 4
push eax
push 8
push 0xffff
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x401076
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
lea eax, [esi + esi*4]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea eax, [eax + eax*4]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
shl eax, 3
push edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
push 0xc
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
push 0x98000004
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x18
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ebp
test ebp, ebp
jle 0x40111f
mov eax, dword [esp + 0x14]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x401118
cmp eax, 0xffffffff
je 0x401118
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, ebp
jge 0x40111f
jmp 0x4010f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ebp
test ebp, ebp
jle 0x40116f
mov eax, dword [esp + 0x14]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x401168
cmp eax, 0xffffffff
je 0x401168
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, ebp
jge 0x40116f
jmp 0x401144
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x401220
Capabilities:
Check os version
Get hostname
Get memory capacity

Disassembly:
sub esp, 0xe0
push ebx
mov ebx, dword [esp + 0xe8]
push edi
mov ecx, 0x32
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40127b
pop edi
pop ebx
add esp, 0xe0
ret
mov eax, dword [esp + 0x5c]
push esi
dec eax
je 0x4012e6
dec eax
jne 0x40132b
mov eax, dword [esp + 0x54]
cmp eax, 6
jne 0x40129e
lea edx, [esp + 0x10]
mov edi, str.Vista
jmp 0x40130e
cmp eax, 5
jne 0x4012d6
mov eax, dword [esp + 0x58]
cmp eax, 2
jne 0x4012b7
lea edx, [esp + 0x10]
mov edi, str.2003
jmp 0x40130e
cmp eax, 1
jne 0x4012c7
lea edx, [esp + 0x10]
mov edi, 0x40468c
jmp 0x40130e
test eax, eax
jne 0x40132b
lea edx, [esp + 0x10]
mov edi, str.2000
jmp 0x40130e
cmp eax, 4
ja 0x40132b
lea edx, [esp + 0x10]
mov edi, 0x404680
jmp 0x40130e
cmp dword [esp + 0x54], 4
jne 0x40132b
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x401300
lea edx, [esp + 0x10]
mov edi, 0x40467c
jmp 0x40130e
cmp eax, 0xa
jne 0x40132b
lea edx, [esp + 0x10]
mov edi, 0x404678
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x5c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
and edx, 0xffff
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [ebx + 0x60]
push str._s_SP_d__Build__d_
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x20
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x38]
add ebx, 0x40
shr eax, 0x14
inc eax
push eax
push 0x40465c
push ebx
call esi
add esp, 0xc
mov eax, 1
pop esi
pop edi
pop ebx
add esp, 0xe0
ret

Function at 0x401390
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x401420
push 0
push 0
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call ebx
push esi
call ebp
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013bc

Function at 0x4013f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x40141c
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x401410
pop esi
ret