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

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4188a4]
mov edi, eax
sub esi, dword [0x40c7d4]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x40366a
push dword [0x4208b4]
call fcn.004036a7
push ebp
push ebp
push dword [0x40c7d4]
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4208b0], esi
mov dword [0x4188a0], ebp
mov eax, dword [0x4188a8]
mov ebx, 0x4000
sub eax, dword [0x4208b4]
cmp eax, ebx
jg 0x403507
mov ebx, eax
mov esi, 0x414860
push ebx
push esi
call fcn.00403675
test eax, eax
je 0x403635
add dword [0x4208b4], ebx
mov dword [0x40c7f0], esi
mov dword [0x40c7f4], ebx
cmp dword [0x426b28], ebp
je 0x403598
cmp dword [0x426bc0], ebp
jne 0x403598
cmp dword [esp + 0x10], ebp
je 0x403565
mov eax, dword [0x4208b0]
push ebp
sub eax, dword [0x4188a4]
sub eax, dword [esp + 0x20]
add eax, dword [0x40c7d4]
mov dword [0x4188a0], eax
call fcn.004065a0
jmp 0x403598
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403598
mov eax, dword [0x426b24]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402fc4
push ebp
push 0x6f
push dword [0x426b20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40c7d8
mov dword [0x40c7f8], 0x40c860
mov dword [0x40c7fc], 0x8000
call fcn.00406661
test eax, eax
jl 0x40363e
mov esi, dword [0x40c7f8]
mov eax, 0x40c860
sub esi, eax
je 0x4035ff
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp esi, dword [esp + 0x14]
jne 0x40363a
add dword [0x40c7d4], esi
cmp dword [0x40c7f4], ebp
jne 0x40352d
jmp 0x40360b
cmp dword [0x40c7f4], ebp
jne 0x40363e
cmp ebx, ebp
je 0x40363e
mov eax, dword [0x4188a4]
mov ecx, eax
sub ecx, dword [0x40c7d4]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4034f1
push ebp
push ebp
push eax
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403643
or eax, 0xffffffff
jmp 0x40366c
push 0xfffffffffffffffe
jmp 0x403640
push 0xfffffffffffffffd
pop eax
jmp 0x40366c
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x40366a
mov eax, dword [0x4208b0]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4188a0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4058d6
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 [0x424500], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4058fa
test al, 0x10
jne 0x4058fd
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x424500
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 0x405928
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405990
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405c89
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4059c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x426ba8], eax
jmp 0x405ba3
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4059e2
test eax, eax
je 0x405b22
test byte [ebp + 0xc], 2
je 0x405b22
mov esi, 0x423500
push edi
push esi
call fcn.004060b6
test ebx, ebx
je 0x4059ff
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a05
push edi
call fcn.00405bf0
push 0x40a25c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405b18
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405bd4
cmp byte [eax], 0
je 0x405a56
cmp byte [ebp - 0x18], 0
je 0x405a56
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405a74
mov al, byte [esi + 1]
test al, al
je 0x405af7
cmp al, 0x2e
jne 0x405a74
cmp byte [esi + 2], 0
je 0x405af7
push esi
push ebx
call fcn.004060b6
test byte [ebp - 0x148], 0x10
je 0x405a99
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405af7
push dword [ebp + 0xc]
push edi
call fcn.00405990
jmp 0x405af7
push edi
push str.Delete:_DeleteFile___s__
call fcn.0040650a
pop ecx
pop ecx
push edi
call fcn.00405d6d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edi
jne 0x405af0
test byte [ebp + 0xc], 4
je 0x405adc
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040650a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004053bd
push 0
push edi
call fcn.00405e03
jmp 0x405af7
push str.Delete:_DeleteFile_failed___s__
call fcn.0040650a
inc dword [0x426ba8]
pop ecx
pop ecx
jmp 0x405af7
push 0xfffffffffffffff2
call fcn.004053bd
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a34
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405b22
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405ba3
cmp dword [ebp - 8], esi
push edi
jne 0x405b44
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040650a
inc dword [0x426ba8]
pop ecx
pop ecx
jmp 0x405ba3
call fcn.00406538
test eax, eax
je 0x405ba3
push edi
call fcn.00405ba9
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040650a
pop ecx
pop ecx
push edi
call fcn.00405d6d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x405b9c
test byte [ebp + 0xc], 4
je 0x405b95
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040650a
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004053bd
push esi
push edi
call fcn.00405e03
jmp 0x405ba3
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405b35
push 0xffffffffffffffe5
call fcn.004053bd
pop edi
pop esi
leave
ret 8
Function at 0x405c89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x423900
push esi
call fcn.004060b6
push esi
call fcn.00405c3c
mov edi, eax
test edi, edi
jne 0x405caa
xor eax, eax
jmp 0x405cfc
push edi
call fcn.004062f2
test byte [0x426b30], 0x80
je 0x405cc3
mov al, byte [edi]
test al, al
je 0x405ca6
cmp al, 0x5c
je 0x405ca6
sub edi, esi
jmp 0x405cdb
call fcn.00406538
test eax, eax
je 0x405cd5
test byte [eax], 0x10
je 0x405ca6
push esi
call fcn.00405bf0
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405cc7
call fcn.00405ba9
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 0x405d6d
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 0x405d89
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d8c
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 0x405dbb
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
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 0x405dff
test edi, edi
jne 0x405dc6
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405df9
Function at 0x405e03
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00406576
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e2f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f6e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x424688], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x424688
je 0x405e73
push 1
push 0
push esi
call fcn.00405d8c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f74
cmp eax, edi
jg 0x405f74
mov esi, 0x424100
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f74
cmp eax, edi
jg 0x405f74
push esi
push ebp
push str._s_s_r_n
push 0x423d00
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.00405d8c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f6e
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 0x405f67
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f67
cmp edi, dword [esp + 0x18]
jne 0x405f67
push str._Rename__r_n
push esi
call fcn.00405d01
test eax, eax
jne 0x405f7b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004060b6
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x423d00
push eax
call fcn.00405d4d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
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 [0x426bb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aa0c
push eax
call fcn.00405d01
test eax, eax
je 0x405f32
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fa2
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f97
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f34
Function at 0x405faa
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 0x40600e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
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 0x405ffd
cmp dword [ebp + 0x14], 1
je 0x405fff
cmp dword [ebp + 0x14], 2
je 0x405fff
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4060d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4060f9
mov ecx, dword [0x4262fc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x426b58]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4252c0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x4062cc
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x4062cc
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x4062d9
inc ebx
cmp cl, 0xfc
jbe 0x4062bf
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x40626a
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x40618d
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x406205
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x4061ac
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405faa
jmp 0x406200
cmp eax, 0x26
jne 0x4061dc
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405faa
cmp byte [edi], 0
jne 0x406262
push str.C:Program_Files
push edi
call fcn.004060b6
jmp 0x406200
cmp eax, 0x25
jne 0x4061ef
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x406200
cmp eax, 0x24
jne 0x406205
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x406262
cmp dword [0x426ba4], 0
jne 0x406211
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x426b24]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406247
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004058ab
cmp dword [ebp - 8], 0
jne 0x40624e
jmp 0x40624a
and byte [edi], 0
test esi, esi
jne 0x406211
cmp byte [edi], 0
je 0x406262
cmp dword [ebp + 0xc], 0
je 0x406262
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.004062f2
jmp 0x4062b0
cmp byte [ebp + 0xf], 0xfd
jne 0x40629e
cmp esi, 0x1b
jne 0x406283
push dword [0x426b24]
push edi
call fcn.00406014
jmp 0x406294
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004060b6
add esi, 0xffffffeb
cmp esi, 6
jae 0x4062b0
jmp 0x406262
cmp byte [ebp + 0xf], 0xff
jne 0x4062b0
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004060d8
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x4252c0
jmp 0x4062cc
jne 0x4062c9
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x4062cc
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x406124
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x4062ee
push eax
push dword [ebp + 8]
call fcn.004060b6
leave
ret 8
Function at 0x40638b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4063b0
mov eax, dword [0x40a908]
cmp eax, 0xffffffff
je 0x4063a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a908], 0xffffffff
jmp 0x406423
cmp dword [0x4252a0], ebx
je 0x406423
cmp byte [0x424ea0], bl
je 0x4063ef
cmp dword [0x40a908], 0xffffffff
jne 0x4063f8
push 4
push 0x40000000
push 0x424ea0
call fcn.00405d8c
cmp eax, 0xffffffff
mov dword [0x40a908], eax
je 0x406423
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a908], 0xffffffff
je 0x406423
push esi
mov esi, 0x425ac0
push 0x40aad8
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a908]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
cmp dword [0x424a8c], 0
push esi
jne 0x40660a
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 0x4065e4
mov dword [ecx*4 + 0x424a88], eax
inc ecx
cmp ecx, 0x100
jl 0x4065df
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40663b
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 + 0x424a88]
xor eax, esi
inc ecx
dec edx
jne 0x40661d
pop edi
not eax
pop esi
ret 0xc
Function at 0x40e5e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cd4b
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.00461651
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e662
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f3d0
mov eax, dword [eax]
push 0x5671f0
push eax
call fcn.00452004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004618dc
test bl, bl
je 0x40e662
push 0x5671f0
lea ecx, [esp + 0xc]
call fcn.00461c6c
push 0x56ad64
lea ecx, [esp + 0xc]
call fcn.00461c6c
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 0x40e69e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004618dc
jmp 0x40e769
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 0x40e722
lea edx, [esp + 0x7c]
push 0x56ad60
push edx
call fcn.00452004
add esp, 8
test eax, eax
je 0x40e722
lea eax, [esp + 0x7c]
push 0x56ad5c
push eax
call fcn.00452004
add esp, 8
test eax, eax
je 0x40e722
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 0x40e6b2
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.004618dc
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 0x40ef60
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 0x40efc2
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 0x40efd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cdcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5712c8]
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 0x40f108
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f036
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004618dc
xor eax, eax
jmp 0x40f17f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461a19
push esi
lea ecx, [esp + 0xc]
call fcn.00461ca8
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x56ad9c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40f15d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ef60
test eax, eax
jne 0x40f15d
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.0040ef60
test eax, eax
jne 0x40f15d
lea eax, [esp + 0x14]
push 0x56ad78
push eax
call fcn.00453110
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f13c
lea ecx, [esp + 0x14]
push 0x56ad74
push ecx
call fcn.00453090
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f13c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f13f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004619c9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f04e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004618dc
xor eax, eax
jmp 0x40f17f
mov byte [esi], 0
push 0x56ad70
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.004618dc
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 0x41fa80
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 0x41faee
cmp si, 0x69
ja 0x41faee
add esi, 0xffd0
cmp si, 0x11
je 0x41fabe
push 0x11
call edi
test ax, ax
jge 0x41fabe
or esi, 0x2000
cmp si, 0x10
je 0x41fad3
push 0x10
call edi
test ax, ax
jge 0x41fad3
or esi, 0x4000
cmp si, 0x12
je 0x41fae8
push 0x12
call edi
test ax, ax
jge 0x41fae8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41fafb
mov esi, 0xbd
jmp 0x41faaf
cmp si, 0x6e
jne 0x41fb08
mov esi, 0xbe
jmp 0x41faaf
cmp si, 0x6f
jne 0x41faa9
mov esi, 0xbf
jmp 0x41faaf

Function at 0x4211a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x581968]
xor edx, edx
cmp eax, edx
jne 0x4211c6
xor eax, eax
mov byte [eax + 0x581868], al
inc eax
cmp eax, 0x100
jl 0x4211ae
mov dword [0x581968], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x581868
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421257
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 0x42122a
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 0x4211f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4212d0
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 0x421323
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 0x42130a
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