joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x409ce1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ce1
lcall 0x5de5, 0x8b10c483
jmp loc.0095f1ac
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x54a119e4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x50b7289f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40894c
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
add eax, 0x98f83194
mov eax, 0x8133beb2
call fcn.00408982
add esi, 0x9112104
add eax, 1
xor dword [edi], ebx
sub esi, esi
inc edi
or eax, eax
cmp edi, edx
jne fcn.0040894c
add esi, eax
ret
Function at 0x8c6570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DSX1
lea edi, [esi - 0x352000]
push edi
jmp 0x8c658a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8c6591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8c6580
mov eax, 1
add ebx, ebx
jne 0x8c65a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8c65b4
jne 0x8c65d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8c65d3
dec eax
add ebx, ebx
jne 0x8c65c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8c6598
add ebx, ebx
jne 0x8c65cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8c6625
xor ecx, ecx
sub eax, 3
jb 0x8c65eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8c665a
sar eax, 1
mov ebp, eax
jmp 0x8c65f6
add ebx, ebx
jne 0x8c65f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8c65c4
inc ecx
add ebx, ebx
jne 0x8c6604
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8c65c4
add ebx, ebx
jne 0x8c6611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8c6606
jne 0x8c6622
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8c6606
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8c6644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8c6636
jmp 0x8c6586
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8c6644
add edi, ecx
jmp 0x8c6586
pop esi
mov edi, esi
mov ecx, 0x542b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8c6662
cmp byte [edi], 0x24
jne 0x8c6662
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8c6667
lea edi, [esi + 0x4c3000]
mov eax, dword [edi]
or eax, eax
je 0x8c66df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4ce734]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4ce810]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8c6694
mov ecx, edi
jns 0x8c66c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4ce814]
or eax, eax
je 0x8c66d9
mov dword [ebx], eax
add ebx, 4
jmp 0x8c66b1
call dword [esi + 0x4ce824]
mov ebp, dword [esi + 0x4ce818]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8c6713
sub esp, 0xffffff80
jmp 0x4ac2ca
Function at 0x401f20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43a680]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov ecx, edx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
push edi
mov dword [ebp - 0x20], eax
lea edi, [ecx + 1]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f60
push ebx
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401a50
cmp dword [ebp - 8], 0xf
lea edi, [ebp - 0x1c]
mov ebx, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
cmova edi, ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jbe 0x401fa2
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0xc]
jb 0x401f90
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401ae0
mov edi, dword [eax + 4]
test edi, edi
jne 0x401fc0
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp eax, 0xf
jbe 0x401fef
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x401fe5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402044
push ecx
push ebx
call fcn.004118c3
add esp, 8
mov eax, dword [ebp - 0x20]
pop ebx
cmp edi, dword [eax + 4]
je 0x40200e
cmp dword [edi + 0x34], 0xf
jbe 0x402006
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x30]
jmp 0x402015
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x20]
jmp 0x402015
mov ecx, 0x42d3c0
xor eax, eax
push eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push ecx
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00401a50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004118d1
mov esp, ebp
pop ebp
ret
call fcn.0041672f
int3
Function at 0x402950
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x402ac1
cmp dword [edx + 0x1c], 0xf
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 0x14], eax
lea ebx, [edx + 8]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 8], eax
mov esi, edx
jbe 0x402989
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0x18]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test eax, eax
je 0x4029b4
mov ecx, eax
nop word [eax + eax]
movzx eax, byte [edx + ebx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x4029a0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.00402440
push 0x38
push edi
call fcn.004118c3
mov edi, dword [ebp - 4]
add esp, 8
dec dword [edi + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x402a1d
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x4029d0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x402ab6
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x402a2f
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x402a32
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x402ab6
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ebx, [esi + 8]
jbe 0x402a4c
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp + 8], eax
mov edx, 0x811c9dc5
test eax, eax
je 0x402a74
mov edi, eax
nop
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x402a60
mov edi, dword [ebp - 4]
and edx, dword [edi + 0x18]
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.00402440
push 0x38
push edi
call fcn.004118c3
mov edi, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edi + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x402ac7
cmp esi, eax
jne 0x402a86
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x402a40
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42be4e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x43a680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0
xorps xmm0, xmm0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
movups xmmword [esi + 0xc], xmm0
push 2
movq qword [esi + 0x1c], xmm0
mov dword [esi + 0x24], 0
push esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0041075c
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
movq qword [esi + 0x48], xmm0
lea ecx, [esi + 0x50]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xffffffff
cmp dword [ecx + 8], 0x1000
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0x1000
jae 0x403c30
lea eax, [ebp - 0x10]
push eax
call fcn.004035e0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x64], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf10
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x43a680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
cmp byte [edi], 0
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x440], eax
jne 0x404e0c
xorps xmm0, xmm0
lea esi, [edi + 4]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push ecx
mov dword [edi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
mov esi, dword [ebp - 0x43c]
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x444]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
cmp eax, 0x3e5
je 0x404e06
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x434], 1
mov dword [ebp - 0x430], str.C:BuildAgent_work1_s_agent_rcapi_sourcekvm_sourcewin32ipc_client.cpp
mov dword [ebp - 0x42c], 0x28
mov dword [ebp - 0x428], 0x42d414
mov dword [ebp - 0x424], ecx
mov byte [ebp - 0x420], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0x400
push eax
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 0
push str.Pipe_Readfile_error_is:__d
push eax
call fcn.00410070
add esp, 0xc
lea ecx, [ebp - 0x434]
call fcn.00410000
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor edx, edx
cmp dword [ebp - 0x43c], 0xe9
jne 0x404eac
lea eax, [edx + 3]
jmp 0x404eb1
mov ecx, dword [ebp - 0x438]
push 0x3e8
push 0
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], ecx
mov ecx, dword [ebp - 0x440]
push eax
xor eax, eax
mov dword [ebp - 0x448], ecx
test ecx, ecx
setne al
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x440], eax
cmp eax, 0x102
jne 0x404e54
mov byte [edi], 1
mov eax, 2
xor edx, edx
jmp 0x404eb1
mov byte [edi], 0
test eax, eax
jne 0x404e97
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x438]
push 1
push eax
lea eax, [edi + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x404e83
mov edx, dword [ebp - 0x438]
xor eax, eax
jmp 0x404eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x404e97
mov eax, 3
xor edx, edx
jmp 0x404eb1
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor edx, edx
cmp dword [ebp - 0x440], 1
lea eax, [edx + 4]
je 0x404eb1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004118d1
mov esp, ebp
pop ebp
ret
Function at 0x404ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf4d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x43a680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], esi
call fcn.00410778
add esp, 4
test eax, eax
jne 0x405011
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x405018
cmp dword [esi + 0x68], 0xffffffff
mov dword [ebp - 4], 0
jne 0x404f3b
mov edi, 1
jmp 0x404fe9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
lea ecx, [eax + 0x18]
mov word [ebp - 0x40], 0
movups xmm0, xmmword [ebp - 0x48]
mov eax, dword [esi + 0x58]
sub eax, dword [esi + 0x50]
mov dword [ebp - 0x38], 0x77c48b54
mov dword [ebp - 0x34], 0x9987248
mov dword [ebp - 0x2c], ecx
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x18], xmm0
cmp ecx, eax
jbe 0x404f9d
cmp ecx, 0x7fffffff
ja 0x405023
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x50]
call fcn.004035e0
push 0x18
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x50]
call fcn.00403290
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x404fc6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404fc6
push eax
push ecx
push dword [esi + 0x54]
lea ecx, [esi + 0x50]
call fcn.00403400
mov ecx, dword [esi + 0x50]
lea edx, [ebp - 0x50]
mov eax, dword [esi + 0x54]
push 0
push edx
sub eax, ecx
push eax
push ecx
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb edi, edi
and edi, 0xfffffffd
add edi, 3
push esi
call fcn.0041079d
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004118d1
mov esp, ebp
pop ebp
ret 8
push 5
call fcn.00410a11
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.00410a11
call fcn.00404040
int3
Function at 0x405a30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c09d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x43a680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00405920
add esp, 4
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 4], 0
test esi, esi
jne 0x405a80
mov eax, 0x86
mov ecx, str.Failed_to_open_process_token
jmp 0x405aee
push 0x4c
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00412f50
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x4c
lea eax, [ebp - 0x64]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x405ab3
mov eax, 0x91
mov ecx, str.Failed_to_get_token_information
jmp 0x405aee
lea eax, [ebp - 0x68]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x405b08
mov eax, 0x98
mov ecx, str.Failed_to_allocate_and_initialize_SID
push ecx
push str.Process
push eax
push str.C:BuildAgent_work1_s_agent_rcapi_sourcekvm_sourcewin32_rckvm_process.cpp
push 1
call fcn.00403780
add esp, 0x14
xor bl, bl
jmp 0x405b22
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x68]
test eax, eax
setne bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x405b2d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004118d1
mov esp, ebp
pop ebp
ret

Function at 0x4077c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
movzx eax, byte [ebp + 0x10]
xor eax, 1
movlpd qword [ebp - 0x10], xmm0
add eax, eax
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x407811
or eax, 4
mov word [ebp - 0x16], cx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 8]
call fcn.004018d0
add esp, 4
movzx eax, ax
mov word [ebp - 0x16], ax
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
or dword [ebp - 0x14], 1
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c53d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x43a680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x14]
mov bl, 1
push eax
push 0
push 0x43b830
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
je 0x4098a7
cmp dword [ebp - 0x14], 0
je 0x409817
mov dword [ebp - 0x20], 0x43b830
mov dword [ebp - 0x1c], 4
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], 0
call fcn.004088a0
push 0
push 0
push 0x43b830
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x4098ac
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
test eax, eax
je 0x40986b
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push 0x408b70
push 0
push 0
call fcn.004174e5
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
jne 0x409863
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartMonitor:_hCursorWatchThread_failed___err_d_n
push str.CursorMonitor
push 0xbf
jmp 0x409881
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
jmp 0x409892
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartMonitor:_CreateEvent_failed___err_d_n
push str.CursorMonitor
push 0xc5
push str.C:BuildAgent_work1_s_agent_rcapi_sourcekvm_rckvmwin32cursor_monitor.cpp
push 1
call fcn.00408290
add esp, 0x18
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041779a
call fcn.00410c0d
int3