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

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
xor al, al
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0xfc], 0
mov byte [esp + 0x13], al
je 0x50befe
cmp dword [edi + 0x14], 8
lea eax, [ebx + 0xf4]
mov ebp, dword [edi + 0x10]
mov esi, edi
jb 0x50be61
mov esi, dword [edi]
xor edx, edx
mov ecx, 0x811c9dc5
add ebp, ebp
je 0x50be87
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebp
jb 0x50be70
lea eax, [ebx + 0xf4]
push ecx
push edi
mov ecx, eax
call fcn.0050d4d0
mov esi, eax
cmp esi, dword [ebx + 0xf8]
je 0x50befe
mov ebp, dword [esp + 0x24]
nop
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov edx, edi
jb 0x50bead
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x50beb8
mov ecx, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x50bef3
push eax
call fcn.00407330
add esp, 4
test eax, eax
jne 0x50bef3
push ebp
push dword [esp + 0x24]
lea eax, [esi + 0x20]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.0050a6b0
mov esi, dword [esi]
mov byte [esp + 0x13], 1
cmp esi, dword [ebx + 0xf8]
jne 0x50bea0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esp + 0x13], 0
jne 0x50c001
cmp dword [ebx + 0x11c], 0
je 0x50bfbd
cmp dword [edi + 0x14], 8
lea eax, [ebx + 0x114]
mov ebp, dword [edi + 0x10]
mov esi, edi
jb 0x50bf1e
mov esi, dword [edi]
xor edx, edx
mov ecx, 0x811c9dc5
add ebp, ebp
je 0x50bf47
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebp
jb 0x50bf30
lea eax, [ebx + 0x114]
push ecx
push edi
mov ecx, eax
call fcn.0050d4d0
mov esi, eax
cmp esi, dword [ebx + 0x118]
je 0x50bfbd
nop word [eax + eax]
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov edx, edi
jb 0x50bf6d
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x50bf78
mov ecx, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x50bfb6
push eax
call fcn.00407330
add esp, 4
test eax, eax
jne 0x50bfb6
push dword [esp + 0x24]
lea eax, [esi + 0x20]
push dword [esp + 0x24]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.0050a6b0
mov esi, dword [esi]
mov byte [esp + 0x13], 1
cmp esi, dword [ebx + 0x118]
jne 0x50bf60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esp + 0x13], 0
jne 0x50c001
cmp byte [esp + 0x24], 0
jne 0x50c001
mov eax, dword [edi + 0x10]
test eax, eax
je 0x50c001
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x50bfd5
mov ecx, dword [edi]
cmp eax, 0xd
jne 0x50bfec
push eax
mov edx, str.ExecuteAction
call fcn.00407330
add esp, 4
test eax, eax
je 0x50c001
push 1
push dword [ebx + 0xc4]
mov ecx, edi
push dword [ebx + 0xc0]
call fcn.00508b40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x50c3b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp dword [ebx + 8], 0
je 0x50c4c7
mov edx, dword [esp + 0x10]
mov edi, edx
push ebp
cmp dword [edx + 0x14], 8
mov ebp, dword [edx + 0x10]
jb 0x50c3d3
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebp, ebp
je 0x50c3f1
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebp
jb 0x50c3e0
push esi
push edx
mov ecx, ebx
call fcn.0050d4d0
pop ebp
cmp eax, dword [ebx + 4]
je 0x50c4c7
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x20]
cmp edi, esi
je 0x50c424
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x50c419
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00407c60
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
cmp ecx, eax
je 0x50c440
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50c439
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
lea eax, [esi + 0x30]
lea ecx, [edi + 0x30]
cmp ecx, eax
je 0x50c45c
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50c455
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0x48], eax
lea eax, [esi + 0x50]
mov dword [edi + 0x4c], ecx
lea ecx, [edi + 0x50]
cmp ecx, eax
je 0x50c484
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50c47d
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
lea eax, [esi + 0x68]
lea ecx, [edi + 0x68]
cmp ecx, eax
je 0x50c4a0
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50c499
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
sub esi, 0xffffff80
lea ecx, [edi + 0x80]
cmp ecx, esi
je 0x50c4bf
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50c4b8
mov esi, dword [esi]
push eax
push esi
call fcn.00407c60
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
ret 0xc
Function at 0x50d300
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578b30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 8], 0x1642c85
je 0x50d4c3
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0xb8
mov dword [ebp - 0x1c], 0
call fcn.005255fd
mov esi, dword [ebp + 0xc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
lea eax, [edi + 8]
push esi
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00406c50
mov byte [ebp - 4], 1
lea eax, [esi + 0x18]
lea ecx, [edi + 0x20]
push eax
call fcn.0050cb10
mov dword [ebp - 4], 3
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
mov dword [ebp + 0xc], eax
jb 0x50d3a3
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
xor ecx, ecx
mov esi, 0x811c9dc5
add edx, edx
je 0x50d3c5
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x50d3b1
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 8]
movss xmm3, dword [ebx]
inc eax
mov ebx, dword [ebx + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x5a3940]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x5a3940]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x50d448
divss xmm0, xmm3
call fcn.0040ae00
call fcn.005452c0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x50d43b
cmp ebx, 0x200
jae 0x50d439
shl ebx, 3
cmp ebx, ecx
jae 0x50d43b
mov ebx, ecx
push ebx
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0050d6d0
jmp 0x50d44b
mov ebx, dword [ebp - 0x10]
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ad70
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov ecx, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x50d48d
mov dword [ecx + eax*8], edi
jmp 0x50d49f
cmp esi, edx
jne 0x50d496
mov dword [ecx + eax*8], edi
jmp 0x50d4a3
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x50d4a3
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00523945
int3
Function at 0x511d20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 0
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x511d51
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x511d40
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x51b4e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b285
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5dd024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], 0x58d000
mov dword [ebp - 0x38], eax
jb 0x51b550
mov ecx, dword [ecx]
cmp dword [edx + 0x10], 0
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x58], 0
mov eax, dword [ecx]
jne 0x51b569
xor edx, edx
jmp 0x51b571
cmp dword [edx + 0x14], 8
jb 0x51b571
mov edx, dword [edx]
lea edi, [ebp - 0x54]
push edi
push edx
push 0
lea edx, [ebp - 0x5c]
push edx
push esi
call dword [eax + 4]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edi
cmp esi, edi
je 0x51b64a
mov edx, dword [esi]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x51b63f
cmp dword [edx + 0x14], 8
lea eax, [ebx + 0x34]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], edx
jb 0x51b5b2
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
lea eax, [ecx + ecx]
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x51b5de
mov edx, dword [ebp - 0x30]
mov edi, eax
movzx eax, byte [ecx + edx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, edi
jb 0x51b5c8
mov edi, dword [ebp - 0x44]
mov edx, dword [esi]
push ebx
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x64]
push edx
push eax
mov ecx, ebx
call fcn.0040ad70
mov eax, dword [eax + 4]
test eax, eax
jne 0x51b5f8
mov eax, dword [ebx + 4]
mov ebx, dword [ebp - 0x4c]
cmp eax, dword [ebx + 0x38]
jne 0x51b63f
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
mov ecx, ebx
call fcn.0051cad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407f30
add esi, 0xc
cmp esi, edi
jne 0x51b591
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0042e0c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005255bb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51be20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b3d6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5dd024]
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 dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edi, [ecx + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51be85
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407c60
mov dword [ebp - 4], 1
lea edi, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edx, 0x811c9dc5
cmp dword [ebp - 0x14], 8
cmovae edi, dword [ebp - 0x28]
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x51bed2
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51bec1
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x34]
call fcn.0040ad70
mov edi, dword [eax + 4]
test edi, edi
jne 0x51bef0
mov edi, dword [ebx + 0x38]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407f30
mov eax, ebx
cmp edi, dword [eax + 0x38]
jne 0x51bf18
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x51bf23
lea eax, [edi + 0x20]
mov ecx, esi
push eax
call fcn.00406c50
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, esi
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.005255bb
mov esp, ebp
pop ebp
ret 8
Function at 0x51ccc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b6ad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x51ccfa
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x51cd1b
mov edx, eax
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x51cd07
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040ad70
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51cd4c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x4924924
je 0x51ce97
lea eax, [ebx + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x10], 0
call fcn.005255fd
add esp, 4
mov edi, eax
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00427e90
mov dword [ebp - 4], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
movss xmm3, dword [ebx]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
movd xmm1, eax
addsd xmm0, qword [ecx*8 + 0x5a3940]
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x5a3940]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x51ce27
divss xmm0, xmm3
call fcn.0040ae00
call fcn.005452c0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x51ce0b
cmp eax, 0x200
jae 0x51ce09
shl eax, 3
cmp eax, ecx
jae 0x51ce0b
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004272c0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ad70
mov edx, dword [eax]
jmp 0x51ce2a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x51ce5d
mov dword [ecx + eax*8], edi
jmp 0x51ce6f
cmp esi, edx
jne 0x51ce66
mov dword [ecx + eax*8], edi
jmp 0x51ce73
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x51ce73
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00523945
int3
Function at 0x51d090
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56045d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5dd024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x51d1e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x51d13c
lea ecx, [eax - 1]
test ecx, ecx
js 0x51d1ef
cmp ecx, eax
jg 0x51d1ef
cmp word [edx + ecx*2], 0x5c
jne 0x51d13c
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040d0a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.00478ba0
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51d145
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51d145
push ebx
lea ecx, [ebp - 0x10]
call fcn.00478ba0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, dword [ecx - 0xc]
jge 0x51d1b4
push 0x5c
push ecx
call fcn.00527019
add esp, 8
test eax, eax
jne 0x51d166
or eax, 0xffffffff
jmp 0x51d16a
sub eax, dword [edi]
sar eax, 1
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0040d0a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x51d196
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0051d090
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51d1b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x51d1d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fc0
push 0x80070057
call fcn.00408fc0
int3
Function at 0x5249a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5dd024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x5249ce
xor eax, eax
jmp 0x524a2a
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x5249fb
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x5249fb
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x524ab1
cmp dword [edi + 0x4c], 0
je 0x524a24
mov ecx, edi
call fcn.0052468c
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x524a3a
push dword [edi + 0x4c]
push ebx
call fcn.005242ba
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x524a29
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005255bb
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x57e2c0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x524a84
sub eax, 1
je 0x524a84
dec eax
sub eax, 1
jne 0x524a24
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x524a16
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x524aa1
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005344e5
add esp, 0x10
cmp esi, eax
jne 0x524a24
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x524a24
mov ax, bx
jmp 0x524a29

Function at 0x53e80d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053e4be

Function at 0x53e818
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053e648

Function at 0x54035a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053ffd7

Function at 0x401a6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401aa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401aa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401aa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401aa9
cmp dword [ecx + 0x74], 0xe
jbe 0x401aa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ab80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401040
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x3c]
push esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401174
lea ecx, [esp + 0x40]
push 0x104
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x401174
lea eax, [esp + 0x248]
push 0x104
push eax
push 0x404028
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401174
lea ecx, [esp + 0x144]
push 0x404020
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x40]
lea eax, [esp + 0x144]
push edx
push eax
call esi
lea ecx, [esp + 0x144]
push 0x404018
push ecx
call esi
lea ecx, [esp + 4]
lea edx, [esp + 0x248]
lea eax, [esp + 0x144]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x404010
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401174
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [esp + 0x40]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
pop esi
add esp, 0x348
ret
xor eax, eax
pop esi
add esp, 0x348
ret

Function at 0x401180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401195
xor eax, eax
ret 4
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret 4

Function at 0x4012b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push 0x404030
mov edi, ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012da
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push ebx
mov ecx, edi
call fcn.00401290
mov edi, eax
push 0
lea eax, [edi - 8]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 8
lea ecx, [esp + 0x20]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, edi
push esi
je 0x401321
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 4
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x401340
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402337
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
mov ebx, dword [esp + 0x16c]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x24], ebp
call fcn.00401180
test eax, eax
je 0x401776
push ebx
mov ecx, ebp
call fcn.004012b0
test eax, eax
jne 0x401776
lea eax, [esp + 0x64]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea ecx, [esp + 0x18]
call fcn.004020d6
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0
call fcn.004020d6
lea ecx, [esp + 0x10]
push 0x404048
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push ebx
push eax
mov ecx, ebp
jmp loc.00406000
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 8