joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a635c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a63c7
cmp byte [ebx + 0xd3], 0
jne 0x4a63c7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069bc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a63b4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a63d4
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406880
jmp 0x4a63d4
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406880
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a7bfc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a7c6a
mov eax, esi
call fcn.0048037c
test al, al
je 0x4a7c6a
mov eax, dword [ebx + 0x84]
call fcn.0047ffd0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a7c6a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a7c5e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047ffd0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00476fa4
jmp 0x4a7c6a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a7a34
pop esi
pop ebx
ret
Function at 0x49c050
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.004b1e10
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x492380]
mov dl, byte [eax + 0x492378]
mov byte [esp + eax + 0xc], cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 8
jl 0x49c060
lea eax, [esp]
push 0x4876e8
push eax
call fcn.004a0590
push 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0049db70
add esp, 0x14
push ebx
push ebp
push esi
mov dword [esp + 0x14], 0
push edi
jmp 0x49c0b0
mov eax, dword [esp + 0x10034]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [esp + 0x38]
push 1
push edx
call fcn.004a1db0
add esp, 0x10
cmp eax, 0x18
jl 0x49c131
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x49c0fd
xor edx, edx
mov edi, edi
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x49c121
cmp ecx, 0x14
je 0x4b5f7a
inc edx
cmp edx, edi
jl 0x49c0e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10034]
lea edx, [ecx + ebp - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x24], edx
call fcn.004a217c
add esp, 0xc
jmp 0x49c0b0
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
je 0x49c143
inc ecx
jmp 0x49c0ef
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
je 0x49c155
add ecx, 2
jmp 0x49c0ef
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x4b5f72
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
je 0x4b5f61
add ecx, 4
jmp 0x49c0ef
add ecx, 5
cmp ecx, 0x14
jl 0x49c0e6
jmp 0x49c0ef
add ecx, 3
jmp 0x49c0ef
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10034]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.004a217c
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.004a1db0
lea edx, [esp + 0x2c]
push 0x4876d8
push edx
mov byte [esp + 0x38], 0
call fcn.004a1dd0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x49c136
Function at 0x49c1e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
mov ebx, 0x4848e8
call fcn.0049c180
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.004a0590
push esi
call fcn.0049deef
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0049c2a0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0049c2d0
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x49c231
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x4876c8
push eax
call fcn.004a1a06
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x4b7eee
push edi
call fcn.0049c050
cmp eax, ebx
je 0x4b7ef8
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.004a1a94
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x49c290
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004a1db0
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call 0x4d7bdc
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x4b7f24
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.004a2084
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x49c290

Function at 0x49c2a0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.0049fdf0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

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

Disassembly:
cmp dword [0x42c5d4], 0
push esi
jne 0x4068a7
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 0x406881
mov dword [ecx*4 + 0x42c5d0], eax
inc ecx
cmp ecx, 0x100
jl 0x40687c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068d8
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 + 0x42c5d0]
xor eax, esi
inc ecx
dec edx
jne 0x4068ba
pop edi
not eax
pop esi
ret 0xc
Function at 0xa11203
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x22
push 0xffffffffffffffff
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [ebp + 8]
inc esi
mov dword [0xa1504c], eax
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0xa11355
push dword [ebp + 0x10]
push esi
push eax
call fcn.00a11ae1
test eax, eax
jl 0xa1134c
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call fcn.00a11622
test eax, eax
je 0xa1134c
test byte [ebp - 0x18], bl
jne 0xa124d2
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call fcn.00a11e56
push eax
mov dword [ebp - 0x24], eax
call fcn.00a119e3
test eax, eax
je 0xa124b5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp - 0x1c]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push dword [0xa1504c]
call fcn.00a11b87
mov ebx, dword [ebp - 8]
test eax, eax
je 0xa1133a
cmp ebx, edi
jne 0xa121db
push dword [ebp - 4]
call fcn.00a11467
push 0xa11360
push dword [0xa1504c]
call fcn.00a113b9
push dword [ebp + 0x14]
mov esi, eax
push dword [ebp + 0x10]
push dword [0xa1504c]
push esi
push dword [ebp - 0x20]
call fcn.00a11444
cmp esi, edi
je 0xa11331
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.00a1138b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp + 0x10], ebx
jmp 0xa112f7
push 0xa124e4
push dword [ebp + 8]
push 0x403
push dword [0xa1504c]
call fcn.00a1389e
jmp 0xa11341
push dword [ebp + 0x10]
push dword [ebp + 8]
call 0xa13955
jmp 0xa1134c
Function at 0xa11467
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
push esi
push dword [ebp + 8]
mov esi, dword [eax + 0x30]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp word [eax + 0x14], 0
je 0xa11491
cmp dword [eax + 0x4c], 0
jne 0xa123b3
lea eax, [ebp - 4]
push eax
push 0xa
push 1
push dword [esi + 8]
call dword [sym.imp.imagehlp.dll_ImageDirectoryEntryToData]
test eax, eax
je 0xa114b3
movzx eax, word [eax + 0x34]
test ax, ax
jne 0xa123f0
pop esi
leave
ret 4
movzx ecx, byte [eax + 0x4c]
mov dword [esi + 0xa4], ecx
movzx ecx, byte [eax + 0x4d]
mov dword [esi + 0xa8], ecx
mov cx, word [eax + 0x4e]
mov edx, 0x3fff
and cx, dx
mov word [esi + 0xac], cx
mov eax, dword [eax + 0x4c]
xor eax, 0xbfffffff
shr eax, 0x1e
mov dword [esi + 0xb0], eax
jmp 0xa11491
mov word [esi + 0xae], ax
jmp 0xa114b3

Function at 0xa114bd
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0xa15040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x214], eax
cmp eax, ebx
je 0xa123fc
push eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, ebx
je 0xa11519
mov ecx, 0x100
test word [eax + 0x5e], cx
je 0xa11519
push 3
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a11189
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xc1
cmp eax, edi
jne 0xa1243f
push esi
call fcn.00a139e5
test eax, eax
je 0xa1241c
xor eax, eax
jmp 0xa1151f
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
push ebx
mov dword [ebp - 0x218], esi
push 0x3000
jmp 0xa12454
push ebx
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push eax
push ebx
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, ebx
je 0xa11519
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x401
push dword [ebp - 0x210]
call fcn.00a1389e
jmp 0xa11519
Function at 0xa11e56
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0xa15040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x210], eax
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, 0x104
cmp eax, 0xffffffff
je 0xa1233b
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00a11ae1
test eax, eax
jl 0xa1235b
and dword [ebp - 0x22c], 0
lea eax, [ebp - 0x20c]
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x230], 0x20
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xa11fe8
mov edi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00a12001
mov esi, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
test eax, eax
jl 0xa11f03
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0xa12618
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
cmp ebx, 0xffffffff
jne 0xa120fc
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 8
mov dword [ebp - 0x21c], 0x7b
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0xa120fc
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 0x7c
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0xa11fd3
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x21c], 2
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0xa120fc
cmp dword [ebp + 0x10], 0
je 0xa11fd3
and dword [ebp - 0x254], 0
push 7
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x250], 0x88
mov dword [ebp - 0x240], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x254], 0x20
call esi
cmp eax, ebx
je 0xa11fd3
push dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a11189
leave
ret 0xc
push dword [ebp - 0x210]
push ebx
jmp 0xa11fcd
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0xa11ea9
xor eax, eax
jmp 0xa11fd5
lea eax, [ebp - 0x230]
push eax
call esi
mov ebx, eax
jmp 0xa11f03
Function at 0x405c3d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00405ded
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x405d3b
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x405cde
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x405d21
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x405cf5
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x405d10
test al, 0x40
je 0x405d07
mov ecx, dword [edi + 0x20]
jmp 0x405d0e
test al, 0x80
je 0x405d21
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x405d21
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x405cad
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40fad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47861b
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.0046cc48
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40fb52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046a8d0
mov eax, dword [eax]
push 0x4d0220
push eax
call fcn.0045c314
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ced3
test bl, bl
je 0x40fb52
push 0x4d0220
lea ecx, [esp + 0xc]
call fcn.0046d263
push 0x4d3d9c
lea ecx, [esp + 0xc]
call fcn.0046d263
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 0x40fb8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ced3
jmp 0x40fc59
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 0x40fc12
lea edx, [esp + 0x7c]
push 0x4d3d98
push edx
call fcn.0045c314
add esp, 8
test eax, eax
je 0x40fc12
lea eax, [esp + 0x7c]
push 0x4d3d94
push eax
call fcn.0045c314
add esp, 8
test eax, eax
je 0x40fc12
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 0x40fba2
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.0046ced3
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 0x410450
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 0x4104b2
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 0x4104c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47869b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4de904]
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 0x4105f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x410526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ced3
xor eax, eax
jmp 0x41066f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d010
push esi
lea ecx, [esp + 0xc]
call fcn.0046d29f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d3dd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41064d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00410450
test eax, eax
jne 0x41064d
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 0x80000000
mov ecx, edi
call fcn.00410450
test eax, eax
jne 0x41064d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0045d350
mov esi, eax
add esp, 8
test esi, esi
jne 0x41062c
lea ecx, [esp + 0x14]
push 0x4d3dac
push ecx
call fcn.0045d2d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41062c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41062f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046cfc0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41053e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ced3
xor eax, eax
jmp 0x41066f
mov byte [esi], 0
push 0x4d3da8
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.0046ced3
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 0x421170
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 0x4211de
cmp si, 0x69
ja 0x4211de
add esi, 0xffd0
cmp si, 0x11
je 0x4211ae
push 0x11
call edi
test ax, ax
jge 0x4211ae
or esi, 0x2000
cmp si, 0x10
je 0x4211c3
push 0x10
call edi
test ax, ax
jge 0x4211c3
or esi, 0x4000
cmp si, 0x12
je 0x4211d8
push 0x12
call edi
test ax, ax
jge 0x4211d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4211eb
mov esi, 0xbd
jmp 0x42119f
cmp si, 0x6e
jne 0x4211f8
mov esi, 0xbe
jmp 0x42119f
cmp si, 0x6f
jne 0x421199
mov esi, 0xbf
jmp 0x42119f

Function at 0x422920
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ef0a0]
xor edx, edx
cmp eax, edx
jne 0x422946
xor eax, eax
mov byte [eax + 0x4eefa0], al
inc eax
cmp eax, 0x100
jl 0x42292e
mov dword [0x4ef0a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4eefa0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4229d7
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 0x4229aa
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 0x422978
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422a50
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 0x422aa3
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 0x422a8a
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