joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005716
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [ebp + 8], ebx
jne 0x10005732
xor al, al
jmp 0x100057f8
call fcn.100056aa
test al, al
je 0x1000572b
push dword [ebp + 8]
call dword [0x1000c9e4]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x100057f5
push esi
push edi
push 2
pop esi
mov edi, 0x80000001
cmp dword [0x1000b8e4], ebx
je 0x10005763
inc edi
cmp dword [0x1000b8d8], ebx
je 0x10005770
mov esi, 0x102
mov dx, word [0x10009810]
mov ecx, 0x10009810
cmp dx, bx
jge 0x1000578e
mov eax, ecx
neg word [eax]
add eax, 2
cmp word [eax], bx
jne 0x10005783
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
jne 0x100057f5
mov dx, word [0x1000988c]
mov eax, 0x1000988c
cmp dx, bx
jge 0x100057c0
mov ecx, eax
neg word [ecx]
add ecx, 2
cmp word [ecx], bx
jne 0x100057b5
cmp dword [ebp - 8], ebx
jne 0x100057d1
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100057e4
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x100057ec
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x1000672b
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x100084a8
call fcn.1000757c
mov eax, dword [ebp + 8]
test eax, eax
je 0x100067a0
and dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006799
movzx ecx, word [eax + 0x18]
cmp ecx, 0xa
jb 0x10006799
mov edx, 0x1000
cmp cx, dx
ja 0x10006799
mov ecx, dword [eax + 0x3c]
cmp ecx, edx
jg 0x10006799
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x10006799
mov ecx, 0x8664
cmp word [eax + 4], cx
jne 0x10006799
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x10006799
mov dword [ebp - 4], 0xfffffffe
jmp 0x100067a2
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.100075c1
ret

Function at 0x100067a8
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x100084c8
call fcn.1000757c
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000681b
and dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006814
movzx ecx, word [eax + 0x18]
cmp ecx, 0xa
jb 0x10006814
mov edx, 0x1000
cmp cx, dx
ja 0x10006814
mov ecx, dword [eax + 0x3c]
cmp ecx, edx
jg 0x10006814
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x10006814
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x10006814
add ecx, 0xffffffbf
cmp word [eax + 0x18], cx
jne 0x10006814
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000681d
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.100075c1
ret

Function at 0x10006823
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10007600
mov eax, dword [0x10009de0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov byte [ebp - 0x1005], bl
cmp eax, ebx
jne 0x10006851
xor al, al
jmp 0x10006939
push edi
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006932
push esi
push ebx
lea eax, [ebp - 0x100c]
push eax
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000692a
cmp dword [ebp - 0x100c], esi
jb 0x1000692a
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x10006907
dec eax
je 0x100068f9
dec eax
je 0x100068eb
dec eax
je 0x100068cd
dec eax
jne 0x1000692a
cmp byte [ebp - 0x1004], 0x53
jne 0x1000692a
mov eax, dword [ebp - 0x1003]
add eax, 5
cmp eax, dword [ebp + 0xc]
jae 0x1000692a
jmp 0x10006923
lea eax, [ebp - 0x1004]
push eax
call fcn.1000672b
pop ecx
cmp eax, ebx
je 0x1000692a
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x1000692a
jmp 0x10006923
lea eax, [ebp - 0x1004]
push eax
call fcn.100067a8
jmp 0x100068d9
lea eax, [ebp - 0x1004]
push eax
call fcn.1000672b
jmp 0x10006913
lea eax, [ebp - 0x1004]
push eax
call fcn.100067a8
pop ecx
cmp eax, ebx
je 0x1000692a
mov ecx, 0x2000
test word [eax + 0x16], cx
je 0x1000692a
mov byte [ebp - 0x1005], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 0x1005]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10007260
leave
ret
Function at 0x10006992
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
jne 0x100069b4
xor eax, eax
jmp 0x10006a9c
push edi
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10006a82
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001d2d
add esp, 0xc
cmp dword [ebp - 8], ebx
je 0x10006a79
push 1
call fcn.10001d3c
lea eax, [edi + 2]
push eax
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
add esp, 0x10
cmp dword [ebp - 8], ebx
je 0x10006a79
cmp edi, ebx
jbe 0x10006a46
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 8]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006a79
add esi, dword [ebp - 0x14]
cmp esi, edi
jb 0x10006a22
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x10006a62
push ebx
push edi
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov byte [ebp - 1], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10006a6b
mov dword [eax], edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
cmp byte [ebp - 1], bl
je 0x10006a98
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x10006a98
push ebx
call fcn.10001d3c
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov byte [ebp - 2], bl
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x10006b3a
cmp dword [ebp + 0xc], ebx
je 0x10006b3a
push edi
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006b34
cmp dword [ebp + 0x10], ebx
jbe 0x10006b04
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006b21
add esi, dword [ebp + 8]
cmp esi, dword [ebp + 0x10]
jb 0x10006ae0
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x10006b1d
push ebx
push dword [ebp + 0x10]
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov dword [esi], edi
mov byte [ebp - 1], bl
mov byte [ebp - 2], 1
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp byte [ebp - 1], bl
je 0x10006b34
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 2]
pop edi
jmp 0x10006b3c
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x10006ed5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10009de0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x10006f04
xor al, al
jmp 0x10006f51
push 8
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.msvcrt.dll_memcpy
push 8
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.msvcrt.dll_memcpy
push 8
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi]
add esp, 0x24
push 4
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
setns al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007260
leave
ret

Function at 0x10006f60
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10009de0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10007043
push ebx
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
push esi
mov ebx, esi
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
cmp eax, 2
jbe 0x10006fd0
cmp word [esi + 2], 0x3a
jne 0x10006fd0
cmp word [esi + 4], 0x5c
jne 0x10006fd0
push 4
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ebx, [esi + 4]
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x10007033
lea eax, [ebp - 0x20c]
mov esi, edi
push eax
sub esi, ebx
call dword [sym.imp.msvcrt.dll_wcslen]
add eax, eax
pop ecx
lea ecx, [eax + esi]
cmp ecx, 0x206
ja 0x10007041
push esi
lea eax, [ebp + eax - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000702b
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, edi
push 0x5c
add edi, 2
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10006fd8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10007260
leave
ret
Function at 0x10007050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov byte [ebp - 1], 0
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x1000712e
cmp dword [ebp + 0xc], esi
je 0x1000712e
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x1000707d
xor ecx, ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
je 0x10007128
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
jl 0x100070cb
cmp edi, dword [ebp - 8]
jge 0x10007114
push dword [ebp + 0xc]
lea esi, [ebx + edi*4]
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10007114
cmp dword [ebp + 0x14], eax
je 0x10007110
mov eax, dword [ebp - 8]
dec eax
cmp edi, eax
jge 0x10007110
push dword [ebp + 0x18]
push dword [esi + 4]
jmp 0x10007104
xor edi, edi
inc edi
cmp dword [ebp - 8], edi
jle 0x10007114
push dword [ebp + 0xc]
mov esi, edi
push dword [ebx + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100070ef
inc edi
cmp edi, dword [ebp - 8]
jl 0x100070d3
jmp 0x10007114
cmp dword [ebp + 0x14], 0
je 0x10007110
mov eax, dword [ebp - 8]
dec eax
cmp edi, eax
jge 0x10007110
push dword [ebp + 0x18]
push dword [ebx + esi*4 + 4]
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x1c]
pop edi
test eax, eax
je 0x10007121
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 1]
pop ebx
jmp 0x10007130
xor al, al
pop esi
leave
ret
Function at 0x10007133
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x10007250
cmp dword [ebp + 0xc], ebx
je 0x10007250
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x1000724a
mov eax, dword [ebp + 0x10]
push esi
cmp eax, ebx
jl 0x100071a0
mov ecx, dword [ebp - 8]
dec ecx
cmp eax, ecx
jge 0x10007236
push dword [ebp + 0xc]
lea esi, [edi + eax*4]
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10007236
mov esi, dword [esi + 4]
jmp 0x100071d0
mov eax, dword [ebp - 8]
xor esi, esi
inc esi
dec eax
cmp eax, esi
jle 0x10007236
push dword [ebp + 0xc]
push dword [edi + esi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100071cc
mov eax, dword [ebp - 8]
inc esi
dec eax
cmp esi, eax
jl 0x100071af
jmp 0x10007236
mov esi, dword [edi + esi*4 + 4]
cmp esi, ebx
je 0x10007236
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, eax
lea ebx, [edi + edi + 0x14]
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10001d2d
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x10007233
push 1
call fcn.10001d3c
push ebx
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_memset
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x10007233
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x10007233
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
pop esi
test eax, eax
je 0x10007243
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
jmp 0x10007252
xor eax, eax
pop ebx
leave
ret
Function at 0x4078f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48ed6b
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.00483c60
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407972
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00481a17
mov eax, dword [eax]
push 0x4b01c0
push eax
call fcn.00473714
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00483eeb
test bl, bl
je 0x407972
push 0x4b01c0
lea ecx, [esp + 0xc]
call fcn.0048427b
push 0x4b3d20
lea ecx, [esp + 0xc]
call fcn.0048427b
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 0x4079ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00483eeb
jmp 0x407a79
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 0x407a32
lea edx, [esp + 0x7c]
push 0x4b3d1c
push edx
call fcn.00473714
add esp, 8
test eax, eax
je 0x407a32
lea eax, [esp + 0x7c]
push 0x4b3d18
push eax
call fcn.00473714
add esp, 8
test eax, eax
je 0x407a32
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 0x4079c2
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.00483eeb
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 0x408270
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 0x4082d2
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 0x4082e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48edeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bf804]
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 0x408418
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408346
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00483eeb
xor eax, eax
jmp 0x40848f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484028
push esi
lea ecx, [esp + 0xc]
call fcn.004842b7
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 0x40846d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408270
test eax, eax
jne 0x40846d
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.00408270
test eax, eax
jne 0x40846d
lea eax, [esp + 0x14]
push 0x4b3d34
push eax
call fcn.00474820
mov esi, eax
add esp, 8
test esi, esi
jne 0x40844c
lea ecx, [esp + 0x14]
push 0x4b3d30
push ecx
call fcn.004747a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40844c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40844f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00483fd8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40835e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00483eeb
xor eax, eax
jmp 0x40848f
mov byte [esi], 0
push 0x4b3d2c
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.00483eeb
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 0x419070
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 0x4190de
cmp si, 0x69
ja 0x4190de
add esi, 0xffd0
cmp si, 0x11
je 0x4190ae
push 0x11
call edi
test ax, ax
jge 0x4190ae
or esi, 0x2000
cmp si, 0x10
je 0x4190c3
push 0x10
call edi
test ax, ax
jge 0x4190c3
or esi, 0x4000
cmp si, 0x12
je 0x4190d8
push 0x12
call edi
test ax, ax
jge 0x4190d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4190eb
mov esi, 0xbd
jmp 0x41909f
cmp si, 0x6e
jne 0x4190f8
mov esi, 0xbe
jmp 0x41909f
cmp si, 0x6f
jne 0x419099
mov esi, 0xbf
jmp 0x41909f

Function at 0x41a840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cff30]
xor edx, edx
cmp eax, edx
jne 0x41a866
xor eax, eax
mov byte [eax + 0x4cfe30], al
inc eax
cmp eax, 0x100
jl 0x41a84e
mov dword [0x4cff30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cfe30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a8f7
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 0x41a8ca
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 0x41a898
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a970
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 0x41a9c3
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 0x41a9aa
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
Function at 0x421750
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4218e8
cmp ebp, ebx
jle 0x4218e8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4217ae
dec eax
or eax, 0xfffffff8
inc eax
je 0x4217b5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4217c4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4217cb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00483c2c
add esp, 4
cmp eax, ebx
je 0x4217ec
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00483c2c
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4218de
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4218c5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4218b1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4218a6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4218b4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4218b4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x421850
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x421841
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret