joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x413328]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0xc], 1
mov ecx, 0x414058
call fcn.004075c0
mov dword [ebp - 8], eax
push 0xf0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40217b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40217b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40217b
cmp dword [ebp - 0xc], 0
je 0x40217b
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x40217b
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x1c], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
movzx ecx, word [ebp - 0x20]
cmp ecx, 0x403
jne 0x4020f9
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x130]
call fcn.00402190
lea ecx, [ebp - 0x130]
call fcn.00407830
push eax
push 0
push 0x143
movzx eax, word [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x25c]
add ecx, 4
call fcn.00402b40
cmp eax, 0xffffffff
jne 0x4020ec
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x130]
call fcn.004021d0
jmp 0x40216d
movzx ecx, word [ebp - 0x20]
cmp ecx, 0x1234
jne 0x40216d
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x150], 0xffffffff
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x258]
call fcn.00402190
mov ecx, eax
call fcn.00407830
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x258]
call fcn.004021d0
lea eax, [ebp - 0x154]
push eax
push 0
push 0x40b
movzx ecx, word [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x25c]
add ecx, 4
call fcn.00402b40
cmp eax, 0xffffffff
jne 0x40216d
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
jmp 0x402050
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00408183
mov esp, ebp
pop ebp
ret 4
Function at 0x404900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x413328]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.004021c0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00407870
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404bf0
lea ecx, [ebp - 0x438]
call fcn.00407870
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404200
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40497e
call fcn.00404230
mov dword [ebp - 0x444], eax
jmp 0x404ad3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x4049af
call fcn.00404230
mov dword [ebp - 0x444], eax
jmp 0x404ad3
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x4049df
call fcn.00404230
mov dword [ebp - 0x444], eax
jmp 0x404ad3
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x404a2f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.00407890
lea ecx, [ebp - 0x2c]
call fcn.00407460
mov eax, dword [ebp - 0x44c]
jmp 0x404b08
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.00407800
lea ecx, [ebp - 0x438]
call fcn.00407830
test eax, eax
jne 0x404a5c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x404ad3
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00407830
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.004021c0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x404a9e
call fcn.00404230
mov dword [ebp - 0x444], eax
jmp 0x404ad3
lea ecx, [ebp - 0x438]
call fcn.00407830
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00407830
push eax
lea ecx, [ebp - 0x18]
call fcn.00404c20
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x404ae3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.00407890
lea ecx, [ebp - 0x2c]
call fcn.00407460
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00408183
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4064c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x413328]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00406210
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406450
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40652b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00406240
mov eax, dword [ebp - 0x224]
jmp 0x4065bc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406591
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004064c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406588
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00406240
mov eax, dword [ebp - 0x228]
jmp 0x4065bc
mov dword [ebp - 4], 0x100
jmp 0x406532
lea ecx, [ebp - 0x14]
call fcn.00406380
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004062c0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00406240
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00408183
mov esp, ebp
pop ebp
ret 4
Function at 0x406b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x406b29
xor ecx, ecx
jne 0x406b29
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x406b4a
mov eax, 0xd
jmp 0x406ba5
xor eax, eax
jne 0x406b31
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x406b5b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x407f5f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4140e4], 0
push esi
jne 0x407ed2
call fcn.00407df8
test eax, eax
je 0x407f15
mov eax, dword [0x4140e4]
cmp eax, 1
jne 0x407ef3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x407f15
pop esi
ret
push eax
call dword [0x4140ec]
test eax, eax
jne 0x407f5d
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 0x407f19
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4140e4]
call dword [0x4140ec]
mov edi, eax
test edi, edi
je 0x407f3e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407f5a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4140e4]
call dword [0x4140e8]
add edi, 0x10
cmp edi, esi
jb 0x407f46
mov eax, edi
pop edi
pop esi
ret
jmp 0x407ebf

Function at 0x408183
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413328]
jne 0x40818d
repz ret
jmp fcn.00409d7c
Function at 0x40cfff
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.0040a012
and dword [ebp - 4], 0
cmp dword [0x414bb4], 0
mov ebx, eax
jne 0x40d0b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d161
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d161
push eax
call fcn.00409fa0
mov dword [esp], 0x410830
push edi
mov dword [0x414bb4], eax
call esi
push eax
call fcn.00409fa0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414bb8], eax
call esi
push eax
call fcn.00409fa0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414bbc], eax
call esi
push eax
call fcn.00409fa0
pop ecx
mov dword [0x414bc4], eax
test eax, eax
je 0x40d0b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409fa0
pop ecx
mov dword [0x414bc0], eax
mov eax, dword [0x414bc0]
cmp eax, ebx
je 0x40d108
cmp dword [0x414bc4], ebx
je 0x40d108
push eax
call fcn.0040a01b
push dword [0x414bc4]
mov esi, eax
call fcn.0040a01b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d108
test edi, edi
je 0x40d108
call esi
test eax, eax
je 0x40d0ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d0ff
test byte [ebp - 0xc], 1
jne 0x40d108
or dword [ebp + 0x10], 0x200000
jmp 0x40d141
mov eax, dword [0x414bb8]
cmp eax, ebx
je 0x40d141
push eax
call fcn.0040a01b
pop ecx
test eax, eax
je 0x40d141
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d141
mov eax, dword [0x414bbc]
cmp eax, ebx
je 0x40d141
push eax
call fcn.0040a01b
pop ecx
test eax, eax
je 0x40d141
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414bb4]
call fcn.0040a01b
pop ecx
test eax, eax
je 0x40d161
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d163
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421b50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421b72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421b68
mov eax, 1
add ebx, ebx
jne 0x421b8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421b80
jne 0x421b9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421b80
xor ecx, ecx
sub eax, 3
jb 0x421bb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421c22
mov ebp, eax
add ebx, ebx
jne 0x421bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421bec
inc ecx
add ebx, ebx
jne 0x421bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421bcd
jne 0x421be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421bcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421c0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421bfd
jmp 0x421b6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421c0c
add edi, ecx
jmp 0x421b6e
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421c2a
cmp byte [edi], 0xd
jne 0x421c2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421c2f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421ca7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22984]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22a38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421c5c
mov ecx, edi
jns 0x421c8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22a3c]
or eax, eax
je 0x421ca1
mov dword [ebx], eax
add ebx, 4
jmp 0x421c79
call dword [esi + 0x22a40]
popal
jmp section.UPX0
Function at 0x461c80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51cb4b
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.0050bef3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x461d02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00508ec4
mov eax, dword [eax]
push 0x7c4278
push eax
call fcn.004e8c24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050c17e
test bl, bl
je 0x461d02
push 0x7c4278
lea ecx, [esp + 0xc]
call fcn.0050c55a
push 0x7c7df4
lea ecx, [esp + 0xc]
call fcn.0050c55a
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 0x461d3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050c17e
jmp 0x461e09
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 0x461dc2
lea edx, [esp + 0x7c]
push 0x7c7df0
push edx
call fcn.004e8c24
add esp, 8
test eax, eax
je 0x461dc2
lea eax, [esp + 0x7c]
push 0x7c7dec
push eax
call fcn.004e8c24
add esp, 8
test eax, eax
je 0x461dc2
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 0x461d52
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.0050c17e
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 0x462600
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 0x462662
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 0x462670
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x51cbcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7d6810]
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 0x4627a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4626d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050c17e
xor eax, eax
jmp 0x46281f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0050c307
push esi
lea ecx, [esp + 0xc]
call fcn.0050c596
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x7c7e2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4627fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00462600
test eax, eax
jne 0x4627fd
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.00462600
test eax, eax
jne 0x4627fd
lea eax, [esp + 0x14]
push 0x7c7e08
push eax
call fcn.004e9de0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4627dc
lea ecx, [esp + 0x14]
push 0x7c7e04
push ecx
call fcn.004e9d60
mov esi, eax
add esp, 8
test esi, esi
jne 0x4627dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4627df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0050c2b7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4626ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050c17e
xor eax, eax
jmp 0x46281f
mov byte [esi], 0
push 0x7c7e00
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.0050c17e
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 0x46caf6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x46cb1e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret
Function at 0x476d40
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 0x476dae
cmp si, 0x69
ja 0x476dae
add esi, 0xffd0
cmp si, 0x11
je 0x476d7e
push 0x11
call edi
test ax, ax
jge 0x476d7e
or esi, 0x2000
cmp si, 0x10
je 0x476d93
push 0x10
call edi
test ax, ax
jge 0x476d93
or esi, 0x4000
cmp si, 0x12
je 0x476da8
push 0x12
call edi
test ax, ax
jge 0x476da8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x476dbb
mov esi, 0xbd
jmp 0x476d6f
cmp si, 0x6e
jne 0x476dc8
mov esi, 0xbe
jmp 0x476d6f
cmp si, 0x6f
jne 0x476d69
mov esi, 0xbf
jmp 0x476d6f

Function at 0x478570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7e8758]
xor edx, edx
cmp eax, edx
jne 0x478596
xor eax, eax
mov byte [eax + 0x7e8658], al
inc eax
cmp eax, 0x100
jl 0x47857e
mov dword [0x7e8758], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7e8658
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x478627
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 0x4785fa
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 0x4785c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4786a0
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 0x4786f3
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 0x4786da
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