joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb80
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
mov eax, dword [eax + 4]
push esi
add eax, 0xfffffe00
push edi
cmp eax, 8
mov esi, ecx
ja case.0x40eb9c.515
jmp dword [eax*4 + 0x40ed08]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ecx, dword [esi + 0x1c]
mov edi, eax
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ec33
mov eax, dword [esi + 0x25c]
cmp edi, eax
je case.0x40eb9c.515
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.0x40eb9c.515
mov eax, dword [esi + 0x25c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne case.0x40eb9c.515
mov ecx, esi
call fcn.0040eb30
mov dword [esi + 0x25c], 0
pop edi
pop esi
add esp, 0x18
ret 4
test edi, edi
je case.0x40eb9c.515
mov eax, dword [esi + 0x25c]
cmp edi, eax
je case.0x40eb9c.515
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ec85
mov edx, dword [esi + 0x25c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x40ec85
mov dword [esi + 0x25c], eax
push 0
push edi
mov ecx, esi
call fcn.0040e570
test eax, eax
je case.0x40eb9c.515
jmp 0x40ece7
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edi, eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40eccd
cmp edi, dword [esi + 0x25c]
je case.0x40eb9c.515
jmp 0x40ec1a
test edi, edi
je case.0x40eb9c.515
cmp edi, dword [esi + 0x25c]
je case.0x40eb9c.515
push 0
push edi
mov ecx, esi
call fcn.0040e570
test eax, eax
je case.0x40eb9c.515
push 0x2ee0
push 0x190
push edi
mov ecx, esi
mov dword [esi + 0x25c], edi
call fcn.0040e9d0
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x41d3a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44c0b8
cmp edx, dword [eax]
je 0x41d3c3
add eax, 8
inc ecx
cmp eax, 0x44c148
jl 0x41d3b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44c0b8]
jne 0x41d4f1
mov eax, dword [0x451c1c]
cmp eax, 1
je 0x41d4cb
test eax, eax
jne 0x41d3f4
cmp dword [0x44b608], 1
je 0x41d4cb
cmp edx, 0xfc
je 0x41d4f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d42b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41d46e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4401b8
push edi
call fcn.0041cb80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d740
lea eax, [ebp - 0xa0]
push 0x440198
push eax
call fcn.0041d740
push dword [esi + 0x44c0bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d740
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f2b4
add esp, 0x2c
pop edi
jmp 0x41d4f1
lea eax, [ebp + 8]
lea esi, [esi + 0x44c0bc]
push 0
push eax
push dword [esi]
call fcn.0041c370
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4213f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call fcn.004297c9
add esp, 0xc
ret
Function at 0x4216d0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4216de
mov dword [eax], 0
push ebx
mov ebx, dword [esp + 8]
push ebp
push ebx
call fcn.00421af0
mov ebp, dword [esp + 0x28]
add esp, 4
cmp ebp, 0x493e0
mov dword [0x451ff4], 0
jb 0x42170b
cmp ebp, 0x6ddd00
jbe 0x421710
mov ebp, 0x36ee80
push esi
push edi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x118], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x1e1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov byte [edx], 0
test edi, edi
je 0x421798
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx + 0x161]
push 0x80
push eax
mov byte [eax], 0
call sub.WSOCK32.dll_gethostname
lea esi, [ebx + 0x1f4]
push esi
call fcn.004214a0
push ebx
push 0x421840
mov dword [ebx], 0
call fcn.004213f0
push ebp
push esi
call fcn.004214c0
mov al, byte [ebx]
add esp, 0x14
test al, 2
pop edi
pop esi
mov dword [ebx], 0
je 0x42181c
push ebp
push ebx
call fcn.00421970
mov ecx, dword [esp + 0x28]
add esp, 8
test ecx, ecx
je 0x4217f5
mov dword [ecx], eax
cmp eax, 1
jne 0x421808
mov eax, dword [ebx]
pop ebp
or al, 1
mov dword [ebx], eax
mov eax, 1
pop ebx
ret
push ebx
mov dword [ebx], 0
call fcn.00421af0
add esp, 4
xor eax, eax
pop ebp
pop ebx
ret
push ebx
call fcn.00421af0
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x421833
mov dword [eax], 2
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x421d10
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x18]
mov eax, edi
sub eax, esi
push ebx
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x421d5a
test eax, eax
jl 0x421d5a
add esi, eax
cmp esi, edi
jge 0x421d63
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x2023
mov dword [esp + 0x10], eax
jb 0x421d27
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x423000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x423015
or eax, 0xffffffff
pop esi
mov dword [0x44cb50], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x44cb50]
test esi, esi
je 0x423042
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x44c750]
xor eax, edx
inc ecx
dec esi
jne 0x423023
pop ebx
mov dword [0x44cb50], eax
pop esi
not eax
ret

Function at 0x423220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x2000
xor eax, eax
lea edi, [esi + 0x3efc0]
push 0x10000
rep stosd dword es:[edi], eax
lea edi, [esi + 0x1efc0]
mov eax, 0x80
xor ebx, ebx
push edi
push esi
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 8
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
call fcn.00423050
add esp, 0xc
cmp eax, 1
mov dword [esi + 0x20], eax
jge 0x423282
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 0x106
mov dword [esi + 0x1c], ebx
jae 0x4232a4
cmp dword [esi + 0x1c], ebx
jne 0x4232a4
push esi
call fcn.004232d0
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, 0x106
jb 0x42328c
mov dword [esi + 0xc], ebx
xor eax, eax
mov edx, dword [esi + 0xc]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x1ff
and ecx, 0x3fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0xc], ecx
jb 0x4232a9
pop edi
pop esi
pop ebx
ret
Function at 0x429120
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00416b60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4291eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4291eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42919e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4291a9
or bh, 8
and edi, 0x8000000
je 0x4291c4
mov eax, dword [0x45361c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4291eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4295c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4295eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42960f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42962a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42c5f8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42c630
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.0042f993
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042f96b
jmp 0x42c63c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42dc94
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 0x42dcd6
call fcn.00436619
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42dcd6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42dccd
xor eax, eax
jmp 0x42dcde
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042dce4
pop edi
pop esi
pop ebx
ret 4

Function at 0x437122
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 0x437150
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43716e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00437088
jmp 0x43716e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43716e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00437088
test edi, edi
mov eax, edi
jne 0x437158
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40e2c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47301b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004676f3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e342
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046539d
mov eax, dword [eax]
push 0x5531d0
push eax
call fcn.00457844
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046797e
test bl, bl
je 0x40e342
push 0x5531d0
lea ecx, [esp + 0xc]
call fcn.00467d0e
push 0x556d44
lea ecx, [esp + 0xc]
call fcn.00467d0e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40e37e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046797e
jmp 0x40e449
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40e402
lea edx, [esp + 0x7c]
push 0x556d40
push edx
call fcn.00457844
add esp, 8
test eax, eax
je 0x40e402
lea eax, [esp + 0x7c]
push 0x556d3c
push eax
call fcn.00457844
add esp, 8
test eax, eax
je 0x40e402
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40e392
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046797e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40ec60
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ecc2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ecd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47309b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55d440]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40ee08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ed36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046797e
xor eax, eax
jmp 0x40ee7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00467abb
push esi
lea ecx, [esp + 0xc]
call fcn.00467d4a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ee5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ec60
test eax, eax
jne 0x40ee5d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040ec60
test eax, eax
jne 0x40ee5d
lea eax, [esp + 0x14]
push 0x556d58
push eax
call fcn.00458880
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ee3c
lea ecx, [esp + 0x14]
push 0x556d54
push ecx
call fcn.00458800
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ee3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ee3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00467a6b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ed4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046797e
xor eax, eax
jmp 0x40ee7f
mov byte [esi], 0
push 0x556d50
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046797e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x425470
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4254de
cmp si, 0x69
ja 0x4254de
add esi, 0xffd0
cmp si, 0x11
je 0x4254ae
push 0x11
call edi
test ax, ax
jge 0x4254ae
or esi, 0x2000
cmp si, 0x10
je 0x4254c3
push 0x10
call edi
test ax, ax
jge 0x4254c3
or esi, 0x4000
cmp si, 0x12
je 0x4254d8
push 0x12
call edi
test ax, ax
jge 0x4254d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4254eb
mov esi, 0xbd
jmp 0x42549f
cmp si, 0x6e
jne 0x4254f8
mov esi, 0xbe
jmp 0x42549f
cmp si, 0x6f
jne 0x425499
mov esi, 0xbf
jmp 0x42549f

Function at 0x426cb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56db70]
xor edx, edx
cmp eax, edx
jne 0x426cd6
xor eax, eax
mov byte [eax + 0x56da70], al
inc eax
cmp eax, 0x100
jl 0x426cbe
mov dword [0x56db70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56da70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x426d67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x426d3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x426d08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x426de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x426e33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x426e1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret