joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a409
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41a607
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41a483
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41a4c6
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41a4c6
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41a4ad
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041a1b7
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41a4c6
mov ebx, eax
cmp ebx, 3
jb 0x41a587
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.00419b3e
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41a554
cmp eax, 3
jb 0x41a554
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41a502
jmp 0x41a5a7
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41a5ad
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.00419b3e
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41a5e8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41a5c6
lea edx, [ecx + esi + 0x1af70]
jmp 0x41a5c8
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.004199c1
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41a5f9
call fcn.0041a2f8
cmp dword [esi + 0x6af90], 0
jne 0x41a433
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41a61a
lea edx, [ecx + esi + 0x1af70]
jmp 0x41a61c
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.004199c1
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41b1c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41b1cf
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41b283
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a8]
add ecx, 8
sub edi, 8
dec esi
jne 0x41b1e6
pop ebx
test edi, edi
je 0x41b29c
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4351a8]
inc ecx
dec edi
jne 0x41b287
pop esi
not eax
pop edi
ret

Function at 0x41b2a1
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4351a8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4351a8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41b832
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
je 0x41b8b8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41b86c
cmp dword [esi + 0x40], ebx
jae 0x41b86c
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov ecx, 4
xor eax, eax
rep stosb byte es:[edi], al
and dword [esi + 0x3c], 0
xor edi, edi
cmp dword [esi + 0x3c], edi
jne 0x41b884
lea eax, [ebx + ebx]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.00426b20
add esp, 0xc
test ebx, ebx
je 0x41b8b5
mov eax, dword [esi + 0x3c]
movzx eax, byte [edi + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.0041b2ff
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x41b897
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41b8e7
mov eax, dword [esi + 0x24]
lea edi, [eax + ebx]
cmp edi, dword [esi + 0x28]
jb 0x41b8d3
mov dword [esi + 0x14], 0x30000
jmp 0x41b909
push ebx
push edx
add eax, ecx
push eax
call fcn.00426b20
add esp, 0xc
add dword [esi + 0x24], ebx
mov eax, ebx
jmp 0x41b90b
mov eax, dword [esi + 4]
test eax, eax
je 0x41b902
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x41b90b
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41bd1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x41bd6f
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x41bd97
sub edi, eax
cmp edi, dword [ebp + 8]
jbe 0x41bd46
mov edi, dword [ebp + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.00426b20
add esp, 0xc
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.0041b1c4
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x41bd99
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x41bd90
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd97
mov edi, dword [ebp + 8]
jmp 0x41bd59
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x41cae4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c078]
jne 0x41caee
repz ret
jmp fcn.0041ce61
Function at 0x4252fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00424237
and dword [ebp - 0x14], 0
cmp dword [0x4e868c], 0
mov dword [ebp - 0x18], eax
jne 0x4253b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x425459
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x425459
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4e868c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4e8690], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4e8694], eax
call edi
push eax
call esi
mov dword [0x4e869c], eax
test eax, eax
je 0x4253b1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4e8698], eax
mov eax, dword [0x4e8698]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42540a
cmp dword [0x4e869c], ecx
je 0x42540a
push eax
call esi
push dword [0x4e869c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42540a
test ebx, ebx
je 0x42540a
call edi
test eax, eax
je 0x425401
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425401
test byte [ebp - 8], 1
jne 0x42540a
or dword [ebp + 0x10], 0x200000
jmp 0x42543d
mov eax, dword [0x4e8690]
cmp eax, dword [ebp - 0x18]
je 0x42543d
push eax
call esi
test eax, eax
je 0x42543d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42543d
mov eax, dword [0x4e8694]
cmp eax, dword [ebp - 0x18]
je 0x42543d
push eax
call esi
test eax, eax
je 0x42543d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4e868c]
call esi
test eax, eax
je 0x425459
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42545b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cae4
leave
ret
Function at 0x401178
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x3ff
push str.C:UsersAdminDesktop1314da.exe
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4011be
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push str.C:UsersAdminDesktop1314da.exe
call section..text
pop ecx
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.C:UsersAdminDesktop1314da.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xac], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0xac], 0xffffffff
je 0x40138d
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40baa8
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push dword [ebp - 0xc]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [0x40baa8]
push 0x40501c
lea eax, [ebp - 0x8c]
push eax
call fcn.00403787
add esp, 0x18
cmp dword [ebp - 0xc], 0x221c
jne 0x401342
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x94]
mov dword [0x40500c], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x98]
mov dword [0x405008], eax
jmp 0x401356
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
jmp 0x4013ae
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40bab0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
leave
ret
Function at 0x40380b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403834
cmp al, 0x22
je 0x40382c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403820
cmp byte [esi], 0x22
jne 0x40383e
inc esi
jmp 0x40383e
cmp al, 0x20
jle 0x40383e
inc esi
cmp byte [esi], 0x20
jg 0x403838
mov al, byte [esi]
test al, al
je 0x403848
cmp al, 0x20
jle 0x403831
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004038b6
push 0x405004
push section..data
call fcn.0040389c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403878
movzx eax, word [ebp - 0x14]
jmp 0x40387b
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
jmp 0x41bc4c
Function at 0x1b017769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b01b190
cmp edx, dword [eax]
je 0x1b01778b
add eax, 8
inc ecx
cmp eax, 0x1b01b220
jl 0x1b01777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b01b190]
jne 0x1b0178b9
mov eax, dword [0x1b01bbb0]
cmp eax, 1
je 0x1b017893
test eax, eax
jne 0x1b0177bc
cmp dword [0x1b01b0e4], 1
je 0x1b017893
cmp edx, 0xfc
je 0x1b0178b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0177f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b018670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b018490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b017836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b018490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b01a45c
push edi
call fcn.1b018f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b018670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b018680
lea eax, [ebp - 0xa0]
push 0x1b01a43c
push eax
call fcn.1b018680
push dword [esi + 0x1b01b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b018680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b018e75
add esp, 0x2c
pop edi
jmp 0x1b0178b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b01b194]
push 0
push eax
push dword [esi]
call fcn.1b018490
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 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401d17
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [section..data]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SetParent]
push edi
push eax
push eax
call esi
push dword [0x404004]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
call ebx
push dword [0x404004]
push dword [section..data]
call esi
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x401d57
mov eax, dword [esp + 0x10]
mov byte [eax + edi], al
push dword [section..data]
call ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x100
jl 0x401d53
and byte [edi + 0x100], 0
push dword [0x40400c]
push dword [0x404014]
call esi
and byte [edi + 0x101], 0
push dword [0x40401c]
call ebx
push dword [0x404020]
call ebx
xor ebp, ebp
and dword [esp + 0x18], ebp
mov eax, ebp
mov cl, byte [edi + ebp]
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov al, byte [edx + eax]
mov edx, dword [esp + 0x18]
add edx, ecx
add eax, edx
and eax, 0xff
mov dword [esp + 0x18], eax
mov eax, dword [0x40401c]
push eax
push eax
call esi
movzx eax, byte [edi + ebp]
push dword [0x40400c]
mov dword [esp + 0x14], eax
call ebx
mov eax, dword [esp + 0x18]
mov al, byte [eax + edi]
mov byte [edi + ebp], al
push dword [0x40402c]
push dword [section..data]
call esi
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x10]
mov byte [ecx + edi], al
push dword [0x40402c]
push dword [0x40401c]
call esi
mov eax, dword [0x404040]
push eax
push eax
call esi
inc ebp
cmp ebp, 0x100
jl 0x401da2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401e28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetTopWindow]
push esi
push edi
push dword [0x404020]
call ebx
push dword [0x40402c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [ebp + 8]
push dword [0x404028]
mov esi, dword [sym.imp.USER32.dll_SetParent]
movzx eax, byte [edi + 0x100]
push dword [0x404008]
mov dword [ebp - 4], eax
movzx eax, byte [edi + 0x101]
mov dword [ebp + 8], eax
call esi
push dword [0x404058]
call ebx
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jle 0x401f25
push dword [0x40404c]
push dword [0x404034]
call esi
mov eax, dword [ebp - 4]
push dword [0x40402c]
push dword [0x404020]
lea ebx, [eax + 1]
and ebx, 0xff
mov dword [ebp - 4], ebx
call esi
push dword [0x40400c]
add ebx, edi
movzx eax, byte [ebx]
push dword [0x404068]
add dword [ebp + 8], eax
call esi
push dword [section..data]
and dword [ebp + 8], 0xff
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov eax, dword [ebp + 8]
movzx ecx, byte [ebx]
mov dl, byte [eax + edi]
add eax, edi
mov byte [ebx], dl
mov dword [ebp - 0xc], ecx
mov byte [eax], cl
push dword [0x404008]
push dword [0x404064]
call esi
mov dl, byte [ebx]
mov eax, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, ecx
and edx, 0xff
mov dl, byte [edx + edi]
xor byte [eax], dl
inc ecx
cmp ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
jl 0x401e8c
mov al, byte [ebp + 8]
mov byte [edi + 0x101], al
mov eax, dword [0x40406c]
push eax
push eax
call esi
mov al, byte [ebp - 4]
mov byte [edi + 0x100], al
push dword [0x404028]
push dword [0x404070]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fd8
Capabilities:
Terminate process

Disassembly:
push esi
push dword [0x404088]
push dword [0x4041d8]
call dword [sym.imp.USER32.dll_SetParent]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x4040fc]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test esi, esi
jne 0x402012
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop esi
ret
Function at 0x100025b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x100091b3], 0
je 0x1000265a
push esi
push 0x10
call fcn.10005b9c
mov esi, eax
add esp, 4
push esi
mov dword [esi], 0x65685343
mov dword [esi + 4], 0x642e6c6c
mov word [esi + 8], 0x6c6c
mov byte [esi + 0xa], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov dword [0x10faa40c], eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov esi, dword [0x10faa40c]
add esp, 4
test esi, esi
je 0x10002659
mov eax, dword [esi + 0x5b7500]
push edi
mov dword [0x10faa408], eax
mov byte [0x100091b3], 0
call fcn.10002470
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0
add esi, 0x388b65
push esi
call edi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
mov edx, 0x100024f0
sub edx, esi
push 0
sub edx, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], edx
call edi
call fcn.10002540
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002930
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x10faa408]
cmp dword [eax + 0x54], 0
je 0x10002bf0
push esi
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
fld dword [0x10007598]
mov edx, dword [0x10faa40c]
fld qword [0x10007590]
mov esi, dword [edx + 0xf9499c]
test ax, ax
je 0x10002b2f
push edi
mov edi, dword [0x10faa418]
inc edi
mov dword [0x10faa418], edi
xor ecx, ecx
cmp dword [esi + ecx*4], 0
je 0x10002b08
cmp ecx, 6
je 0x10002b08
cmp ecx, 0x64
je 0x10002b08
cmp ecx, 0x7e
je 0x10002b08
cmp ecx, 0x87
je 0x10002b08
cmp ecx, 0xc8
je 0x10002b08
cmp ecx, 0xd1
je 0x10002b08
cmp ecx, 0xd2
je 0x10002b08
cmp ecx, 0xf0
je 0x10002b08
cmp ecx, 0x106
je 0x10002b08
cmp ecx, 0x107
je 0x10002b08
cmp ecx, 0x110
je 0x10002b08
cmp ecx, 0x120
je 0x10002b08
cmp ecx, 0x139
je 0x10002b08
cmp ecx, 0x144
je 0x10002b08
cmp ecx, 0x152
je 0x10002b08
cmp ecx, 0x165
je 0x10002b08
cmp ecx, 0x17e
je 0x10002b08
cmp ecx, 0x1a0
je 0x10002b08
cmp ecx, 0x1a7
je 0x10002b08
cmp ecx, 0x1a8
je 0x10002b08
cmp ecx, 0x1a9
je 0x10002b08
cmp ecx, 0x1b3
je 0x10002b08
cmp ecx, 0x1b6
je 0x10002b08
cmp ecx, 0x1d9
je 0x10002b08
cmp ecx, 0x1e1
je 0x10002b08
cmp ecx, 0x207
je 0x10002b08
cmp ecx, 0x2b8
je 0x10002b08
cmp ecx, 0x2d0
je 0x10002b08
cmp ecx, 0x2d9
je 0x10002b08
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [eax + ecx*4]
fcom dword [eax + 0x81c]
fnstsw ax
cmp edi, 2
jg 0x10002aea
test ah, 5
jp 0x10002b06
mov eax, dword [edx + 0xf9499c]
mov eax, dword [eax + ecx*4]
fld dword [eax + 0x81c]
fdiv st(2)
jmp 0x10002b00
test ah, 0x41
jne 0x10002b06
mov eax, dword [edx + 0xf9499c]
mov eax, dword [eax + ecx*4]
fld dword [eax + 0x81c]
fmul st(2)
fstp dword [eax + 0x81c]
fxch st(1)
inc ecx
cmp ecx, 0x3e7
jl 0x10002979
fstp st(1)
cmp edi, 3
fstp st(0)
pop edi
jl 0x10002bef
mov dword [0x10faa418], 0
pop esi
ret
xor ecx, ecx
cmp dword [ecx + esi], 0
je 0x10002b68
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [ecx + eax]
fcom dword [eax + 0x81c]
fnstsw ax
test ah, 5
jp 0x10002b66
mov eax, dword [edx + 0xf9499c]
mov eax, dword [ecx + eax]
fld dword [eax + 0x81c]
fdiv st(2)
fstp dword [eax + 0x81c]
fxch st(1)
cmp dword [ecx + esi + 4], 0
je 0x10002ba2
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [ecx + eax + 4]
fcom dword [eax + 0x81c]
fnstsw ax
test ah, 5
jp 0x10002ba0
mov eax, dword [edx + 0xf9499c]
mov eax, dword [ecx + eax + 4]
fld dword [eax + 0x81c]
fdiv st(2)
fstp dword [eax + 0x81c]
fxch st(1)
cmp dword [ecx + esi + 8], 0
je 0x10002bdc
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [ecx + eax + 8]
fcom dword [eax + 0x81c]
fnstsw ax
test ah, 5
jp 0x10002bda
mov eax, dword [edx + 0xf9499c]
mov eax, dword [ecx + eax + 8]
fld dword [eax + 0x81c]
fdiv st(2)
fstp dword [eax + 0x81c]
fxch st(1)
add ecx, 0xc
cmp ecx, 0xf9c
jl 0x10002b31
fstp st(1)
fstp st(0)
pop esi
ret