joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afb84
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4afbbc
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.004adc3b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004adc13
jmp 0x4afbc8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b1276
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 0x4b12b8
call fcn.004b6ff4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b12b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b12af
xor eax, eax
jmp 0x4b12c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b12c6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b7524
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 0x4b7552
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b7570
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b748a
jmp 0x4b7570
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b7570
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b748a
test edi, edi
mov eax, edi
jne 0x4b755a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42e9b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040574e
cmp eax, ebx
je 0x401524
push ebx
push dword [0x42e9b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e9b0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x402f6a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x435c00
push esi
add eax, 0x3e8
push ebx
mov dword [0x42e920], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.004054db
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x409010], edi
jne 0x402fc4
mov eax, 0x40733c
jmp 0x403199
push esi
mov esi, 0x434c00
push esi
call fcn.0040566b
push esi
call fcn.004057e5
push eax
push 0x436000
call fcn.0040566b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x4288f0], eax
mov esi, eax
jle 0x4030df
mov ebx, 0x416d30
mov eax, dword [0x42e92c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x403018
mov edi, eax
push edi
push ebx
call fcn.00402cf0
test eax, eax
je 0x4031a0
cmp dword [0x42e92c], 0
jne 0x4030aa
push 0x1c
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00405497
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4030b8
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x4030b8
cmp dword [ebp - 0x18], 0x74736e49
jne 0x4030b8
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x4030b8
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x4030b8
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x416d2c]
and eax, 2
or dword [0x42e9a0], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x42e92c], ecx
jg 0x4031a8
test byte [ebp + 8], 8
jne 0x40309c
test byte [ebp + 8], 4
jne 0x4030dd
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x4030b8
mov edi, esi
jmp 0x4030b8
test byte [ebp + 8], 2
jne 0x4030b8
push 0
call fcn.00402c8c
pop ecx
cmp esi, dword [0x4288f0]
jge 0x4030cd
push edi
push ebx
push dword [ebp - 8]
call fcn.00405e9f
mov dword [ebp - 8], eax
add dword [0x416d2c], edi
sub esi, edi
test esi, esi
jg 0x402ffd
xor ebx, ebx
push 1
call fcn.00402c8c
cmp dword [0x42e92c], ebx
pop ecx
je 0x4031a8
cmp dword [ebp - 4], ebx
je 0x403122
push dword [0x416d2c]
call fcn.00402d22
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402cf0
test eax, eax
je 0x4031a8
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x4031a8
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x42e92c]
add eax, 0x1c
push eax
call fcn.00402d22
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402d39
cmp eax, dword [ebp - 0x14]
jne 0x4031a8
test byte [ebp - 0x28], 1
mov dword [0x42e8cc], esi
mov eax, dword [esi]
mov dword [0x42e928], eax
je 0x403167
inc dword [0x42e924]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x40316d
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x42e8e0
call fcn.00405497
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.00402c8c
pop ecx
mov eax, 0x4072b8
jmp 0x403199
Function at 0x405344
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x42ad38
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x42ad38], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40537f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4054bb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4054d8
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4054db
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40550a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40554e
test edi, edi
jne 0x405515
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405548

Function at 0x405552
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055c3
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055b2
cmp dword [ebp + 0x14], 1
je 0x4055b4
cmp dword [ebp + 0x14], 2
je 0x4055b4
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40580c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ad80
push esi
call fcn.0040566b
push esi
call fcn.0040544a
mov edi, eax
test edi, edi
jne 0x40582d
xor eax, eax
jmp 0x405885
push edi
call fcn.0040568d
test byte [0x42e928], 0x80
je 0x405846
mov al, byte [edi]
test al, al
je 0x405829
cmp al, 0x5c
je 0x405829
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405866
push esi
call fcn.00405727
test eax, eax
je 0x405860
test byte [eax], 0x10
je 0x40588a
push esi
call fcn.004057e5
push esi
call ebx
cmp eax, edi
jg 0x405851
push esi
call fcn.004057b8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405884
Function at 0x405b3a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040574e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405b5e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405c97
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42b180], 0x4c554e
mov edi, 0x400
mov ebp, 0x42b180
je 0x405ba2
push 1
push 0
push esi
call fcn.004054db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405c9d
cmp eax, edi
jg 0x405c9d
push edi
mov esi, 0x42bac0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405c9d
cmp eax, edi
jg 0x405c9d
push esi
push ebp
push str._s_s_r_n
push 0x42b580
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42e8cc]
push dword [eax + 0x128]
push esi
call fcn.004058e4
push 4
push 0xc0000000
push esi
call fcn.004054db
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405c97
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405c90
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c90
cmp edi, dword [esp + 0x18]
jne 0x405c90
push str._Rename__r_n
push esi
call fcn.0040588e
test eax, eax
jne 0x405ca4
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.0040566b
add edi, 0xa
mov eax, edi
push ebx
push 0x42b580
add eax, esi
push eax
call fcn.00405497
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42e990]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4075ac
add eax, 0xa
push eax
call fcn.0040588e
test eax, eax
je 0x405c5b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405ccb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405cc0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405c5d
Function at 0x405cd3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040580c
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x405d08
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e988], eax
jmp 0x405e9a
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405d23
test eax, eax
je 0x405e45
test cl, 2
je 0x405e45
push edi
push ebx
mov esi, 0x42bec0
push esi
call fcn.0040566b
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405d46
push str..
push esi
call edi
jmp 0x405d4c
push ebx
call fcn.004057e5
cmp byte [ebx], 0
jne 0x405d5a
cmp byte [0x42bec0], 0x5c
jne 0x405d62
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405e3a
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405409
cmp byte [eax], 0
je 0x405da5
cmp byte [ebp - 0x18], 0
je 0x405da5
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405dbb
mov al, byte [esi + 1]
test al, al
je 0x405e19
cmp al, 0x2e
jne 0x405dbb
cmp byte [esi + 2], 0
je 0x405e19
push esi
push edi
call fcn.0040566b
test byte [ebp - 0x148], 0x10
je 0x405de0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e19
push dword [ebp + 0xc]
push ebx
call fcn.00405cd3
jmp 0x405e19
push ebx
call fcn.004054bb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405e11
test byte [ebp + 0xc], 4
je 0x405e09
push ebx
push 0xfffffffffffffff1
call fcn.0040470f
push 0
push ebx
call fcn.00405b3a
jmp 0x405e19
inc dword [0x42e988]
jmp 0x405e19
push ebx
push 0xfffffffffffffff2
call fcn.0040470f
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d87
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e44
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e99
cmp dword [ebp - 8], esi
je 0x405e89
push ebx
call fcn.00405727
test eax, eax
je 0x405e99
push ebx
call fcn.004057b8
push ebx
call fcn.004054bb
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405e91
test byte [ebp + 0xc], 4
je 0x405e89
push ebx
push 0xfffffffffffffff1
call fcn.0040470f
push esi
push ebx
call fcn.00405b3a
jmp 0x405e99
inc dword [0x42e988]
jmp 0x405e99
push ebx
push 0xffffffffffffffe5
call fcn.0040470f
pop esi
pop ebx
leave
ret 8
Function at 0x405e9f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42c2c4], 0
jne 0x405eda
xor ecx, ecx
push esi
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 0x405eb3
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405eae
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f07
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405ee8
not eax
pop ebp
ret 0xc
Function at 0x40fa30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c38b
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.00460da7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40fab2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045eb1d
mov eax, dword [eax]
push 0x5511c0
push eax
call fcn.004518f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461032
test bl, bl
je 0x40fab2
push 0x5511c0
lea ecx, [esp + 0xc]
call fcn.004613c2
push 0x554d34
lea ecx, [esp + 0xc]
call fcn.004613c2
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 0x40faee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461032
jmp 0x40fbb9
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 0x40fb72
lea edx, [esp + 0x7c]
push 0x554d30
push edx
call fcn.004518f4
add esp, 8
test eax, eax
je 0x40fb72
lea eax, [esp + 0x7c]
push 0x554d2c
push eax
call fcn.004518f4
add esp, 8
test eax, eax
je 0x40fb72
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 0x40fb02
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.00461032
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 0x4103b0
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 0x410412
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 0x410420
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c40b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55b1d0]
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 0x410558
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x410486
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461032
xor eax, eax
jmp 0x4105cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046116f
push esi
lea ecx, [esp + 0xc]
call fcn.004613fe
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 0x4105ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004103b0
test eax, eax
jne 0x4105ad
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.004103b0
test eax, eax
jne 0x4105ad
lea eax, [esp + 0x14]
push 0x554d48
push eax
call fcn.00452930
mov esi, eax
add esp, 8
test esi, esi
jne 0x41058c
lea ecx, [esp + 0x14]
push 0x554d44
push ecx
call fcn.004528b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41058c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41058f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046111f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41049e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461032
xor eax, eax
jmp 0x4105cf
mov byte [esi], 0
push 0x554d40
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.00461032
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 0x421f70
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 0x421fde
cmp si, 0x69
ja 0x421fde
add esi, 0xffd0
cmp si, 0x11
je 0x421fae
push 0x11
call edi
test ax, ax
jge 0x421fae
or esi, 0x2000
cmp si, 0x10
je 0x421fc3
push 0x10
call edi
test ax, ax
jge 0x421fc3
or esi, 0x4000
cmp si, 0x12
je 0x421fd8
push 0x12
call edi
test ax, ax
jge 0x421fd8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x421feb
mov esi, 0xbd
jmp 0x421f9f
cmp si, 0x6e
jne 0x421ff8
mov esi, 0xbe
jmp 0x421f9f
cmp si, 0x6f
jne 0x421f99
mov esi, 0xbf
jmp 0x421f9f

Function at 0x4236e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56b850]
xor edx, edx
cmp eax, edx
jne 0x423706
xor eax, eax
mov byte [eax + 0x56b750], al
inc eax
cmp eax, 0x100
jl 0x4236ee
mov dword [0x56b850], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56b750
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423797
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 0x42376a
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 0x423738
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x423810
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 0x423863
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 0x42384a
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