joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b52
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10018e0
call fcn.01003d18
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1003b8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b8f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003ba7
cmp eax, 0x20b
je 0x1003b94
mov dword [ebp - 0x1c], ebx
jmp 0x1003bbb
cmp dword [ecx + 0x84], 0xe
jbe 0x1003b8f
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1003bb5
cmp dword [ecx + 0x74], 0xe
jbe 0x1003b8f
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009660], 0xffffffff
or dword [0x1009664], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100950c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009508]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1009668], eax
call fcn.01003d86
cmp dword [section..data], ebx
jne 0x1003c16
push fcn.01003d86
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003d74
push 0x1001284
push 0x1001280
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009504]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1009500]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100127c
push 0x1001278
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1003cac
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003c80
cmp al, 0x22
jne 0x1003c72
cmp byte [esi], 0x22
jne 0x1003c89
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1003c93
cmp al, 0x20
jbe 0x1003c85
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1003cb7
movzx eax, word [ebp - 0x48]
jmp 0x1003cba
cmp byte [esi], 0x20
jbe 0x1003c89
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1003cac
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1003cd7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003d0c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003d51
ret
Function at 0x1003da8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1003dce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1003e25
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 1
call ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1003dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1003e10
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x50
pop ecx
lea esi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push dword [ebp + 0xc]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
pop edi
leave
ret 8
Function at 0x100462a
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xca0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
inc esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1004655
mov eax, esi
jmp 0x10047b4
test al, 0x10
jne 0x1004671
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10047b4
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea eax, [ebp - 0xca0]
push eax
mov edi, 0x20a
push edi
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call ebx
lea eax, [ebp - 0x214]
push eax
push edi
call esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xa94]
push eax
call fcn.010044ff
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x10046fd
cmp dword [ebp - 0xa84], esi
jne 0x10046f1
push 0x80
push dword [ebp - 0xa8c]
call edi
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10046f1
cmp dword [ebp - 4], esi
je 0x10046f1
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xa94]
push eax
call fcn.01003edf
test eax, eax
jne 0x10046bb
push esi
push 1
push 1
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xa94]
push eax
call fcn.010044ff
jmp 0x100475e
cmp dword [ebp - 0xa84], esi
je 0x1004752
push 0x80
push dword [ebp - 0xa8c]
call edi
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1004752
cmp dword [ebp - 4], esi
je 0x1004752
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xa94]
push eax
call fcn.01003edf
test eax, eax
jne 0x100471c
cmp dword [ebp - 4], esi
je 0x1004790
push 0x80
lea eax, [ebp - 0x214]
push eax
call edi
push 0x10018f4
call ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x100479e
cmp dword [ebp - 8], esi
jne 0x100479e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xca0]
push eax
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1004bfd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.01007aa0
push ebx
push edi
push dword [ebp + 8]
call fcn.010047e3
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x1004cf1
test bl, 2
jne 0x1004cf1
test bl, 8
push esi
je 0x1004c81
test bl, 4
je 0x1004c78
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1004c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x1004c5e
push eax
push esi
push 0x2000
lea eax, [ebp - 0x2000]
push eax
call fcn.01004a77
lea esi, [ebp - 0x2000]
push 0x1001a18
push edi
call fcn.01004b6e
push esi
push 2
call fcn.01004b6e
push 0x1001a10
jmp 0x1004c7b
push dword [ebp + 0x10]
push edi
call fcn.01004b6e
test bl, 0x10
je 0x1004c8f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 0x20
je 0x1004cae
push dword [ebp + 0x10]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001a0c
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
test bh, 0x10
je 0x1004cf0
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push 0x100b080
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004cf0
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0x10]
push esi
call fcn.01003e2a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1004e25
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push 0x14
push 0x1001a38
call fcn.01003d18
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x1004e9e
push edi
push 4
call fcn.01007779
mov dword [0x1009564], eax
cmp eax, edi
je 0x1004eed
mov esi, 0x1009014
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
cmp eax, edi
je 0x1004e73
push dword [esi + 4]
push eax
call fcn.0100484e
add esi, 8
jmp 0x1004e5c
push 0x20a
mov esi, 0x100b080
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1004eed
push 0x1001a28
push esi
call fcn.01005a78
push eax
call dword [sym.imp.msvcrt.dll__mbscpy]
pop ecx
pop ecx
jmp 0x1004ea3
mov esi, 0x100b080
cmp dword [0x1009570], edi
je 0x1004ebe
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1004ecd
mov ecx, dword [0x1009558]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1004ee6
mov eax, dword [eax]
mov dword [0x1009558], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x100955c], eax
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.01004f03
mov eax, dword [ebp - 0x20]
call fcn.01003d51
ret 0xc
Function at 0x1005176
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
jne 0x1005198
xor eax, eax
jmp 0x1005218
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x10051d2
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x10051d0
push eax
push edi
push dword [0x100963c]
call fcn.01005ffa
mov dword [esi], eax
mov ecx, dword [ebx + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [ebx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
jmp 0x10051d2
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
pop esi
je 0x10051df
mov ecx, dword [ebx + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x10051ea
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x10051f6
mov ecx, dword [ebx + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x1005202
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x100520e
mov ecx, dword [ebx + 0xc]
mov dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x100531f
Capabilities:
Create process on windows

Disassembly:
push 0x888
push 0x1001ae0
call fcn.01003d18
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov dword [0x1009584], esi
xor eax, eax
cmp dword [ebp + 0xc], esi
setne al
mov dword [0x1009580], eax
cmp dword [0x100af50], 2
jne 0x10053a9
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
push esi
push dword [0x100963c]
call fcn.01005ffa
mov edi, eax
mov dword [ebp - 0x20], edi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10054ff
push esi
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10054ff
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], eax
jmp 0x10053ac
mov dword [ebp - 0x34], esi
cmp dword [0x1009580], esi
je 0x10054d0
push dword [ebp - 0x34]
call fcn.01004feb
test eax, eax
je 0x10054ff
push 0x1001ad0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 8], esi
mov eax, 0x1001acc
jne 0x10053ea
mov eax, 0x1001ac8
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0x1001ab8
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x878]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x878], 0x44
mov dword [ebp - 0x84c], 0x80
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x878]
push eax
push dword [ebp + 0x14]
push esi
push 0x4000000
push esi
push esi
push esi
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x88c], eax
cmp eax, esi
je 0x10054b5
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x894], ebx
mov eax, dword [ebp - 0x888]
mov dword [ebp - 0x890], eax
push 0xea60
push esi
lea eax, [ebp - 0x894]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x888]
mov dword [0x1009584], ecx
cmp eax, esi
je 0x10054f8
push 0x1001a88
push 0x10013f0
call fcn.01004f81
pop ecx
pop ecx
jmp 0x10054ff
lea eax, [ebp - 0x834]
push eax
push 0x1001a78
push 0x10013f0
call fcn.01004f81
add esp, 0xc
jmp 0x10054ff
call fcn.01005063
test eax, eax
je 0x10054ff
push 0x1001ad0
push esi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x10054ff
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.01005515
mov eax, dword [ebp - 0x24]
call fcn.01003d51
ret 0x10
Function at 0x44ca0e
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0044ca8d
jae 0x44ca1a
xor ecx, ecx
call fcn.0044ca8d
jae 0x44ca44
xor eax, eax
call fcn.0044ca8d
jae 0x44ca55
mov al, 0x10
call fcn.0044ca8d
adc al, al
jae 0x44ca36
jne 0x44ca82
stosb byte es:[edi], al
jmp 0x44ca1b
call fcn.0044ca99
dec ecx
loop 0x44ca61
mov eax, ebp
call fcn.0044ca97
jmp 0x44ca83
lodsb al, byte [esi]
shr eax, 1
je 0x44caa9
adc ecx, 2
mov ebp, eax
jmp 0x44ca83
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0044ca97
cmp eax, 0x7d00
jae 0x44ca81
cmp eax, 0x500
jae 0x44ca82
cmp eax, 0x7f
ja 0x44ca83
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x44ca1b
pop ebp
ret 8
Function at 0x428f47
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 8
call fcn.00447ca5
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x4fc637
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov eax, 0x4fe0c6
push eax
mov ebx, eax
call fcn.0040105d
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00447ca5
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0x428fcf
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
test eax, eax
je 0x428fc3
push eax
mov ebx, eax
call fcn.00401096
inc eax
push eax
call fcn.00447ca5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0x428fa6
pop eax
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x428fee
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x428fea
imul eax, dword [ebx]
jmp 0x428fdf
mov ecx, eax
test ecx, ecx
je 0x42900d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x429006
push ebx
push eax
call fcn.00447cab
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x428ff4
call fcn.00447cab
add esp, 4
pop eax
mov dword [ebp - 4], eax
push edx
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x42904f
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x42903d
mov al, 1
jmp 0x429097
cmp dword [ebx + 0x54], ecx
jne 0x429046
mov al, 2
jmp 0x429097
cmp dword [ebx + 0x7c], ecx
jmp 0x429097
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x429064
mov al, 4
jmp 0x429097
cmp ecx, 5
jne 0x429084
cmp ebx, 0
jne 0x429072
mov al, 5
jmp 0x429097
cmp ebx, 1
jne 0x42907b
mov al, 6
jmp 0x429097
cmp ebx, 2
jne 0x429084
mov al, 7
jmp 0x429097
cmp ecx, 6
jne 0x429097
cmp ebx, 0
jne 0x429090
mov al, 8
cmp ebx, 1
jne 0x429097
mov al, 9
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 4]
add edx, 8
cmp eax, ecx
jg 0x4290b0
imul eax, eax, 4
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4290b5
mov eax, dword [edx]
mov dword [ebp - 8], eax
pop ebx
pop edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4290d3
push eax
mov ebx, eax
call fcn.00401096
inc eax
push eax
call fcn.00447ca5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4290d8
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4290f7
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4290f3
imul eax, dword [ebx]
jmp 0x4290e8
mov ecx, eax
test ecx, ecx
je 0x429116
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x42910f
push ebx
push eax
call fcn.00447cab
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4290fd
call fcn.00447cab
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42912e
push ebx
call fcn.00447cab
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x459d70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eff7b
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.004e1fde
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x459df2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004df330
mov eax, dword [eax]
push 0x549250
push eax
call fcn.004d0b04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004e2269
test bl, bl
je 0x459df2
push 0x549250
lea ecx, [esp + 0xc]
call fcn.004e2645
push 0x54ce04
lea ecx, [esp + 0xc]
call fcn.004e2645
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 0x459e2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004e2269
jmp 0x459ef9
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 0x459eb2
lea edx, [esp + 0x7c]
push 0x54ce00
push edx
call fcn.004d0b04
add esp, 8
test eax, eax
je 0x459eb2
lea eax, [esp + 0x7c]
push 0x54cdfc
push eax
call fcn.004d0b04
add esp, 8
test eax, eax
je 0x459eb2
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 0x459e42
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.004e2269
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 0x45b150
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f00db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x558640]
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 0x45b288
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x45b1b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004e2269
xor eax, eax
jmp 0x45b2ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004e23f2
push esi
lea ecx, [esp + 0xc]
call fcn.004e2681
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x54ce3c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x45b2dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x54ce34
push closesocket
call fcn.004b3040
test eax, eax
jne 0x45b2dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x54ce20
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004b3040
test eax, eax
jne 0x45b2dd
lea eax, [esp + 0x14]
push 0x54ce18
push eax
call fcn.004d1cb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x45b2bc
lea ecx, [esp + 0x14]
push 0x54ce14
push ecx
call fcn.004d1c30
mov esi, eax
add esp, 8
test esi, esi
jne 0x45b2bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x45b2bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004e23a2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45b1ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004e2269
xor eax, eax
jmp 0x45b2ff
mov byte [esi], 0
push 0x54ce10
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.004e2269
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 0x470f40
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 0x470fae
cmp si, 0x69
ja 0x470fae
add esi, 0xffd0
cmp si, 0x11
je 0x470f7e
push 0x11
call edi
test ax, ax
jge 0x470f7e
or esi, 0x2000
cmp si, 0x10
je 0x470f93
push 0x10
call edi
test ax, ax
jge 0x470f93
or esi, 0x4000
cmp si, 0x12
je 0x470fa8
push 0x12
call edi
test ax, ax
jge 0x470fa8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x470fbb
mov esi, 0xbd
jmp 0x470f6f
cmp si, 0x6e
jne 0x470fc8
mov esi, 0xbe
jmp 0x470f6f
cmp si, 0x6f
jne 0x470f69
mov esi, 0xbf
jmp 0x470f6f

Function at 0x472aa0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5696a8]
xor edx, edx
cmp eax, edx
jne 0x472ac6
xor eax, eax
mov byte [eax + 0x5695a8], al
inc eax
cmp eax, 0x100
jl 0x472aae
mov dword [0x5696a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5695a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x472b57
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 0x472b2a
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 0x472af8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x472bd0
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 0x472c23
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 0x472c0a
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