joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b4ee0
Capabilities:
Allocate thread local storage

Disassembly:
mov al, byte [0x10477c69]
test al, al
jne 0x101b4f84
mov byte [0x10477c69], 1
call fcn.101b5210
test al, al
je 0x101b4f00
mov al, 1
ret
mov eax, dword [0x10477c80]
test eax, eax
jne 0x101b4f7f
call fcn.101b5010
push str.HOME
call fcn.1019bdbf
add esp, 4
test eax, eax
mov dword [0x10477c80], eax
je 0x101b4f37
push eax
push 0x10477e88
call fcn.101b8b30
add esp, 8
mov dword [0x10477c80], eax
push str.UMASK
call fcn.1019bdbf
add esp, 4
test eax, eax
je 0x101b4f5b
push eax
call fcn.101b4f90
add esp, 4
or eax, 0x180
mov dword [0x10378a9c], eax
push str.UMASK_DIR
call fcn.1019bdbf
add esp, 4
test eax, eax
je 0x101b4f7f
push eax
call fcn.101b4f90
add esp, 4
or eax, 0x1c0
mov dword [0x10378aa0], eax
call fcn.101b5120
xor al, al
ret

Function at 0x101b5010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x10422d84
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.101a70ff
push 0x10377300
call fcn.1019be5d
add esp, 0xc
call fcn.101a91ea
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101b5118
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x101b510b
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.101b4ff0
lea eax, [esp + 0x520]
push eax
call fcn.101a032c
push eax
call fcn.1019be5d
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
mov eax, esi
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x101b509e
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret

Function at 0x101b5120
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
call fcn.101b5180
test al, al
je 0x101b516f
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x101b514b
call sub.WS2_32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x101b515d
cmp word [esp], 2
je 0x101b5168
call sub.WS2_32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x101b516f
mov byte [0x10477c68], 1
xor al, al
add esp, 0x190
ret
Function at 0x101b5210
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x10481c8c], eax
jne 0x101b523d
call fcn.1019dcad
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x10372800
call fcn.1019d201
add esp, 0xc
mov al, 1
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10481dc0
call esi
push 0x10481d40
call esi
push 0x10481d60
call esi
push 0x10481d00
call esi
push 0x10481d20
call esi
push 0x10481cc0
call esi
push 0x10481ca0
call esi
push 0x10481d80
call esi
call fcn.101b8e40
push 0x10481da0
call esi
push 0x10481ce0
call esi
call fcn.101b5310
test al, al
pop esi
je 0x101b52a1
call fcn.101b52b0
mov al, 1
ret
xor al, al
ret

Function at 0x101b5310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x10481d60
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10481c8c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x101b538b
push 0x4c
push 1
call fcn.1019e0d5
mov esi, eax
add esp, 8
test esi, esi
jne 0x101b5353
push 0x10481d60
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x10481c8c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10477c6c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x10477c6c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.101b8e50
add esp, 8
mov byte [esi + 0x3c], 1
push 0x10481d60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
Function at 0x101b5810
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.1019dcad
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.101a806b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x101b590a
call fcn.1019dcad
cmp dword [eax], 0
je 0x101b5857
call fcn.1019dcad
mov ebp, dword [eax]
jmp 0x101b585a
or ebp, 0xffffffff
call fcn.101b53a0
test esi, esi
mov dword [eax], ebp
jne 0x101b586f
call fcn.1019dcad
cmp dword [eax], 4
je 0x101b58bf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x101b58a2
cmp esi, 0xffffffff
je 0x101b58e4
test al, 6
je 0x101b58a2
call fcn.101b53a0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.101b8e80
add esp, 4
push eax
push 0x24
push 9
call fcn.101b5bf0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x101b5902
test al, 6
je 0x101b58b0
test ah, 2
je 0x101b5902
test esi, esi
jbe 0x101b590e
test ah, 2
je 0x101b590e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.1019dcad
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.101a806b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x101b590a
jmp 0x101b5844
call fcn.101b53a0
mov eax, dword [eax]
push eax
push ebx
call fcn.101b8e80
add esp, 4
push eax
push 0x24
push 2
call fcn.101b5bf0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x101b591b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x101b5924
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x101c1d6b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101c1d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1019dc3a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x101c1dae
test byte [esp + 8], 2
je 0x101c1dae
call fcn.1019dcad
mov dword [eax], 0xd
call fcn.1019dcb6
mov dword [eax], 5
jmp 0x101c1d87
xor eax, eax
ret

Function at 0x101c6fc6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x101c6ffe
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.101c507d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.101c5055
jmp 0x101c700a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x101c86bb
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 0x101c86fd
call fcn.101ce679
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x101c86fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x101c86f4
xor eax, eax
jmp 0x101c8705
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.101c870b
pop edi
pop esi
pop ebx
ret 4
Function at 0x401c60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x554
push esi
mov esi, dword [esp + 0x55c]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x401d8c
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x35c]
push esi
push ecx
call edi
lea edx, [esp + 0x35c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x14], 0x10
je 0x401d2d
lea eax, [esp + 0x40]
push 0x4040c8
push eax
call ebp
test eax, eax
je 0x401d58
lea ecx, [esp + 0x40]
push 0x4040c4
push ecx
call ebp
test eax, eax
je 0x401d58
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push str..
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
call fcn.00401c60
add esp, 4
jmp 0x401d58
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401cc4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x554
ret
Function at 0x4027cc
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
xor ebx, ebx
xor edi, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce993
jg 0x4027fc
inc edi
cmp edi, 0x1f6502e2
jl 0x4027e2
cmp dword [0x45119c], 0x400
jne 0x40284c
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push ebx
push ebx
lea eax, [ebp - 0x800]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push ebx
push ebx
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push ebx
call fcn.004035e0
push ebx
push ebx
call fcn.0040361a
push ebx
call fcn.004038e1
push ebx
call fcn.004038f0
add esp, 0x14
xor edi, edi
cmp edi, 0xd0fe
jge 0x40285d
push ebx
call dword [sym.imp.USER32.dll_GetCaretPos]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x58bc6e
jg 0x402876
inc edi
cmp edi, 0xe52f
jl 0x40284e
mov eax, dword [0x449ec4]
mov dword [0x45119c], eax
call fcn.0040254c
mov esi, 0x3078f
cmp dword [0x45119c], 0x51f
jne 0x4028a4
push ebx
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec esi
jne 0x40288a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4046bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449344]
jne 0x4046c9
repz ret
jmp fcn.004081bc
Function at 0x408bdb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x449344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405d67
and dword [ebp - 0x14], 0
cmp dword [0x44c084], 0
mov dword [ebp - 0x18], eax
jne 0x408c8e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408d36
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408d36
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44c084], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44c088], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44c08c], eax
call edi
push eax
call esi
mov dword [0x44c094], eax
test eax, eax
je 0x408c8e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44c090], eax
mov eax, dword [0x44c090]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408ce7
cmp dword [0x44c094], ecx
je 0x408ce7
push eax
call esi
push dword [0x44c094]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408ce7
test ebx, ebx
je 0x408ce7
call edi
test eax, eax
je 0x408cde
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408cde
test byte [ebp - 8], 1
jne 0x408ce7
or dword [ebp + 0x10], 0x200000
jmp 0x408d1a
mov eax, dword [0x44c088]
cmp eax, dword [ebp - 0x18]
je 0x408d1a
push eax
call esi
test eax, eax
je 0x408d1a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408d1a
mov eax, dword [0x44c08c]
cmp eax, dword [ebp - 0x18]
je 0x408d1a
push eax
call esi
test eax, eax
je 0x408d1a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c084]
call esi
test eax, eax
je 0x408d36
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408d38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046bf
leave
ret
Function at 0x103c290c
Capabilities:
Encode data using xor

Disassembly:
pop ds
or bh, byte [edx + 0x6c]
xor eax, 0x2c6ea876
jo 0x103c291e
and byte [eax + 0x30c8f072], dl
push edi
leave
jb 0x103c28f2
enter 0x5730, 0xffffffffffffffc9
jg 0x103c2939
sub dh, byte [edx]
jg entry0
jmp 0x103c2916
pushal
call 0x103c291c
pop ebp
sub ebp, 0x10
in eax, dx
adc byte [eax], al
add byte [eax], al
sub ebp, 0x3c290c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103c2940
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103c2949
mov eax, 0x3c290c
add eax, ebp
add eax, 0x63
mov ecx, 0x5ed
mov edx, 0xaa7a8481
xor byte [eax], dl
inc eax
dec ecx
jne 0x103c2960
jmp 0x103c2973
or cl, byte [edx + ecx + 8]
mov ebp, 0x818181
inc eax
jns 0x103c2900
add dword [ecx - 0x76c6b37e], 0x3b818181
test eax, 0x76818181
arpl word [edx - 0x72fff5b7], ax
add dword [ecx - 0x2ebb7d7f], 0xfbf5e9d1
pop dword [ecx - 0x53d0e917]
add dword [eax - 0x4f165a53], 0x69feb3ab
test byte [ecx - 0x50977e7f], al
add dword [ecx - 0x5a1af37f], 0xa5ad087d
aad 0xdc
or al, byte [ecx + ecx*4]
add dword [ecx - 0x72ebf57f], 0xa818181
or al, 0x91
add dword [ecx - 0x7c97bf7f], 0x430283b0
test eax, ecx
mov es, word [esi*2 - 0x23818182]
inc ebx
lea eax, [ecx - 0x7a5af2f6]
add dword [ecx - 0x40a167f], 0x16e9818f
das
lodsb al, byte [esi]
add dword [eax - 0x1af35a53], 0x8d087da5
movsd dword es:[edi], dword [esi]
imul eax, dword [ecx + eax*4 - 0x35977e7f], 0xc818183
in eax, 0xa5
jge 0x103c2a17
or dword [0xad087da5], 0x7edcd5a5
hlt
lodsd eax, dword [esi]
movsd dword es:[edi], dword [esi]
aad 0xdc
jle 0x103c2a09
lea edi, [esi - 0xc]
mov dword [ecx - 7], ebp
add dword [ecx - 0x76c3f57f], 0xb2818181
dec eax
add byte [ebx + 0x61], dh
inc ecx
sub eax, 0x617300ca
inc ecx
sub eax, 0x253b2ca
imul eax, dword [ecx + ecx*8 - 0x7e30fa72], 0x98e8181
leave
add dword [ecx - 0x62f5187f], 0x697a01b8
mov es, word [0x8181819b]
add dword [edx + 0x68], edi
mov es, word [0x81818190]
out 0, eax
jp 0x103c2adc
hlt
movsb byte es:[edi], byte [esi]
mov es, word [0x81818194]
shr byte [eax + 0x4d], 0x7e
jle 0x103c2ae9
test al, 0xcd
mov eax, 0x84400280
add ch, byte [ecx - 0x7b]
push 0x7e7e7e3c
test al, 0xd5
mov eax, 0x87400283
add ch, byte [ebx - 0x7b]
add ch, byte [ecx - 0x7c]
push 0x7e7e7e2a
or ch, byte [ebp - 0x5a1af35b]
test dword [ebx - 0x73], eax
adc esp, 0xd6d76d0a
aam 0xa
hlt
jmp 0x103c2a5f
or dword [ebx], 0x5393c797
mov es, word [edx]
stosd dword es:[edi], eax
add byte [ecx - 0x71ac7c7f], 4
test byte [ecx - 0x68f47e7f], al
invalid
Function at 0x40a530
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46786b
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.0045c256
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a5b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a0cd
mov eax, dword [eax]
push 0x47f1c0
push eax
call fcn.0044cf34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c4e1
test bl, bl
je 0x40a5b2
push 0x47f1c0
lea ecx, [esp + 0xc]
call fcn.0045c871
push 0x482d3c
lea ecx, [esp + 0xc]
call fcn.0045c871
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 0x40a5ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c4e1
jmp 0x40a6b9
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 0x40a672
lea edx, [esp + 0x7c]
push 0x482d38
push edx
call fcn.0044cf34
add esp, 8
test eax, eax
je 0x40a672
lea eax, [esp + 0x7c]
push 0x482d34
push eax
call fcn.0044cf34
add esp, 8
test eax, eax
je 0x40a672
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 0x40a602
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.0045c4e1
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 0x40aeb0
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 0x40af12
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 0x40af20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4678eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4891f0]
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 0x40b058
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40af86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c4e1
xor eax, eax
jmp 0x40b0cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045c61e
push esi
lea ecx, [esp + 0xc]
call fcn.0045c8ad
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 0x40b0ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040aeb0
test eax, eax
jne 0x40b0ad
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.0040aeb0
test eax, eax
jne 0x40b0ad
lea eax, [esp + 0x14]
push 0x482d50
push eax
call fcn.0044df70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b08c
lea ecx, [esp + 0x14]
push 0x482d4c
push ecx
call fcn.0044def0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b08c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b08f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045c5ce
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40af9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c4e1
xor eax, eax
jmp 0x40b0cf
mov byte [esi], 0
push 0x482d48
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.0045c4e1
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 0x41d5d0
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 0x41d63e
cmp si, 0x69
ja 0x41d63e
add esi, 0xffd0
cmp si, 0x11
je 0x41d60e
push 0x11
call edi
test ax, ax
jge 0x41d60e
or esi, 0x2000
cmp si, 0x10
je 0x41d623
push 0x10
call edi
test ax, ax
jge 0x41d623
or esi, 0x4000
cmp si, 0x12
je 0x41d638
push 0x12
call edi
test ax, ax
jge 0x41d638
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d64b
mov esi, 0xbd
jmp 0x41d5ff
cmp si, 0x6e
jne 0x41d658
mov esi, 0xbe
jmp 0x41d5ff
cmp si, 0x6f
jne 0x41d5f9
mov esi, 0xbf
jmp 0x41d5ff

Function at 0x41ecf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x499858]
xor edx, edx
cmp eax, edx
jne 0x41ed16
xor eax, eax
mov byte [eax + 0x499758], al
inc eax
cmp eax, 0x100
jl 0x41ecfe
mov dword [0x499858], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x499758
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41eda7
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 0x41ed7a
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 0x41ed48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ee20
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 0x41ee73
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 0x41ee5a
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