joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad2d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x422a10], bl
je 0x40adad
cmp word [0x41c0d8], bx
je 0x40adad
push esi
push 0x41c0d8
lea esi, [ebp - 0x808]
call fcn.0040acf2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40adad
push dword [ebp + 8]
call fcn.004098ab
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40adb2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x422a10], 0
je 0x40ae59
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040acf2
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40ae59
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ae50
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40ae34
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040d222
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40af81
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x4228e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4228e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4228ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4228e0], eax
je 0x40afb1
xor eax, eax
inc eax
jmp 0x40afda
cmp byte [0x4228e7], 0
je 0x40afbf
push 2
pop eax
jmp 0x40afda
push dword [ebp + 8]
push 0x40a33a
push dword [0x422a00]
push str.REPLACEFILEDLG
push dword [0x416e74]
call esi
dec eax
je 0x40b02c
dec eax
je 0x40b03e
dec eax
je 0x40b025
dec eax
jne 0x40b009
push dword [ebp + 8]
push 0x40a686
push dword [0x422a00]
push str.RENAMEDLG
push dword [0x416e74]
call esi
test eax, eax
je 0x40af8b
mov al, 0x52
jmp 0x40b039
dec eax
je 0x40b01a
dec eax
mov al, 0x4e
jne 0x40b039
mov byte [0x4228e7], 1
jmp 0x40b039
mov byte [0x4229f2], 1
mov al, 0x43
jmp 0x40b039
mov byte [0x4228e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40b039
Function at 0x40c9ba
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040d5ed
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42b4c0
call fcn.0040dd13
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41d0e0
push edi
call fcn.00409525
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ca68
push eax
call fcn.0040a8c7
cmp byte [0x422a11], bl
je 0x40ca5a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ca4f
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ca46
push esi
push eax
push edi
call fcn.00409552
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40ca68
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41c8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x416e74], edi
mov dword [0x416e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x416e78]
mov dword [0x41c8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41c8d8], eax
call fcn.00411ac2
push esi
mov ecx, 0x416e88
call fcn.00408b79
lea ecx, [ebp - 0x5c]
call fcn.00410f80
lea ecx, [ebp - 0x34]
call fcn.00410f80
push 0x64
call fcn.0040a06a
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040a06a
push ebx
push 0x40c143
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41c0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41c0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41c0d0], ebx
mov dword [0x41c0d4], ebx
call fcn.00410fa2
lea ecx, [ebp - 0x5c]
call fcn.00410fa2
lea ecx, [ebp - 0xc]
call fcn.00411b1c
cmp byte [0x422a08], bl
je 0x40cb47
call fcn.0040ab01
push 0x100
push ebx
push 0x4228f0
call fcn.00409525
cmp dword [0x423b24], ebx
jbe 0x40cb6a
push dword [0x423b18]
call fcn.004094a1
push dword [0x41c8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41c8d8]
cmp eax, ebx
je 0x40cb84
push eax
call esi
cmp dword [0x416e7c], ebx
jne 0x40cba3
cmp byte [0x4229f2], bl
je 0x40cba3
push 0xff
mov ecx, 0x416e7c
call fcn.004032d4
mov eax, dword [0x423b30]
mov byte [0x4229f2], 1
cmp eax, ebx
je 0x40cbb9
push eax
call fcn.0040aac2
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x423b2c]
cmp eax, ebx
ja 0x40cbcd
mov eax, dword [0x416e7c]
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40cf32
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x410fe8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x41101a
cmp dword [ebp - 4], edi
jne 0x41105b
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x41105b
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x411007
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x411007
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x4110b1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x412b00
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4110a8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x41109f
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x411855
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004117ee
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x4118bc
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x41193d
cmp dword [ebp + 0xc], edi
je 0x411960
cmp dword [esi + 0x14], edi
jne 0x411960
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x411960
push eax
mov ecx, esi
call fcn.004114ce
mov esi, eax
cmp esi, edi
je 0x411960
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004094a1
jmp 0x411960
cmp eax, edi
je 0x411953
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x411960
mov ecx, esi
call fcn.004111e3
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x411967
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x412af0
push 1
xor ebx, ebx
push ebx
push 0x412ba0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x411a38
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x412b90
push eax
call dword [ecx]
test eax, eax
jl 0x411a2f
cmp byte [ebp + 8], bl
je 0x4119ba
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4119d7
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4119e9
push 0x412408
jmp 0x4119ec
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x411a01
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x411a12
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x411a26
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x411a52
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4d2760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
or ebp, 0xffffffff
jmp 0x4d2782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d2789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2778
mov eax, 1
add ebx, ebx
jne 0x4d279b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d27ac
jne 0x4d27cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d27cb
dec eax
add ebx, ebx
jne 0x4d27b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d2790
add ebx, ebx
jne 0x4d27c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d281d
xor ecx, ecx
sub eax, 3
jb 0x4d27e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d2852
sar eax, 1
mov ebp, eax
jmp 0x4d27ee
add ebx, ebx
jne 0x4d27ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d27bc
inc ecx
add ebx, ebx
jne 0x4d27fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d27bc
add ebx, ebx
jne 0x4d2809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d27fe
jne 0x4d281a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d27fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d283c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d282e
jmp 0x4d277e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d283c
add edi, ecx
jmp 0x4d277e
pop esi
mov edi, esi
mov ecx, 0x3887
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d285a
cmp byte [edi], 0x11
jne 0x4d285a
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 al, bl
loop 0x4d285f
lea edi, [esi + 0xce000]
mov eax, dword [edi]
or eax, eax
je 0x4d28d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe45c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe4714]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d288c
mov ecx, edi
jns 0x4d28bb
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 + 0xe4718]
or eax, eax
je 0x4d28d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4d28a9
call dword [esi + 0xe4728]
mov ebp, dword [esi + 0xe471c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d290b
sub esp, 0xffffff80
jmp 0x417520
Function at 0x4d4594
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004d4613
jae 0x4d45a0
xor ecx, ecx
call fcn.004d4613
jae 0x4d45ca
xor eax, eax
call fcn.004d4613
jae 0x4d45db
mov al, 0x10
call fcn.004d4613
adc al, al
jae 0x4d45bc
jne 0x4d4608
stosb byte es:[edi], al
jmp 0x4d45a1
call fcn.004d461f
dec ecx
loop 0x4d45e7
mov eax, ebp
call fcn.004d461d
jmp 0x4d4609
lodsb al, byte [esi]
shr eax, 1
je 0x4d462f
adc ecx, 2
mov ebp, eax
jmp 0x4d4609
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004d461d
cmp eax, 0x7d00
jae 0x4d4607
cmp eax, 0x500
jae 0x4d4608
cmp eax, 0x7f
ja 0x4d4609
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4d45a1
pop ebp
ret 8
Function at 0x40a1f7
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x40a219
mov eax, 0xfffffffd
jmp 0x40a291
mov ebx, dword [0x5b9994]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40a25f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x5b9994]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40a287
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40a291
mov esp, ebp
pop ebp
ret 4

Function at 0x40ff64
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x472310
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51666b
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.00507e09
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x472392
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00504c14
mov eax, dword [eax]
push 0x5a6294
push eax
call fcn.004f68d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00508094
test bl, bl
je 0x472392
push 0x5a6294
lea ecx, [esp + 0xc]
call fcn.00508470
push 0x5a9e28
lea ecx, [esp + 0xc]
call fcn.00508470
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 0x4723ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00508094
jmp 0x472499
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 0x472452
lea edx, [esp + 0x7c]
push 0x5a9e24
push edx
call fcn.004f68d4
add esp, 8
test eax, eax
je 0x472452
lea eax, [esp + 0x7c]
push 0x5a9e20
push eax
call fcn.004f68d4
add esp, 8
test eax, eax
je 0x472452
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 0x4723e2
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.00508094
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 0x473710
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 0x473772
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 0x473780
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5167cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5b51ac]
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 0x4738b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4737e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00508094
xor eax, eax
jmp 0x47392f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0050821d
push esi
lea ecx, [esp + 0xc]
call fcn.005084ac
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5a9e60
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x47390d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00473710
test eax, eax
jne 0x47390d
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 closesocket
mov ecx, edi
call fcn.00473710
test eax, eax
jne 0x47390d
lea eax, [esp + 0x14]
push 0x5a9e3c
push eax
call fcn.004f7af0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4738ec
lea ecx, [esp + 0x14]
push 0x5a9e38
push ecx
call fcn.004f7a70
mov esi, eax
add esp, 8
test esi, esi
jne 0x4738ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4738ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005081cd
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4737fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00508094
xor eax, eax
jmp 0x47392f
mov byte [esi], 0
push 0x5a9e34
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.00508094
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 0x48a770
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 0x48a7de
cmp si, 0x69
ja 0x48a7de
add esi, 0xffd0
cmp si, 0x11
je 0x48a7ae
push 0x11
call edi
test ax, ax
jge 0x48a7ae
or esi, 0x2000
cmp si, 0x10
je 0x48a7c3
push 0x10
call edi
test ax, ax
jge 0x48a7c3
or esi, 0x4000
cmp si, 0x12
je 0x48a7d8
push 0x12
call edi
test ax, ax
jge 0x48a7d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x48a7eb
mov esi, 0xbd
jmp 0x48a79f
cmp si, 0x6e
jne 0x48a7f8
mov esi, 0xbe
jmp 0x48a79f
cmp si, 0x6f
jne 0x48a799
mov esi, 0xbf
jmp 0x48a79f

Function at 0x48bfa0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5c6328]
xor edx, edx
cmp eax, edx
jne 0x48bfc6
xor eax, eax
mov byte [eax + 0x5c6228], al
inc eax
cmp eax, 0x100
jl 0x48bfae
mov dword [0x5c6328], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5c6228
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48c057
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 0x48c02a
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 0x48bff8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48c0d0
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 0x48c123
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 0x48c10a
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