joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432ed9
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00405a58
mov eax, dword [esp + 0x248]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x24c]
mov dword [eax + 8], ebx
cmp dword [esp + 0x244], ebx
je 0x432f8f
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
je 0x432f8f
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 3
push 0x30
push esi
call edi
test eax, eax
jne 0x432f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x432f88
mov eax, dword [esp + 0x14]
push 0x44e088
xor edx, edx
push 0x24
pop ebp
div ebp
xor ecx, ecx
inc eax
mul ebp
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004100d6
mov ebp, eax
pop ecx
pop ecx
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x432f9e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret 0xc
mov eax, dword [esp + 0x14]
push 0x24
pop ecx
xor edx, edx
div ecx
inc eax
imul eax, eax, 0x24
push eax
push ebx
push ebp
call fcn.004127f0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push ebp
push 3
push 0x30
push esi
call edi
test eax, eax
jne 0x432fe7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call fcn.004100d1
pop ecx
jmp 0x432f8f
cmp dword [esp + 0x18], ebx
jbe 0x43305b
mov esi, dword [esp + 0x248]
push 0x24
mov edi, ebp
mov ebp, dword [esp + 0x250]
pop eax
cmp dword [edi], 0
je 0x43304a
lea eax, [esp + 0x28]
push eax
push dword [edi]
call fcn.00432d54
test al, al
je 0x433047
mov ecx, dword [esp + 0x244]
call fcn.004078bb
push eax
push dword [esp + 0x248]
lea ecx, [esp + 0x30]
call fcn.0040cc31
test eax, eax
jne 0x433047
cmp dword [edi + 0xc], 1
push dword [edi]
mov ecx, ebp
je 0x433042
mov ecx, esi
call fcn.0040e316
push 0x24
pop eax
inc ebx
add edi, eax
cmp ebx, dword [esp + 0x18]
jb 0x433000
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call fcn.004100d1
xor eax, eax
pop ecx
inc eax
jmp 0x432f91
Function at 0x433071
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
lea ecx, [ebp - 0x21c]
push ebx
push esi
push edi
call fcn.00405a58
push 0
push 2
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4330be
lea eax, [ebp - 0x44c]
push eax
push esi
mov dword [ebp - 0x44c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4330c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
push dword [ebp - 0x444]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x433122
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x433117
lea ecx, [ebp - 0x21c]
call fcn.004059ee
push dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.0040cc5c
test eax, eax
setns bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x433134
lea eax, [ebp - 0x44c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4330c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4330c0

Function at 0x43356a
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
mov edi, ecx
push 0x7f
lea ebp, [edi + 0x20]
push ebp
push dword [edi + 0x324]
call esi
push 0x3f
lea ebx, [edi + 0x220]
push ebx
push dword [edi + 0x56c]
call esi
push 0x3f
lea eax, [edi + 0x2a0]
push eax
push dword [edi + 0x590]
call esi
xor esi, esi
cmp word [ebx], si
je 0x4335d0
lea eax, [edi + 0x2a0]
push eax
push ebx
push 0x445a90
lea eax, [edi + 0x120]
push 0x80
push eax
call fcn.00409cfd
add esp, 0x14
jmp 0x4335d9
xor eax, eax
mov word [edi + 0x120], ax
cmp word [ebp], si
jne 0x4335f7
push dword [edi + 0x324]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x4335f9
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x433c4c
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x41c
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov word [esp + 0x224], ax
xor ebx, ebx
lea eax, [esp + 0x226]
push ebx
push eax
mov esi, ecx
call fcn.004127f0
add esp, 0xc
cmp dword [esi + 0x20], ebx
je 0x433dec
cmp dword [esi + 0x24], 0x400
jb 0x433dec
lea eax, [esp + 0x220]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x433dec
lea eax, [esp + 0x220]
push eax
push str._sMetaQuotes
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.00409cfd
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call edi
cmp eax, 0xffffffff
jne 0x433ce8
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x18]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test al, 1
je 0x433d05
push 0x80
lea eax, [esp + 0x1c]
push eax
call ebp
lea eax, [esp + 0x220]
push eax
push str._sMetaQuotesWebInstall
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.00409cfd
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call edi
cmp eax, 0xffffffff
jne 0x433d3c
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x18]
push eax
call edi
test al, 1
je 0x433d53
push 0x80
lea eax, [esp + 0x1c]
push eax
call ebp
push esi
lea eax, [esp + 0x224]
push eax
push 0x445aac
lea eax, [esp + 0x24]
push 0x104
or ebp, 0xffffffff
push eax
mov dword [esp + 0x24], 0x442514
mov dword [esp + 0x28], ebp
call fcn.00409cfd
add esp, 0x10
lea eax, [esp + 0x1c]
push 2
push ecx
push 0x40000000
push eax
lea ecx, [esp + 0x24]
call fcn.00409510
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
je 0x433ddb
push dword [esi + 0x24]
lea ecx, [esp + 0x14]
push dword [esi + 0x20]
call fcn.004093db
cmp eax, dword [esi + 0x24]
mov esi, dword [esp + 0x14]
je 0x433dd0
cmp esi, ebp
je 0x433dc3
push esi
call edi
mov esi, ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x433de1
cmp esi, ebp
je 0x433ddf
push esi
call edi
mov esi, ebp
jmp 0x433ddf
mov esi, dword [esp + 0x14]
mov bl, 1
cmp esi, ebp
je 0x433de8
push esi
call edi
mov al, bl
jmp 0x433dee
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
Function at 0x433df9
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x440], ax
xor ebx, ebx
lea eax, [ebp - 0x43e]
push ebx
push eax
mov esi, ecx
call fcn.004127f0
add esp, 0xc
xor eax, eax
push 8
pop ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x20], eax
je 0x433e45
push dword [esi + 0x20]
call fcn.004100d1
pop ecx
mov dword [esi + 0x20], ebx
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x433e62
xor al, al
jmp 0x433f10
push esi
lea eax, [ebp - 0x440]
push eax
push 0x445aac
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.00409cfd
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x433e5b
mov eax, dword [esi + 0x24]
sub eax, 0x2b1
cmp dword [ebp - 0x10], eax
je 0x433eb5
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x433e5b
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x442514
mov dword [ebp - 4], ebx
call fcn.0040f460
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x20], ecx
cmp eax, dword [ebp - 0x10]
jne 0x433ef2
test ecx, ecx
je 0x433ef2
add dword [esi + 0x24], 0xfffffd4f
mov bl, 1
jmp 0x433eff
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], 0xffffffff
je 0x433f0e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434e09
Capabilities:
Terminate thread

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x435014
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x435014
lea ecx, [esi + 0x888]
call fcn.0040967a
test al, al
jne 0x435014
mov ecx, esi
call fcn.0043501e
cmp dword [esp + 0x1c], 4
sbb eax, eax
neg eax
xor edi, edi
add eax, 4
mov dword [esi + 0x9a8], eax
push edi
cmp dword [esi + 0xc44], edi
jne 0x434e81
call fcn.00412284
pop ecx
push eax
push dword [esi + 0x9a8]
lea eax, [esi + 0x918]
push str._files_mt_d_cdn.txt__u
push eax
call fcn.00409413
add esp, 0x10
jmp 0x434ea8
call fcn.00412284
pop ecx
push eax
push dword [esi + 0xc44]
lea eax, [esi + 0x918]
push dword [esi + 0x9a8]
push str._files_mt_d__d_cdn.txt__u
push eax
call fcn.00409413
add esp, 0x14
mov eax, dword [esp + 0x1c]
push 1
pop ebx
dec eax
je 0x434f14
dec eax
je 0x434efc
dec eax
je 0x434ee4
dec eax
je 0x434edc
dec eax
je 0x434ed4
dec eax
je 0x434ecc
dec eax
jne 0x434f36
push ecx
push str.mt4clwmulti_
jmp 0x434f25
push ecx
push str.mt4clw_mt4clwdata_
jmp 0x434f25
push ecx
push str.mt4man_
jmp 0x434f25
push ecx
push str.mt4adm_
jmp 0x434f25
push ecx
mov edx, 0x80
cmp ebp, ebx
jne 0x434ef5
push str.mt5clw_mt5clwdata_mt5clwide_mt5clwtst_
jmp 0x434f2a
push str.mt5clw64_mt5clwdata_mt5clwide64_mt5clwtst64_
jmp 0x434f2a
push ecx
mov edx, 0x80
cmp ebp, ebx
jne 0x434f0d
push str.mt5man_
jmp 0x434f2a
push str.mt5man64_
jmp 0x434f2a
push ecx
cmp ebp, ebx
jne 0x434f20
push str.mt5adm_
jmp 0x434f25
push str.mt5adm64_
mov edx, 0x80
push ecx
lea ecx, [esi + 0xbac]
call fcn.00422fc3
sub esp, 0x10
lea ecx, [esi + 8]
call fcn.0043225e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x434fe6
cmp word [eax], di
je 0x434fe6
push eax
lea eax, [esi + 0x9ac]
push pe_nt_image_headers32
push eax
call fcn.0041063b
add esp, 0xc
mov ecx, esi
push 0x100000
push esi
push 0x4349e6
call fcn.0040ab02
push 0x2710
mov ecx, esi
call fcn.0040b008
test al, al
jne 0x434fa8
cmp dword [esi + 4], edi
je 0x434fa8
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
push 0xc58
call fcn.004101ca
pop ecx
test eax, eax
je 0x434fd2
push dword [esi + 0xc50]
mov ecx, eax
push dword [esi + 0xc44]
push dword [edi + 0x44dc70]
call fcn.00434bf4
jmp 0x434fd4
xor eax, eax
add edi, 4
mov dword [esi + 0xc50], eax
cmp edi, 0x24
jb 0x434fa8
xor edi, edi
jmp 0x434ff8
push 0x100000
push esi
push 0x4349e6
mov ecx, esi
call fcn.0040ab02
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x435010
push ebx
push ebp
push dword [esp + 0x24]
push edi
call fcn.00434e09
mov bl, al
mov al, bl
jmp 0x435016
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x43501e
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, esi
call fcn.00434a29
push 0x7d0
mov ecx, esi
call fcn.0040b008
test al, al
jne 0x435056
cmp dword [esi + 4], 0
je 0x435056
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov esi, dword [esi + 0xc50]
test esi, esi
jne 0x435021
pop esi
ret

Function at 0x4353ff
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
lea eax, [ebp - 0x58]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.004094af
cmp eax, 0x40
jne 0x43556d
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x43556d
mov eax, dword [ebp - 0x1c]
cdq
push ebx
push edx
push eax
mov ecx, esi
call fcn.0040945f
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edi, edx
cdq
cmp ecx, eax
jne 0x43556d
cmp edi, edx
jne 0x43556d
push 4
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.004094af
cmp eax, 4
jne 0x43556d
cmp dword [ebp - 4], 0x4550
jne 0x43556d
push 0x14
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004094af
cmp eax, 0x14
jne 0x43556d
mov edi, 0x14c
cmp word [ebp - 0x18], di
je 0x4354bd
mov eax, 0x8664
cmp word [ebp - 0x18], ax
jne 0x43556d
xor eax, eax
push 0xde
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x136]
push ebx
push eax
call fcn.004127f0
add esp, 0xc
xor eax, eax
push 0xee
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push ebx
push eax
call fcn.004127f0
add esp, 0xc
mov ecx, esi
push 1
push ebx
push ebx
cmp word [ebp - 0x18], di
jne 0x435538
call fcn.0040945f
mov edi, 0xe0
push edi
lea eax, [ebp - 0x138]
push eax
mov ecx, esi
call fcn.004094af
cmp eax, edi
jne 0x43556d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xb4]
mov dword [ecx + 4], eax
jmp 0x435569
call fcn.0040945f
mov edi, 0xf0
push edi
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.004094af
cmp eax, edi
jne 0x43556d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x198]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x194]
mov dword [edx + 4], ecx
mov al, 1
jmp 0x43556f
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40af00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x494cab
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.00489918
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40af82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004877f2
mov eax, dword [eax]
push 0x4b2c74
push eax
call fcn.004799a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00489ba3
test bl, bl
je 0x40af82
push 0x4b2c74
lea ecx, [esp + 0xc]
call fcn.00489f33
push 0x4b2c80
lea ecx, [esp + 0xc]
call fcn.00489f33
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 0x40afbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00489ba3
jmp 0x40b089
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 0x40b042
lea edx, [esp + 0x7c]
push 0x4b2c7c
push edx
call fcn.004799a4
add esp, 8
test eax, eax
je 0x40b042
lea eax, [esp + 0x7c]
push 0x4b2c78
push eax
call fcn.004799a4
add esp, 8
test eax, eax
je 0x40b042
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 0x40afd2
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.00489ba3
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 0x40b890
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 0x40b8f2
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 0x40b900
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x494d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c2010]
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 0x40ba38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b966
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489ba3
xor eax, eax
jmp 0x40baaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00489ce0
push esi
lea ecx, [esp + 0xc]
call fcn.00489f6f
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 0x40ba8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040b890
test eax, eax
jne 0x40ba8d
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 accept
mov ecx, edi
call fcn.0040b890
test eax, eax
jne 0x40ba8d
lea eax, [esp + 0x14]
push 0x4b2c90
push eax
call fcn.0047aa40
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ba6c
lea ecx, [esp + 0x14]
push 0x4b2c8c
push ecx
call fcn.0047a9c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ba6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ba6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00489c90
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b97e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00489ba3
xor eax, eax
jmp 0x40baaf
mov byte [esi], 0
push 0x4b2c88
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.00489ba3
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 0x41c9b0
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 0x41ca1e
cmp si, 0x69
ja 0x41ca1e
add esi, 0xffd0
cmp si, 0x11
je 0x41c9ee
push 0x11
call edi
test ax, ax
jge 0x41c9ee
or esi, 0x2000
cmp si, 0x10
je 0x41ca03
push 0x10
call edi
test ax, ax
jge 0x41ca03
or esi, 0x4000
cmp si, 0x12
je 0x41ca18
push 0x12
call edi
test ax, ax
jge 0x41ca18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41ca2b
mov esi, 0xbd
jmp 0x41c9df
cmp si, 0x6e
jne 0x41ca38
mov esi, 0xbe
jmp 0x41c9df
cmp si, 0x6f
jne 0x41c9d9
mov esi, 0xbf
jmp 0x41c9df

Function at 0x41e2c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d2790]
xor edx, edx
cmp eax, edx
jne 0x41e2e6
xor eax, eax
mov byte [eax + 0x4d2690], al
inc eax
cmp eax, 0x100
jl 0x41e2ce
mov dword [0x4d2790], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d2690
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e377
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 0x41e34a
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 0x41e318
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e3f0
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 0x41e443
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 0x41e42a
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