joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406974
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x45a040]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
call fcn.0041419c
call fcn.00406901
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.1C49D6C1_DF17_4c22_8F76_0223272B35DA
xor ebx, ebx
push ebx
mov edi, 0x20000
push edi
call esi
mov dword [0x45b214], eax
cmp eax, ebx
je 0x406a14
push ebx
push 2
push ecx
mov edi, esp
mov dword [esp + 0x18], esp
push 0x44c2bc
call fcn.0040cd47
push ecx
mov edi, esp
mov dword [esp + 0x1c], esp
push 0x44ca2c
call fcn.0040cd47
lea eax, [esp + 0x30]
push eax
call fcn.004086b8
lea eax, [esp + 0x10]
push eax
lea ebx, [esp + 0x24]
call fcn.0040fedc
call fcn.004103fa
push dword [0x45b214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00408a7d
jmp 0x406b28
push 0x44c9b4
push ebx
push edi
call esi
mov dword [0x45b214], eax
cmp eax, ebx
je 0x406a48
push ebx
push 2
push ecx
mov edi, esp
mov dword [esp + 0x18], esp
push 0x44c2bc
call fcn.0040cd47
push ecx
mov edi, esp
mov dword [esp + 0x1c], esp
push 0x44ca5c
jmp 0x4069da
push str.1C49D6C1_DF17_4c22_8F76_0223272B35DA
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x45b214], eax
call fcn.00406ed1
call fcn.00404f33
mov esi, eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x406a93
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x405a11
push ebx
push ebx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
call fcn.00406b41
push 0x114
call fcn.00434689
pop ecx
cmp eax, ebx
je 0x406ab1
push eax
call section..text
mov esi, eax
jmp 0x406ab3
xor esi, esi
lea eax, [esp + 0x10]
push eax
mov eax, esi
call fcn.0040ffb0
mov eax, dword [esi]
cmp byte [0x45e8e8], bl
je 0x406acc
push ebx
jmp 0x406adc
xor ecx, ecx
cmp byte [0x45e80c], bl
setne cl
dec ecx
and ecx, 5
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov dword [0x45e808], eax
call fcn.00414607
mov ecx, dword [0x45e810]
cmp ecx, ebx
je 0x406b02
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x45e814]
cmp ecx, ebx
je 0x406b12
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00414241
call fcn.00406ed1
push dword [0x45b214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043465f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4070b6
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00407c49
pop ecx
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
cmp edi, esi
jne 0x4070f4
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.004031f0
xor eax, eax
jmp 0x407173
push 4
lea eax, [ebp - 0x28]
push eax
push 2
push edi
mov dword [ebp - 0x28], 0x3e8
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x407116
lea eax, [ebp - 0x1c]
push ebx
push esi
push 0x84400000
push esi
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
cmp ebx, esi
jne 0x407136
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x407165
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x407181
call edi
push ebx
call edi
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.004031f0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043465f
leave
ret
call edi
push ebx
call edi
xor edi, edi
cmp dword [ebp - 0x24], 0xc8
je 0x4071a0
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.004031f0
mov eax, edi
jmp 0x407172
inc edi
jmp 0x407191

Function at 0x4072c8
Capabilities:
Get file version info

Disassembly:
push 0x28
mov eax, 0x44717f
call fcn.00437296
xor edi, edi
push edi
push ebx
call fcn.004349f0
pop ecx
pop ecx
test eax, eax
je 0x4072ea
xor eax, eax
jmp 0x407384
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x4072e3
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00404a63
mov eax, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00402a2d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x407320
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], edi
jae 0x407338
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0x44ce24
push eax
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x30]
movzx cx, byte [eax + 0xa]
shl cx, 8
movzx esi, cx
movzx ecx, byte [eax + 8]
or esi, ecx
movzx cx, byte [eax + 0xe]
movzx eax, byte [eax + 0xc]
shl cx, 8
movzx ecx, cx
shl esi, 0x10
or esi, ecx
push edi
push 1
lea ecx, [ebp - 0x2c]
or esi, eax
call fcn.00404a7f
mov eax, esi
call fcn.00437319
ret
Function at 0x407411
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push esi
push 0x103
xor esi, esi
lea eax, [ebp - 0x77]
push esi
push eax
mov byte [ebp - 0x78], 0
call fcn.00437340
add esp, 0xc
push 0x104
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4074b1
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
mov dword [ebp - 0x7c], esi
cmp ebx, esi
je 0x4074b0
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x4074b0
cmp dword [eax], esi
je 0x4074b0
push edi
mov edi, dword [ebx + 0xc]
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi + edi]
cmp dword [ecx], eax
jne 0x4074a1
inc dword [ebp - 0x7c]
mov esi, dword [ebp - 0x7c]
shl esi, 2
cmp dword [esi + edi], 0
jne 0x40747b
jmp 0x4074af
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.0043465f
add ebp, 0x90
leave
ret

Function at 0x407536
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.00437340
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edi, [ebp - 0x80]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x40758b
push 5
pop ecx
lea eax, [ebp - 0x80]
push 0
mov esi, str._sohu.cfg
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004349f0
pop ecx
pop ecx
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x4075bb
mov eax, 0x3f3
jmp 0x4075d4
lea eax, [ebp - 0x80]
push eax
push 0x3f3
push 0x44ce8c
push str.channel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.0043465f
add ebp, 0x18c
leave
ret
Function at 0x407753
Capabilities:
Get mac address on windows

Disassembly:
push ebp
sub esp, 0x41c
lea ebp, [esp - 4]
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push 8
mov eax, 0x447828
call fcn.0043722d
xor ebx, ebx
push 0x3ff
lea eax, [ebp + 0x1d]
mov esi, ecx
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x14], esi
mov byte [ebp + 0x1c], bl
call fcn.00437340
add esp, 0xc
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.00404a63
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x10], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, ebx
je 0x4077d9
cmp eax, 0x6f
je 0x4077d9
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040451c
push ebx
push 1
lea ecx, [ebp]
call fcn.00404a7f
mov eax, esi
jmp 0x40784b
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x4077bf
lea eax, [ebp - 0x10]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x407801
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4077bf
lea esi, [edi + 0x190]
push dword [esi]
lea eax, [edi + 0x194]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004376f0
add esp, 0xc
push dword [esi]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
call fcn.00405a1f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
call fcn.0040451c
push ebx
push 1
lea ecx, [ebp]
call fcn.00404a7f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.0043465f
add ebp, 0x420
leave
ret
Function at 0x4078c6
Capabilities:
Encode data using base64

Disassembly:
push 0x20
mov eax, 0x44715c
call fcn.0043722d
mov edi, ecx
and dword [ebp - 0x2c], 0
mov esi, edx
mov dword [ebp - 0x24], esi
call fcn.00404aca
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x2c], ebx
jb 0x4078f7
mov eax, dword [edi + 4]
jmp 0x4078fa
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x14]
xor edi, edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x407a3e
mov eax, dword [ebp - 0x14]
dec dword [ebp - 0x20]
mov al, byte [eax]
inc edi
inc dword [ebp - 0x14]
mov byte [ebp + edi - 0x11], al
mov dword [ebp - 0x1c], edi
cmp edi, 3
jne 0x40798d
mov al, byte [ebp - 0x10]
mov cl, byte [ebp - 0xf]
shr al, 2
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0xf]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xe]
and al, 0x3f
and dword [ebp - 0x1c], 0
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x1c]
movzx esi, byte [ebp + eax - 0x18]
call fcn.00408662
mov al, byte [eax]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x28], al
push dword [ebp - 0x28]
call fcn.004034ec
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x407960
and dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
jne 0x40790d
test edi, edi
je 0x407a3e
cmp edi, 3
jge 0x4079b9
push 3
pop ecx
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push 0
push eax
call fcn.00437340
add esp, 0xc
mov cl, byte [ebp - 0x10]
and dword [ebp - 0x14], 0
mov al, cl
shr al, 2
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0xf]
and cl, 3
mov dl, al
shl cl, 4
shr dl, 4
add cl, dl
mov byte [ebp - 0x17], cl
mov cl, byte [ebp - 0xe]
and al, 0xf
mov dl, cl
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x16], al
lea eax, [edi + 1]
and cl, 0x3f
mov byte [ebp - 0x15], cl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x407a28
mov eax, dword [ebp - 0x14]
movzx esi, byte [ebp + eax - 0x18]
call fcn.00408662
mov al, byte [eax]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x28], al
push dword [ebp - 0x28]
call fcn.004034ec
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jl 0x4079fd
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x407a3e
sub esi, edi
mov edi, dword [ebp - 0x24]
push 0x3d
call fcn.004034ec
dec esi
jne 0x407a31
mov eax, dword [ebp - 0x24]
call fcn.00437305
ret
Function at 0x407a47
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARESOHUSohuVA
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407aa2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.RegisterId
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x407aa8
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, eax
cmp esi, 1
push edi
jle 0x407b81
push 0x34
pop eax
cdq
idiv esi
and dword [ebp - 4], 0
add eax, 6
mov dword [ebp - 0x18], eax
lea eax, [ecx + esi*4 - 4]
mov edi, dword [eax]
dec esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
sub dword [ebp - 4], 0x61c88647
mov eax, dword [ebp - 4]
shr eax, 2
and eax, 3
xor edx, edx
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], edx
jbe 0x407b39
mov esi, dword [ecx + edx*4 + 4]
mov ebx, edi
shr ebx, 5
shl edi, 4
mov eax, esi
shl eax, 2
xor eax, ebx
mov ebx, esi
xor esi, dword [ebp - 4]
shr ebx, 3
xor ebx, edi
mov edi, edx
and edi, 3
xor edi, dword [ebp - 8]
add eax, ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + edi*4]
xor edi, dword [ebp - 0xc]
add edi, esi
xor eax, edi
add dword [ecx + edx*4], eax
mov edi, dword [ecx + edx*4]
inc edx
mov dword [ebp - 0xc], edi
cmp edx, dword [ebp - 0x10]
jb 0x407af6
mov eax, dword [ecx]
mov ebx, edi
mov esi, eax
shr ebx, 5
shl esi, 2
xor esi, ebx
mov ebx, eax
xor eax, dword [ebp - 4]
and edx, 3
xor edx, dword [ebp - 8]
shl edi, 4
shr ebx, 3
xor ebx, edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + edx*4]
xor edx, dword [ebp - 0xc]
add esi, ebx
add edx, eax
mov eax, dword [ebp - 0x14]
xor esi, edx
add dword [eax], esi
dec dword [ebp - 0x18]
mov edi, dword [eax]
mov dword [ebp - 0xc], edi
jne 0x407adc
jmp 0x407c44
cmp esi, 0xffffffff
jge 0x407c44
push 0x34
neg esi
pop eax
cdq
idiv esi
mov edx, dword [ecx]
lea edi, [esi - 1]
lea esi, [ecx + esi*4 - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
add eax, 6
imul eax, eax, 0x9e3779b9
mov dword [ebp - 4], eax
mov esi, dword [ebp - 0x10]
shr eax, 2
and eax, 3
mov dword [ebp - 8], eax
test esi, esi
jbe 0x407bfb
mov eax, dword [ecx + esi*4 - 4]
mov ebx, eax
shr ebx, 5
mov edi, edx
shl edi, 2
xor edi, ebx
shl eax, 4
mov ebx, edx
xor edx, dword [ebp - 4]
shr ebx, 3
xor ebx, eax
mov eax, esi
and eax, 3
xor eax, dword [ebp - 8]
add edi, ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + eax*4]
xor eax, dword [ecx + esi*4 - 4]
add eax, edx
xor edi, eax
sub dword [ecx + esi*4], edi
mov edx, dword [ecx + esi*4]
dec esi
jne 0x407bbd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ebx, eax
mov edi, edx
shr ebx, 5
shl edi, 2
xor edi, ebx
mov ebx, edx
shl eax, 4
and esi, 3
xor esi, dword [ebp - 8]
shr ebx, 3
xor ebx, eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + esi*4]
mov eax, dword [ebp - 0x14]
xor esi, dword [eax]
mov eax, dword [ebp - 4]
xor edx, eax
add esi, edx
add edi, ebx
xor edi, esi
sub dword [ecx], edi
mov edx, dword [ecx]
add eax, 0x61c88647
mov dword [ebp - 4], eax
jne 0x407bad
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408606
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40861d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x408652
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40864e
cmp edi, eax
jae 0x408652
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x408640
cmp edi, eax
jb 0x408656
xor eax, eax
jmp 0x40865f
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x408b0c
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xd8]
mov eax, dword [eax]
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x408b30
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x7c]
pop edi
pop esi
ret 8

Function at 0x409a0b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
mov esi, ecx
cmp eax, 0x100
je 0x409a28
cmp eax, 0x104
jne 0x409ac2
push dword [edi]
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x409a45
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp dword [edi], eax
jne 0x409a8a
cmp dword [edi + 8], 0x1b
jne 0x409a59
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x7c]
xor eax, eax
inc eax
jmp 0x409ac4
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push 0xa4
call ebx
push 0xa5
movzx ebp, ax
call ebx
movzx ecx, ax
mov eax, 0x8000
test eax, ebp
pop ebp
pop ebx
jne 0x409a84
test eax, ecx
je 0x409a8a
cmp dword [edi + 8], 0x73
je 0x409a4b
push dword [edi]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x409ac2
push edi
push dword [edi + 8]
push 0x87
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x409ac2
cmp dword [edi + 8], 9
jne 0x409ac2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x41529d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4152ab
push 0xd
pop eax
jmp 0x4152de
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4152b2
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x415740
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.00415702
mov ebx, eax
cmp ebx, edi
je 0x4157a6
cmp dword [ebp - 0x214], edi
je 0x41579f
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41583e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4157ce
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00415740
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x41584f
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x4157ae
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x415819
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.004158bc
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x41583c
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043465f
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x415863
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x41583e

Function at 0x4158bc
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x45ea58], 0
jne 0x4158ec
push 0x44dba8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4158e5
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45ea5c], eax
mov byte [0x45ea58], 1
mov eax, dword [0x45ea5c]
test eax, eax
je 0x415904
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x415910
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x419ad9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4467aa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x45a040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, esi
call fcn.0040e4ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
add esi, 0x98
push esi
call fcn.00402ca0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a626
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4467aa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x45a040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 4]
cmp dword [ebp + 8], eax
jne 0x41a66e
push 0x44c7b0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
add esi, 0x98
push esi
mov dword [esp + 0x20], 7
call fcn.00402ca0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41a6a8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446a82
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x45a040]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xa4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jne 0x41a712
mov eax, dword [eax]
add eax, 4
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
add eax, 4
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x41a79a
mov eax, dword [0x45d8cc]
mov ecx, 0x45d8cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
add ecx, 4
lea eax, [esp + 0x10]
call fcn.0041b481
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], edi
jne 0x41a792
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x41a792
mov eax, dword [esi + 0xa4]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xa4]
mov eax, dword [eax]
add eax, 4
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 4]
push 0x53
push edi
push edi
push edi
push edi
add eax, 4
push edi
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebx - 0x10]
call fcn.004045ea
mov dword [esp + 0x14], vtable.shui::CSHSignalArgs.0
lea eax, [esp + 0x14]
push eax
push esi
add esi, 0x98
mov dword [esp + 0x48], 1
push esi
mov dword [esp + 0x28], 8
call fcn.00402ca0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4