joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405adb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424f10
push esi
call fcn.0040601f
push esi
call fcn.00405a7e
mov edi, eax
test edi, edi
jne 0x405afc
xor eax, eax
jmp 0x405b54
push edi
call fcn.004062b3
test byte [0x429238], 0x80
je 0x405b19
mov ax, word [edi]
test ax, ax
je 0x405af8
cmp ax, 0x5c
je 0x405af8
sub edi, esi
sar edi, 1
jmp 0x405b33
call fcn.00406362
test eax, eax
je 0x405b2d
test byte [eax], 0x10
je 0x405af8
push esi
call fcn.00405a1f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405b1f
call fcn.004059d3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405bee
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405bf4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405c23
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409570]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409574]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405c73
test edi, edi
jne 0x405c30
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405c6d
Function at 0x405d4e
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x425da8
push 0x409594
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405d9c
push 1
push 0
push esi
call fcn.00405bf4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405ebb
cmp eax, edi
jg 0x405ebb
mov esi, 0x4265a8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405ebb
cmp eax, edi
jg 0x405ebb
push esi
push ebx
push str._ls_ls_r_n
push 0x4259a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x429230]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406041
push 4
push 0xc0000000
push esi
call fcn.00405bf4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405ebb
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 0x405eb4
push edi
push esi
push ebp
call fcn.00405c77
test eax, eax
je 0x405eb4
push str._Rename__r_n
push esi
call fcn.00405b59
test eax, eax
jne 0x405e52
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e87
add eax, 0xa
push 0x409578
push eax
call fcn.00405b59
mov ebp, eax
test ebp, ebp
je 0x405e83
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e74
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e6e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e89
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4259a8
push eax
call fcn.00405baf
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ca6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405ec0
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405ee3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d4e
pop ecx
pop ecx
inc dword [0x4292b0]
ret 8
Function at 0x405eec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f60
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405f4d
cmp dword [ebp + 0x14], 1
je 0x405f50
cmp dword [ebp + 0x14], 2
je 0x405f50
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406389
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4063ad
xor eax, eax
test eax, eax
je 0x4063c0
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063c0
xor ecx, ecx
jmp 0x4063c3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x409014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
leave
ret 4

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

Disassembly:
cmp dword [0x426dac], 0
push esi
jne 0x4064dd
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 0x4064b7
mov dword [ecx*4 + 0x426da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4064b2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40650e
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 + 0x426da8]
xor eax, esi
inc ecx
dec edx
jne 0x4064f0
pop edi
not eax
pop esi
ret 0xc
Function at 0x40c8a4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40cff0
call fcn.0040cb68
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c904
cmp eax, 0xffffffff
je 0x40c904
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40c8fd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40c8fd
cmp edx, 0x10000000
jae 0x40c8fd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40c8fa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40c970
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40c9ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40c9a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40c9b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40c996
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ca80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40cab1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40cab1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40cab1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42a000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x42a175
cmp dword [esp + 0x54], 0x40
jne 0x42a175
cmp word [esp + 0x10], 0x5a4d
jne 0x42a175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x42a175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x430960
push esi
call ebx
test eax, eax
je 0x42a175
cmp dword [esp + 0x54], 0xf8
jne 0x42a175
cmp dword [0x430960], 0x4550
jne 0x42a175
mov eax, dword [0x430976]
test ah, 0x20
jne 0x42a175
mov edx, dword [0x430a80]
xor eax, eax
mov ax, word [0x430966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x430a58], eax
je 0x42a175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x430a6c], eax
xor eax, eax
mov ax, word [0x430966]
mov edx, dword [0x430a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x42a175
cmp dword [esp + 0x54], edi
jne 0x42a175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x430a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4309b4]
cmp edx, eax
ja 0x42a175
mov edi, dword [0x430a58]
mov ecx, dword [0x430988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x42a175
xor eax, eax
push 2
mov ax, word [0x430966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x42a175
cmp dword [edi - 0x20], ebx
ja 0x42a175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x42c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x430190
cmp edx, dword [eax]
je 0x42c78b
add eax, 8
inc ecx
cmp eax, 0x430220
jl 0x42c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x430190]
jne 0x42c8b9
mov eax, dword [0x430bb0]
cmp eax, 1
je 0x42c893
test eax, eax
jne 0x42c7bc
cmp dword [0x4300e4], 1
je 0x42c893
cmp edx, 0xfc
je 0x42c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f45c
push edi
call fcn.0042df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042d680
lea eax, [ebp - 0xa0]
push 0x42f43c
push eax
call fcn.0042d680
push dword [esi + 0x430194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042de75
add esp, 0x2c
pop edi
jmp 0x42c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x430194]
push 0
push eax
push dword [esi]
call fcn.0042d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40cf77
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
mov eax, 0x44
call fcn.004d63f9
cmp dword [ebp - 0x10], esp
je 0x40cfcc
push 0x3b
push 0x4079e14
push 6
call fcn.004d63f3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d00a
mov dword [ebp - 0x10], esp
push str.LDNews
push dword [ebp - 8]
mov eax, 0x45
call fcn.004d63f9
cmp dword [ebp - 0x10], esp
je 0x40d00a
push 0xc8
push 0x4079e14
push 6
call fcn.004d63f3
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
mov eax, 0x24
call fcn.004d63f9
cmp dword [ebp - 0x10], esp
je 0x40d036
push 0xf0
push 0x4079e14
push 6
call fcn.004d63f3
add esp, 0xc
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, str.ADFullScreenFrame
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.0040d0b3
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40d081
push ebx
call fcn.004d640b
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d091
push ebx
call fcn.004d640b
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d0a9
push dword [ebp - 0xc]
call fcn.0040d112
cmp dword [ebp - 0xc], 0
jne 0x40d036
mov esp, ebp
pop ebp
ret
Function at 0x41f5b4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [0x6103c4], 0
jne 0x41f61a
push reloc.WS2_32.dll_bind
push 0
push 1
push 0x80000301
push 0
push 0x9c8
push 2
mov eax, 3
mov ebx, 0x55f390
call fcn.004d6417
add esp, 0x1c
mov dword [0x6103c4], eax
cmp dword [0x6103c4], 0
jne 0x41f61a
mov eax, dword [ebp + 8]
jmp 0x41f76c
mov eax, dword [0x6103c4]
mov dword [ebp - 4], eax
pushal
cmp dword [eax + 8], 0
jne 0x41f681
mov edx, dword fs:[0x20]
imul edx, dword fs:[0x24]
mov eax, dword fs:[0x2c]
xor eax, dword fs:[0x30]
imul eax, edx
imul edx, eax, 0x41c64e6d
imul edx, dword [ebp - 4]
add edx, 0x3039
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebx], edx
xor eax, eax
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
inc eax
add edx, eax
mov dword [ebx + eax*4], edx
cmp eax, 0x26f
jb 0x41f662
call fcn.0041f6fb
mov ecx, 1
test byte [eax + 4], 1
jne 0x41f686
xchg dword [eax + 4], ecx
test ecx, ecx
jne 0x41f686
cmp dword [eax], 0x270
jne 0x41f6a0
call fcn.0041f6fb
mov edx, dword [eax]
inc dword [eax]
mov ecx, dword [eax + edx*4 + 8]
mov dword [eax + 4], 0
mov eax, ecx
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ecx, ebx
jg 0x41f6e5
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
sub ecx, ebx
inc ecx
test ecx, ecx
xor edx, edx
div ecx
mov eax, edx
add eax, ebx
mov dword [esp + 0x1c], eax
popal
leave
ret 8
mov esp, ebp
pop ebp
ret 8

Function at 0x41f6fb
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
xor esi, esi
mov edi, dword [ebp - 4]
push edi
push ebp
add edi, 8
mov ebp, edi
mov ebx, 0x18d
inc esi
mov edx, esi
xor eax, eax
cmp esi, 0x270
cmove edx, eax
mov edx, dword [ebp + edx*4]
xor edx, dword [edi]
and edx, 0x7fffffff
xor edx, dword [edi]
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x9908b0df
and dl, 1
cmove ecx, eax
xor edx, edx
cmp ebx, 0x270
cmove ebx, edx
mov edx, ebx
xor ecx, dword [ebp + edx*4]
mov dword [edi], ecx
lea edi, [edi + 4]
inc ebx
cmp ebx, 0x18d
jne 0x41f70c
pop ebp
pop eax
mov dword [eax], 0
ret
Function at 0x4e4360
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x598dab
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.0058ccb8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4e43e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00589cee
mov eax, dword [eax]
push 0x5fbd1c
push eax
call fcn.0057ad74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0058cf43
test bl, bl
je 0x4e43e2
push 0x5fbd1c
lea ecx, [esp + 0xc]
call fcn.0058d2d3
push 0x5fbd28
lea ecx, [esp + 0xc]
call fcn.0058d2d3
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 0x4e441e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0058cf43
jmp 0x4e44e9
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 0x4e44a2
lea edx, [esp + 0x7c]
push 0x5fbd24
push edx
call fcn.0057ad74
add esp, 8
test eax, eax
je 0x4e44a2
lea eax, [esp + 0x7c]
push 0x5fbd20
push eax
call fcn.0057ad74
add esp, 8
test eax, eax
je 0x4e44a2
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 0x4e4432
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.0058cf43
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 0x4e4d10
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 0x4e4d72
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 0x4e4d80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x598e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x60c1f0]
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 0x4e4eb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4e4de6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0058cf43
xor eax, eax
jmp 0x4e4f2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0058d080
push esi
lea ecx, [esp + 0xc]
call fcn.0058d30f
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 0x4e4f0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.004e4d10
test eax, eax
jne 0x4e4f0d
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 bind
mov ecx, edi
call fcn.004e4d10
test eax, eax
jne 0x4e4f0d
lea eax, [esp + 0x14]
push 0x5fbd38
push eax
call fcn.0057bec0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e4eec
lea ecx, [esp + 0x14]
push 0x5fbd34
push ecx
call fcn.0057be40
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e4eec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4e4eef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0058d030
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4e4dfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0058cf43
xor eax, eax
jmp 0x4e4f2f
mov byte [esi], 0
push 0x5fbd30
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.0058cf43
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 0x4fb810
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 0x4fb87e
cmp si, 0x69
ja 0x4fb87e
add esi, 0xffd0
cmp si, 0x11
je 0x4fb84e
push 0x11
call edi
test ax, ax
jge 0x4fb84e
or esi, 0x2000
cmp si, 0x10
je 0x4fb863
push 0x10
call edi
test ax, ax
jge 0x4fb863
or esi, 0x4000
cmp si, 0x12
je 0x4fb878
push 0x12
call edi
test ax, ax
jge 0x4fb878
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4fb88b
mov esi, 0xbd
jmp 0x4fb83f
cmp si, 0x6e
jne 0x4fb898
mov esi, 0xbe
jmp 0x4fb83f
cmp si, 0x6f
jne 0x4fb839
mov esi, 0xbf
jmp 0x4fb83f

Function at 0x4fd130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x61caf0]
xor edx, edx
cmp eax, edx
jne 0x4fd156
xor eax, eax
mov byte [eax + 0x61c9f0], al
inc eax
cmp eax, 0x100
jl 0x4fd13e
mov dword [0x61caf0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x61c9f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4fd1e7
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 0x4fd1ba
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 0x4fd188
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4fd1f0
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 0x4fd243
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 0x4fd22a
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