joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e7c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
mov al, byte [ecx + 0x14]
mov dword [ebp - 4], 0
test al, al
jne 0x46e860
lea ebx, [ecx + 4]
mov edi, 0x4e1fa8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.0046ed40
test al, al
je 0x46e83a
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x4e1fa8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
push 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00470490
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
mov byte [ebp - 4], bl
jne 0x46e871
mov eax, 0x4c85ec
mov edx, dword [ebp + 0x10]
push 0
push edx
push eax
mov eax, dword [ecx + 0x58]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x46e9b5
lea ecx, [ebp - 0x1c]
push 0x4d2cb0
push ecx
mov dword [ebp - 0x1c], 1
call fcn.0047752a
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x11], 0
dec eax
jne 0x46e8f4
mov edi, 0x4e1fbc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + 4]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [ebp - 0x18], esi
call fcn.0046ed40
test al, al
je 0x46e8f4
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x4e1fbc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov eax, 0x46e9b2
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46e9d8
mov al, byte [ecx - 1]
test al, al
je 0x46e9ce
cmp al, 0xff
je 0x46e9ce
dec al
mov byte [ecx - 1], al
jmp 0x46e9d8
dec ecx
push ecx
call fcn.004863ed
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46e9f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x118]
xor bl, bl
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 0xc], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x58]
lea ecx, [esp + 8]
mov dword [esp + 8], edx
push ecx
mov dword [esp + 0x18], eax
push 0
lea edx, [esp + 0x18]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46ea52
pop esi
xor al, al
pop ebx
add esp, 0x10c
ret 4
test eax, eax
jle 0x46ea6a
mov ecx, dword [esi + 0x58]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov al, 1
jne 0x46ea6c
mov al, bl
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x46f790
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ax, word [esi + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x46f7b8
mov eax, 0x4c8780
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x46f7e8
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x46f7d3
mov esi, 0x4c8780
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x46f80a
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
pop esi
add esp, 0x10
ret 4
Function at 0x488a39
Capabilities:
Get graphical window text

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

Function at 0x48a234
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 0x48a276
call fcn.0049046e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48a276
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48a26d
xor eax, eax
jmp 0x48a27e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048a284
pop edi
pop esi
pop ebx
ret 4

Function at 0x49099e
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 0x4909cc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4909ea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00490904
jmp 0x4909ea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4909ea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00490904
test edi, edi
mov eax, edi
jne 0x4909d4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40deff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x810d30]
jne 0x40df09
repz ret
jmp fcn.0041146c

Function at 0x40fae2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x810d30]
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.004089a8
and dword [ebp - 0x14], 0
cmp dword [0x812b2c], 0
mov dword [ebp - 0x18], eax
jne 0x40fb95
push 0x404688
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fc3d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40467c
push ebx
call edi
test eax, eax
je 0x40fc3d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40466c
push ebx
mov dword [0x812b2c], eax
call edi
push eax
call esi
push 0x404658
push ebx
mov dword [0x812b30], eax
call edi
push eax
call esi
push 0x40463c
push ebx
mov dword [0x812b34], eax
call edi
push eax
call esi
mov dword [0x812b3c], eax
test eax, eax
je 0x40fb95
push 0x404624
push ebx
call edi
push eax
call esi
mov dword [0x812b38], eax
mov eax, dword [0x812b38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fbee
cmp dword [0x812b3c], ecx
je 0x40fbee
push eax
call esi
push dword [0x812b3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fbee
test ebx, ebx
je 0x40fbee
call edi
test eax, eax
je 0x40fbe5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fbe5
test byte [ebp - 8], 1
jne 0x40fbee
or dword [ebp + 0x10], 0x200000
jmp 0x40fc21
mov eax, dword [0x812b30]
cmp eax, dword [ebp - 0x18]
je 0x40fc21
push eax
call esi
test eax, eax
je 0x40fc21
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fc21
mov eax, dword [0x812b34]
cmp eax, dword [ebp - 0x18]
je 0x40fc21
push eax
call esi
test eax, eax
je 0x40fc21
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x812b2c]
call esi
test eax, eax
je 0x40fc3d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fc3f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040deff
leave
ret
Function at 0x80c1a0
Capabilities:
Delete directory
Get common file path
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1c64
call fcn.004115c0
cmp dword [0xb97b98], 0x37
jne 0x80c292
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x406114
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea edx, [esp + 0x68]
push edx
push 0x406160
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea eax, [esp + 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0x40605c
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea eax, [esp + 8]
push eax
push 0x4061d8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0x406228
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x1068]
push ecx
push 0
push 0x4062a0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea edx, [esp + 0x1464]
push edx
push 0
push 0x406154
push 0x40627c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
push 0
push 0x4062fc
push 0x406334
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0xb97b9c]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x817bfc]
mov byte [eax + esi], dl
add esp, 0x1c64
ret
Function at 0x80c430
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb97b98]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x817bfc]
shr eax, 3
push edi
test eax, eax
je 0x80c5df
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x80c464
mov esi, dword [esp + 0x18]
cmp dword [0xb97b98], 0x1c
jne 0x80c481
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edx, dword [0x811330]
mov ecx, dword [0x811334]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x811338]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x81133c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x80c4c5
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x2c]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0xb96b1c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0xb97b98], 0x1be
lea ebp, [ebx + edi]
jne 0x80c51a
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0xb97b98], 0x979
mov dword [0xb96b20], 0xff6b3619
mov dword [0xb96b24], 0xffffffff
jne 0x80c556
lea eax, [esp + 0x98]
push eax
push 0x405ef0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [0xb97b98]
cmp eax, 0x93
je 0x80c576
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x80c4c1
cmp eax, 0x8d4
jne 0x80c592
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0xb97b98], 0x17
jne 0x80c5ce
push 0
push 0
push 0
push 0x405fd8
push 0x406070
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x80c460
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x4011f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub eax, 1
neg eax
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x401370
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
cmp ecx, 3
je 0x401370
mov edi, 0x406180
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
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]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4021e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406270
cmp edx, dword [eax]
je 0x402207
add eax, 8
inc ecx
cmp eax, 0x406300
jl 0x4021f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406270]
jne 0x402335
mov eax, dword [0x408658]
cmp eax, 1
je 0x40230f
test eax, eax
jne 0x402238
cmp dword [0x4061c4], 1
je 0x40230f
cmp edx, 0xfc
je 0x402335
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40226f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004027d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402980
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4022b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402980
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053d0
push edi
call fcn.00404020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004027d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004027e0
lea eax, [ebp - 0xa0]
push 0x4053b0
push eax
call fcn.004027e0
push dword [esi + 0x406274]
lea eax, [ebp - 0xa0]
push eax
call fcn.004027e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403f94
add esp, 0x2c
pop edi
jmp 0x402335
lea eax, [ebp + 8]
lea esi, [esi + 0x406274]
push 0
push eax
push dword [esi]
call fcn.00402980
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 0x417010
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4aae4b
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.0049ce3d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417092
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00499d77
mov eax, dword [eax]
push 0x83b230
push eax
call fcn.0048bb34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049d0c8
test bl, bl
je 0x417092
push 0x83b230
lea ecx, [esp + 0xc]
call fcn.0049d4a4
push 0x83edd4
lea ecx, [esp + 0xc]
call fcn.0049d4a4
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 0x4170ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049d0c8
jmp 0x417199
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 0x417152
lea edx, [esp + 0x7c]
push 0x83edd0
push edx
call fcn.0048bb34
add esp, 8
test eax, eax
je 0x417152
lea eax, [esp + 0x7c]
push 0x83edcc
push eax
call fcn.0048bb34
add esp, 8
test eax, eax
je 0x417152
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 0x4170e2
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.0049d0c8
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 0x417990
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 0x4179f2
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 0x417a00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4aaecb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x848c8c]
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 0x417b38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x417a66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049d0c8
xor eax, eax
jmp 0x417baf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049d251
push esi
lea ecx, [esp + 0xc]
call fcn.0049d4e0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x83ee0c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x417b8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00417990
test eax, eax
jne 0x417b8d
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.00417990
test eax, eax
jne 0x417b8d
lea eax, [esp + 0x14]
push 0x83ede8
push eax
call fcn.0048cc10
mov esi, eax
add esp, 8
test esi, esi
jne 0x417b6c
lea ecx, [esp + 0x14]
push 0x83ede4
push ecx
call fcn.0048cb90
mov esi, eax
add esp, 8
test esi, esi
jne 0x417b6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x417b6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049d201
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x417a7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049d0c8
xor eax, eax
jmp 0x417baf
mov byte [esi], 0
push 0x83ede0
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.0049d0c8
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 0x42a5a0
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 0x42a60e
cmp si, 0x69
ja 0x42a60e
add esi, 0xffd0
cmp si, 0x11
je 0x42a5de
push 0x11
call edi
test ax, ax
jge 0x42a5de
or esi, 0x2000
cmp si, 0x10
je 0x42a5f3
push 0x10
call edi
test ax, ax
jge 0x42a5f3
or esi, 0x4000
cmp si, 0x12
je 0x42a608
push 0x12
call edi
test ax, ax
jge 0x42a608
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42a61b
mov esi, 0xbd
jmp 0x42a5cf
cmp si, 0x6e
jne 0x42a628
mov esi, 0xbe
jmp 0x42a5cf
cmp si, 0x6f
jne 0x42a5c9
mov esi, 0xbf
jmp 0x42a5cf

Function at 0x42bd40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x859b68]
xor edx, edx
cmp eax, edx
jne 0x42bd66
xor eax, eax
mov byte [eax + 0x859a68], al
inc eax
cmp eax, 0x100
jl 0x42bd4e
mov dword [0x859b68], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x859a68
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42bdf7
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 0x42bdca
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 0x42bd98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42be70
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 0x42bec3
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 0x42beaa
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