joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2974fae
Capabilities:
Encode data using xor

Disassembly:
add dword [esi + 0x775cae06], eax
clc
movsb byte es:[edi], byte [esi]
stosb byte es:[di], al
sub cl, byte [edi + 0x3a5aaccb]
mov edi, dword [edi - 0x578f66e]
jnp 0x2974f54
sbb ah, dl
mov ebx, 0xfc0a28e1
or al, 2
mov ch, byte [edx]
push edx
mov eax, 0xc4300290
add cl, byte [edx - 0x6f47add6]
add dh, byte [eax]
les ecx, [ebx + ebp*2 + 0x54]
mov esp, 0xf6763584
xor ah, al
dec esp
imul edx, dword [esp + edi*4 - 0x7c], 0x35
jbe 0x2974f7c
inc ebx
mov edx, 0x1246f0ff
mov dword [0x9a201028], eax
invalid
lcall 0x3888, 0x9fa0dfdc
scasb al, byte es:[edi]
xchg al, al
jb 0x2974f5e
jne 0x2974f75
and dword [edx + 0x31], esi
sbb byte [ecx + 0x55], ah
out 0x17, al
lahf
lcall 0x8dc8, 0xc2f7ddd9
lea esp, [esp + 0x34]
lea esp, [esp + 0x34]
jne 0x29bfe6a
push ecx
call fcn.02961855
stc
cmp cl, byte [ebx + 0x79]
xchg edi, eax
adc ebp, dword [edx - 0x18]
jo 0x297500d
adc byte [eax + ebp*4 + 0x28d56490], ah
xchg ecx, eax
call 0xfed5c41f
cmp dword [eax - 0x2f7acfed], esp
insb byte es:[edi], dx
dec edx
adc al, 0x23
add al, 0x3c
jbe 0x2974f90
push es
sbb cl, dl
popfd
and eax, 0x75add93
xor byte [ebx + edx*2 + 0x30], ch
push esp
call dword [edi - 0x16]
inc edx
xchg esi, eax
out dx, al
jbe 0x297503b
xchg ecx, eax
adc ch, byte [ecx]
aam 0x5c
pop edx
xor al, 0x6d
in eax, dx
lcall 0x69ef, 0x608065f0
add eax, 0x985c43ef
inc ebx
pop esp
cwde
pushfd
xchg esi, eax
pop edx
fcmovu st(0), st(4)
xor esp, dword [edx + 0x23e7d73e]
jmp 0x2975068
xchg dword [ebp + 0x248ade3a], eax
mov al, byte [0x1a06904c]
adc dword [esi], edi
out dx, eax
sbb dword [0x34c49682], esi
pop es
ret
or dword [esp + ebx - 0x30151367], edx
out 0xd4, al
pop ss
mov word [ecx], es
inc esi
mov cl, 0x34
add byte [edx], 0x8a
sub esp, dword [esi - 0x2b]
xchg edx, eax
out dx, eax
mov ebx, 0x968b39fe
adc ebp, dword [edx - 0x2a]
pop esi
push ebp
out dx, al
les esi, [esi + 0x3d]
push es
xor ecx, edx
outsb dx, byte [esi]
xchg byte [edx], dh
ja 0x2975075
pop ecx
xchg edx, eax
mov dword [0xf4c2fc36], eax
push 0xffffffffffffffca
push es
xor byte [ebx - 0x1210ed1e], dl
xor byte [esi + edi*2 - 0x696151fa], 0xb0
test ch, bh
scasb al, byte es:[edi]
sahf
xchg esi, eax
mov al, 0x84
std
or ecx, dword [eax + ecx + 0x2c]
inc esp
jne 0x29750f2
ret 0xaef5
pop ss
lcall 0x3e1e, 0xf3d76356
dec edx
into
xchg ebp, eax
dec ecx
inc ecx
push ecx
arpl word [edi], bx
aad 0xd8
xchg dword [edi + ecx*4 + 0x47c3b9bb], esp
and eax, 0x99c9f71f
das
and edx, dword [0xd1b21bb2]
jmp 0x29750ab
Function at 0x40e6c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005e38a0
push ebx
push esi
mov esi, ecx
push esi
push edi
call fcn.00444970
push 0x62
push esi
mov ebx, eax
mov dword [ebp - 4], 1
call fcn.005e4b80
add esp, 0x10
test eax, eax
jne 0x40e6f7
mov dword [ebp - 4], 0x11
test ebx, ebx
jne 0x40e782
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004058f0
push 0x692500
push esi
push 0x692504
push edi
push str.fopen_
push 5
call fcn.00406f60
add esp, 0x2c
call fcn.005e4c80
cmp dword [eax], 2
je 0x40e762
call fcn.005e4c80
cmp dword [eax], 6
je 0x40e762
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c
push str.....crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x691b38
call fcn.0040d500
add esp, 4
mov esi, eax
push ebx
test esi, esi
jne 0x40e7a6
call fcn.005e2820
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push 0x6a
push esi
call fcn.0040dfe0
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xc
call fcn.005e38a0
cmp dword [0x6d4d94], 0
push ebx
push esi
push edi
jne 0x41385f
push 0x30
push 0x6d47c8
push 0x699cac
mov dword [0x6d4d94], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x41383c
xor eax, eax
cmp word [0x6d47c8], 0x7e
sete al
mov edi, eax
lea ecx, [edi*2 + 0x6d47c8]
call fcn.00413640
mov esi, eax
mov ebx, edx
test edi, edi
je 0x4137a8
push 0x6d4f20
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.00587700
not esi
and esi, eax
not ebx
and edi, 0x1000000
xor eax, eax
add esp, 4
and ebx, edx
or edi, eax
je 0x4137c3
and ebx, 0xedfff7fd
jmp 0x4137c3
cmp word [0x6d47c8], 0x3a
jne 0x4137c3
push 0x6d4f20
call fcn.00587700
add esp, 4
mov esi, eax
mov ebx, edx
mov dx, word [0x6d47c8]
xor edi, edi
mov eax, 0x6d47c8
movzx ecx, dx
cmp dx, di
je 0x4137f2
lea esp, [esp]
cmp cx, 0x3a
je 0x413800
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4137e0
mov dword [0x6d4f28], edi
mov dword [0x6d4f2c], edi
jmp 0x41384d
cmp eax, edi
je 0x4137f2
xor ecx, ecx
cmp word [eax + 2], 0x7e
sete cl
mov edi, ecx
lea ecx, [eax + edi*2 + 2]
call fcn.00413640
test edi, edi
je 0x41382f
not eax
and dword [0x6d4f28], eax
not edx
and dword [0x6d4f2c], edx
jmp 0x41384d
mov dword [0x6d4f28], eax
mov dword [0x6d4f2c], edx
jmp 0x41384d
push 0x6d4f20
call fcn.00587700
add esp, 4
mov esi, eax
mov ebx, edx
or esi, 0x400
mov dword [0x6d4f20], esi
mov dword [0x6d4f24], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005e38a0
cmp dword [ecx], 0x72
mov eax, dword [ebp + 0xc]
jne 0x44f8a6
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, eax
push edi
push ecx
mov ecx, dword [ebp + 0x10]
and eax, 1
shr ebx, 1
add eax, ebx
push eax
push edx
mov edx, dword [ebp + 0x18]
push 0x691b80
mov dword [ebp - 4], eax
call fcn.0044f480
add esp, 0x14
test eax, eax
jne 0x44f79c
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [fcn.00413cb0]
push esi
test eax, eax
je 0x44f7bf
cmp eax, fcn.00413cb0
je 0x44f7bf
push 0x104
push str.....cryptokdf_tls1_prf.c
push edi
call eax
add esp, 0xc
jmp 0x44f7df
test edi, edi
je 0x44f7e5
cmp dword [0x6cc8e4], 0
je 0x44f7d6
mov dword [0x6cc8e4], 0
push edi
call fcn.005e325a
add esp, 4
mov esi, eax
test esi, esi
jne 0x44f805
push 0x105
push str.....cryptokdf_tls1_prf.c
push 0x41
push 0x6f
push 0x34
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
add ebx, dword [ebp + 8]
push edi
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push 0x68468c
mov edx, esi
call fcn.0044f480
add esp, 0x14
test eax, eax
jne 0x44f843
push 0x10a
push str.....cryptokdf_tls1_prf.c
push edi
call fcn.00413f20
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x44f867
mov eax, dword [ebp + 0x18]
mov ecx, esi
sub ecx, eax
mov edx, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x44f850
test edi, edi
je 0x44f867
push edi
push esi
call fcn.00587a20
add esp, 8
mov eax, dword [fcn.00413ef0]
test eax, eax
je 0x44f892
cmp eax, fcn.00413ef0
je 0x44f892
push 0x10f
push str.....cryptokdf_tls1_prf.c
push esi
call eax
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.005dcea1
add esp, 4
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
push edi
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0044f480
add esp, 0x14
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x4bf0f0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.005e38a0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x1048
push 0x667f38
push ebx
mov edi, ecx
mov esi, edx
call fcn.005e12d0
add esp, 0xc
cmp esi, 0x48
jle 0x4bf124
mov esi, 0x48
lea ecx, [esi + edi]
mov eax, edi
lea esi, [ebx + 8]
mov dword [ebp - 4], 6
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4bf13d
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf14c
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf15b
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf16a
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4bf177
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf186
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf195
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf1a4
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4bf1b1
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf1c0
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf1cf
mov eax, edi
movzx ebx, byte [eax]
shl edx, 8
inc eax
or edx, ebx
cmp eax, ecx
jb 0x4bf1de
mov eax, edi
xor dword [esi], edx
add esi, 0xc
dec dword [ebp - 4]
jne 0x4bf133
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0059d6c0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x4bf200
xor esi, esi
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0059d6c0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x4bf224
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x571ca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
lea ecx, [ebp + 8]
push ecx
inc eax
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x571d23
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x571d16
mov eax, dword [ebp - 4]
add eax, 5
push eax
push 1
call fcn.005dccff
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov dword [ebp + 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x571dbf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x571dec
cmp eax, 2
jne 0x571e14
leave
ret
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x5785c4
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.005dccff
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 0x57863c
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 0x57862c
cmp dword [ebp - 8], esi
ja 0x57862c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x57863e
push ebx
call fcn.005dcea1
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x578768
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 0x578792
call fcn.00578642
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.005e325a
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x5787bc
call fcn.00578642
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x5787d4
call fcn.00578642
call fcn.005786c6
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x5787f9
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5787fd
add edi, 8
cmp ebx, edi
jne 0x5787e7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.005dcea1
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 0x578bb4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x6457a4
call fcn.005789d3
pop ecx
test eax, eax
jne 0x578bd9
inc eax
jmp 0x578c3d
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 [0x6d0eb8]
call fcn.005e384e
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x6ccda4]
lea eax, [ebp - 0x308]
push str._sADMIN_System32_s_s
push eax
call fcn.005dd5b8
add esp, 0x28
push 0
lea eax, [ebp - 0x308]
push eax
push dword [0x6d0eb8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
leave
ret
Function at 0x578c49
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 0x578c89
xor eax, eax
jmp 0x578cf4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x6d0da8
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ProcComs.bin
push esi
push 0x6457a8
push esi
call fcn.005dd5b8
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 0x578c85
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 0x578cf9
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c6e10]
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 0x578d4d
xor eax, eax
jmp 0x578dc1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6ccda4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dd5b8
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 0x578d49
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.005dcf8a
leave
ret
Function at 0x578dd0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c6e10]
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 0x578e24
xor eax, eax
jmp 0x578e98
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6ccda4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dd5b8
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 0x578e20
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.005dcf8a
leave
ret

Function at 0x57904e
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6458b4
call fcn.00578a1e
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x1108], eax
mov eax, 0x6ccda8
lea ecx, [esi + 0x110c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x57908c
push 0x6457a4
call fcn.005789d3
pop ecx
test eax, eax
jne 0x5790c0
push 0x6ceda8
push dword [0x6d0eb8]
push 0x6458ac
push esi
call fcn.005dd5b8
add esp, 0x10
jmp 0x579108
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 [0x6d0eb8]
call fcn.005e384e
push 0x6ceda8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str._s_s__s
push esi
call fcn.005dd5b8
add esp, 0x28
push str.realtime
call fcn.005789d3
pop ecx
test eax, eax
je 0x579123
mov dword [esi + 0x1104], 0x100
jmp 0x579159
push str.high
call fcn.005789d3
pop ecx
test eax, eax
je 0x57913e
mov dword [esi + 0x1104], 0x80
jmp 0x579159
push str.idle
call fcn.005789d3
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [esi + 0x1104], eax
push str.nowait
call fcn.005789d3
pop ecx
mov dword [esi + 0x1210], eax
test edi, edi
je 0x579182
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 0x579178
push esi
push dword [0x6ccda4]
mov esi, 0x6cfda8
push str._s_:__s
push esi
call fcn.005dd5b8
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.005dcf8a
leave
ret
Function at 0x57942d
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x5791b4
call fcn.005e3992
push esi
push esi
push 0x5792d8
call fcn.005e3992
push esi
push esi
push 0x579381
call fcn.005e3992
add esp, 0x24
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.005e38a0
mov eax, dword [0x6c6e10]
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.005dd9b0
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.0057904e
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push esi
lea eax, [ebp - 0x1218]
push eax
push dword [0x6c6474]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00579459
pop ecx
pop ecx
test eax, eax
je 0x579748
push str.Ok_n_n
push 0x6aa570
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push 8
lea eax, [ebp - 0x1220]
push eax
push dword [0x6c6474]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x579771
push str.Failed_n_n
push 0x6aa570
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
cmp dword [ebp - 0x1220], ebx
pop edi
pop esi
pop ebx
jne 0x57979a
push dword [ebp - 0x121c]
push dword [ebp - 0x121c]
push str._nRemote_command_returned__d_0x_X__n
call fcn.005dcd3f
mov eax, dword [ebp - 0x121c]
jmp 0x5797b6
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.005dcd3f
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.005dcf8a
leave
ret

Function at 0x57a4c8
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.005dd9b0
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 [0x6c647c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6c6478]
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 0x57a527
call fcn.00578642
xor eax, eax
jmp 0x57a545
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