joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104384e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x54253a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x5427430]
push 0
lea ecx, [esp + 0x20]
call fcn.10485829
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10437e40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10485757
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.10482031
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.10482031
push 1
push 0
push 0
mov ecx, esi
call fcn.10481fd9
push 1
push 0
push 1
mov ecx, esi
call fcn.10481fd9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1048589b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10438660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x54253a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.10485829
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10437e40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.10485757
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x5427430]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10438724
cmp dword [esp + 0x40], 1
jne 0x10438722
cmp ecx, eax
jge 0x10438724
mov eax, ecx
cmp eax, 0xc8
jge 0x10438730
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.104384e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x5427434]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1048589b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10438ee0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5425433
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10480464
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x544fab0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x544f9f8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x54270c4]
push eax
mov ecx, edi
call fcn.10485ad1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.10486fed
test eax, eax
je 0x10438ffc
mov ecx, dword [esp + 0x3c]
call fcn.10485afe
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x5427410]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10438fc0
push edi
mov ecx, esi
call fcn.1048314b
mov ecx, esi
call fcn.104391a0
cmp dword [esp + 0x38], 1
jne 0x10438ff5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.10483286
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x1043b130
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1043b163
push esi
call fcn.104494b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1043b15c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1043b1e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1043b1d2
mov eax, dword [esi + 8]
test eax, eax
je 0x1043b187
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1043b1ce
cmp eax, 2
je 0x1043b1d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1043b17a
cmp eax, 3
je 0x1043b1ad
cmp eax, 1
jne 0x1043b17a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1043b17a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1043b17a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1043b210
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1043b1f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1043b210
add esp, 4
pop esi
ret
Function at 0x104591b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5425840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10458d60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10458de0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10458de0
lea ecx, [esi + 0xc]
call fcn.1047ee16
lea ecx, [esi + 0x10]
call fcn.1047ee16
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1045a370
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1045a370
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1045a370
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1047ee8b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1047ee8b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1045e63a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x1045e75b
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x1045e73f
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x1045e691
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x1045e66f
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x1051b0e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1051b1ec
test eax, eax
je 0x1051b1ec
push esi
push edi
mov ecx, 0x10
mov esi, 0x54cf018
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x1051b1d3
lea edi, [eax + 4]
jmp 0x1051b137
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1051b14c
mov dword [ebp - 4], 2
jmp 0x1051b16d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1051b163
mov dword [ebp - 4], 1
jmp 0x1051b16d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1051b1e3
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x1051b1a6
mov byte [ecx], 0x3d
jmp 0x1051b1b2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1051b1bd
mov byte [ecx], 0x3d
jmp 0x1051b1c3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1051b134
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x2980263a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42e1d0
nop
mov ecx, 0x6d8e41ca
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401e78
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov ecx, 0xa
xor edi, edi
pop esi
mov dword [0x4031a8], esi
push edi
dec ecx
jne 0x401e9b
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [0x4031a8]
mov dword [ebp - 0x3c], edx
lea ecx, str.contents
mov dword [ebp - 0x28], ecx
lea eax, section..text
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
push eax
push dword [0x4031a8]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4031b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4031b8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401f53
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x40]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x401f3a
pop ebp
ret 0x10
Function at 0x402a88
Capabilities:
Connect pipe

Disassembly:
push ebx
push edi
push 0x14
xor ebx, ebx
lea edi, [esi + 0xc]
push ebx
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
push edi
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
sub eax, 0x217
je 0x402b12
dec eax
je 0x402ae7
sub eax, 0x1cd
je 0x402ae7
cmp byte [esi], bl
je 0x402adc
push str.Connect:_Unexpected_error_n
call dword [sym.imp.GrooveUtil.DLL_void___stdcall_GOutputDebugString_wchar_t_const__]
push 0x6c
mov eax, edi
call fcn.00406953
jmp 0x402b2a
cmp edi, 0x3e5
jne 0x402afa
cmp byte [esi], bl
je 0x402b09
push str.Connect:_ERROR_IO_PENDING_n
jmp 0x402b03
cmp byte [esi], bl
je 0x402b09
push str.Connect:_ERROR_PIPE_LISTENING_n
call dword [sym.imp.GrooveUtil.DLL_void___stdcall_GOutputDebugString_wchar_t_const__]
mov dword [esi + 8], 2
jmp 0x402b28
cmp byte [esi], bl
je 0x402b21
push str.Connect:_PIPE_CONNECTED_n
call dword [sym.imp.GrooveUtil.DLL_void___stdcall_GOutputDebugString_wchar_t_const__]
mov dword [esi + 8], 3
xor edi, edi
mov eax, edi
pop edi
pop ebx
ret
Function at 0x402d44
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x407f96
call fcn.004077c4
mov esi, ecx
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
add eax, eax
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.GrooveNew.DLL_void____cdecl_GrooveNew_unsigned_int_]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x402d75
push 0xe
pop eax
jmp 0x402e7b
mov eax, dword [esi + 0x28]
add eax, eax
push eax
push ebx
push edi
call sub.MSVCR80.dll_memset
push dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
push dword [esi + 0x24]
add eax, eax
push eax
push edi
call dword [sym.imp.MSVCR80.dll_memcpy_s]
push dword [esi + 0x24]
call dword [sym.imp.GrooveNew.DLL_void___cdecl_GrooveDelete_void__]
shl dword [esi + 0x28], 1
push 0x14
mov dword [esi + 0x24], edi
lea edi, [esi + 0xc]
push ebx
push edi
call sub.MSVCR80.dll_memset
add esp, 0x2c
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push edi
lea edx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x2c]
sub edx, eax
push edx
mov edx, dword [esi + 0x24]
add edx, eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402e30
mov eax, dword [ebp - 0x18]
add dword [esi + 0x2c], eax
cmp byte [esi], bl
mov dword [esi + 8], 5
je 0x402e60
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push dword [esi + 0x2c]
push str.ExtendedRead:_ReadFile_got_last_part_of_message__Total_Size___d__Last_Part___d_n
push eax
call dword [sym.imp.GrooveUtil.DLL_public:_long_int___cdecl_GCStr::Format_wchar_t_const__]
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.GrooveUtil.DLL_void___stdcall_GOutputDebugString_wchar_t_const__]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x402e60
lea ecx, [ebp - 0x10]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
jmp 0x402e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
mov dword [ebp - 0x14], eax
je 0x402e65
cmp byte [esi], bl
je 0x402e4f
push str.ExtendedRead:_ReadFile_hit_unexpected_error_n
call dword [sym.imp.GrooveUtil.DLL_void___stdcall_GOutputDebugString_wchar_t_const__]
mov eax, dword [ebp - 0x14]
push 0x6d
call fcn.00406953
mov dword [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x402e7b
cmp byte [esi], bl
je 0x402e74
push str.ExtendedRead:_ReadFiles_buffer_is_still_too_small_n
call dword [sym.imp.GrooveUtil.DLL_void___stdcall_GOutputDebugString_wchar_t_const__]
mov ecx, esi
call fcn.00402d44
call fcn.0040789c
ret
Function at 0x4064ca
Capabilities:
Accept command line arguments

Disassembly:
push 0x34
mov eax, 0x409147
call fcn.004077f7
push str.F275ED8E_232B_4810_BB6F_7E8D75505DBC
call dword [sym.imp.KERNEL32.dll_AddAtomW]
call dword [sym.imp.GrooveUtil.DLL_public:_static_void___stdcall_GCMso::InitThread_void_]
xor esi, esi
mov dword [ebp - 4], esi
xor ebx, ebx
inc ebx
push ebx
push ebx
lea ecx, [ebp - 0x30]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartExceptionTranslator::constructor_bool__bool_]
mov byte [ebp - 4], bl
push ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartTerminateHandler::constructor_bool_]
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.GrooveUtil.DLL_public:_static_void___stdcall_GCCriticalErrorInfo::StartErrorBlock_bool_]
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x18]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartExceptionFilter::constructor_bool_]
mov byte [ebp - 4], 5
push ebx
lea ecx, [ebp - 0x14]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartInvalidParameterHandler::constructor_bool_]
mov byte [ebp - 4], 6
push esi
call fcn.00406aca
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004069fe
test al, al
je 0x406580
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartInvalidParameterHandler::destructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartExceptionFilter::destructor_void_]
jmp 0x4065e1
mov dword [ebp - 0x40], 0x40a504
mov dword [ebp - 0x3c], 0x406619
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4065af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
call fcn.00406953
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartInvalidParameterHandler::destructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartExceptionFilter::destructor_void_]
mov dword [ebp - 4], 3
jmp 0x4065e1
mov byte [ebp - 4], 2
call dword [sym.imp.GrooveUtil.DLL_public:_static_void___stdcall_GCCriticalErrorInfo::EndErrorBlock_void_]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCSmartTerminateHandler::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.GrooveUtil.DLL_public_virtual:_void___thiscall_GCSmartExceptionTranslator::destructor_void_]
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.GrooveUtil.DLL_public:_static_void___stdcall_GCMso::Uninit_bool_]
xor eax, eax
call fcn.0040789c
ret 0x10
Function at 0x406953
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 2
mov edi, eax
call fcn.00406aca
xor esi, esi
cmp edi, esi
mov dword [ebp - 8], esi
je 0x4069c8
push ebx
lea eax, [edi - 0x834]
xor ebx, ebx
cmp eax, 0x383
mov dword [ebp - 4], 0x1300
ja 0x40699f
push 2
push esi
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
je 0x40699f
mov dword [ebp - 4], 0x1b00
push esi
push esi
push esi
push esi
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4069bc
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 1
cmp ebx, esi
je 0x4069c7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
push 0x40a504
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x4069f8
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push esi
push dword [ebp + 8]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
leave
ret 4

Function at 0x406ec8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f018]
jne 0x406ed2
repz ret
jmp fcn.004073b5