joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461ee0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x461fa1
mov eax, dword [esp + 0x488]
test eax, eax
je 0x461fa1
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x461fa1
cmp dword [esp], 0x378
jne 0x461fa1
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x461fa1
lea edx, [esp + 4]
push edx
call fcn.00461970
add esp, 4
test eax, eax
je 0x461fa1
cmp dword [esp + 0x234], 1
jne 0x461f93
cmp dword [esp + 0x258], 2
jne 0x461f93
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x461fa1
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461fa1
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x461fb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x46200f
push esi
call fcn.00461970
add esp, 4
test eax, eax
je 0x46200f
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x46200f
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x46200f
push 0x4ec530
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x4620a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x4620d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00461fb0
test eax, eax
jne 0x4620ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00462020
cmp eax, 1
je 0x46227a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x462126
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x4621a2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x462222
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.00461ee0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x462239
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x462142
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x4621f0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00461b90
test eax, eax
je 0x462222
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4621be
cmp dword [esp + 0x18], 1
jb 0x462222
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push closesocket
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.00461a70
cmp eax, 1
je 0x46226b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x462249
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x462222
push ebp
mov ecx, ebx
call fcn.00462290
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46227a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x462290
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x4622c2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.00462020
test eax, eax
jne 0x4622df
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x462306
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x462354
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00461d30
test eax, eax
jne 0x46233d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x462323
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
mov ecx, edi
call fcn.00461b00
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x462377
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4
Function at 0x46b6a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00484bc8
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.0049810f
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.00484bc8
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.0049810f
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.0049810f
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.0049810f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x46b7a4
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.0049810f
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x46b7df
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x4efcf0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.0049810f
pop edi
pop esi
pop ebx
add esp, 0x348
ret

Function at 0x470000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5286c4]
xor edx, edx
cmp eax, edx
jne 0x470026
xor eax, eax
mov byte [eax + 0x5285c4], al
inc eax
cmp eax, 0x100
jl 0x47000e
mov dword [0x5286c4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5285c4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4700b7
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 0x47008a
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 0x470058
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4700c0
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 0x470113
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 0x4700fa
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

Function at 0x476ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a69fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004773f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4cf0a4
call fcn.00497d13
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x476b63
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00497d13
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x476b5c
push 0
mov ecx, eax
call fcn.0046dc40
mov dword [esi + 0xc], eax
jmp 0x476b65
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x476b65
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49a376
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49a3ae
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049842d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00498405
jmp 0x49a3ba
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49ba6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49baad
call fcn.004a1520
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49baad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49baa4
xor eax, eax
jmp 0x49bab5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049babb
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a1a50
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a1a7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a1a9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a19b6
jmp 0x4a1a9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a1a9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a19b6
test edi, edi
mov eax, edi
jne 0x4a1a86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4042e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, 0x104
push esi
push 1
mov dword [ebp - 0xc], 1
call fcn.005329fb
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404358
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404348
cmp dword [ebp - 8], esi
ja 0x404348
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40435a
push ebx
call fcn.00530b0a
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404484
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4044ae
call fcn.0040435e
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
push dword [ebp - 4]
call fcn.00532c10
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x4044d8
call fcn.0040435e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4044f0
call fcn.0040435e
call fcn.004043e2
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x404515
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x404519
add edi, 8
cmp ebx, edi
jne 0x404503
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00530b0a
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x4048d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x567a18
call fcn.004046ef
pop ecx
test eax, eax
jne 0x4048f5
inc eax
jmp 0x404959
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x5d06d8]
call fcn.005333bd
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x5d01c4]
lea eax, [ebp - 0x308]
push str._sADMIN_System32_s_s
push eax
call fcn.0053300c
add esp, 0x28
push 0
lea eax, [ebp - 0x308]
push eax
push dword [0x5d06d8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005310be
leave
ret
Function at 0x404965
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ProcComs
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4049a5
xor eax, eax
jmp 0x404a10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x5d05c8
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ProcComs.bin
push esi
push 0x567a1c
push esi
call fcn.0053300c
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4049a1
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a15
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x404a69
xor eax, eax
jmp 0x404add
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x5d01c4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.0053300c
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404a65
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005310be
leave
ret
Function at 0x404aec
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x404b40
xor eax, eax
jmp 0x404bb4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x5d01c4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_SysWOW64_s
push eax
call fcn.0053300c
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404b3c
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005310be
leave
ret

Function at 0x404d6a
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x5ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x567b28
call fcn.0040473a
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x1108], eax
mov eax, 0x5d01c8
lea ecx, [esi + 0x110c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x404da8
push 0x567a18
call fcn.004046ef
pop ecx
test eax, eax
jne 0x404ddc
push 0x5d03c8
push dword [0x5d06d8]
push 0x567b20
push esi
call fcn.0053300c
add esp, 0x10
jmp 0x404e24
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [0x5d06d8]
call fcn.005333bd
push 0x5d03c8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str._s_s__s
push esi
call fcn.0053300c
add esp, 0x28
push str.realtime
call fcn.004046ef
pop ecx
test eax, eax
je 0x404e3f
mov dword [esi + 0x1104], 0x100
jmp 0x404e75
push str.high
call fcn.004046ef
pop ecx
test eax, eax
je 0x404e5a
mov dword [esi + 0x1104], 0x80
jmp 0x404e75
push str.idle
call fcn.004046ef
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [esi + 0x1104], eax
push str.nowait
call fcn.004046ef
pop ecx
mov dword [esi + 0x1210], eax
test edi, edi
je 0x404e9e
lea edx, [esi + 0x1000]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404e94
push esi
push dword [0x5d01c4]
mov esi, 0x5d04c8
push str._s_:__s
push esi
call fcn.0053300c
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.005310be
leave
ret
Function at 0x40513d
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x404ed0
call fcn.005334d0
push esi
push esi
push 0x404ff0
call fcn.005334d0
push esi
push esi
push 0x405095
call fcn.005334d0
add esp, 0x24
pop esi
ret

Function at 0x405394
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.005336e0
mov eax, dword [0x5ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1214
xor ebx, ebx
push esi
lea eax, [ebp - 0x1218]
push ebx
push eax
mov dword [ebp - 0x1224], ebx
call fcn.00530a90
xor eax, eax
lea edi, [ebp - 0x1220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1218]
push eax
call fcn.00404d6a
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push esi
lea eax, [ebp - 0x1218]
push eax
push dword [0x5c32e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00405169
pop ecx
pop ecx
test eax, eax
je 0x405458
push str.Ok_n_n
push 0x5679b4
call fcn.00531723
add eax, 0x20
push eax
call fcn.00532a3b
call fcn.00531723
add eax, 0x20
push eax
call fcn.00531a62
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push 8
lea eax, [ebp - 0x1220]
push eax
push dword [0x5c32e0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x405481
push str.Failed_n_n
push 0x5679b4
call fcn.00531723
add eax, 0x20
push eax
call fcn.00532a3b
call fcn.00531723
add eax, 0x20
push eax
call fcn.00531a62
add esp, 0x10
cmp dword [ebp - 0x1220], ebx
pop edi
pop esi
pop ebx
jne 0x4054aa
push dword [ebp - 0x121c]
push dword [ebp - 0x121c]
push str._nRemote_command_returned__d_0x_X__n
call fcn.00533577
mov eax, dword [ebp - 0x121c]
jmp 0x4054c6
push dword [ebp - 0x1220]
push dword [ebp - 0x1220]
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.00533577
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.005310be
leave
ret

Function at 0x4061d9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00530a90
xor eax, eax
mov dword [ebp - 0x54], edi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x5c32e8]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5c32e4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406238
call fcn.0040435e
xor eax, eax
jmp 0x406256
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret