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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1cf8f5
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1cf9d6
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1dc874]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1dc874]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1dc874]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1dc874]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1dc874]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1dc874]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1dc874]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1dc874]
xor eax, esi
inc edx
dec edi
jne 0x1cf912
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1cf9f7
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1dc874]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1cf9dc
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x1cf9fd
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [ebp + 0xc]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x1dc874]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x1dc874]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x1d3740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 1
xor edi, edi
pop eax
cmp ebx, eax
jl 0x1d3757
cmp ebx, 8
jle 0x1d3759
xor eax, eax
mov esi, dword [ebp + 8]
push 0x1e6440
push eax
push esi
call fcn.001d22ce
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
add esp, 0xc
cmp dword [ecx], edi
mov dword [eax], edi
jne 0x1d3789
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.001d63f6
mov eax, ebx
add esp, 0xc
shl eax, 3
cmp ebx, 2
movzx ecx, word [eax + 0x1dcdf2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x1dcdf0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x1dcdf4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x1dcdf6]
mov dword [esi + 0x6af94], eax
jg 0x1d37ea
mov eax, dword [ebp + 0x10]
or byte [eax], 4
jmp 0x1d37f5
cmp ebx, 8
jl 0x1d37f5
mov eax, dword [ebp + 0x10]
or byte [eax], 2
lea ebx, [esi + 0x1af70]
push 0x10000
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x6af90], eax
je 0x1d3865
cmp eax, 0xffffffff
je 0x1d3865
cmp eax, 0x106
mov dword [esi + 0x6af8c], edi
jae 0x1d3837
push esi
call fcn.001d3a3d
pop ecx
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
and eax, 0x7fff
and ecx, 0x3ff
shl ecx, 5
xor eax, ecx
inc edi
cmp edi, 2
mov dword [esi + 0x6af7c], eax
jb 0x1d383d
jmp 0x1d3875
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1d3b65
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
cmp eax, ebx
je 0x1d3d8a
push edi
mov edi, 0x7fff
cmp eax, 3
jb 0x1d3be3
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
and edx, 0x3ff
movzx eax, byte [ecx + esi + 0x1af72]
and eax, edi
shl edx, 5
xor eax, edx
and ecx, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
mov dword [ebp - 4], eax
mov dword [esi + ecx*4 + 0x2af70], eax
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x1d3c24
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x1d3c24
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x1d3c0b
mov dword [eax], ecx
push dword [ebp - 4]
push esi
call fcn.001d387a
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
pop ecx
jbe 0x1d3c24
mov ebx, eax
cmp ebx, 3
jb 0x1d3d03
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.001d30ac
sub dword [esi + 0x6af90], ebx
add esp, 0xc
cmp ebx, dword [esi + 0x6af98]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
ja 0x1d3cbc
cmp eax, 3
jb 0x1d3cbc
dec ebx
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
movzx eax, byte [esi + ecx + 0x1af72]
and edx, 0x3ff
and eax, edi
shl edx, 5
xor eax, edx
and ecx, edi
mov dword [esi + 0x6af7c], eax
dec ebx
mov eax, dword [esi + eax*4 + 0x4af70]
mov dword [ebp - 4], eax
mov dword [esi + ecx*4 + 0x2af70], eax
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x1d3c64
jmp 0x1d3d26
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea edx, [esi + 0x6af7c]
push 0x1e649c
lea ecx, [eax + esi]
push 1
push esi
xor ebx, ebx
movzx eax, byte [ecx + 0x1af70]
mov dword [edx], eax
and eax, 0x3ff
movzx ecx, byte [ecx + 0x1af71]
and ecx, edi
shl eax, 5
xor ecx, eax
mov dword [edx], ecx
call fcn.001d22ce
add esp, 0xc
jmp 0x1d3d2c
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.001d30ac
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x1d3d68
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x1d3d45
lea ecx, [eax + esi + 0x1af70]
jmp 0x1d3d47
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.001d2ea4
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x1d3d7b
push esi
call fcn.001d3a3d
pop ecx
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x1d3b91
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x1d3d9d
lea ecx, [eax + esi + 0x1af70]
jmp 0x1d3d9f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.001d2ea4
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x1d48e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1d48f4
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1d49d5
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1dce40]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1dce40]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1dce40]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1dce40]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1dce40]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1dce40]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1dce40]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1dce40]
xor eax, esi
inc edx
dec edi
jne 0x1d4911
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1d49f6
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1dce40]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1d49db
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x1d49fc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [ebp + 0xc]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x1dce40]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x1dce40]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x1d4bd6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [0x1db10c]
test eax, eax
jne 0x1d4bf9
mov eax, 0x200
jmp 0x1d4d6e
mov ecx, dword [ebp - 0x4c]
push ebx
push esi
push 1
mov edx, ecx
pop eax
xor ebx, ebx
and edx, eax
mov dword [ebp - 8], ebx
je 0x1d4c0f
mov dword [ebp - 8], eax
test cl, 2
je 0x1d4c18
or dword [ebp - 8], 2
test cl, 4
je 0x1d4c21
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x1d4c2c
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x1d4c35
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x1d4c3f
or byte [ebp - 5], 0x40
jmp 0x1d4c43
or byte [ebp - 5], 0x80
or byte [ebp - 5], 1
cmp edx, ebx
jne 0x1d4c4f
or byte [ebp - 6], 0x80
push ebx
push edi
call dword [0x1db0ac]
cmp eax, 0x28
mov dword [ebp - 0x10], eax
jbe 0x1d4cea
mov esi, dword [0x1db0a8]
push ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 2]
push 2
push eax
push edi
mov edi, dword [0x1db0dc]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call edi
cmp word [ebp - 2], 0x54ad
jne 0x1d4cea
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1d4cea
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x1d4ce6
cmp eax, 0x454e
je 0x1d4ce6
cmp eax, 0x454c
je 0x1d4ce6
cmp eax, 0x4550
jne 0x1d4cea
or byte [ebp - 6], 0x40
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1d4cf6
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1d4d02
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x1d4d3e
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.001d4b55
push dword [ebp - 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp - 0x38]
call fcn.001d4b55
push dword [ebp - 0x44]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push dword [ebp - 0x48]
call fcn.001d4b55
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x1d4d6a
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.001d4b79
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x401080
Capabilities:
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5372ab
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x58dc28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0x104
call ebx
test eax, eax
je 0x4011db
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.OIPTonerStatus
lea ecx, [ebp - 0x218]
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea edx, [ebp - 0x218]
push edx
call edi
test eax, eax
je 0x4011db
lea eax, [ebp - 0x218]
push eax
push 0x104
call ebx
test eax, eax
je 0x4011e6
push str.OIPTonerStatus
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
call edi
test eax, eax
je 0x4011e6
push str..txt
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x23c]
call fcn.00410aba
push 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.00410bb5
test eax, eax
je 0x4011be
lea ecx, [ebp - 0x23c]
call fcn.0041080f
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x23c]
call fcn.00410d22
mov ecx, dword [ebp - 0x21c]
push 0x10
lea eax, [ebp - 0x220]
push eax
push ecx
call fcn.0050fd56
movzx esi, ax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4011c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4011c4
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0xffffffff
call fcn.00410aec
mov ax, si
jmp 0x4011ed
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
jmp 0x4011ed
mov ax, word [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050fafb
mov esp, ebp
pop ebp
ret

Function at 0x401370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40138b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013c2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4013be
jmp 0x4013b0
cmp esi, eax
jae 0x4013c2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013b0
cmp esi, eax
jb 0x4013c9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5372e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58dc28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test byte [0x596b64], al
jne 0x401cb2
or dword [0x596b64], eax
call fcn.00411b55
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401c94
push 0x80004005
call fcn.00401880
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x53d630
mov dword [0x596b60], eax
call fcn.00510019
add esp, 4
mov eax, dword [0x596b60]
cmp dword [eax - 0xc], 0
jne 0x401d90
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004019c0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x401d2b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
test edx, edx
jne 0x401d35
xor eax, eax
jmp 0x401d4f
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d40
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, 0x596b60
call fcn.004018d0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [0x596b60]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4023b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5386c8
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x58dc28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [0x596994], 0
jne 0x402424
lea esi, [ebp - 0x21c]
call fcn.00401db0
push str.CF883656_133A_454E_A104_148EFA8CAA98
mov eax, esi
push eax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [0x596998], eax
cmp dword [0x596998], 0
je 0x402452
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x428], esp
mov esi, esp
push eax
call fcn.00402310
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00402620
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050fafb
mov esp, ebp
pop ebp
ret
Function at 0x4024a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53868b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x58dc28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
cmp dword [0x596994], 0
jne 0x402515
lea esi, [ebp - 0x218]
call fcn.00401db0
push str.CF883656_133A_454E_A104_148EFA8CAA98
mov eax, esi
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [0x596998], eax
cmp dword [0x596998], 0
je 0x4025b2
call fcn.00411b55
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40253c
push 0x80004005
call fcn.00401880
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x424]
push str._s__s_r_n
push eax
call fcn.00403a00
mov esi, dword [ebp - 0x424]
add esp, 0xc
add esi, 0xfffffff0
mov dword [ebp - 0x428], esp
mov edi, esp
push esi
call fcn.00402310
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00402620
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025b2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0050fafb
mov esp, ebp
pop ebp
ret
Function at 0x403f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538388
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x58dc28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40
lea eax, [ebp - 0x70]
push 0
push eax
mov byte [ebp - 0x11], 0
call fcn.00512c20
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x74], 0x44
call fcn.004019c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x403fdf
push 0x56a984
push ecx
call fcn.00511b9b
add esp, 8
test eax, eax
je 0x403fdf
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
je 0x403fdf
push 0x569a1c
push 0x56a984
lea ecx, [ebp + 8]
call fcn.00404180
mov edx, dword [ebp + 8]
mov esi, dword [edx - 0xc]
add esi, 0x13b
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410713
mov edi, eax
mov eax, dword [ebp + 8]
push str.Config:PrinterInfoTonerStatus
push eax
push str.PowerShell__Command____n____try__n______n__________ret___Get_PrinterProperty__PrinterName___ls___PropertyName___ls___ErrorAction_Stop_.Value__n_n_________switch___ret___n___________n_t_t_t_t_Supported__exit_1001__n___________n______n____catch__n______n_t_texit_1000__n______n_n____exit_0__n_
push esi
push edi
call fcn.00511b5c
add esp, 0x18
cmp eax, 0xffffffff
setne al
test al, al
je 0x40407c
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
test al, al
je 0x40407c
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
push ecx
push edx
mov dword [ebp - 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x18], 0x3e9
sete byte [ebp - 0x11]
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40408c
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x404096
push eax
call esi
push edi
call fcn.0041071e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4