joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdf10
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 6
push esi
mov dword [ebp - 0x80c], 1
mov byte [ebp - 0x805], 0
jae 0x4bdf87
mov esi, 8
cmp dword [ebp + 0x20], esi
jb 0x4bdf51
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea481
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], cx
cmp dword [ebp + 0x3c], esi
jb 0x4bdf76
mov edx, dword [ebp + 0x28]
push edx
call fcn.004ea481
add esp, 4
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 0
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x4bdfee
mov esi, 8
cmp dword [ebp + 0x20], esi
jb 0x4bdfb7
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea481
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], cx
cmp dword [ebp + 0x3c], esi
jb 0x4bdfdc
mov edx, dword [ebp + 0x28]
push edx
call fcn.004ea481
add esp, 4
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x810]
push eax
push 2
push ebx
mov dword [ebp - 0x810], 0x1388
call esi
push 4
lea ecx, [ebp - 0x810]
push ecx
push 5
push ebx
mov dword [ebp - 0x810], 0x2710
call esi
mov eax, dword [ebp + 0xc]
mov esi, 8
cmp dword [ebp + 0x20], esi
jae 0x4be034
lea eax, [ebp + 0xc]
push edi
push 0
push SysReAllocString
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x4be0d5
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x3c], esi
jae 0x4be05d
lea eax, [ebp + 0x28]
push 0x5150b8
push eax
call fcn.004ed9d5
mov esi, eax
add esp, 8
test esi, esi
je 0x4be0d0
cmp dword [ebp - 0x80c], 0
jbe 0x4be0c0
lea ebx, [ebx]
lea edx, [ebp - 0x80c]
push edx
push 0x200
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4be0c0
mov ecx, dword [ebp - 0x80c]
push esi
push ecx
lea edx, [ebp - 0x804]
push 1
push edx
call fcn.004ed88d
add esp, 0x10
cmp dword [ebp - 0x80c], 0
ja 0x4be080
push esi
mov byte [ebp - 0x805], 1
call fcn.004ed6af
add esp, 4
mov esi, 8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
cmp dword [ebp + 0x20], esi
jb 0x4be0ee
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea481
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], cx
cmp dword [ebp + 0x3c], esi
jb 0x4be113
mov edx, dword [ebp + 0x28]
push edx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x805]
pop ebx
xor ecx, ebp
pop esi
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
Function at 0x4bee60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x52a4dc
mov dword [ebp - 0xc], edi
call fcn.00467410
mov ebx, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 4], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4bef1b
push esi
call fcn.004e9cc4
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4bef06
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x50f2fc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4bef06
mov eax, dword [ebp - 8]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push str._d._d._d._d
push ecx
mov esi, 1
call fcn.0046cc40
add esp, 0x18
push edi
call fcn.004ea481
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
push edi
call fcn.004ea481
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bef60
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0x24]
push 0
push 0x52a44c
mov ecx, edi
mov dword [ebp - 0x808], 1
xor bl, bl
call fcn.00401900
cmp dword [ebp + 0x1c], 6
jae 0x4befbc
cmp dword [ebp + 0x20], 8
jb 0x4befaa
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea481
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.User_Agent
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x810], eax
test eax, eax
jne 0x4beffd
cmp dword [ebp + 0x20], 8
jb 0x4befaa
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004ea481
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [ebp - 0x80c]
push edx
push 2
push eax
mov dword [ebp - 0x80c], 0x1388
call esi
mov ecx, dword [ebp - 0x810]
push 4
lea eax, [ebp - 0x80c]
push eax
push 5
push ecx
mov dword [ebp - 0x80c], 0x2710
call esi
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4bf046
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x810]
push 0
push SysReAllocString
push 0
push 0
push eax
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x4bf0c8
cmp dword [ebp - 0x808], 0
jbe 0x4bf0c6
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x808]
push eax
push 0x200
lea ecx, [ebp - 0x804]
push ecx
push esi
call ebx
test eax, eax
je 0x4bf0c6
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x804]
mov byte [ebp + edx - 0x804], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf0a5
sub eax, edx
push eax
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
call fcn.004017e0
cmp dword [ebp - 0x808], 0
ja 0x4bf074
mov bl, 1
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x20], 8
pop esi
jb 0x4bf0e8
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret
Function at 0x4d1aa0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4d1ad2
push esi
call fcn.004d2220
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4d1acb
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4d1b4e
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x4d1b3d
mov eax, dword [esi + 8]
test eax, eax
je 0x4d1af7
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x4d1b38
cmp eax, 2
je 0x4d1b3d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d1ae8
cmp eax, 3
je 0x4d1b1f
cmp eax, 1
jne 0x4d1ae8
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4d1ae8
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x4d1ae8
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004d1930
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4d1b70
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004d1930
pop esi
pop ebp
ret

Function at 0x4d93c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [ebp - 0x14], esi
jne 0x4d93e8
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4d93f3
mov dword [ebp - 4], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ebx
mov dword [ebp - 8], ebx
jle 0x4d94d7
lea ecx, [esi + 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x4d9439
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
je 0x4d9457
mov eax, dword [esi + 0x18]
add dword [eax + ebx*4], 0xff
lea eax, [eax + ebx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ebx*4]
dec ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x18], ecx
call fcn.004d9250
mov ecx, eax
xor esi, esi
mov edi, edi
cmp esi, ecx
jle 0x4d9485
mov ecx, dword [ebp - 0x18]
inc ebx
mov eax, ebx
call fcn.004d9250
mov ecx, eax
cmp esi, ecx
jg 0x4d9474
mov al, byte [ebp - 0x10]
imul bl
mov byte [esi + edi], al
inc esi
cmp esi, 0xff
jle 0x4d9470
cmp dword [ebp - 4], 0
je 0x4d94c0
mov eax, 1
lea ecx, [edi - 1]
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x4d94a4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add dword [ebp - 0xc], 4
inc eax
cmp eax, dword [ecx + 0x64]
mov dword [ebp - 8], eax
jl 0x4d9430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov al, byte [edx + 8]
sub esp, 0x10
cmp al, 3
je 0x4e14bb
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [edx]
push esi
xor esi, esi
push edi
mov dword [ebp + 8], esi
test al, 2
je 0x4e1361
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [ebp - 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
mov edi, 3
jmp 0x4e1373
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [ebp - 0x10], edi
mov edi, 1
test byte [edx + 8], 4
je 0x4e1388
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [ebp + edi*4 - 0x10], eax
inc edi
xor eax, eax
test edi, edi
jle case.0x4e13cd.3
cmp dword [ebp + eax*4 - 0x10], 0
jg 0x4e13a3
mov dword [ebp + eax*4 - 0x10], 0
jmp 0x4e13a8
mov esi, 1
inc eax
cmp eax, edi
jl 0x4e1392
test si, si
je case.0x4e13cd.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4e13cd.3
movzx ecx, byte [eax + 0x4e14d4]
jmp dword [ecx*4 + 0x4e14c0]
mov edx, dword [edx + 4]
mov eax, dword [ebp + 0xc]
test edx, edx
jbe case.0x4e13cd.3
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4e13e2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 4]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x4e13cd.3
lea ecx, [ecx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x4e1420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
imul ebx, edi
mov eax, ebx
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jbe case.0x4e13cd.3
lea esp, [esp]
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x10]
shr byte [esi - 1], cl
cmp ebx, dword [ebp + 8]
jb 0x4e1450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
imul ebx, edi
mov eax, ebx
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jbe case.0x4e13cd.3
lea esp, [esp]
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [ebp + edx*4 - 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp + 8]
jb 0x4e1480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e9132
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5427a0], 0
push esi
jne 0x4e90a5
call fcn.004e8fcb
test eax, eax
je 0x4e90e8
mov eax, dword [0x5427a0]
cmp eax, 1
jne 0x4e90c6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4e90e8
pop esi
ret
push eax
call dword [0x5427a8]
test eax, eax
jne 0x4e9130
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4e90ec
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5427a0]
call dword [0x5427a8]
mov edi, eax
test edi, edi
je 0x4e9111
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4e912d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5427a0]
call dword [0x5427a4]
add edi, 0x10
cmp edi, esi
jb 0x4e9119
mov eax, edi
pop edi
pop esi
ret
jmp 0x4e9092

Function at 0x4ea5a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53f4a0]
jne 0x4ea5b2
repz ret
jmp fcn.004f5135

Function at 0x507204
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004f7738
and dword [ebp - 4], 0
cmp dword [0x543624], 0
mov ebx, eax
jne 0x5072b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x507366
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x507366
push eax
call fcn.004f76c6
mov dword [esp], 0x52526c
push edi
mov dword [0x543624], eax
call esi
push eax
call fcn.004f76c6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x543628], eax
call esi
push eax
call fcn.004f76c6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x54362c], eax
call esi
push eax
call fcn.004f76c6
pop ecx
mov dword [0x543634], eax
test eax, eax
je 0x5072b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f76c6
pop ecx
mov dword [0x543630], eax
mov eax, dword [0x543630]
cmp eax, ebx
je 0x50730d
cmp dword [0x543634], ebx
je 0x50730d
push eax
call fcn.004f7741
push dword [0x543634]
mov esi, eax
call fcn.004f7741
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x50730d
test edi, edi
je 0x50730d
call esi
test eax, eax
je 0x507304
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x507304
test byte [ebp - 0xc], 1
jne 0x50730d
or dword [ebp + 0x10], 0x200000
jmp 0x507346
mov eax, dword [0x543628]
cmp eax, ebx
je 0x507346
push eax
call fcn.004f7741
pop ecx
test eax, eax
je 0x507346
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x507346
mov eax, dword [0x54362c]
cmp eax, ebx
je 0x507346
push eax
call fcn.004f7741
pop ecx
test eax, eax
je 0x507346
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x543624]
call fcn.004f7741
pop ecx
test eax, eax
je 0x507366
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507368
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415290
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x486f4b
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.004794cd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415312
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047690a
mov eax, dword [eax]
push 0x4b0d00
push eax
call fcn.004686b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00479758
test bl, bl
je 0x415312
push 0x4b0d00
lea ecx, [esp + 0xc]
call fcn.00479b34
push 0x4b0d0c
lea ecx, [esp + 0xc]
call fcn.00479b34
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 0x41534e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00479758
jmp 0x415419
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 0x4153d2
lea edx, [esp + 0x7c]
push 0x4b0d08
push edx
call fcn.004686b4
add esp, 8
test eax, eax
je 0x4153d2
lea eax, [esp + 0x7c]
push 0x4b0d04
push eax
call fcn.004686b4
add esp, 8
test eax, eax
je 0x4153d2
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 0x415362
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.00479758
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 0x415c20
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 0x415c82
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 0x415c90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x486fcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b8440]
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 0x415dc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x415cf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00479758
xor eax, eax
jmp 0x415e3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004798e1
push esi
lea ecx, [esp + 0xc]
call fcn.00479b70
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 0x415e1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00415c20
test eax, eax
jne 0x415e1d
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 accept
mov ecx, edi
call fcn.00415c20
test eax, eax
jne 0x415e1d
lea eax, [esp + 0x14]
push 0x4b0d1c
push eax
call fcn.00469860
mov esi, eax
add esp, 8
test esi, esi
jne 0x415dfc
lea ecx, [esp + 0x14]
push 0x4b0d18
push ecx
call fcn.004697e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x415dfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x415dff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00479891
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x415d0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00479758
xor eax, eax
jmp 0x415e3f
mov byte [esi], 0
push 0x4b0d14
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.00479758
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 0x427880
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 0x4278ee
cmp si, 0x69
ja 0x4278ee
add esi, 0xffd0
cmp si, 0x11
je 0x4278be
push 0x11
call edi
test ax, ax
jge 0x4278be
or esi, 0x2000
cmp si, 0x10
je 0x4278d3
push 0x10
call edi
test ax, ax
jge 0x4278d3
or esi, 0x4000
cmp si, 0x12
je 0x4278e8
push 0x12
call edi
test ax, ax
jge 0x4278e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4278fb
mov esi, 0xbd
jmp 0x4278af
cmp si, 0x6e
jne 0x427908
mov esi, 0xbe
jmp 0x4278af
cmp si, 0x6f
jne 0x4278a9
mov esi, 0xbf
jmp 0x4278af

Function at 0x4291f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c9cc8]
xor edx, edx
cmp eax, edx
jne 0x429216
xor eax, eax
mov byte [eax + 0x4c9bc8], al
inc eax
cmp eax, 0x100
jl 0x4291fe
mov dword [0x4c9cc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c9bc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4292a7
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 0x42927a
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 0x429248
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x429320
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 0x429373
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 0x42935a
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