joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401359
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401394
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401390
lea ebx, [ebx]
cmp esi, eax
jae 0x401394
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401380
cmp esi, eax
jb 0x40139a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4014c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4014d6
push 0x80004005
call fcn.00401190
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401500
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401518
push 0x80004005
call fcn.00401190
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401525
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x401900
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x41bee8]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40196e
test ecx, ecx
je 0x401960
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40197c
test ecx, ecx
je 0x401a21
push ecx
jmp 0x401a1b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4019ee
jmp 0x4019b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00401900
mov edi, eax
test edi, edi
jne 0x401a3d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4019b0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040d94c
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x401a23
Function at 0x401a90
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x6d4
mov eax, dword [0x41bee8]
xor eax, esp
mov dword [esp + 0x6d0], eax
push esi
push edi
mov esi, ecx
call dword [0x41bec8]
mov edi, dword [0x41c05c]
push 0x104
lea eax, [esp + 0x4d4]
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401af0
call fcn.00401430
pop edi
pop esi
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0040d94c
add esp, 0x6d4
ret
cmp eax, 0x104
jne 0x401b1c
lea ecx, [esp + 8]
call fcn.00401680
pop edi
mov eax, 0x8007007a
pop esi
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0040d94c
add esp, 0x6d4
ret
test edi, edi
je 0x401b35
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, eax
je 0x401b35
lea edx, [esp + 0x4d0]
jmp 0x401b8d
lea ecx, [esp + 0x4d0]
push ecx
lea edx, [esp + 0x2ca]
push 0x105
mov edi, 0x22
push edx
mov word [esp + 0x2d0], di
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.004011b0
add esp, 0x10
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [esp + eax*2 + 0x2c4], di
mov word [esp + eax*2 + 0x2c6], 0
lea edx, [esp + 0x2c4]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push edx
push str.Module
push esi
call eax
mov edi, eax
test edi, edi
jl 0x401c60
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0x4d0]
push edx
push str.Module_Raw
push esi
call eax
mov edi, eax
test edi, edi
jl 0x401c60
lea ecx, [esp + 0xc]
push ecx
push 0x41bf04
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
test edi, edi
jl 0x401c60
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push eax
push str.MODULEGUID
push esi
call ecx
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jl 0x401c60
push 0x2000
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x4e0]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x401c38
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push str.InprocServer32
push str.MODULETYPE
push esi
call eax
jmp 0x401c4a
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.LocalServer32
push str.MODULETYPE
push esi
call edx
mov edi, eax
test edi, edi
jl 0x401c60
mov ecx, dword [0x41bf00]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
mov edi, eax
lea ecx, [esp + 8]
call fcn.00401680
mov ecx, dword [esp + 0x6d8]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040d94c
add esp, 0x6d4
ret
Function at 0x4063e0
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41bfc8]
push ebx
push esi
push edi
push 5
push 0x65
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x41bfc8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push 0
push edx
push 0
push eax
mov eax, dword [0x41bfc8]
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 0x80
push 0x1c2
push 0x258
push 0xc8
push 0x12c
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
nop
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4064cb
cmp dword [ebp - 0x18], 0x12
je 0x4064dd
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4064bf
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
call edi
test eax, eax
jne 0x406480
push eax
call ebx
jmp 0x406480
push esi
call edi
test eax, eax
jne 0x4064d5
push eax
call ebx
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x406480
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4064f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
push edi
mov edi, ecx
jne 0x406550
push esi
push str.539EF437_26DA_422B_A844_BA6712C9AA56
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40651f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40653a
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x406545
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
mov eax, 1
pop edi
pop ebp
ret 4
Function at 0x406570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, eax
mov byte [esi], 0xb9
mov dword [esi + 1], ecx
lea eax, [esi + 1]
add eax, 4
mov byte [eax], 0xe9
add eax, 1
sub edx, eax
sub edx, 4
mov dword [eax], edx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408680
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, ecx
call fcn.004081c0
push 0x3e8
call dword [sym.imp.Common.dll_void___cdecl_UtilOPCall::Init_unsigned_long_int_]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Common.dll_int___cdecl_UtilOPCall::AddObjectFactory_struct_ITXOPObjectFactory__]
add esp, 8
push 0x4124d8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4086d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4086da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push 0
push 0x7d0
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e97b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41bee8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [0x4119bc]
mov edx, dword [0x4119c0]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_COPWebBrowser2_.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov ecx, dword [0x4119c4]
mov dword [esi + 0x28], edx
mov edx, dword [0x4119c8]
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_COPWebBrowser2_.1.0
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_COPWebBrowser2_.0
mov dword [esi + 0x10], ecx
mov ecx, dword [0x41bf00]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c5e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ee90
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x41bee8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.8C8040F2_45CC_4007_9E14_B81304C178AC
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40c62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c643
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov dword [0x41bfc8], eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], 0
call fcn.0040c2c0
add esp, 4
call fcn.0040c480
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::ValidateBugReport_void_]
lea ecx, [ebp - 0x24]
call fcn.00409e90
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004063e0
mov esi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.004065d0
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x40c6d6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40d41e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41bee8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040d35d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40d46d
cmp dword [ebp - 0x1c], 5
jb 0x40d485
jmp 0x40d481
cmp dword [ebp - 0x10], 1
jne 0x40d485
cmp dword [ebp - 0x1c], 4
ja 0x40d481
jne 0x40d485
cmp dword [ebp - 0x18], 0
jbe 0x40d485
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x412e0c
call fcn.004012c0
test eax, eax
jge 0x40d4a6
mov byte [0x41c010], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d94c
add ebp, 0x78
leave
ret
Function at 0x40d863
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41c0e8], 0
push esi
jne 0x40d7d6
call fcn.0040d701
test eax, eax
je 0x40d819
mov eax, dword [0x41c0e8]
cmp eax, 1
jne 0x40d7f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40d819
pop esi
ret
push eax
call dword [0x41c0f0]
test eax, eax
jne 0x40d861
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40d81d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x41c0e8]
call dword [0x41c0f0]
mov edi, eax
test edi, edi
je 0x40d844
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40d860
lea edi, [esi + 0xff0]
push esi
push dword [0x41c0e8]
call dword [0x41c0ec]
add esi, 0x10
cmp esi, edi
jb 0x40d84a
mov eax, esi
pop edi
pop esi
ret
jmp 0x40d7c3

Function at 0x40d94c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41bee8]
jne 0x40d956
repz ret
jmp fcn.0040dec4
Function at 0x10007090
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10065e7b
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.1005ace3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10007112
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10058a9a
mov eax, dword [eax]
push 0x1007e210
push eax
call fcn.1004b784
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1005af6e
test bl, bl
je 0x10007112
push 0x1007e210
lea ecx, [esp + 0xc]
call fcn.1005b2fe
push 0x10081d58
lea ecx, [esp + 0xc]
call fcn.1005b2fe
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 0x1000714e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1005af6e
jmp 0x10007219
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 0x100071d2
lea edx, [esp + 0x7c]
push 0x10081d54
push edx
call fcn.1004b784
add esp, 8
test eax, eax
je 0x100071d2
lea eax, [esp + 0x7c]
push 0x10081d50
push eax
call fcn.1004b784
add esp, 8
test eax, eax
je 0x100071d2
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 0x10007162
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.1005af6e
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 0x10007a10
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 0x10007a72
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 0x10007a80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10065efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100884b8]
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 0x10007bb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10007ae6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005af6e
xor eax, eax
jmp 0x10007c2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1005b0ab
push esi
lea ecx, [esp + 0xc]
call fcn.1005b33a
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 0x10007c0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10007a10
test eax, eax
jne 0x10007c0d
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.10007a10
test eax, eax
jne 0x10007c0d
lea eax, [esp + 0x14]
push 0x10081d6c
push eax
call fcn.1004c7c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10007bec
lea ecx, [esp + 0x14]
push 0x10081d68
push ecx
call fcn.1004c740
mov esi, eax
add esp, 8
test esi, esi
jne 0x10007bec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10007bef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1005b05b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10007afe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005af6e
xor eax, eax
jmp 0x10007c2f
mov byte [esi], 0
push 0x10081d64
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.1005af6e
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 0x100181e0
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 0x1001824e
cmp si, 0x69
ja 0x1001824e
add esi, 0xffd0
cmp si, 0x11
je 0x1001821e
push 0x11
call edi
test ax, ax
jge 0x1001821e
or esi, 0x2000
cmp si, 0x10
je 0x10018233
push 0x10
call edi
test ax, ax
jge 0x10018233
or esi, 0x4000
cmp si, 0x12
je 0x10018248
push 0x12
call edi
test ax, ax
jge 0x10018248
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001825b
mov esi, 0xbd
jmp 0x1001820f
cmp si, 0x6e
jne 0x10018268
mov esi, 0xbe
jmp 0x1001820f
cmp si, 0x6f
jne 0x10018209
mov esi, 0xbf
jmp 0x1001820f

Function at 0x100199d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10098b18]
xor edx, edx
cmp eax, edx
jne 0x100199f6
xor eax, eax
mov byte [eax + 0x10098a18], al
inc eax
cmp eax, 0x100
jl 0x100199de
mov dword [0x10098b18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10098a18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10019a87
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 0x10019a5a
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 0x10019a28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10019b00
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 0x10019b53
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 0x10019b3a
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