joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022b8
Capabilities:
Check os version

Disassembly:
push 0x11c
mov eax, 0x40c6df
call fcn.0040b848
mov esi, ecx
lea eax, [esi + 0x1044]
xor ebx, ebx
mov dword [ebp - 0x128], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov edi, 0x410
push edi
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00404fe0
push edi
lea eax, [esi + 0x410]
push ebx
push eax
call fcn.00404fe0
push 0x400
lea eax, [esi + 0x820]
push ebx
push eax
call fcn.00404fe0
push edi
lea eax, [esi + 0xc20]
push ebx
push eax
call fcn.00404fe0
push 0x110
lea eax, [ebp - 0x120]
push ebx
push eax
mov byte [esi + 0x1030], bl
mov byte [esi + 0x1031], bl
mov dword [esi + 0x1034], ebx
mov byte [esi + 0x1032], bl
mov byte [esi + 0x1038], 1
mov byte [esi + 0x1054], bl
mov dword [ebp - 0x124], 0x114
call fcn.00404fe0
add esp, 0x3c
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402383
cmp dword [ebp - 0x120], 6
jb 0x402383
mov byte [esi + 0x1032], 1
call fcn.004023af
mov ebx, esi
call fcn.004031f3
mov eax, esi
call fcn.0040b8cb
ret
Function at 0x403027
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x411034]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x40e
lea eax, [ebp - 0x76]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x80], esi
mov word [ebp - 0x78], bx
call fcn.00404fe0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40309b
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x403097
cmp dword [ebp - 0x7c], ebx
je 0x40309b
push dword [ebp - 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40309b
mov word [ebp - 0x78], bx
lea eax, [ebp - 0x78]
push 0x40ed10
push eax
call fcn.00404b25
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4030be
mov word [ebp - 0x78], bx
mov edi, 0x410
push edi
add esi, 0xc20
push ebx
push esi
call fcn.00404fe0
lea eax, [ebp - 0x78]
push eax
call fcn.00404b9b
add esp, 0x10
test eax, eax
jne 0x40319b
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 0x1034]
cmp eax, ebx
jne 0x4030f9
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x40f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
jae 0x40319b
cmp eax, ebx
je 0x40319b
mov ecx, dword [ebp - 0x80]
push 0x5c
push esi
mov word [ecx + eax*2 + 0xc20], bx
call fcn.00404b6b
cmp eax, ebx
pop ecx
pop ecx
jne 0x40313d
push 0x2f
push esi
call fcn.00404b6b
cmp eax, ebx
pop ecx
pop ecx
je 0x403141
mov word [eax + 2], bx
push str.config
push esi
call fcn.00404b25
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40318f
push 0x40ed30
push esi
call fcn.00404b25
push 0x40ed34
push esi
call fcn.00404b25
add esp, 0x10
push ebx
push 0x80
push 4
push ebx
push 7
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x403194
mov word [esi], bx
jmp 0x40319b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00404b9b
test eax, eax
pop ecx
jne 0x4031db
push 0x207
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00404bb1
push esi
call fcn.00404b9b
add esp, 0x10
test eax, eax
jbe 0x4031db
push 0x40ed30
push esi
call fcn.00404b25
push 0x40ed34
push esi
call fcn.00404b25
add esp, 0x10
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404335
add ebp, 0x39c
leave
ret
Function at 0x4031f3
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x411034]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
push edi
mov ecx, ebx
mov byte [ebx + 0x1054], 0
call fcn.00403027
lea esi, [ebx + 0xc20]
push esi
call fcn.00404b9b
test eax, eax
pop ecx
jbe 0x40323b
lea eax, [ebx + 0x1044]
push eax
push esi
call fcn.00403347
mov esi, 0x208
xor edi, edi
push esi
lea eax, [esp + 0x226]
push edi
push eax
mov word [esp + 0x22c], di
call fcn.00404fe0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x224]
push eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
lea eax, [esp + 0x16]
push edi
push eax
mov word [esp + 0x432], di
mov word [esp + 0x1c], di
call fcn.00404fe0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [ebx + 0x1044]
mov eax, esi
mov word [esp + 0x216], di
call fcn.00403d3f
test eax, eax
jne 0x4032e9
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00404b9b
pop ecx
inc eax
push eax
lea eax, [esp + 0x228]
push eax
push edi
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.00402e2c
jmp 0x40332c
push edi
call fcn.00403d57
mov edi, eax
cmp byte [edi + 0x69c], 1
jne 0x403325
lea eax, [esp + 0x220]
push eax
push edi
call fcn.00404d7f
test eax, eax
pop ecx
pop ecx
jne 0x403325
lea eax, [esp + 0x10]
push eax
add edi, 0x280
push edi
call fcn.00404d7f
test eax, eax
pop ecx
pop ecx
je 0x403333
mov eax, esi
call fcn.00403d79
mov byte [ebx + 0x1054], 1
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
call fcn.00404335
mov esp, ebp
pop ebp
ret
Function at 0x403347
Capabilities:
Read file on windows

Disassembly:
push 0x704
mov eax, 0x40c6b0
call fcn.0040b7df
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x403516
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
je 0x403516
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x48]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00402d62
test al, al
jne 0x4033c9
xor edi, edi
mov dword [ebp - 0x24], ebx
jmp 0x4033cc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
cmp eax, ebx
ja 0x403420
jb 0x4033e5
cmp ecx, 0xffffe
ja 0x403420
push edi
lea eax, [ebp - 0x1c]
call fcn.00401a3e
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea esi, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.00401912
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 0x24]
ja 0x403420
jb 0x403415
cmp dword [ebp + 8], edi
jae 0x403420
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
call fcn.00401a3e
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x40350e
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
je 0x40350e
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea esi, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004016b3
cmp dword [ebp - 0x18], ebx
jne 0x40345c
xor edi, edi
jmp 0x403462
mov edi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
call fcn.00401912
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
mov edx, edi
call fcn.00401747
test al, al
je 0x403506
cmp dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x30]
jne 0x40348d
xor eax, eax
jmp 0x403492
mov eax, ecx
sub eax, dword [ebp - 0x34]
mov esi, 0x69d
xor edx, edx
mov edi, esi
div edi
test edx, edx
jne 0x403506
cmp dword [ebp - 0x34], ebx
jne 0x4034aa
xor ecx, ecx
jmp 0x4034ad
sub ecx, dword [ebp - 0x34]
xor edx, edx
mov eax, ecx
div esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x403506
lea esi, [ebp - 0x70d]
call fcn.00402260
mov edx, dword [ebp + 0xc]
sub esp, 0x6a0
mov esi, eax
mov edi, esp
mov ecx, 0x1a7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00403daf
imul esi, esi, 0x69d
push esi
lea esi, [ebp - 0x38]
call fcn.00401912
mov esi, dword [ebp + 0xc]
push eax
push ebx
call fcn.00403d57
push eax
call fcn.00404450
add esp, 0xc
lea esi, [ebp - 0x38]
call fcn.00403d24
lea esi, [ebp - 0x1c]
call fcn.00403d24
call fcn.0040b8b7
ret 8
Function at 0x403cb4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x40c7a8
call fcn.0040b7df
mov edi, ecx
mov esi, 0x412dc8
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
test edi, edi
je 0x403d00
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403d00
test al, 0x10
jne 0x403d00
mov ecx, dword [ebp + 8]
mov edx, edi
call fcn.004038de
test al, al
push edi
jne 0x403d11
push dword [ebp + 8]
call fcn.00403aca
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
call fcn.0040b8b7
ret 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x403d09

Function at 0x404335
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411034]
jne 0x40433f
repz ret
jmp fcn.004052ad

Function at 0x407467
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4117f0]
je 0x407482
inc edi
cmp edi, 0x17
jb 0x407473
cmp edi, 0x17
jae 0x407602
push ebp
push 3
call fcn.0040a64c
cmp eax, 1
pop ecx
je 0x4075ce
push 3
call fcn.0040a64c
test eax, eax
pop ecx
jne 0x4074b6
cmp dword [0x411030], 1
je 0x4075ce
cmp ebx, 0xfc
je 0x407601
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4121f0
push ebp
call fcn.00405fb8
add esp, 0xc
test eax, eax
je 0x4074ec
push esi
push esi
push esi
push esi
push esi
call fcn.004047bf
add esp, 0x14
push 0x104
mov esi, 0x412209
push esi
push 0
mov byte [0x41230d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407530
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00405fb8
add esp, 0xc
test eax, eax
je 0x407530
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004047bf
add esp, 0x14
push esi
call fcn.004043c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407575
push esi
call fcn.004043c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x412504
push 0x40d8ac
sub ecx, eax
push ecx
push eax
call fcn.004096f6
add esp, 0x14
test eax, eax
je 0x407575
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004047bf
add esp, 0x14
jmp 0x407577
xor esi, esi
push 0x40d8a8
push ebx
push ebp
call fcn.0040963b
add esp, 0xc
test eax, eax
je 0x407597
push esi
push esi
push esi
push esi
push esi
call fcn.004047bf
add esp, 0x14
push dword [edi*8 + 0x4117f4]
push ebx
push ebp
call fcn.0040963b
add esp, 0xc
test eax, eax
je 0x4075b9
push esi
push esi
push esi
push esi
push esi
call fcn.004047bf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040a48f
add esp, 0xc
jmp 0x407601
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407601
cmp ebp, 0xffffffff
je 0x407601
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4117f4]
push dword [esi]
call fcn.004043c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40a48f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040565f
xor ebx, ebx
cmp dword [0x4128f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40a565
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a645
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40a645
push eax
call fcn.004055f1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4128f0], eax
call esi
push eax
call fcn.004055f1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4128f4], eax
call esi
push eax
call fcn.004055f1
mov dword [0x4128f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406ec2
test eax, eax
pop ecx
pop ecx
je 0x40a533
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047bf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40a565
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004055f1
cmp eax, ebx
pop ecx
mov dword [0x412900], eax
je 0x40a565
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004055f1
pop ecx
mov dword [0x4128fc], eax
mov eax, dword [0x4128fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40a5ea
cmp dword [0x412900], ecx
je 0x40a5ea
push eax
call fcn.00405668
push dword [0x412900]
mov esi, eax
call fcn.00405668
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40a5ea
cmp edi, ebx
je 0x40a5ea
call esi
cmp eax, ebx
je 0x40a5b7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a5b7
test byte [ebp - 0x18], 1
jne 0x40a5ea
lea eax, [ebp - 0x10]
push eax
call fcn.00406ef9
test eax, eax
pop ecx
je 0x40a5d2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047bf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40a5e1
or dword [ebp + 0x10], 0x200000
jmp 0x40a625
or dword [ebp + 0x10], 0x40000
jmp 0x40a625
mov eax, dword [0x4128f4]
cmp eax, dword [ebp - 8]
je 0x40a625
push eax
call fcn.00405668
cmp eax, ebx
pop ecx
je 0x40a625
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a625
mov eax, dword [0x4128f8]
cmp eax, dword [ebp - 8]
je 0x40a625
push eax
call fcn.00405668
cmp eax, ebx
pop ecx
je 0x40a625
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4128f0]
call fcn.00405668
cmp eax, ebx
pop ecx
je 0x40a645
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a647
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ab61
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 1
mov eax, str.SeDebugPrivilege
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 8]
call fcn.0040a870
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ab95
push ebx
call fcn.004ca160
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x40ab9d
mov esp, ebp
pop ebp
ret 8
Function at 0x4d57b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x56470b
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.0055941c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d5832
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005572f7
mov eax, dword [eax]
push 0x9dccf4
push eax
call fcn.00549444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005596a7
test bl, bl
je 0x4d5832
push 0x9dccf4
lea ecx, [esp + 0xc]
call fcn.00559a37
push 0x9dcd00
lea ecx, [esp + 0xc]
call fcn.00559a37
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 0x4d586e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005596a7
jmp 0x4d5939
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 0x4d58f2
lea edx, [esp + 0x7c]
push 0x9dccfc
push edx
call fcn.00549444
add esp, 8
test eax, eax
je 0x4d58f2
lea eax, [esp + 0x7c]
push 0x9dccf8
push eax
call fcn.00549444
add esp, 8
test eax, eax
je 0x4d58f2
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 0x4d5882
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.005596a7
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 0x4d6130
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 0x4d6192
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 0x4d61a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x56478b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x9ee1f4]
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 0x4d62d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4d6206
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005596a7
xor eax, eax
jmp 0x4d634f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005597e4
push esi
lea ecx, [esp + 0xc]
call fcn.00559a73
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x9dcd34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4d632d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.004d6130
test eax, eax
jne 0x4d632d
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 bind
mov ecx, edi
call fcn.004d6130
test eax, eax
jne 0x4d632d
lea eax, [esp + 0x14]
push 0x9dcd10
push eax
call fcn.0054a3d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d630c
lea ecx, [esp + 0x14]
push 0x9dcd0c
push ecx
call fcn.0054a350
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d630c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4d630f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00559794
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4d621e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005596a7
xor eax, eax
jmp 0x4d634f
mov byte [esi], 0
push 0x9dcd08
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.005596a7
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 0x4e74f0
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 0x4e755e
cmp si, 0x69
ja 0x4e755e
add esi, 0xffd0
cmp si, 0x11
je 0x4e752e
push 0x11
call edi
test ax, ax
jge 0x4e752e
or esi, 0x2000
cmp si, 0x10
je 0x4e7543
push 0x10
call edi
test ax, ax
jge 0x4e7543
or esi, 0x4000
cmp si, 0x12
je 0x4e7558
push 0x12
call edi
test ax, ax
jge 0x4e7558
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4e756b
mov esi, 0xbd
jmp 0x4e751f
cmp si, 0x6e
jne 0x4e7578
mov esi, 0xbe
jmp 0x4e751f
cmp si, 0x6f
jne 0x4e7519
mov esi, 0xbf
jmp 0x4e751f

Function at 0x4e8ed0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x9fecd8]
xor edx, edx
cmp eax, edx
jne 0x4e8ef6
xor eax, eax
mov byte [eax + 0x9febd8], al
inc eax
cmp eax, 0x100
jl 0x4e8ede
mov dword [0x9fecd8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x9febd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e8f87
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 0x4e8f5a
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 0x4e8f28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e9000
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 0x4e9053
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 0x4e903a
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