joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452ab4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4145a4]
call fcn.0040483c
xor eax, eax
push ebp
push 0x452bf8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x461d44], 0
jne 0x452b07
mov ecx, dword [0x4624f8]
mov dl, 1
mov eax, dword [0x407048]
call fcn.0040b6c0
call fcn.0040390c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b88
mov eax, ebx
call fcn.0040470c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x452c08
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004057c0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040471c
test eax, eax
jle 0x452b9f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x452b98
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404158
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404140
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407e88
test eax, eax
jne 0x452b98
mov ebx, 0x15
jmp 0x452ba4
mov ebx, 0x10
jmp 0x452ba4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x461d44]
call fcn.00452a0c
mov eax, dword [ebp - 8]
call fcn.00452a0c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004057d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452bff
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403ef4
lea eax, [ebp - 0x10]
mov edx, dword [0x4145a4]
call fcn.0040490c
ret
Function at 0x405f6a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00404ac5
scasb al, byte es:[edi]
bound edx, qword [edi - 0x2b7a729e]
clc
invalid
Function at 0x10016800
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
test ebp, ebp
je 0x100168d3
mov esi, dword [ebp + 0x3c]
push 0xf8
add esi, ebp
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x100168d3
cmp dword [esi], 0x4550
jne 0x100168d3
mov esi, dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [0x1021d1ec]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push esi
push edx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100168d3
mov eax, dword [ebp + 0x3c]
mov ebx, dword [eax + ebp + 0x78]
test ebx, ebx
je 0x100168d3
mov eax, dword [ebx + ebp + 0x1c]
add ebx, ebp
push edi
add eax, ebp
mov esi, 0x10217414
xor edi, edi
sub eax, esi
mov dword [esp + 0x1c], eax
jmp 0x10016886
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10017a60
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x10017a96
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret

Function at 0x10017af0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
mov edx, 0xc6ef3720
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
sub ecx, esi
add edx, 0x61c88647
dec edi
jne 0x10017b29
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret
Function at 0x100191d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x10019430
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x21c
push ebx
mov al, 0x34
push ebp
push esi
mov byte [esp + 0xd], al
mov byte [esp + 0x12], al
push edi
lea eax, [esp + 0x24]
push 0x208
push eax
push 0
mov byte [esp + 0x1c], 0x12
mov byte [esp + 0x1e], 0x56
mov byte [esp + 0x1f], 0x78
mov byte [esp + 0x20], 0x87
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x23], 0x21
mov dword [0x1021d1fc], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x38]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10019572
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push 0
push 0xfffffffffffffff8
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x24]
push 8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001956b
mov ecx, 2
lea edi, [esp + 0x1c]
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x10019572
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edx
push 0xfffffffffffffff4
push ebx
call edi
mov esi, dword [esp + 0x230]
lea eax, [esp + 0x18]
push 0
push eax
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001956b
mov ecx, dword [esi]
push 4
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1021d200], eax
mov ecx, dword [esi]
sub ebp, ecx
push 0
sub ebp, 0xc
push 0
push ebp
push ebx
call edi
mov eax, dword [esi]
mov ecx, dword [0x1021d200]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001956b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x21c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
Function at 0x10019ff0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x1001a030
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1001a01b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x1001a028
add edx, ecx
cmp ebx, edx
jb 0x1001a032
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1001a011
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x1001a360
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
cmp word [ebp], 0x5a4d
jne 0x1001a3d2
mov eax, dword [ebp + 0x3c]
add eax, ebp
cmp dword [eax], 0x4550
jne 0x1001a3d2
cmp word [eax + 0x14], 0xe0
jne 0x1001a3d2
cmp word [eax + 0x18], 0x10b
jne 0x1001a3d2
mov dword [0x1021d458], ebp
mov esi, dword [ebp + 0x3c]
add esi, ebp
push esi
mov edi, dword [esi + 0x78]
push edi
call fcn.10019ff0
add esp, 8
test eax, eax
je 0x1001a3d2
mov eax, dword [0x1021d458]
push eax
push esi
push edi
call fcn.1001a040
mov ebx, dword [esi + 0x78]
add esp, 0xc
test ebx, ebx
jne 0x1001a3dc
push 0x10
push ebx
push str.Error_in_GetProcAddressDirectly__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [ebx + ebp + 0x24]
mov edx, dword [ebx + ebp + 0x20]
mov edi, dword [ebx + ebp + 0x1c]
mov eax, dword [esp + 0x30]
add ebx, ebp
add ecx, ebp
add edx, ebp
add edi, ebp
shr eax, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edi
je 0x1001a4c2
mov esi, dword [edi]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1001a48e
xor ebp, ebp
mov edi, edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [edx]
cmp ecx, eax
jne 0x1001a46f
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
add eax, ecx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1001a462
test cl, cl
je 0x1001a45e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1001a462
add eax, 2
add esi, 2
test cl, cl
jne 0x1001a43e
xor eax, eax
jmp 0x1001a467
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001a4a9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x18]
inc ebp
add edx, 2
add edi, 4
dec ecx
cmp ebp, ecx
mov dword [esp + 0x10], edx
jbe 0x1001a425
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [ebx + 0x14]
inc eax
dec esi
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x1001a415
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, dword [edx + eax*4]
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0x18
ret
mov ecx, dword [ebx + 0x10]
xor eax, eax
mov edx, edi
cmp dword [esp + 0x30], ecx
jne 0x1001a4d4
cmp dword [edx], 0
jne 0x1001a4eb
mov esi, dword [ebx + 0x14]
inc eax
inc ecx
add edx, 4
dec esi
cmp eax, esi
jbe 0x1001a4c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [edi + eax*4]
pop edi
shl eax, 6
add eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x1001a500
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x45c
test eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push edi
je 0x1001a52c
lea eax, [esp + 0x68]
push eax
call fcn.1001a7d0
add esp, 4
test eax, eax
jne 0x1001a5d2
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
push ecx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x68]
push str.YShow3D.exe
push edx
call ebx
mov eax, dword [0x101e217c]
push 4
push 0x1000
push eax
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001a57e
pop edi
pop esi
pop ebx
add esp, 0x45c
ret
push 0x293b0
lea eax, [esp + 0x10]
push 0x101e2180
push eax
push esi
call fcn.1001e430
add esp, 0x10
lea ecx, [esp + 0x68]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001a5d2
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push 0
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x46c]
lea edx, [esp + 0x68]
push ecx
push edx
call ebx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x38], eax
push eax
lea eax, [esp + 0x88]
mov esi, 1
push eax
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], esi
mov word [esp + 0x7c], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1001a642
pop edi
pop esi
pop ebx
add esp, 0x45c
ret
mov eax, dword [esp + 0x474]
cmp dword [eax], esi
jne 0x1001a65f
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
add esp, 0x45c
ret
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x45c
ret
Function at 0x1001aab0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x410
mov dl, byte [0x1021d41c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str.SetupApi.dll
push ecx
call ebp
push 8
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [esi + 8], eax
je 0x1001ac33
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push eax
call edi
mov dword [0x1021d4b0], eax
mov eax, dword [esi + 8]
push str.SetupDiEnumDeviceInterfaces
push eax
call edi
mov dword [0x1021d46c], eax
mov ecx, dword [esi + 8]
push str.SetupDiGetDeviceInterfaceDetailA
push ecx
call edi
mov dword [0x1021d470], eax
mov edx, dword [esi + 8]
push str.SetupDiDestroyDeviceInfoList
push edx
call edi
mov dword [0x1021d474], eax
lea eax, [esp + 0x218]
push 0x104
push eax
call ebx
lea ecx, [esp + 0x218]
push str.hid.dll
push ecx
call ebp
push 8
lea edx, [esp + 0x21c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x1001ac25
push str.HidD_GetHidGuid
push eax
call edi
mov dword [0x1021d468], eax
mov eax, dword [esi + 0xc]
push str.HidD_SetFeature
push eax
call edi
mov dword [0x1021d478], eax
mov ecx, dword [esi + 0xc]
push str.HidD_GetFeature
push ecx
call edi
mov dword [0x1021d4c0], eax
mov edx, dword [esi + 0xc]
push str.HidD_GetPreparsedData
push edx
call edi
mov dword [0x1021d48c], eax
mov eax, dword [esi + 0xc]
push str.HidD_GetAttributes
push eax
call edi
mov dword [0x1021d480], eax
mov ecx, dword [esi + 0xc]
push str.HidD_FreePreparsedData
push ecx
call edi
mov dword [0x1021d4ac], eax
mov edx, dword [esi + 0xc]
push str.HidP_GetCaps
push edx
call edi
pop edi
pop esi
mov dword [0x1021d490], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
push 0x10
push 0x1020b59c
push 0x1020b594
jmp 0x1001ac3f
push 0x10
push 0x1020b578
push 0x1020b570
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
Function at 0x1001b620
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], 0
xor ebx, ebx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x1001b6a8
mov edi, str.HIDVid_3689Pid_8762
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x24]
push ecx
push eax
push str.HIDVid_3689Pid_8762
mov dword [esp + 0x20], 0xc8
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x1001b6a8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x12c]
cmp ecx, eax
je 0x1001b6bc
mov eax, ecx
inc eax
mov dword [esp + 0x10], eax
inc ebx
test esi, esi
je 0x1001b643
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
mov esi, dword [esp + 0x130]
push 0x1020b6d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret 0xc

Function at 0x1001c770
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x1001c7a6
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x1001ce90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1a4
mov dl, byte [0x1021d41c]
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
mov esi, dword [esp + 0x1b0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x4a
mov dword [esp + 9], eax
lea edi, [esp + 0x81]
mov dword [esp + 0xd], eax
mov byte [esp + 0x80], dl
mov dword [esp + 0x11], eax
push esi
mov dword [esp + 0x19], eax
push 0x104
mov word [esp + 0x21], ax
mov byte [esp + 0x10], dl
mov byte [esp + 0x23], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x24]
push ecx
push str.127.0.0.1
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.ServerName
push str.ConnectServer
call edi
push esi
lea edx, [esp + 0xc]
push 0x14
push edx
push str.3001
push str.PORT
push str.ConnectServer
call edi
push esi
lea eax, [esp + 0x84]
push 0x12c
push eax
push str.3001
push str.mMsg
push str.ConnectServer
call edi
lea ecx, [esp + 8]
push ecx
call sub.MSVCRT.dll_atol
add esp, 4
lea edx, [esp + 0x80]
push eax
lea eax, [esp + 0x20]
push edx
push eax
call dword [0x1021d4bc]
pop edi
pop esi
add esp, 0x1a4
ret 4

Function at 0x1001d5f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
push ebx
push edi
push 0x1021d4d0
call fcn.1001dc50
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x1001d649
cmp byte [0x1021d6c0], 0x20
jne 0x1001d61e
call fcn.1001d530
mov eax, dword [0x1021d6c0]
and eax, 0xff
mov cl, byte [eax + 0x1021d5b8]
mov al, byte [esi + edi]
xor al, cl
mov byte [esi + edi], al
mov dl, byte [0x1021d6c0]
inc dl
inc esi
cmp esi, ebx
mov byte [0x1021d6c0], dl
jl 0x1001d610
pop edi
pop esi
pop ebx
ret

Function at 0x1001d720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
jle 0x1001d76a
cmp byte [0x1021d6c0], 0x20
jne 0x1001d73f
call fcn.1001d530
mov eax, dword [0x1021d6c0]
and eax, 0xff
mov cl, byte [eax + 0x1021d5b8]
mov al, byte [esi + edi]
xor al, cl
mov byte [esi + edi], al
mov dl, byte [0x1021d6c0]
inc dl
inc esi
cmp esi, ebx
mov byte [0x1021d6c0], dl
jl 0x1001d731
push ebx
push edi
push 0x1021d4d0
call fcn.1001dc50
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x1001e6a0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x1001fc1a
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x1001fc1a
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1001fc1a
cmp dword [eax], 0
jne 0x1001e6d9
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x1001fc1a
cmp dword [ebx], 0xb
jne 0x1001e6e4
mov dword [ebx], 0xc
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [ebx + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx]
cmp ecx, 0x1e
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
ja 0x1001fc1a
jmp 0x1001e72a
jmp dword [ecx*4 + 0x1001fdb4]
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x1002d980
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.1004a590
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002d9cf
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1002d9cf
mov edx, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
add edx, 0x40
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x104]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1002dad3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x1002da8e
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x1002da8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002da8e
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x1002da8e
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.1004a590
lea ecx, [ebp - 4]
mov edi, esp
push ecx
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x1002da8e
mov edx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [edx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1002dad3
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
lea ecx, [ebp - 4]
push 0
push ecx
push 0
push 1
push 0
push 0
mov esi, eax
push 0
lea eax, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea edx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037940
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret