joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403318
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403335
mov dword [ebp - 8], RegDeleteValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403344
mov ebx, 0x4183ac
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403359
mov ecx, dword [0x44aa78]
add ecx, eax
push ecx
call fcn.00403546
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403514
test eax, eax
je 0x403502
test byte [ebp + 0x17], 0x80
je 0x4034a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4142e0
mov dword [ebp - 0xc], eax
call fcn.004063c5
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40350a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4033a9
mov esi, dword [ebp + 0x14]
mov edi, 0x4143ac
push esi
push edi
call fcn.00403514
test eax, eax
je 0x403502
sub dword [ebp + 0x14], esi
mov dword [0x4142f8], edi
mov dword [0x4142fc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4142e0
mov dword [0x414300], ebx
mov dword [0x414304], eax
call fcn.004063e7
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4034a0
mov esi, dword [0x414300]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409808], 1
mov edi, eax
je 0x40344b
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403418
cmp dword [ebp + 0x14], 0
jne 0x40344b
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405244
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403495
cmp dword [ebp + 0x10], eax
jne 0x403474
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034a4
cmp dword [ebp - 0x10], esi
jne 0x4034a4
add dword [ebp - 4], esi
jmp 0x40348a
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x414300]
jl 0x40350a
cmp dword [ebp - 0x14], 1
je 0x40350a
jmp 0x4033cc
cmp dword [ebp + 0x14], eax
jg 0x40339c
jmp 0x40350a
push 0xfffffffffffffffc
jmp 0x403504
push 0xfffffffffffffffe
jmp 0x403504
test edi, edi
jne 0x4034ef
cmp dword [ebp + 0x14], 0
jle 0x40350a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4034bd
mov esi, dword [ebp + 0x14]
mov edi, 0x4143ac
push esi
push edi
call fcn.00403514
test eax, eax
je 0x403502
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034a4
cmp esi, dword [ebp + 0x10]
jne 0x4034a4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x4034ac
cmp dword [ebp + 0x14], esi
jge 0x4034f7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403514
test eax, eax
jne 0x403507
push 0xfffffffffffffffd
pop eax
jmp 0x40350d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403c0b
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x47b000], 0
push ebx
push ebp
push esi
push edi
mov ebx, 0xffff
mov ebp, 0x47b000
je 0x403c2b
push ebp
call fcn.00405ec7
jmp 0x403c31
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x44aa64]
mov eax, edi
dec edi
test eax, eax
je 0x403c8d
mov eax, dword [0x44aa28]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x44aa60]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403c75
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403c59
jmp 0x403c8d
mov eax, dword [esi + 2]
mov dword [0x446a00], eax
mov eax, dword [esi + 6]
mov dword [0x44aac8], eax
lea eax, [esi + 0xa]
mov dword [0x4469fc], eax
cmp dword [0x4469fc], 0
jne 0x403ca8
cmp bx, 0xffff
jne 0x403ca4
mov ebx, 0x3ff
jmp 0x403c37
xor ebx, ebx
jmp 0x403c37
movzx eax, word [esi]
push eax
push ebp
call fcn.00405eae
push 0xfffffffffffffffe
push 0x446a20
call fcn.00405f6f
push eax
push dword [0x4343c0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44aa4c]
mov esi, dword [0x44aa48]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403cfc
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403cf5
push eax
push ebx
call fcn.00405f6f
add esi, edi
add ebx, edi
dec ebp
jne 0x403ce8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405769
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x4393e8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40578d
test al, 0x10
jne 0x405790
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x4393e8
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057bb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40584a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405b30
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x40587e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44aaa8], eax
jmp 0x405a47
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x40589c
test eax, eax
je 0x4059cb
test byte [ebp + 0xc], 2
je 0x4059cb
mov esi, 0x4353e8
push edi
push esi
call fcn.00405f51
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4058bc
push str..
push esi
call ebx
jmp 0x4058c2
push edi
call fcn.00405a95
push 0x409228
push edi
call ebx
push edi
call fcn.00405f62
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059c1
cmp byte [ebp - 0x118], 0x2e
jne 0x405910
cmp byte [ebp - 0x117], 0x2e
je 0x4059a4
cmp byte [ebp - 0x117], 0
je 0x4059a4
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f51
test byte [ebp - 0x144], 0x10
je 0x40593b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059a4
push dword [ebp + 0xc]
push edi
call fcn.0040584a
jmp 0x4059a4
push edi
push str.Delete:_DeleteFile___s__
call fcn.004062f5
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40599c
test byte [ebp + 0xc], 4
push edi
je 0x405988
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004062f5
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405244
push 0
push edi
call fcn.00405c8d
jmp 0x4059a4
push str.Delete:_DeleteFile_failed___s__
call fcn.004062f5
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x4059a4
push edi
push 0xfffffffffffffff2
call fcn.00405244
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058ed
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059cb
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a47
cmp dword [ebp - 4], esi
push edi
jne 0x4059ed
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004062f5
inc dword [0x44aaa8]
pop ecx
pop ecx
jmp 0x405a47
call fcn.00406311
test eax, eax
je 0x405a47
push edi
call fcn.00405a4d
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004062f5
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a3f
test byte [ebp + 0xc], 4
push edi
je 0x405a38
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004062f5
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00405244
push esi
push edi
call fcn.00405c8d
jmp 0x405a47
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059de
push edi
push 0xffffffffffffffe5
call fcn.00405244
pop edi
pop esi
leave
ret 8
Function at 0x405b30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4373e8
push esi
call fcn.00405f51
push esi
call fcn.00405ae1
test eax, eax
jne 0x405b4f
xor eax, eax
jmp 0x405b9e
test byte [0x44aa30], 0x80
je 0x405b63
mov cl, byte [eax]
test cl, cl
je 0x405b4b
cmp cl, 0x5c
je 0x405b4b
mov edi, eax
sub edi, esi
push esi
call fcn.00405f62
cmp eax, edi
push esi
jle 0x405b88
call fcn.00406311
test eax, eax
je 0x405b80
test byte [eax], 0x10
je 0x405b4b
push esi
call fcn.00405a95
jmp 0x405b67
call fcn.00405a4d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c15
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x405c44
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c89
mov eax, edi
dec edi
test eax, eax
jne 0x405c4f
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c83
Function at 0x405c8d
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cc5
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405cc5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e0a
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x439d70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x439d70
je 0x405d09
push 1
push 0
push esi
call fcn.00405c15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e10
cmp eax, edi
jg 0x405e10
mov esi, 0x439970
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e10
cmp eax, edi
jg 0x405e10
push esi
push ebp
push str._s_s_r_n
push 0x439570
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e0a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405df2
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405de6
push str._Rename__r_n
push edi
call fcn.00405ba3
test eax, eax
jne 0x405e17
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00405f51
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x439570
push eax
call fcn.00405bef
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44aab0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4099bc
push eax
call fcn.00405ba3
test eax, eax
je 0x405dcd
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405e40
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405e33
sub eax, edi
jmp 0x405dcf
Function at 0x405e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
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 0x405ea8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e97
cmp dword [ebp + 0x14], 1
je 0x405e99
cmp dword [ebp + 0x14], 2
je 0x405e99
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406257
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40627c
mov eax, dword [0x4098b8]
cmp eax, 0xffffffff
je 0x406273
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x4098b8], 0xffffffff
jmp 0x4062f0
cmp dword [0x43a980], ebx
je 0x4062f0
cmp byte [0x43a580], bl
je 0x4062bb
cmp dword [0x4098b8], 0xffffffff
jne 0x4062c4
push 4
push 0x40000000
push 0x43a580
call fcn.00405c15
cmp eax, 0xffffffff
mov dword [0x4098b8], eax
je 0x4062f0
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x4098b8], 0xffffffff
je 0x4062f0
push esi
mov esi, 0x43e9c0
push 0x409a8c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f62
push eax
push esi
push dword [0x4098b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43a174], esi
push edi
jne 0x406389
mov ecx, 0x43a170
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406365
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43a570
jl 0x406360
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4063be
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43a170]
xor eax, esi
inc ecx
dec edx
jne 0x4063a1
pop edi
pop esi
not eax
ret 0xc
Function at 0x409730
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x472ccb
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.0046762c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4097b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046531d
mov eax, dword [eax]
push 0x48c1e0
push eax
call fcn.00458194
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004678b7
test bl, bl
je 0x4097b2
push 0x48c1e0
lea ecx, [esp + 0xc]
call fcn.00467c47
push 0x48fd54
lea ecx, [esp + 0xc]
call fcn.00467c47
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 0x4097ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004678b7
jmp 0x4098b9
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 0x409872
lea edx, [esp + 0x7c]
push 0x48fd50
push edx
call fcn.00458194
add esp, 8
test eax, eax
je 0x409872
lea eax, [esp + 0x7c]
push 0x48fd4c
push eax
call fcn.00458194
add esp, 8
test eax, eax
je 0x409872
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 0x409802
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.004678b7
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 0x40a0b0
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 0x40a112
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 0x40a120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x472d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49bae8]
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 0x40a258
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a186
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004678b7
xor eax, eax
jmp 0x40a2cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004679f4
push esi
lea ecx, [esp + 0xc]
call fcn.00467c83
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 0x40a2ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040a0b0
test eax, eax
jne 0x40a2ad
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.0040a0b0
test eax, eax
jne 0x40a2ad
lea eax, [esp + 0x14]
push 0x48fd68
push eax
call fcn.004591d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a28c
lea ecx, [esp + 0x14]
push 0x48fd64
push ecx
call fcn.00459150
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a28c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a28f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004679a4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a19e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004678b7
xor eax, eax
jmp 0x40a2cf
mov byte [esi], 0
push 0x48fd60
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.004678b7
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 0x41ab90
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 0x41abfe
cmp si, 0x69
ja 0x41abfe
add esi, 0xffd0
cmp si, 0x11
je 0x41abce
push 0x11
call edi
test ax, ax
jge 0x41abce
or esi, 0x2000
cmp si, 0x10
je 0x41abe3
push 0x10
call edi
test ax, ax
jge 0x41abe3
or esi, 0x4000
cmp si, 0x12
je 0x41abf8
push 0x12
call edi
test ax, ax
jge 0x41abf8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41ac0b
mov esi, 0xbd
jmp 0x41abbf
cmp si, 0x6e
jne 0x41ac18
mov esi, 0xbe
jmp 0x41abbf
cmp si, 0x6f
jne 0x41abb9
mov esi, 0xbf
jmp 0x41abbf

Function at 0x41c270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ac168]
xor edx, edx
cmp eax, edx
jne 0x41c296
xor eax, eax
mov byte [eax + 0x4ac068], al
inc eax
cmp eax, 0x100
jl 0x41c27e
mov dword [0x4ac168], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ac068
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c327
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 0x41c2fa
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 0x41c2c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c3a0
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 0x41c3f3
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 0x41c3da
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