joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dc80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dcb3
push esi
call fcn.00440d80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dcac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43dd39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43dd22
mov eax, dword [esi + 8]
test eax, eax
je 0x43dcd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43dd1e
cmp eax, 2
je 0x43dd22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43dcca
cmp eax, 3
je 0x43dcfd
cmp eax, 1
jne 0x43dcca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43dcca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43dcca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043dd60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43dd48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043dd60
add esp, 4
pop esi
ret

Function at 0x44a980
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44a9e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44a9e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44a9c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44b520
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044b670
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44b540
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44b521
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044b670
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44b540
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44b570
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44b5c7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44b5dd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044b600
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44b600
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44b690
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44b6d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44bb50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4782f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044b700
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044b780
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044b780
lea ecx, [esi + 0xc]
call fcn.00467d0a
lea ecx, [esi + 0x10]
call fcn.00467d0a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044dfc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044dfc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044dfc0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00467d7f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00467d7f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44c7f8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478518
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44c808
call fcn.0044cd20
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44c8eb
cmp byte [edi], 0
je 0x44c8eb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44c82d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044b520
test eax, eax
jne 0x44c84d
push 0x704ee4
lea ecx, [esi + 0x38]
call fcn.00467f08
jmp 0x44c8eb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044b570
test eax, eax
jne 0x44c87c
mov ecx, esi
call fcn.0044b670
push edi
add esi, 0x38
push 0x704ec0
push esi
call fcn.004658ea
add esp, 0xc
jmp 0x44c8eb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044d5b0
test eax, eax
je 0x44c8e4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044c9c0
test eax, eax
jne 0x44c900
push edi
lea eax, [esi + 0x38]
push 0x704e9c
push eax
call fcn.004658ea
add esp, 0xc
mov ecx, esi
call fcn.0044cd20
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44c9a8
mov ecx, dword [0x7051b0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004658ea
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044b620
test eax, eax
jne 0x44c96a
push 0x704e80
lea ecx, [esi + 0x38]
call fcn.00467f08
jmp 0x44c97a
push 0xfa
mov ecx, esi
call fcn.0044d5b0
test eax, eax
jne 0x44c997
mov ecx, esi
call fcn.0044cd20
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00467d7f
jmp 0x44c8eb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00467d7f
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46a172
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a1aa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00468226
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004681fe
jmp 0x46a1b6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46b869
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46b8ab
call fcn.0047160b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b8ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b8a2
xor eax, eax
jmp 0x46b8b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b8b9
pop edi
pop esi
pop ebx
ret 4

Function at 0x471b3b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x471b69
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471b87
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471aa1
jmp 0x471b87
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471b87
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471aa1
test edi, edi
mov eax, edi
jne 0x471b71
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405cbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x405cf2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ccc
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d23
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x405d05
pop edi
not eax
pop esi
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402b60
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x402c11
mov edx, dword [ebp - 0x18]
sub edx, 0x61c88647
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 5
add edx, dword [ebp - 0x14]
xor eax, edx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 5
add edx, dword [ebp - 0x20]
xor eax, edx
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x402baf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x402c30
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x402ce4
mov edx, dword [ebp - 8]
shl edx, 4
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 5
add ecx, dword [ebp - 0x20]
xor edx, ecx
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
add eax, 0x61c88647
mov dword [ebp - 0x18], eax
jmp 0x402c7f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402e60
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x402f11
mov edx, dword [ebp - 0x18]
sub edx, 0x61c88647
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 5
add edx, dword [ebp - 0x14]
xor eax, edx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 5
add edx, dword [ebp - 0x20]
xor eax, edx
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x402eaf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x402f30
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xc6ef3720
mov dword [ebp - 0xc], 0x20
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x402fe4
mov edx, dword [ebp - 8]
shl edx, 4
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 5
add ecx, dword [ebp - 0x20]
xor edx, ecx
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
add eax, 0x61c88647
mov dword [ebp - 0x18], eax
jmp 0x402f7f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4039f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x59fb40
call fcn.004041e0
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x403a1b
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jge 0x403a66
movzx ecx, byte [0x59fd30]
cmp ecx, 0x20
jne 0x403a34
call fcn.00403900
movzx edx, byte [0x59fd30]
movzx eax, byte [edx + 0x59fc28]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov cl, byte [0x59fd30]
add cl, 1
mov byte [0x59fd30], cl
jmp 0x403a12
mov esp, ebp
pop ebp
ret

Function at 0x403b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x403b76
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jge 0x403bc1
movzx edx, byte [0x59fd30]
cmp edx, 0x20
jne 0x403b8f
call fcn.00403900
movzx eax, byte [0x59fd30]
movzx ecx, byte [eax + 0x59fc28]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
mov dl, byte [0x59fd30]
add dl, 1
mov byte [0x59fd30], dl
jmp 0x403b6d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x59fb40
call fcn.004041e0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x405080
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0x10], 0x40
jle 0x4050ad
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00404f40
add esp, 0xc
mov dword [ebp + 0x10], 0x20
lea eax, [ebp - 0x24]
mov dword [ebp + 0xc], eax
push 0x40
push 0x36
mov ecx, dword [ebp + 8]
add ecx, 0x68
push ecx
call fcn.0041ce40
add esp, 0xc
push 0x40
push 0x5c
mov edx, dword [ebp + 8]
add edx, 0xa8
push edx
call fcn.0041ce40
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4050e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x405134
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 0x68]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor eax, edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx + 0x68], al
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 0xa8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor eax, edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx + 0xa8], al
jmp 0x4050df
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004041a0
add esp, 8
push 0x40
mov eax, dword [ebp + 8]
add eax, 0x68
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004041e0
add esp, 0xc
push 0x20
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0041ce40
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4079f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], 0x104
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x407a29
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jne 0x407ad2
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407acd
mov dword [ebp - 0x124], 0xc8
push 0x4a5534
call fcn.0041ee40
add esp, 4
push eax
lea eax, [ebp - 0x114]
push eax
push str.HIDVid_3689Pid_8762
call fcn.0041f044
add esp, 0xc
test eax, eax
jne 0x407acd
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jne 0x407ac4
push 0x4a5564
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x407ad4
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x407a20
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a410
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x40a4c4
mov edx, dword [ebp - 0x18]
sub edx, 0x61c88647
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 5
add edx, dword [ebp - 0x14]
xor eax, edx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 5
add edx, dword [ebp - 0x20]
xor eax, edx
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x40a462
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret 8