joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f2b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
je 0x43f365
mov esi, dword [esp + 0x10]
test esi, esi
je 0x43f365
mov eax, dword [esp + 8]
cmp esi, 4
push ebx
not eax
jb 0x43f33a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x59f158]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x59f158]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x59f158]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x59f158]
xor eax, ecx
dec edi
jne 0x43f2db
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x43f360
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x59f158]
xor eax, ecx
inc edx
dec esi
jne 0x43f342
pop ebx
pop esi
not eax
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x443800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x44384e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44384e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x443853
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x443839
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x443863
test esi, esi
jne 0x443881
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x44387f
mov byte [eax + esi - 1], 0
jne 0x443888
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x448fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x449030
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x449030
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x449035
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x44901b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x449042
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x44ecb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58b7c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x34]
mov dword [esi], 0x59f59c
mov dword [ebx], 0x59f580
mov dword [esp + 0x2c], 6
call dword [0x59f5b0]
lea ebp, [esi + 0x58]
push 1
push ebp
lea ecx, [esp + 0x20]
call fcn.00412ce7
mov eax, dword [esi + 0x48]
mov byte [esp + 0x2c], 7
test eax, eax
jle 0x44ed2e
lea ecx, [esi + 0x3c]
call fcn.005789a0
mov edi, eax
test edi, edi
je 0x44ed27
mov ecx, edi
call fcn.00451750
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esi + 0x48]
test eax, eax
jg 0x44ed0a
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 6
call fcn.00412d23
mov eax, esi
mov ecx, dword [esi + 0xd0]
neg eax
sbb eax, eax
and eax, ebx
push eax
call fcn.00450c00
lea ecx, [esi + 0xac]
mov byte [esp + 0x2c], 5
call fcn.00578b17
lea edi, [esi + 0x8c]
mov byte [esp + 0x2c], 4
lea ecx, [edi + 8]
mov dword [edi], 0x59cab4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.00412b2b
lea ecx, [esi + 0x78]
mov byte [esp + 0x2c], 3
call fcn.00578b17
lea edx, [ebp + 8]
mov byte [esp + 0x2c], 2
push edx
mov dword [ebp], 0x59cab4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebp
call fcn.00412b2b
lea ecx, [esi + 0x3c]
mov byte [esp + 0x2c], 1
call fcn.0057886a
mov ecx, esi
mov byte [esp + 0x2c], 0
neg ecx
sbb ecx, ecx
and ecx, ebx
call fcn.00451d10
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00451e60
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x44f5f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x58b93f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5d8b34]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x18]
mov dword [ebp], eax
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.00578ae4
lea edi, [esi + 0x30]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.00412b00
mov dword [edi], 0x59cab4
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 2
call fcn.00578ae4
lea edi, [esi + 0x64]
push ebx
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.00412b00
mov dword [edi], 0x59cab4
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x84]
mov byte [esp + 0x1c], 4
call fcn.004520b0
lea ecx, [esi + 0x128]
mov byte [esp + 0x1c], 5
call fcn.00452e80
lea ecx, [esi + 0x15c]
mov byte [esp + 0x1c], 6
call fcn.004714c0
mov ecx, dword [0x5d8b34]
mov dword [esi + 0x190], ecx
mov edx, dword [esp + 0x24]
mov ecx, ebp
push edx
mov byte [esp + 0x20], 8
mov dword [esi], 0x59f5cc
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
call fcn.00579da7
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x194], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x44f720
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x58b9c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x59f5cc
mov ecx, dword [esi + 0x194]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x28], 8
je 0x44f777
call fcn.00454860
mov ecx, dword [esi + 0x194]
cmp ecx, ebp
je 0x44f771
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x194], ebp
lea ebx, [esi + 0x84]
mov ecx, ebx
call fcn.00452270
lea ecx, [esi + 0x128]
call fcn.00452f50
lea ecx, [esi + 0x15c]
call fcn.00471bc0
lea edi, [esi + 0x64]
push 1
push edi
lea ecx, [esp + 0x1c]
call fcn.00412ce7
mov eax, dword [esi + 0x58]
mov byte [esp + 0x28], 9
test eax, eax
jle 0x44f7cd
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + ebp*4]
test ecx, ecx
je 0x44f7c5
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x58]
inc ebp
cmp ebp, eax
jl 0x44f7b5
lea ebp, [esi + 0x50]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00578b44
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.00412d23
lea ecx, [esi + 0x190]
mov byte [esp + 0x28], 7
call fcn.00579c1e
lea ecx, [esi + 0x15c]
mov byte [esp + 0x28], 6
call fcn.00471660
lea ecx, [esi + 0x128]
mov byte [esp + 0x28], 5
call fcn.00452ec0
mov ecx, ebx
mov byte [esp + 0x28], 4
call fcn.00452160
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 8]
push eax
mov byte [esp + 0x2c], 3
mov dword [edi], 0x59cab4
call ebx
mov ecx, edi
call fcn.00412b2b
mov ecx, ebp
mov byte [esp + 0x28], 2
call fcn.00578b17
lea edi, [esi + 0x30]
mov byte [esp + 0x28], 1
lea ecx, [edi + 8]
mov dword [edi], 0x59cab4
push ecx
call ebx
mov ecx, edi
call fcn.00412b2b
lea ecx, [esi + 0x1c]
mov byte [esp + 0x28], 0
call fcn.00578b17
lea ecx, [esi + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00579c1e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x450410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58ba78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x30]
push eax
call fcn.00412ce7
mov eax, dword [edi + 0x24]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
jle 0x4504ed
push ebp
push esi
mov ecx, dword [edi + 0x20]
mov ebp, dword [ecx + ebx*4]
mov dword [esp + 0x10], ebp
mov edx, dword [ebp + 4]
mov eax, dword [edx - 8]
test eax, eax
je 0x4504db
lea esi, [edi + 0x15c]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00471df0
test eax, eax
je 0x4504db
mov eax, dword [ebp + 4]
push 0
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00471e40
mov ebx, eax
test ebx, ebx
je 0x4504c4
cmp dword [ebx], 0x4d465631
jne 0x4504c4
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x4504c4
lea ebp, [ebx + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0041b180
add esp, 8
test eax, eax
je 0x45050f
mov eax, dword [ebx + 8]
inc esi
add ebp, 0x58
cmp esi, eax
jl 0x4504a3
mov ebp, dword [esp + 0x10]
push ebp
mov ecx, edi
call fcn.004501d0
lea ecx, [edi + 0x15c]
call fcn.00471e20
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x24]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x450452
pop esi
pop ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00412d23
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
lea edx, [esi + esi*4]
lea eax, [esi + edx*2]
lea esi, [ebx + eax*8 + 0x10]
test esi, esi
je 0x4504c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
call fcn.00493c30
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov ecx, dword [edi + 0x10]
xor edx, edx
mov dword [esi + 0x48], ecx
mov dx, word [edi + 0xa8]
add esp, 4
lea ecx, [edi + 0x128]
mov dword [esi + 0x4c], edx
call fcn.004531d0
push 0
lea ecx, [edi + 0x15c]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
call fcn.00471e40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
jmp 0x4504cc

Function at 0x4514d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58bbee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x59f5dc
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 2
je 0x451514
push eax
call fcn.00579886
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esp + 0x14], 1
call fcn.0043fdc0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], bl
call fcn.0043fdc0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00451ff0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x452640
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x58bd98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x80]
push eax
call fcn.00412ce7
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
mov eax, dword [edi + 0x70]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x452739
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x4526c0
lea esi, [edi + 0x64]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.005797cb
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp dword [esp + 0x30], ebp
jne 0x45269b
mov eax, dword [edi + 0x70]
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x45272f
push ebx
lea ebx, [edi + 0x64]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.005797cb
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x28]
cmp ecx, ebp
je 0x4526f9
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, esi
mov dword [esi + 0x24], ebp
call fcn.0043e6a0
mov ecx, dword [esp + 0x10]
call fcn.0043e750
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x45271a
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x452728
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x34], ebp
jne 0x4526d3
pop ebx
lea ecx, [edi + 0x64]
call fcn.005795f8
jmp 0x4527b1
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x4527b1
lea esi, [edi + 0x64]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.005797cb
mov ecx, dword [esp + 0xc]
call fcn.0043e7d0
test eax, eax
jne 0x4527ab
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x20], ebp
jne 0x4527ab
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x452791
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp ecx, ebp
je 0x4527a3
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.00579789
cmp dword [esp + 0x30], ebp
jne 0x452748
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00412d23
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x452a2a
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x58be18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x20]
mov dword [esp + 0x10], edi
cmp eax, edi
jne 0x452a42
xor eax, eax
jmp 0x452b06
lea eax, [esi + 0x80]
push 1
push eax
lea ecx, [esp + 0x2c]
call fcn.00412ce7
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x40]
neg eax
sbb eax, eax
mov dword [esp + 0x38], edi
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x452ab9
lea ebp, [esi + 0x64]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x4c], edi
call fcn.005797cb
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0x24], edi
je 0x452ab3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x1c]
cmp bx, word [esp + 0x14]
je 0x452b1b
cmp dword [esp + 0x18], edi
jne 0x452a6e
push ebx
mov ecx, esi
call fcn.00452940
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x452af1
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x64]
push edx
push eax
mov dword [esp + 0x24], edi
call fcn.00579717
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x452aed
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov esi, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.00412d23
mov eax, esi
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov ecx, dword [esp + 0x40]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x10]
jmp 0x452af3
Function at 0x4571c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x1b0
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
mov dword [ebp + 4], ebx
cmp eax, ebx
je 0x4571fb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4571ee
push eax
call esi
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4571fb
push eax
call esi
mov dword [ebp + 0xc], ebx
cmp dword [0x5f292c], ebx
jne 0x45724a
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x18]
mov esi, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [0x5f292c], esi
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
je 0x45724a
mov dword [0x5f2930], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret 8
cmp dword [0x5f2930], ebx
jne 0x4573be
mov edx, dword [str..PipeOCULAR_]
cmp edx, ebx
je 0x4573be
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c4]
mov ecx, edx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4572c7
push 0x104
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.0052c31d
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
lea edx, [esp + 0xa8]
push 0x7d0
push edx
inc edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x4572ed
cmp dword [ebp + 0x14], 2
je 0x45733e
push ebx
push 0x40000000
push 3
push ebx
push ebx
lea eax, [esp + 0xbc]
push 0xc0000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
jne 0x457315
cmp edi, 0xa
jg 0x45733e
jmp 0x4572cf
cmp dword [esp + 0x1c8], 2
jne 0x457350
push ebx
lea ecx, [esp + 0x1cc]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x457350
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [ebp + 4], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret 8
mov eax, dword [esp + 0x1c8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x18], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 8], eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp ecx, ebx
je 0x457391
cmp eax, ebx
je 0x457391
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1b0
ret 8
mov eax, dword [ebp + 4]
mov dword [ebp + 4], ebx
cmp eax, ebx
je 0x4573be
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4573b1
push eax
call esi
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4573be
push eax
call esi
mov dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1b0
ret 8
Function at 0x457700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x45788b
cmp dword [esi + 8], ebx
je 0x45788b
cmp dword [esi + 0x10], ebx
je 0x457792
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x457777
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x457766
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x45788b
mov eax, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, ebx
je 0x4577fc
cmp dword [esp + 0x10], ebx
je 0x4577fc
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x457818
cmp eax, ebx
je 0x457818
cmp eax, 0x3e5
je 0x457818
cmp eax, 0x217
jne 0x45788b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x457850
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x45788b
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 8]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4578a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x457a2b
cmp dword [esi + 0xc], ebx
je 0x457a2b
cmp dword [esi + 0x10], ebx
je 0x457932
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x457917
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x457906
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x457a2b
mov eax, dword [esi + 0xc]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
je 0x45799c
cmp dword [esp + 0x10], ebx
jbe 0x45799c
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x4579b8
cmp eax, ebx
je 0x4579b8
cmp eax, 0x3e5
je 0x4579b8
cmp eax, 0x217
jne 0x457a2b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x4579f0
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x457a2b
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 0xc]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc