joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45bb4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45bb4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00470315
mov esi, eax
test esi, esi
je 0x45bb4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45bb4d
mov ecx, esi
call fcn.0045b9a0
cmp edi, eax
jge 0x45bb4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45bad3
mov dword [esp + 0x34], 1
jmp 0x45bb2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45bb4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045a220
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x470cb9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470cf1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046ed46
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046ed1e
jmp 0x470cfd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4723ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4723f0
call fcn.00477f82
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4723f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4723e7
xor eax, eax
jmp 0x4723f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004723fe
pop edi
pop esi
pop ebx
ret 4
Function at 0x4784b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4784e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4784fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478418
jmp 0x4784fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4784fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478418
test edi, edi
mov eax, edi
jne 0x4784e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e10
Capabilities:
Get common file path
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.00401e40
mov ecx, esi
call fcn.00402110
mov ecx, esi
call fcn.00402280
mov ecx, esi
call fcn.00402330
mov ecx, esi
pop esi
jmp 0x402400
sub esp, 0x214
push esi
call fcn.004020c0
mov ecx, eax
mov dword [esp + 4], eax
call fcn.00402530
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], eax
call fcn.004024f0
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], eax
call fcn.00402550
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
call fcn.00402510
mov dword [esp + 0xc], eax
lea eax, [esp + 0x118]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x118]
lea ecx, [esp + 0x18]
push 0x41da58
push 0x41da54
push str._akebo
call fcn.00401d90
lea ecx, [esp + 0x18]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x18]
push edx
call fcn.0040e39c
add esp, 4
lea eax, [esp + 0x18]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
je 0x4024e6
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lwrite]
lea ecx, [esp + 8]
push 4
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 4
push edx
push esi
call edi
lea eax, [esp + 0x14]
push 4
push eax
push esi
call edi
lea ecx, [esp + 0xc]
push 4
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push 4
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
add esp, 0x214
ret

Function at 0x402330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x204
push esi
call fcn.004023f0
mov dword [esp + 4], eax
lea eax, [esp + 8]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 8]
lea ecx, [esp + 0x108]
push str.ook.ini
push 0x41da40
push 0x41da3c
call fcn.004023b0
lea ecx, [esp + 0x108]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
je 0x40239b
lea edx, [esp + 4]
push 4
push edx
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
add esp, 0x204
ret
Function at 0x4034f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x41f134]
sub esp, 0x214
test eax, eax
push ebp
jne 0x4035d4
lea eax, [esp + 0x18]
push 0x100
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x12c]
push 0x100
push ecx
push 0x41da64
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x403541
mov dword [esp + 8], 0x75bcd15
push 0x41d72c
mov dword [0x41f134], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebp, ebp
test eax, eax
mov dword [esp + 0xc], eax
jle 0x4035d4
push ebx
push esi
push edi
mov eax, ebp
mov ecx, 6
cdq
idiv ecx
mov eax, dword [esp + 0x14]
mov esi, ebp
lea ebx, [ebp - 1]
mov ecx, edx
xor edx, edx
add ecx, 2
div ecx
mov edi, edx
inc edi
test ebp, ebp
jl 0x4035c8
lea edx, [ebp + 0x41d82b]
mov dword [esp + 0x10], edx
test ebx, ebx
jl 0x4035c8
cmp esi, ebx
je 0x4035c8
mov edx, dword [esp + 0x10]
lea ecx, [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz]
call fcn.00402680
mov ecx, dword [esp + 0x10]
sub ebx, 2
sub ecx, 2
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz
mov dword [esp + 0x14], ecx
sub esi, edi
call fcn.00409790
add esp, 4
test esi, esi
jge 0x403590
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x403563
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x214
ret

Function at 0x4092a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ea20
cmp edx, dword [eax]
je 0x4092c3
add eax, 8
inc ecx
cmp eax, 0x41eab0
jl 0x4092b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ea20]
jne 0x4093f1
mov eax, dword [0x421148]
cmp eax, 1
je 0x4093cb
test eax, eax
jne 0x4092f4
cmp dword [0x41e324], 1
je 0x4093cb
cmp edx, 0xfc
je 0x4093f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40932b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004071e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004072d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40936e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004072d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4190d8
push edi
call fcn.0040a180
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004071e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004071f0
lea eax, [ebp - 0xa0]
push 0x4190b8
push eax
call fcn.004071f0
push dword [esi + 0x41ea24]
lea eax, [ebp - 0xa0]
push eax
call fcn.004071f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a0f7
add esp, 0x2c
pop edi
jmp 0x4093f1
lea eax, [ebp + 8]
lea esi, [esi + 0x41ea24]
push 0
push eax
push dword [esi]
call fcn.004072d0
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 0x40dcd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004054e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40dd9b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40dd9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40dd4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40dd59
or bh, 8
and edi, 0x8000000
je 0x40dd74
mov eax, dword [0x4228dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40dd9b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40e19b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40e1bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40e1da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x410b53
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x410b8b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00412eec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00412ec4
jmp 0x410b97
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4120a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4120e2
call fcn.00415582
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4120e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4120d9
xor eax, eax
jmp 0x4120ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004120f0
pop edi
pop esi
pop ebx
ret 4

Function at 0x415caa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x415cd8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415cf6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415c10
jmp 0x415cf6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415cf6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415c10
test edi, edi
mov eax, edi
jne 0x415ce0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x48ea460d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, str.zTP
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x543a3fc8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x420670
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a123b
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.00495bfd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4206f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004937db
mov eax, dword [eax]
push 0x4dd238
push eax
call fcn.00473de4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00495e88
test bl, bl
je 0x4206f2
push 0x4dd238
lea ecx, [esp + 0xc]
call fcn.00496218
push 0x4e0db4
lea ecx, [esp + 0xc]
call fcn.00496218
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 0x42072e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00495e88
jmp 0x4207f9
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 0x4207b2
lea edx, [esp + 0x7c]
push 0x4e0db0
push edx
call fcn.00473de4
add esp, 8
test eax, eax
je 0x4207b2
lea eax, [esp + 0x7c]
push 0x4e0dac
push eax
call fcn.00473de4
add esp, 8
test eax, eax
je 0x4207b2
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 0x420742
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.00495e88
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 0x420ff0
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 0x421052
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 0x421060
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a12bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e7830]
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 0x421198
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4210c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00495e88
xor eax, eax
jmp 0x42120f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00495fc5
push esi
lea ecx, [esp + 0xc]
call fcn.00496254
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 0x4211ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.00420ff0
test eax, eax
jne 0x4211ed
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 connect
mov ecx, edi
call fcn.00420ff0
test eax, eax
jne 0x4211ed
lea eax, [esp + 0x14]
push 0x4e0dc8
push eax
call fcn.00474e30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4211cc
lea ecx, [esp + 0x14]
push 0x4e0dc4
push ecx
call fcn.00474db0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4211cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4211cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00495f75
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4210de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00495e88
xor eax, eax
jmp 0x42120f
mov byte [esi], 0
push 0x4e0dc0
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.00495e88
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 0x435ff0
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 0x43605e
cmp si, 0x69
ja 0x43605e
add esi, 0xffd0
cmp si, 0x11
je 0x43602e
push 0x11
call edi
test ax, ax
jge 0x43602e
or esi, 0x2000
cmp si, 0x10
je 0x436043
push 0x10
call edi
test ax, ax
jge 0x436043
or esi, 0x4000
cmp si, 0x12
je 0x436058
push 0x12
call edi
test ax, ax
jge 0x436058
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43606b
mov esi, 0xbd
jmp 0x43601f
cmp si, 0x6e
jne 0x436078
mov esi, 0xbe
jmp 0x43601f
cmp si, 0x6f
jne 0x436019
mov esi, 0xbf
jmp 0x43601f

Function at 0x4378b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f8c68]
xor edx, edx
cmp eax, edx
jne 0x4378d6
xor eax, eax
mov byte [eax + 0x4f8b68], al
inc eax
cmp eax, 0x100
jl 0x4378be
mov dword [0x4f8c68], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f8b68
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x437967
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 0x43793a
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 0x437908
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4379e0
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 0x437a33
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 0x437a1a
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