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

Disassembly:
mov eax, 0x14
call fcn.0059fb60
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
mov ebp, eax
cmp ebx, 0x10
jb 0x4580aa
shr ebx, 4
mov dword [esp + 0x10], ebx
lea esp, [esp]
mov ecx, edi
sub ebp, esi
mov eax, esi
sub ecx, esi
mov edx, 4
lea ecx, [ecx]
mov ebx, dword [eax + ebp]
xor ebx, dword [eax]
add eax, 4
dec edx
mov dword [ecx + eax - 4], ebx
jne 0x458070
mov eax, dword [esp + 0x34]
push eax
push edi
push edi
call dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
mov ebp, edi
sub ebx, 0x10
add esp, 0xc
add esi, 0x10
add edi, 0x10
dec dword [esp + 0x10]
mov dword [esp + 0x30], ebx
jne 0x458060
mov eax, dword [esp + 0x38]
test ebx, ebx
je 0x4581a7
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, 1
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, 2
sub ecx, esi
mov dword [esp + 0x1c], ecx
mov edx, ebp
sub edx, esi
mov ecx, 3
xor eax, eax
sub ecx, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
jmp 0x4580eb
mov edx, dword [esp + 0x10]
cmp eax, ebx
jae 0x458159
mov ebx, dword [esp + 0x14]
lea ecx, [eax + esi]
mov dl, byte [edx + ecx]
xor dl, byte [ecx]
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
add edx, ecx
cmp edx, ebx
jae 0x45814e
mov dl, byte [esi + eax + 1]
xor dl, byte [eax + ebp + 1]
mov byte [edi + eax + 1], dl
mov edx, dword [esp + 0x1c]
add edx, ecx
cmp edx, ebx
jae 0x458151
mov dl, byte [esi + eax + 2]
xor dl, byte [eax + ebp + 2]
mov byte [edi + eax + 2], dl
mov edx, dword [esp + 0x20]
add edx, ecx
cmp edx, ebx
jae 0x458156
mov cl, byte [esi + eax + 3]
xor cl, byte [eax + ebp + 3]
add eax, 4
mov byte [edi + eax - 1], cl
cmp eax, 0x10
jb 0x4580e7
jmp 0x458179
inc eax
jmp 0x458159
add eax, 2
jmp 0x458159
add eax, 3
cmp eax, 0x10
jae 0x458179
mov edx, 0x10
sub ebp, edi
lea ecx, [eax + edi]
sub edx, eax
lea ebx, [ebx]
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
dec edx
jne 0x458170
mov ecx, dword [esp + 0x34]
push ecx
push edi
push edi
call dword [esp + 0x48]
add esp, 0xc
mov ebp, edi
cmp ebx, 0x10
jbe 0x4581a3
sub ebx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x4580b2
mov eax, dword [esp + 0x38]
mov edx, dword [ebp]
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
pop edi
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
pop esi
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
add esp, 0x14
ret
Function at 0x458460
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0059fb60
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x4584a5
test ebx, ebx
je 0x4584a5
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc esi
dec ebx
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x458480
cmp ebx, 0x10
jb 0x45851d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push edx
push edi
push edi
call dword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x10
jae 0x45850a
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + ebp - 4], edx
jne 0x4584f7
add dword [esp + 0x20], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
dec dword [esp + 0x10]
jne 0x4584d6
test ebx, ebx
je 0x458559
mov eax, dword [esp + 0x24]
push eax
push edi
push edi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec ebx
mov byte [eax + ecx - 1], dl
jne 0x458540
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x458a20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0059fb60
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [eax]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x458a69
test edi, edi
je 0x458a69
mov cl, byte [ebx + esi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
inc eax
inc ebp
inc ebx
dec edi
and ebx, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x458a40
cmp edi, 0x10
jb 0x458ae4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
shr eax, 4
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebx, esi
sub ebp, esi
add edx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push esi
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add esp, 0xc
call fcn.004589f0
mov eax, esi
mov ecx, 4
mov edx, dword [eax + ebp]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [ebx + eax - 4], edx
jne 0x458ac2
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
dec dword [esp + 0x10]
jne 0x458aa0
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x458b2b
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push eax
push esi
push ebp
call dword [esp + 0x40]
add esp, 0xc
mov edx, ebp
call fcn.004589f0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + esi]
sub ebp, esi
sub ecx, esi
add ebx, edi
mov dl, byte [eax + ebp]
xor dl, byte [eax]
inc eax
dec edi
mov byte [eax + ecx - 1], dl
jne 0x458b12
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
pop ecx
ret
Function at 0x458b70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0059fb60
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x458bbc
test ebp, ebp
je 0x458bbc
mov ecx, dword [esp + 0x2c]
mov dl, byte [eax + ecx]
mov esi, dword [esp + 0x18]
xor dl, byte [esi]
mov ecx, dword [esp + 0x1c]
mov byte [ecx], dl
inc ecx
inc esi
inc eax
dec ebp
and eax, 0xf
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jne 0x458b90
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0xc]
bswap esi
cmp ebp, 0x10
jb 0x458c38
lea ebx, [ebx]
mov ebx, ebp
shr ebx, 4
add esi, ebx
cmp esi, ebx
jae 0x458bdf
sub ebx, esi
xor esi, esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push edi
push eax
push ebx
push ecx
push edx
call dword [esp + 0x48]
mov eax, esi
add esp, 0x14
bswap eax
mov dword [edi + 0xc], eax
test esi, esi
jne 0x458c22
mov eax, 0xc
mov ecx, 1
lea esp, [esp]
movzx edx, byte [eax + edi - 1]
dec eax
add ecx, edx
mov byte [eax + edi], cl
shr ecx, 8
test eax, eax
jne 0x458c10
shl ebx, 4
add dword [esp + 0x1c], ebx
add dword [esp + 0x18], ebx
sub ebp, ebx
cmp ebp, 0x10
jae 0x458bd0
mov eax, dword [esp + 0x10]
test ebp, ebp
je 0x458c9b
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push edi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
push 1
push ebx
push ebx
call dword [esp + 0x48]
add esp, 0x14
inc esi
bswap esi
mov dword [edi + 0xc], esi
jne 0x458c6d
mov edx, edi
call fcn.00458b40
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea eax, [edi + ebx]
sub ecx, ebx
sub esi, ebx
add edi, ebp
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec ebp
mov byte [esi + eax - 1], dl
jne 0x458c82
mov eax, dword [esp + 0x30]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
Function at 0x459310
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.0059fb60
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x459386
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0045a5a0
jmp 0x45939f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0045a6d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x45aa00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x45aae4
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x45aa7f
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0045a5a0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x45aa4d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x45ab9d
call 0x45aa91
pop edx
lea ecx, [edx + 0x12f]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x45ab3c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0045a6d0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x45aaf5
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x45ab9d
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0045a6d0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x45ab98
jmp 0x45ab9d
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46ff20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x46ff35
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46ff74
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x46ff70
lea ebx, [ebx]
cmp esi, edx
jae 0x46ff74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x46ff60
cmp esi, edx
jb 0x46ff79
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x470000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0047a43e

Function at 0x470ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x647f70]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x25c], eax
test edi, edi
je 0x470ba6
push 0x105
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0059fb90
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push edi
push 0x105
push eax
call fcn.0059f2aa
push 0x624b08
push edi
call fcn.0059ecc5
mov esi, eax
add esp, 0x18
test esi, esi
je 0x470ba6
lea eax, [ebp - 0x254]
or ebx, 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x470b47
mov ebx, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
mov dword [eax], ebx
lea eax, [ebx + 1]
push eax
call fcn.0059e8c0
mov edi, eax
add esp, 4
test edi, edi
je 0x470b70
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.0059fb90
add esp, 0xc
mov eax, dword [ebp - 0x258]
push esi
mov dword [eax], edi
test edi, edi
je 0x470b9e
push ebx
push 1
push edi
call fcn.0059ee9f
add esp, 0x10
cmp eax, ebx
je 0x470bba
mov eax, dword [ebp - 0x258]
push dword [eax]
call fcn.0059df48
add esp, 4
push esi
call fcn.0059f233
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059df39
mov esp, ebp
pop ebp
ret
push esi
call fcn.0059f233
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0059df39
mov esp, ebp
pop ebp
ret
Function at 0x470c60
Capabilities:
Enumerate processes via ntquerysysteminformation
Get process image filename
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x647f70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
push edi
mov dword [ebp - 0x21c], eax
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x218], 0
push eax
mov dword [ebp - 0x210], 0xfffffffe
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ebx, 0xc0000004
mov esi, 0x1000
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x470ce6
push 0
push esi
push edi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test ebx, ebx
jns 0x470cdc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, esi
cmp ebx, 0xc0000004
je 0x470cb4
test ebx, ebx
js 0x470e89
mov esi, edi
push 1
lea eax, [ebp - 0x224]
push eax
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
movzx ebx, al
test al, al
je 0x470d13
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x21c], eax
test ebx, ebx
jne 0x470d21
mov eax, dword [esi]
test eax, eax
je 0x470d21
add esi, eax
jmp 0x470cf0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x470e89
mov eax, dword [ebp - 0x21c]
push eax
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x470e89
push 0x200
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x470e67
lea eax, [ebp - 0x20c]
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x208]
call fcn.00470ab0
add esp, 4
test eax, eax
jne 0x470e82
mov edi, dword [ebp - 0x218]
test edi, edi
je 0x470e82
mov esi, dword [ebp - 0x20c]
cmp esi, 0x3aacb
jb 0x470df1
lea ecx, [edi + 0x3aa80]
mov edx, str.Ooops__your_files_have_been_encrypted_
lea esi, [eax + 0x47]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x470de5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x470dc0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x470de5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x470de5
mov al, 1
jmp 0x470de7
xor al, al
test al, al
jne 0x470e4b
mov esi, dword [ebp - 0x20c]
cmp esi, 0x31354
jb 0x470e31
lea ecx, [edi + 0x31340]
mov edx, 0x649538
mov esi, 0x10
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x470e25
add ecx, 4
add edx, 4
sub esi, 4
jae 0x470e10
mov al, 1
jmp 0x470e27
xor al, al
test al, al
jne 0x470e4b
mov esi, dword [ebp - 0x20c]
mov edx, esi
mov ecx, edi
call fcn.00470be0
test al, al
jne 0x470e4b
mov edx, esi
mov ecx, edi
call fcn.00470c20
test al, al
je 0x470e5e
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x210], 0
push edi
call fcn.0059df48
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], 0
jne 0x470e89
mov ecx, dword [ebp - 0x214]
jmp 0x470c88
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059df39
mov esp, ebp
pop ebp
ret
Function at 0x470ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bcd9b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x647f70]
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 edi, edx
mov bl, cl
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call fcn.0059fb90
add esp, 0xc
call fcn.0047ddb7
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..._runlog.dat
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x114]
push 0x624b1c
push eax
call fcn.0059ecc5
mov esi, eax
add esp, 8
test esi, esi
je 0x470fab
push 0x624a44
lea ecx, [ebp - 0x118]
call fcn.00471390
push dword [ebp + 0xc]
movzx eax, bl
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
push eax
lea eax, [ebp - 0x118]
push 0x624b20
push eax
call fcn.00471f00
mov eax, dword [ebp - 0x118]
push esi
push dword [eax - 0xc]
push 2
push eax
call fcn.0059f145
push esi
call fcn.0059f233
mov dword [ebp - 4], 0xffffffff
add esp, 0x2c
mov edx, dword [ebp - 0x118]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470fab
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df39
mov esp, ebp
pop ebp
ret
Function at 0x472e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bcfe8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x647f70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xb0], 0
jne 0x472f98
call fcn.0047ddb7
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [edi + 0xb0], eax
test eax, eax
jne 0x472f98
call fcn.0047c0b0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x472ed1
push 0x80004005
call fcn.0046ff00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x472f09
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00471a30
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [esi - 8]
push esi
call fcn.0059f34e
add esp, 8
test eax, eax
js 0x472faa
cmp eax, dword [esi - 8]
jg 0x472faa
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0xd
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x10]
push str.winhlp32.exe
call fcn.00473350
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x472f77
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x472f70
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0xb0], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472f98
mov ecx, dword [esi]
push esi
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 0x80070057
call fcn.0046ff00
int3
Function at 0x473420
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x647f70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.0059f7f6
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df39
mov esp, ebp
pop ebp
ret

Function at 0x473470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edx
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4734cb
cmp esi, 0xffffffff
je 0x4734cb
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4734c3
cmp ebx, dword [ebp - 4]
jne 0x4734c3
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4734e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
mov dword [ebp - 4], edx
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x47357e
cmp edi, 0xffffffff
je 0x47357e
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x473577
cmp dword [ebp - 0xc], esi
jne 0x473577
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push 0x40
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
je 0x473576
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473569
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x473569
pop ebx
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
xor esi, esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret