joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10075d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e3510]
test dword [ebp + 8], eax
je 0x10075dfc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
call fcn.100a4151
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x100dfd60]
pop ecx
test eax, eax
je 0x10075def
push esi
push edi
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR120.dll_fwprintf
mov edi, dword [0x100e3524]
mov esi, dword [0x100e3520]
pop ecx
pop ecx
push 0
push 0x32
push edi
push esi
call fcn.10032225
add esi, 1
mov dword [0x100e3520], esi
adc edi, 0
or eax, edx
mov dword [0x100e3524], edi
pop edi
pop esi
jne 0x10075dfc
push dword [0x100dfd60]
call sym.MSVCR120.dll_fflush
pop ecx
jmp 0x10075dfc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret

Function at 0x100a4151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x100a4160
pop dword [ebp - 0x48]
mov eax, 0x82d20371
sub eax, 0x72c7c211
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x5d03d
push 0
mov eax, 0xc6a74b8f
add eax, 0x4966f611
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4692
xor edx, edx
add edx, eax
mov edi, 0x95c9ffc0
add edi, 0x7a44ce40
add edi, dword [ebp - 0x48]
mov esi, 0x5af5cadd
add esi, 0xd4d13ea7
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 4], 0x739b797a
mov dword [edx], ebx
xor dword [ebp - 0x10], 0x8011422c
add edx, 4
add edi, 0x64387248
sub edi, 0x64387244
loop 0x100a41bb
add eax, 0x10d1b
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
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 [0x1021d12c]
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, 0x10217354
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 0x100178e0
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 0x10017916
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 0x10017a30
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 0x10017a69
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 0x10018d80
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 0x10018fe0
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 [0x1021d13c], 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 0x10019122
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 0x1001911b
mov ecx, 2
lea edi, [esp + 0x1c]
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x10019122
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 0x1001911b
mov ecx, dword [esi]
push 4
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1021d140], 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 [0x1021d140]
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 0x1001911b
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 0x10019b10
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 0x10019b50
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10019b3b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x10019b48
add edx, ecx
cmp ebx, edx
jb 0x10019b52
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10019b31
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10019e80
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 0x10019ef2
mov eax, dword [ebp + 0x3c]
add eax, ebp
cmp dword [eax], 0x4550
jne 0x10019ef2
cmp word [eax + 0x14], 0xe0
jne 0x10019ef2
cmp word [eax + 0x18], 0x10b
jne 0x10019ef2
mov dword [0x1021d398], ebp
mov esi, dword [ebp + 0x3c]
add esi, ebp
push esi
mov edi, dword [esi + 0x78]
push edi
call fcn.10019b10
add esp, 8
test eax, eax
je 0x10019ef2
mov eax, dword [0x1021d398]
push eax
push esi
push edi
call fcn.10019b60
mov ebx, dword [esi + 0x78]
add esp, 0xc
test ebx, ebx
jne 0x10019efc
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 0x10019fe2
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 0x10019fae
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 0x10019f8f
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 0x10019f82
test cl, cl
je 0x10019f7e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10019f82
add eax, 2
add esi, 2
test cl, cl
jne 0x10019f5e
xor eax, eax
jmp 0x10019f87
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10019fc9
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 0x10019f45
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 0x10019f35
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 0x10019ff4
cmp dword [edx], 0
jne 0x1001a00b
mov esi, dword [ebx + 0x14]
inc eax
inc ecx
add edx, 4
dec esi
cmp eax, esi
jbe 0x10019fe9
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 0x1001a020
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 0x1001a04c
lea eax, [esp + 0x68]
push eax
call fcn.1001a2f0
add esp, 4
test eax, eax
jne 0x1001a0f2
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 [0x101e20c8]
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 0x1001a09e
pop edi
pop esi
pop ebx
add esp, 0x45c
ret
push 0x293af
lea eax, [esp + 0x10]
push 0x101e20cc
push eax
push esi
call fcn.1001df50
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 0x1001a0f2
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 0x1001a162
pop edi
pop esi
pop ebx
add esp, 0x45c
ret
mov eax, dword [esp + 0x474]
cmp dword [eax], esi
jne 0x1001a17f
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 0x1001a5d0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x410
mov dl, byte [0x1021d35c]
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 0x1001a753
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push eax
call edi
mov dword [0x1021d3f0], eax
mov eax, dword [esi + 8]
push str.SetupDiEnumDeviceInterfaces
push eax
call edi
mov dword [0x1021d3ac], eax
mov ecx, dword [esi + 8]
push str.SetupDiGetDeviceInterfaceDetailA
push ecx
call edi
mov dword [0x1021d3b0], eax
mov edx, dword [esi + 8]
push str.SetupDiDestroyDeviceInfoList
push edx
call edi
mov dword [0x1021d3b4], 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 0x1001a745
push str.HidD_GetHidGuid
push eax
call edi
mov dword [0x1021d3a8], eax
mov eax, dword [esi + 0xc]
push str.HidD_SetFeature
push eax
call edi
mov dword [0x1021d3b8], eax
mov ecx, dword [esi + 0xc]
push str.HidD_GetFeature
push ecx
call edi
mov dword [0x1021d400], eax
mov edx, dword [esi + 0xc]
push str.HidD_GetPreparsedData
push edx
call edi
mov dword [0x1021d3cc], eax
mov eax, dword [esi + 0xc]
push str.HidD_GetAttributes
push eax
call edi
mov dword [0x1021d3c0], eax
mov ecx, dword [esi + 0xc]
push str.HidD_FreePreparsedData
push ecx
call edi
mov dword [0x1021d3ec], eax
mov edx, dword [esi + 0xc]
push str.HidP_GetCaps
push edx
call edi
pop edi
pop esi
mov dword [0x1021d3d0], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
push 0x10
push 0x1020b4e8
push 0x1020b4e0
jmp 0x1001a75f
push 0x10
push 0x1020b4c4
push 0x1020b4bc
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 0x1001b140
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 0x1001b1c8
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 0x1001b1c8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x12c]
cmp ecx, eax
je 0x1001b1dc
mov eax, ecx
inc eax
mov dword [esp + 0x10], eax
inc ebx
test esi, esi
je 0x1001b163
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
mov esi, dword [esp + 0x130]
push 0x1020b620
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 0x1001c290
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 0x1001c2c6
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 0x1001c9b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1a4
mov dl, byte [0x1021d35c]
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 [0x1021d3fc]
pop edi
pop esi
add esp, 0x1a4
ret 4

Function at 0x1001d110
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 0x1021d410
call fcn.1001d770
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x1001d169
cmp byte [0x1021d600], 0x20
jne 0x1001d13e
call fcn.1001d050
mov eax, dword [0x1021d600]
and eax, 0xff
mov cl, byte [eax + 0x1021d4f8]
mov al, byte [esi + edi]
xor al, cl
mov byte [esi + edi], al
mov dl, byte [0x1021d600]
inc dl
inc esi
cmp esi, ebx
mov byte [0x1021d600], dl
jl 0x1001d130
pop edi
pop esi
pop ebx
ret

Function at 0x1001d240
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 0x1001d28a
cmp byte [0x1021d600], 0x20
jne 0x1001d25f
call fcn.1001d050
mov eax, dword [0x1021d600]
and eax, 0xff
mov cl, byte [eax + 0x1021d4f8]
mov al, byte [esi + edi]
xor al, cl
mov byte [esi + edi], al
mov dl, byte [0x1021d600]
inc dl
inc esi
cmp esi, ebx
mov byte [0x1021d600], dl
jl 0x1001d251
push ebx
push edi
push 0x1021d410
call fcn.1001d770
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x1001e1c0
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 0x1001f73a
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x1001f73a
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1001f73a
cmp dword [eax], 0
jne 0x1001e1f9
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x1001f73a
cmp dword [ebx], 0xb
jne 0x1001e204
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 0x1001f73a
jmp 0x1001e24a
jmp dword [ecx*4 + 0x1001f8d4]
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret