joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3d08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00410ac0
cmp dword [eax + 0x14], 8
jb 0x406e97
mov eax, dword [eax]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 8
jb 0x406ebc
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404770
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test edi, edi
jne 0x406ed8
xor bl, bl
jmp 0x406f38
push 0
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x406f31
mov esi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test esi, esi
je 0x406f31
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x406f31
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x406f28
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x406f4d
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403e20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret
Function at 0x406f70
Capabilities:
Hide graphical window
Log keystrokes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3d38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410ac0
cmp dword [eax + 0x14], 8
jb 0x406fb5
mov eax, dword [eax]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 8
jb 0x406fda
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404770
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test esi, esi
je 0x407100
push eax
push eax
push eax
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x4070f9
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edi, dword [eax]
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test ebx, ebx
je 0x4070b0
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4070b0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push esi
push ebx
call edi
mov esi, dword [ebp - 0x2c]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x2c]
call esi
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 0x30]
push ebx
call edi
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov bl, 1
jmp 0x407102
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4070c8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [ebx + 3]
cmp ecx, eax
jb 0x4070c8
mov bl, 1
jmp 0x407102
test edi, edi
je 0x4070f9
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x407100
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x4070f9
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x407117
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403e20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret
Function at 0x4071a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3dae
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
mov dword [ebp - 4], 1
call fcn.00493133
mov edi, eax
lea eax, [ebp - 0x84]
push 0x40
push 0
push eax
mov dword [edi + 8], 1
mov dword [edi + 4], 0
mov dword [edi], 0xc
mov dword [ebp - 0x88], 0x44
call fcn.00498020
mov eax, 1
mov dword [ebp - 0x5c], 1
push 0x4c95c8
lea edx, [ebp + 8]
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x40]
call fcn.0040a8a0
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040a9b0
add esp, 0x18
mov esi, eax
lea eax, [ebp + 0x20]
cmp eax, esi
je 0x407279
mov eax, dword [ebp + 0x34]
cmp eax, 0x10
jb 0x40725e
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00403e20
push esi
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
call fcn.00403cc0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40728e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403e20
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x4072b5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403e20
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0x20
push 0
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push 0xc
push edi
mov esi, eax
call fcn.004933d3
mov ecx, dword [ebp + 0x1c]
add esp, 8
cmp ecx, 0x10
jb 0x407304
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403e20
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x40732b
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00403e20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret
Function at 0x40b0a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x40b0b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x40b0f6
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b0f2
nop word [eax + eax]
cmp esi, edx
jae 0x40b0f6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b0e0
cmp esi, edx
jb 0x40b0fd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40b470
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b43f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp edx, 0x7e9
jne 0x40b571
cmp eax, 3
jne 0x40b534
mov ecx, dword [esi + 0x850]
test ecx, ecx
je 0x40b4e3
cmp edi, dword [ecx + 0xc5c]
je 0x40b4e3
cmp edi, dword [ecx + 0xc58]
jl 0x40b4e3
cmp edi, dword [ecx + 0xc54]
jg 0x40b4e3
mov dword [ecx + 0xc5c], edi
call fcn.00441240
cmp dword [esi + 0x838], 0
je 0x40b5a5
lea ecx, [ebp - 0x30]
call fcn.0040c5d0
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push 0x4c9b58
push eax
call fcn.0040ca40
mov ecx, dword [esi + 0x838]
add esp, 0xc
mov eax, dword [ecx]
push 0
push 0
push dword [ebp - 0x30]
call dword [eax + 0x34]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c4e0
jmp 0x40b5a5
cmp eax, 1
jne 0x40b5a5
cmp edi, eax
je 0x40b55b
push 0
push 0x4c9b64
push 0x4c9b6c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x40b5a5
mov ecx, dword [esi + 0x86c]
test ecx, ecx
je 0x40b5a5
mov eax, dword [ecx]
push 2
call dword [eax + 0x250]
jmp 0x40b5a5
cmp edx, 0x112
jne 0x40b5a5
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
movq qword [ebp - 0x1b], xmm0
push 0x4c9b90
push eax
movups xmmword [ebp - 0x2b], xmm0
call fcn.0040ca60
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push edi
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0041b010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d1d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x4e5070]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x14c]
mov esi, ecx
push 0
push eax
call fcn.00498020
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40d20d
mov esi, dword [esi]
push esi
lea eax, [esp + 0x14c]
push 0x104
push eax
call fcn.0049cf5d
push 0x4c9e64
lea eax, [esp + 0x158]
push 0x104
push eax
call fcn.0049cfb7
add esp, 0x18
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d281
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
nop word [eax + eax]
cmp byte [esp + 0x34], 0x2e
je 0x40d26e
test byte [esp + 8], 4
je 0x40d29a
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x40d260
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00493122
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [esp + 0x254]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00493122
mov esp, ebp
pop ebp
ret

Function at 0x40dd30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4e5070]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0040d460
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.0040d530
mov ecx, dword [esp + 0x64]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00493122
mov esp, ebp
pop ebp
ret 4

Function at 0x40ddd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40de4e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
push edi
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40de4e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x514
je 0x40de4e
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00493122
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e310
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, edx
call fcn.0040e280
add esp, 4
test al, al
jne 0x40e32b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, 0xf003f
call fcn.0040e170
test al, al
mov dword [ebp - 4], 0
mov ecx, 0xf013f
cmovne edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40e34f
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
je 0x40e36e
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40e379
mov eax, dword [eax]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x40e3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
mov bl, 1
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 8], esi
lea edi, [esi + 1]
mov dword [ebp - 0xc], esi
cmp dword [0x4ebdc8], esi
jne 0x40e3e8
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4ebdc8], eax
test eax, eax
je 0x40e3f9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [0x4ebdc8]
cmp dword [ebp - 0xc], edi
mov eax, 0x101
mov ecx, dword [ebp - 0x10]
cmove edi, eax
lea eax, [ebp - 8]
push eax
push edi
push 0
call fcn.004034f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e42a
xor bl, bl
jmp 0x40e4b9
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, edi
call fcn.004034f0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e450
xor bl, bl
jmp 0x40e4b9
push dword [ebp - 4]
call fcn.0049ca94
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.00498020
add esp, 0x10
lea eax, [ebp - 4]
mov ecx, edi
push eax
push esi
push 0
push 0
call fcn.004034f0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e48a
xor bl, bl
jmp 0x40e4b9
cmp word [esi], 0
jne 0x40e494
xor ecx, ecx
jmp 0x40e4af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4a0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004036e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x40e4c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e4d4
push esi
call fcn.0049b90f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push ecx
mov esi, edx
call fcn.0040e280
add esp, 4
test al, al
jne 0x40e503
push ecx
mov edx, esi
call fcn.0040e1d0
add esp, 4
cmp dword [0x4ebdc8], 0
mov bl, 1
mov dword [ebp - 4], 0
mov edi, 0x20006
mov dword [ebp - 8], 0
jne 0x40e541
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4ebdc8], eax
test eax, eax
je 0x40e552
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [0x4ebdc8]
cmp dword [ebp - 8], 1
mov eax, 0x20106
mov ecx, esi
cmove edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0
call fcn.004034f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e580
xor bl, bl
jmp 0x40e5b6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
add eax, eax
push eax
call fcn.004034f0
mov ecx, dword [ebp + 8]
push eax
push 1
push 0
call fcn.004034f0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e5ad
xor bl, bl
jmp 0x40e5b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e5c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], esi
cmp dword [0x4e91c0], 0
push edi
jne 0x40ea0a
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 0
push 0
push eax
mov dword [ebp - 0x238], 0x34
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x230]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40e9c2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004933e1
add esp, 4
mov edi, eax
lea eax, [ebp - 0x230]
push edi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e9b5
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x4c9500
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e9b5
mov ecx, dword [ebp - 0x234]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.0040f1d0
add esp, 0x18
push 2
push edi
call fcn.004933d3
add esp, 8
jmp 0x40e9db
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.0040f1d0
add esp, 0x18
cmp byte [ebp - 0x24], 0
jne 0x40e9e5
xor ecx, ecx
jmp 0x40e9f9
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e9f0
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
mov ecx, 0x4e91b0
push eax
call fcn.00403a90
mov ecx, esi
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x4e91b0
mov byte [esi], 0
call fcn.00403b90
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493122
mov esp, ebp
pop ebp
ret
Function at 0x40ec60
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x288
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0x288
call fcn.0049ca94
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
je 0x40ed2e
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [esp + 0x10]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x40ecc5
push edi
call fcn.0049b90f
add esp, 4
push dword [esp + 0x10]
call fcn.0049ca94
mov edi, eax
mov dword [esp + 0x18], eax
add esp, 4
test edi, edi
je 0x40ed2e
lea eax, [esp + 0x10]
push eax
push edi
call esi
test eax, eax
jne 0x40ed2e
mov esi, edi
test edi, edi
je 0x40ed2e
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
mov eax, dword [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40ed24
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f1f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x40ece0
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test edi, edi
je 0x40ed43
push edi
call fcn.0049b90f
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ed50
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x40eda1
nop dword [eax + eax]
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40eda7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x40ed70
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov eax, dword [eax]
ret
Function at 0x40f850
Capabilities:
Check for time delay via gettickcount
Hide graphical window
Log keystrokes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
je 0x40f9f2
mov eax, dword [esi + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
test eax, eax
je 0x40f883
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edi, dword [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f8db
push str.restart
push eax
call fcn.0049594d
add esp, 8
test eax, eax
je 0x40f8db
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x40f8d0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x40f8c9
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x40f974
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f974
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push esi
push ebx
call edi
mov esi, dword [ebp - 4]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 4]
call esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp + 0xc]
push ebx
call edi
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f988
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [ebx + 3]
cmp ecx, eax
jae 0x40f969
test edi, edi
je 0x40f9f2
cmp byte [ebp + 0xc], 0
je 0x40f9f2
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x40f9c6
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x40f9bf
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi + 0xc], 0
je 0x40f9e7
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 4], eax
add dword [esi + 4], 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8