joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x40d9a7
mov eax, dword [0x43ba60]
test eax, eax
je 0x40d998
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40d989
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40d960
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40d9bc
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d950
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40d93d
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40d920
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40d90e
call fcn.00410c40
jmp 0x40d90e
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d904
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d8fd
mov ebx, dword [eax + 0x28]
call fcn.00410c40
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40d8d3
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40d8c5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40d8ba
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym._abort
jmp sym.__Unwind_DeleteException

Function at 0x40de00
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov edx, eax
je 0x40de30
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
mov esp, ebp
pop ebp
ret
call fcn.00410c40
jmp 0x40de26

Function at 0x410e20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x42e850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], sym.___gxx_personality_sj0
mov dword [ebp - 0x38], 0x4334b8
mov dword [ebp - 0x30], 0x42e9ea
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov edx, dword [0x434124]
test edx, edx
je 0x42e9c2
cmp dword [ebp + 8], 0x80
ja 0x42e8a8
mov eax, dword [0x434124]
test eax, eax
jle 0x42e8d8
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x434130]
test eax, eax
je 0x42e9aa
mov eax, dword [0x4340f0]
test eax, eax
jne 0x42e992
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x43ba10]
test edx, edx
je 0x42e977
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x43ba10], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x42e969
mov eax, dword [0x434130]
test eax, eax
je 0x42e954
mov eax, dword [0x4340f0]
test eax, eax
je 0x42e8bd
mov dword [esp], 0x43413c
mov dword [ebp - 0x50], 0xffffffff
call sym.___gthr_win32_mutex_unlock
jmp 0x42e8bd
mov dword [esp], 0x434130
mov dword [ebp - 0x50], 0xffffffff
call method.std::_STL_mutex_lock._M_initialize__
jmp 0x42e933
mov dword [ebp - 0x50], 1
call method.std.__throw_bad_alloc__
jmp 0x42e92a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call method.std::__default_alloc_template_true__0_._S_refill_unsigned_int_
mov dword [ebp - 0x58], eax
jmp 0x42e923
mov dword [esp], 0x43413c
mov dword [ebp - 0x50], 0xffffffff
call sym.___gthr_win32_mutex_lock
jmp 0x42e908
mov dword [esp], 0x434130
mov dword [ebp - 0x50], 0xffffffff
call method.std::_STL_mutex_lock._M_initialize__
jmp 0x42e8fb
mov dword [esp], 0x407580
call sym._getenv
test eax, eax
je 0x42e9e3
mov eax, 1
lock add dword [0x434124], eax
jmp 0x42e896
mov eax, 0xffffffff
jmp 0x42e9d7
Function at 0x4067b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [0x40a088]
test ecx, ecx
je 0x4067ce
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x58], 0x41414141
mov eax, dword [str._LIBGCCW32_EH_3_MINGW32]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x38], eax
mov eax, dword [0x409258]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x48], 0x41414141
mov dword [ebp - 0x34], eax
mov eax, dword [0x40925c]
mov dword [ebp - 0x44], 0x41414141
mov dword [ebp - 0x40], 0x41414141
mov dword [ebp - 0x30], eax
mov eax, dword [0x409260]
mov dword [ebp - 0x3c], 0x41414141
mov dword [ebp - 0x2c], eax
mov eax, dword [0x409264]
mov dword [ebp - 0x28], eax
mov eax, dword [0x409268]
mov dword [ebp - 0x24], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x40693d
mov dword [esp], 0x24
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x406971
cld
mov edi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, 9
rep stosd dword es:[edi], eax
mov dword [ebx], 0x24
mov eax, dword [0x40a048]
mov ecx, 1
mov dword [ebx + 4], sub.msvcrt.dll_abort
mov dword [ebx + 8], 0x406700
mov dword [ebx + 0x14], eax
mov edx, dword [0x40a05c]
mov eax, dword [0x40a058]
mov dword [ebx + 0x20], edx
mov edx, 0x1f
mov dword [ebx + 0x1c], eax
lea esi, [esi]
lea edi, [edi]
mov eax, ebx
and eax, ecx
cmp eax, 1
sbb eax, eax
and al, 0x20
add ecx, ecx
add al, 0x41
mov byte [ebp + edx - 0x98], al
dec edx
jns 0x4068c0
mov eax, dword [str._LIBGCCW32_EH_3_MINGW32]
mov dword [ebp - 0x78], eax
mov eax, dword [0x409258]
mov dword [ebp - 0x74], eax
mov eax, dword [0x40925c]
mov dword [ebp - 0x70], eax
mov eax, dword [0x409260]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x409264]
mov dword [ebp - 0x68], eax
mov eax, dword [0x409268]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sub.KERNEL32.dll_AddAtomA
movzx edi, ax
sub esp, 4
test edi, edi
jne 0x406962
xor edx, edx
test edx, edx
jne 0x406944
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
movzx eax, ax
call fcn.00406710
mov ebx, eax
mov dword [0x40a088], ebx
lea eax, [ebx + 4]
mov dword [0x40a078], eax
lea eax, [ebx + 8]
mov dword [0x40a098], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
call fcn.00406710
cmp eax, ebx
mov edx, edi
jne 0x406921
jmp 0x406923
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x434e88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x434ed0
call fcn.00437c60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434ed0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x434f13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x434efc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x434efc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x434f10
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4369e3
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x436a0e
call fcn.00437c60
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x436a31
push eax
push dword [esi + 4]
call fcn.00436969
push esi
push eax
mov ecx, 0x4890a4
call fcn.00436611
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x437227
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x465d13
call fcn.0044d66e
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.004371e7
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [esi], vtable.CFtpConnection.0
call fcn.00401ee0
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00405560
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4372aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.00436969
push dword [esi + 0xc]
mov ecx, 0x4890a4
push eax
call fcn.00436611
mov eax, esi
call fcn.0044d746
ret 0x1c
Function at 0x44ab88
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x485ba0]
jne 0x44ab92
repz ret
jmp fcn.0045294e

Function at 0x45de7d
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.004522b2
and dword [ebp - 4], 0
cmp dword [0x48a198], 0
mov ebx, eax
jne 0x45df2e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45dfdf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45dfdf
push eax
call fcn.00452240
mov dword [esp], 0x46e358
push edi
mov dword [0x48a198], eax
call esi
push eax
call fcn.00452240
mov dword [esp], 0x46e344
push edi
mov dword [0x48a19c], eax
call esi
push eax
call fcn.00452240
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48a1a0], eax
call esi
push eax
call fcn.00452240
pop ecx
mov dword [0x48a1a8], eax
test eax, eax
je 0x45df2e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00452240
pop ecx
mov dword [0x48a1a4], eax
mov eax, dword [0x48a1a4]
cmp eax, ebx
je 0x45df86
cmp dword [0x48a1a8], ebx
je 0x45df86
push eax
call fcn.004522bb
push dword [0x48a1a8]
mov esi, eax
call fcn.004522bb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45df86
test edi, edi
je 0x45df86
call esi
test eax, eax
je 0x45df7d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45df7d
test byte [ebp - 0xc], 1
jne 0x45df86
or dword [ebp + 0x10], 0x200000
jmp 0x45dfbf
mov eax, dword [0x48a19c]
cmp eax, ebx
je 0x45dfbf
push eax
call fcn.004522bb
pop ecx
test eax, eax
je 0x45dfbf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45dfbf
mov eax, dword [0x48a1a0]
cmp eax, ebx
je 0x45dfbf
push eax
call fcn.004522bb
pop ecx
test eax, eax
je 0x45dfbf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48a198]
call fcn.004522bb
pop ecx
test eax, eax
je 0x45dfdf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45dfe1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4608b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4608e9
call fcn.0044b4fe
mov dword [eax], esi
call fcn.0044b4eb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0044c268
add esp, 0x14
push 0x16
pop eax
jmp 0x46093e
test dword [ebp + 0xc], 0xfffffff9
jne 0x4608c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x460916
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044b511
pop ecx
call fcn.0044b4eb
mov eax, dword [eax]
jmp 0x46093e
test al, 0x10
jne 0x46093c
test al, 1
je 0x46093c
test byte [ebp + 0xc], 2
je 0x46093c
call fcn.0044b4fe
mov dword [eax], 5
call fcn.0044b4eb
mov dword [eax], 0xd
jmp 0x46090d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x422e54
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x422e8c
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x422e7a
mov al, 1
jmp 0x422edd
cmp dword [ebx + 0x54], ecx
jne 0x422e83
mov al, 2
jmp 0x422edd
cmp dword [ebx + 0x7c], ecx
jne 0x422edd
mov al, 3
jmp 0x422edd
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x422ea1
mov al, 4
jmp 0x422edd
cmp ecx, 5
jne 0x422ec1
cmp ebx, 0
jne 0x422eaf
mov al, 5
jmp 0x422edd
cmp ebx, 1
jne 0x422eb8
mov al, 6
jmp 0x422edd
cmp ebx, 2
jne 0x422ec1
mov al, 7
jmp 0x422edd
cmp ecx, 6
jne 0x422ecd
cmp ebx, 0
jne 0x422ecf
mov al, 8
jmp 0x422edd
cmp ebx, 1
jne 0x422ed6
mov al, 9
cmp ebx, 2
jne 0x422edd
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e690
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4fefab
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.004f0ee7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x48e712
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004ee8aa
mov eax, dword [eax]
push 0x52722c
push eax
call fcn.004e0a84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004f1172
test bl, bl
je 0x48e712
push 0x52722c
lea ecx, [esp + 0xc]
call fcn.004f154e
push 0x52aef4
lea ecx, [esp + 0xc]
call fcn.004f154e
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 0x48e74e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004f1172
jmp 0x48e819
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 0x48e7d2
lea edx, [esp + 0x7c]
push 0x52aef0
push edx
call fcn.004e0a84
add esp, 8
test eax, eax
je 0x48e7d2
lea eax, [esp + 0x7c]
push 0x52aeec
push eax
call fcn.004e0a84
add esp, 8
test eax, eax
je 0x48e7d2
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 0x48e762
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.004f1172
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 0x48f030
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 0x48f092
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 0x48f0a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ff02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5322e4]
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 0x48f1d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x48f106
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004f1172
xor eax, eax
jmp 0x48f24f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004f12fb
push esi
lea ecx, [esp + 0xc]
call fcn.004f158a
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 0x48f22d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0048f030
test eax, eax
jne 0x48f22d
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.0048f030
test eax, eax
jne 0x48f22d
lea eax, [esp + 0x14]
push 0x52af08
push eax
call fcn.004e1c30
mov esi, eax
add esp, 8
test esi, esi
jne 0x48f20c
lea ecx, [esp + 0x14]
push 0x52af04
push ecx
call fcn.004e1bb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48f20c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x48f20f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004f12ab
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48f11e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004f1172
xor eax, eax
jmp 0x48f24f
mov byte [esi], 0
push 0x52af00
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.004f1172
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 0x4a46c0
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 0x4a472e
cmp si, 0x69
ja 0x4a472e
add esi, 0xffd0
cmp si, 0x11
je 0x4a46fe
push 0x11
call edi
test ax, ax
jge 0x4a46fe
or esi, 0x2000
cmp si, 0x10
je 0x4a4713
push 0x10
call edi
test ax, ax
jge 0x4a4713
or esi, 0x4000
cmp si, 0x12
je 0x4a4728
push 0x12
call edi
test ax, ax
jge 0x4a4728
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4a473b
mov esi, 0xbd
jmp 0x4a46ef
cmp si, 0x6e
jne 0x4a4748
mov esi, 0xbe
jmp 0x4a46ef
cmp si, 0x6f
jne 0x4a46e9
mov esi, 0xbf
jmp 0x4a46ef

Function at 0x4a61c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5431d0]
xor edx, edx
cmp eax, edx
jne 0x4a61e6
xor eax, eax
mov byte [eax + 0x5430d0], al
inc eax
cmp eax, 0x100
jl 0x4a61ce
mov dword [0x5431d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5430d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a6277
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 0x4a624a
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 0x4a6218
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a62f0
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 0x4a6343
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 0x4a632a
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