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

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x411d6e
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x411d4f
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x411d2a
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x411d64
add edx, dword [esp + 0x14]
jmp 0x411d68
add edx, dword [esp + 0x24]
test esi, esi
jne 0x411d08
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x4146e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x441f9c], eax
test eax, eax
je 0x41470e
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x441f98], eax
lea eax, [ebp - 0x114]
mov dword [0x441fa0], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414770
cmp dword [ebp - 0x104], 1
jne 0x414745
and dword [0x441fa0], 0
jmp 0x414788
cmp dword [ebp - 0x104], 2
jne 0x414770
cmp dword [ebp - 0x110], 5
jb 0x41473c
jne 0x414770
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x441fa0]
mov dword [0x441fa0], eax
jmp 0x414775
mov eax, dword [0x441fa0]
test eax, eax
je 0x414788
call fcn.004143fa
neg eax
sbb eax, eax
and dword [0x441fa0], eax
mov esp, ebp
pop ebp
ret

Function at 0x4157f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x415822
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41581d
cmp dword [esp + 0xc], esi
je 0x415839
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x42b910
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x42b9c9
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov edx, eax
mov ecx, eax
shr edx, 0x10
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x43ee68]
xor edx, dword [ecx*4 + 0x43ea68]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x43f268]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x43da68]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x43de68]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x43d668]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x43e268]
xor edx, dword [eax*4 + 0x43e668]
mov eax, edx
dec ebx
jne 0x42b934
pop ebx
jmp 0x42b9cd
mov eax, dword [esp + 0xc]
test edi, edi
je 0x42b9eb
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x43d668]
dec edi
jne 0x42b9d1
pop edi
pop esi
ret
Function at 0x42d0e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 0x48]
mov eax, dword [edi + 0x18]
cmp eax, 0xc
jle 0x42d0fd
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], eax
jge 0x42d1c1
lea esi, [edi + 0x44]
jmp 0x42d110
mov dl, byte [esi]
test dl, dl
jne 0x42d195
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42d12b
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x42d13c
push dword [ecx + 0x38]
push 1
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x42d21c
mov al, byte [esi]
test al, al
je 0x42d20e
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x42d169
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x42d179
push dword [edx + 0x38]
push eax
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov cl, byte [esi]
mov edx, eax
movzx eax, cl
cmp edx, eax
jne 0x42d21c
mov al, byte [ebp]
dec cl
mov byte [ebp], 2
mov byte [esi], cl
jmp 0x42d1a7
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
dec dl
mov al, byte [eax + esi]
mov byte [esi + 1], cl
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
movzx eax, al
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
cmp eax, dword [edi + 0x18]
jl 0x42d110
mov eax, dword [edi + 0x18]
movzx ecx, word [eax*2 + 0x43f710]
mov eax, dword [esp + 0x18]
and ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edi + 0x18]
shr dword [edi + 0x30], cl
sub dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 0x1001
jge 0x42d204
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x42d204
cmp ecx, 0xc
jge 0x42d204
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
pop ebp
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
pop esi
pop ebp
pop edi
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop ebx
ret
Function at 0x42d4f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x42d50f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x42d524
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x42d57b
mov cl, byte [esp + 0xc]
test cl, cl
je 0x42d587
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x42d558
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x42d570
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x42d59c
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
ret

Function at 0x42d5b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x42d5cf
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x42d5e4
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x42d63b
mov cl, byte [esp + 0xc]
test cl, cl
je 0x42d647
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x42d618
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x42d630
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x42d651
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x42d9a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x42d9b8
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x42d9ce
push 1
lea eax, [esp + 0xc]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x42d9e3
push dword [eax + 0x38]
lea eax, [esp + 0xc]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42d9f3
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov al, byte [esp + 8]
cmp al, 0x21
je 0x42da36
cmp al, 0x2c
je 0x42da25
cmp al, 0x3b
mov eax, dword [esp + 0xc]
je 0x42da18
mov dword [eax], 0
xor eax, eax
mov dword [esi + 0x40], 0x6b
pop esi
ret
mov dword [eax], 4
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 2
mov eax, 1
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 3
mov eax, 1
ret
Function at 0x42da50
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x42da68
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.0042dc00
add esp, 8
test eax, eax
je 0x42da64
lea eax, [esi + 4]
push eax
push esi
call fcn.0042dc00
add esp, 8
test eax, eax
je 0x42da64
mov ecx, dword [esi + 0x48]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42daa7
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x42dab8
push dword [ecx + 0x38]
lea eax, [esp + 0x10]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
je 0x42dadb
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.0042e4b0
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop ebp
pop esi
ret
mov dl, byte [esp + 0xc]
movzx ecx, dl
mov eax, ecx
and ecx, 7
shr eax, 4
inc ecx
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0x11]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0x12]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x42dbe0
mov eax, 1
shl eax, cl
push 0
push eax
call fcn.0042e560
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x42db38
pop edi
pop ebx
pop ebp
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x42dbe7
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42db69
push 3
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x42db7a
push dword [ecx + 0x38]
lea eax, [esp + 0x18]
push 3
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 3
jne 0x42dbc0
mov eax, dword [esi + 0x14]
inc ebx
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x14]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x15]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x16]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x42db50
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret
push dword [esi + 0x14]
call fcn.0042e4b0
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
ret

Function at 0x42dc00
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42dc1e
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x42dc33
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x42dc43
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret
Function at 0x42dc60
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push edi
push 0x4c
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x42dc8a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42dc83
mov dword [eax], 0x6d
xor eax, eax
pop edi
add esp, 8
ret
push esi
push 0x4c
push 0
push edi
call sub.MSVCRT.dll_memset
push 0x614c
push 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42dcd9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42dcc7
mov dword [eax], 0x6d
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop edi
add esp, 8
ret
push 0x614c
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [edi + 0x48], esi
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 0x38], 0
mov dword [esi], 8
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42dd27
push 6
lea ecx, [esp + 0xc]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x42dd3c
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 6
je 0x42dd51
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42dd7d
mov dword [eax], 0x66
jmp 0x42dd7d
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x42dd94
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42dd7d
mov dword [eax], 0x67
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
add esp, 8
xor eax, eax
pop esi
pop edi
add esp, 8
ret
push edi
call fcn.0042da50
add esp, 4
test eax, eax
jne 0x42ddc6
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
push edi
call esi
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x42ddbe
mov dword [eax], 0x68
pop esi
xor eax, eax
pop edi
add esp, 8
ret
mov dword [edi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [esi + 0x6148], al
mov eax, edi
pop esi
pop edi
add esp, 8
ret

Function at 0x42e010
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x42e02f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x42e044
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x42e05a
movzx ecx, byte [esp + 0xc]
cmp ecx, 8
jle 0x42e05f
mov dword [esi + 0x40], 0x66
pop edi
xor eax, eax
pop esi
ret
mov eax, 1
mov dword [edi + 8], ecx
shl eax, cl
inc ecx
mov dword [edi + 0xc], eax
inc eax
mov dword [edi + 0x10], eax
inc eax
mov dword [edi + 0x14], eax
mov eax, 1
shl eax, cl
mov dword [edi + 0x1c], eax
mov eax, 0x1002
mov dword [edi + 0x18], ecx
mov ecx, 0x1000
mov byte [edi + 0x44], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0x1002
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
add edi, 0x2144
rep stosd dword es:[edi], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x403fd2
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x17e0]
mov eax, 0x1860
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x17dc], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x17e8]
mov esi, 0x7ff
xor ebx, ebx
push esi
lea eax, [ebp + 0x7dd]
push ebx
push eax
mov byte [ebp + 0x7dc], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp - 0x23]
push ebx
push eax
mov byte [ebp - 0x24], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp + 0xfdd]
push ebx
push eax
mov byte [ebp + 0xfdc], bl
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xfdc]
push eax
push edi
mov dword [ebp - 0x28], 0x800
call fcn.004032c7
add esp, 0x34
test eax, eax
jne 0x40405e
xor eax, eax
jmp 0x404162
lea eax, [ebp + 0xfdc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp byte [ebp + eax + 0xfdb], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x40408d
lea eax, [ebp + 0xfdc]
push eax
push 0x40e060
push eax
call esi
add esp, 0xc
push str.jqs.exe
lea eax, [ebp + 0xfdc]
push eax
lea eax, [ebp + 0x7dc]
push str._sbin_s
push eax
call esi
lea eax, [ebp + 0x7dc]
push eax
call fcn.0040c08e
add esp, 0x14
test eax, eax
je 0x404057
call fcn.0040c08e
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp + 0x7dc]
push eax
xor edi, edi
lea eax, [ebp - 0x24]
push str.__s___unregister
inc edi
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], edi
call esi
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push 0x2000000
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404057
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, ebx
je 0x404057
push 0x7530
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, edi
mov ecx, dword [ebp + 0x17dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x17e0
leave
ret
Function at 0x4052b7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040c08e
mov ebx, eax
cmp ebx, esi
je 0x40532a
lea ecx, [ebp - 0x74]
call fcn.004014c2
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405342
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.004052b7
cmp eax, esi
jne 0x405374
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x405332
lea ecx, [ebp - 0x74]
call fcn.004014c2
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401453
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004014c2
mov eax, esi
jmp 0x405310
Function at 0x406a9f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xbc]
push 0x40e490
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x406c0a
push esi
call dword [sym.imp.MSVCR100.dll__chdir]
pop ecx
test eax, eax
jne 0x406c0a
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push ebx
push dword [ebp - 0x7c]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x78]
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
jne 0x406bff
push edi
cmp dword [ebp - 0x78], 0x4034b50
jne 0x406bfe
cmp word [ebp - 0x70], 0
jne 0x406bfe
movzx eax, word [ebp - 0x5e]
push dword [ebp - 0x7c]
movzx edi, word [ebp - 0x5e]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x406bfe
lea eax, [ebp - 0x58]
push eax
mov byte [ebp + edi - 0x58], 0
call fcn.0040c08e
cmp word [ebp - 0x5c], 0
pop ecx
jbe 0x406b78
movzx eax, word [ebp - 0x5c]
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406bfe
movzx eax, word [ebp - 0x5e]
cmp byte [ebp + eax - 0x59], 0x2f
je 0x406bde
lea eax, [ebp - 0x58]
push 0x40e494
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x406bfe
push dword [ebp - 0x62]
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp - 0x7c]
mov edi, eax
push dword [ebp - 0x62]
push ebx
push edi
call esi
add esp, 0x14
cmp eax, dword [ebp - 0x62]
jne 0x406bf7
push dword [ebp - 0x80]
push dword [ebp - 0x62]
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push edi
cmp eax, dword [ebp - 0x62]
jne 0x406bf8
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push ebx
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
je 0x406b12
jmp 0x406bfe
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.0040b376
add ebp, 0xb0
leave
ret
Function at 0x408822
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x588], eax
mov eax, dword [ebp + 0x594]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
mov esi, 0x400
push ebx
push ebx
push esi
push esi
push 1
push 6
push 0x80003
push 0x40eda8
call dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40889b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
je 0x408865
cmp eax, 0xe7
je 0x408865
jmp 0x4089a6
push ebx
push edi
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4088bd
call dword [sym.imp.kernel32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x408978
mov eax, dword [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4088c3
push ebx
sub eax, edx
lea ecx, [ebp - 0x80]
push ecx
inc eax
push eax
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x408900
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.sendMessageToBroker_WriteFile_error:__d_n
call fcn.0040c08e
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4089a6
push 0x1ff
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x200
lea eax, [ebp + 0x388]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
jne 0x408946
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xea
jne 0x408965
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp - 0x78]
push 0x40ee14
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
cmp esi, ebx
je 0x40891b
jmp 0x408978
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.sendMessageToBroker_ReadFile_error:__d_n
call fcn.0040c08e
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 8
mov edi, 0x40ee18
lea esi, [ebp - 0x78]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408993
inc eax
jmp 0x4089a8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.sendMessageToBroker_ConnectNamedPipe_error:__d_n
call fcn.0040c08e
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x58c
leave
ret