joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004b9c60
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x430b3e
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430b03
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004b9c60
push 0x50a984
push 0x64
push esi
call fcn.004b4d05
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
push 0x5062dc
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004b4d68
push 0x50a8b0
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004b4d68
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004b4d68
add esp, 0x24
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.00430880
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret

Function at 0x430fb0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004b9c60
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5062dc
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004b4d68
push 0x50a8b0
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004b4d68
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004b4d68
add esp, 0x24
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret

Function at 0x431060
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431072
xor al, al
pop edi
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431077
sub eax, edx
sar eax, 1
push esi
lea esi, [eax - 1]
test esi, esi
js 0x43109a
mov edi, edi
cmp word [edi + esi*2], 0x5c
je 0x43109a
dec esi
jns 0x431090
mov edx, edi
xor ecx, ecx
mov eax, ebx
sub edx, ebx
cmp ecx, esi
jge 0x4310b9
mov di, word [edx + eax]
mov word [eax], di
inc ecx
add eax, 2
cmp ecx, 0x104
jl 0x4310a2
pop esi
mov al, 1
pop edi
ret
Function at 0x431e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5003
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [ebp - 4], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
lea ecx, [eax + 1]
lea ebx, [ebx]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x431ef0
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.004041e0
mov eax, esi
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

Function at 0x432d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4fd3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
mov byte [ebp - 4], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x50669a
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.004041e0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x43334b
cmp byte [esi + 0x44], bl
jne 0x433343
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433327
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.004041e0
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x433363
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x433352
xor eax, eax
push 2
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004b5117
push ebx
call fcn.004b5327
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004b5117
add esp, 0x1c
test ebx, ebx
jg 0x4333d6
cmp byte [esi + 0x44], 0
jne 0x4333ce
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xd
mov edx, dword [str.Error_null__0__or_unexpected_EOF_found_in_input_stream.]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4333b5
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.004041e0
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea ecx, [ebx + 1]
push ecx
call fcn.0046b8db
mov edx, dword [ebp + 8]
push edx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.004b3417
add esp, 0x14
cmp eax, 1
je 0x43342e
push edi
call fcn.004b23b5
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x433343
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433422
jmp 0x43332e
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x43345c
jmp 0x433440
mov dl, byte [eax]
cmp dl, 0xd
jne 0x433453
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x433457
jmp 0x433456
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x433440
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ecx
push 0
push edi
mov ecx, esi
call edx
push edi
call fcn.004b23b5
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 8
Function at 0x43aad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43aad7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x43abad
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x509770]
add ecx, 8
sub edx, 8
dec esi
jne 0x43aaf0
pop edi
test edx, edx
je 0x43abca
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x509770]
inc ecx
dec edx
jne 0x43abb1
not eax
pop esi
ret

Function at 0x43abd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x509770]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x509770]
mov dword [edx + 8], ecx
ret

Function at 0x43ac40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x509770]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x509770]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x43b560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x43b596
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b58c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43b5a7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004b63e0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x43b5d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x43b603
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b5fe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43b62e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x43b615
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.004b63e0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x43b643
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43b63d
cmp byte [esi + 8], 0
je 0x43b63d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x43b790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43b7d7
cmp byte [esi + 1], 0
je 0x43b7df
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x43b7f2
cmp byte [esi + 1], 0
je 0x43b7e6
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x43b7fa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43b7b1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43b7fa
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x43b80c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.004b30cc
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43b829
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x43b92e
lea ecx, [ecx]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43b84f
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x43b866
mov ebx, 0x404
cmp byte [esi], 0
je 0x43b88b
cmp byte [esi + 1], 0
je 0x43b92e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43b88e
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43b8b7
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b8b2
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43b8e0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43b8c8
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004b63e0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43b92e
lea eax, [ebx - 3]
test eax, eax
js 0x43b913
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43b90f
cmp byte [eax + ecx + 1], 0x4b
jne 0x43b90f
cmp byte [eax + ecx + 2], 5
jne 0x43b90f
cmp byte [eax + ecx + 3], 6
je 0x43b928
test eax, eax
jns 0x43b8f0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jae 0x43b92e
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xc]
jmp 0x43b840
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004b3515
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d3a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x43d42b
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b4cb9
lea eax, [ebp - 0x414]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d3e0
sub eax, edx
sar eax, 1
je 0x43d40a
lea ecx, [ebp + eax*2 - 0x416]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x43d405
cmp eax, 0x5c
jne 0x43d40a
xor edx, edx
mov word [ecx], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43d42b
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x43d50f
mov ecx, edi
mov edx, edi
jmp 0x43d440
cmp ax, 0x2f
je 0x43d44c
cmp ax, 0x5c
jne 0x43d44e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43d440
cmp ecx, edi
je 0x43d48f
sub ecx, edi
push esi
sar ecx, 1
lea esi, [ecx + ecx]
push esi
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.004b63e0
lea ecx, [ebp - 0x414]
push ecx
xor eax, eax
push ebx
mov word [ebp + esi - 0x414], ax
call fcn.0043d3a0
add esp, 0x14
pop esi
xor edx, edx
mov word [ebp - 0x20c], dx
test ebx, ebx
je 0x43d4b1
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b4cb9
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [ebp - 6], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d4c0
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp + eax*2 - 0x20c]
push edi
push eax
call fcn.004b4cb9
add esp, 0xc
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [ebp - 6], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43d50f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x43eec0
Capabilities:
Inspect load icon resource
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e38c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x53f1e4]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov edi, dword [sym.WEMediaSetup.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push 0xfffffffffffffff0
mov esi, ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call ebx
and eax, 0xff3effff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
movzx eax, word [esi + 0x450]
mov ecx, dword [esi + 4]
push eax
push 0xfffffffffffffffa
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 1
push 0x80
push edx
call ebx
mov eax, dword [esi + 4]
push edi
push 0
push 0x80
push eax
call ebx
mov ecx, dword [esi + 4]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
call dword [0x51111c]
lea ecx, [esp + 0xa4]
call dword [0x511128]
push 0
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x208], 0
mov ebx, dword [sym.WEMediaSetup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push edx
push 0
lea ecx, [esi + 0x348]
mov dword [esp + 0x24], vtable.CCustomCtrlBuildCallback.0
call ebx
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2c], esp
call dword [0x51112c]
test eax, eax
jne 0x43f03c
lea ecx, [esp + 0x1c]
call dword [0x51117c]
mov byte [esp + 0x200], 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
push eax
lea eax, [esp + 0x20]
push 0x50bdb4
push eax
call dword [0x511188]
add esp, 0xc
lea ecx, [esp + 0x1c]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x200], 0
call dword [0x511180]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x511130]
or eax, 0xffffffff
jmp 0x43f068
push eax
mov ecx, edi
call dword [0x511120]
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x511130]
xor eax, eax
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x441d60
Capabilities:
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x240], 0
push edi
nop
push 0
push 2
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, 0xffffffff
je 0x441f13
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004b9c60
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x244], eax
test esi, esi
je 0x441ee2
lea esp, [esp]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x441ec0
mov dword [ebp - 0x234], edi
jmp 0x441e20
mov eax, dword [ebp - 0x234]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x441e30
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.004b2d12
add esp, 8
test eax, eax
jne 0x441e96
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x244], eax
je 0x441e96
push eax
push 0
push 1
mov dword [ebp - 0x238], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x441e7a
push str.KillProcessFromList
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x441e96
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
add dword [ebp - 0x234], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x441e20
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x441df0
mov edi, dword [ebp - 0x23c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], 0
je 0x441f13
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x240]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, 5
jl 0x441d80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x442f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e80b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
xor eax, eax
xor edi, edi
push 0x50c074
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00404960
lea eax, [esi + 0x70]
push 0
mov dword [ebp - 4], edi
push eax
lea ebx, [esi + 0x8c]
lea edi, [esi + 0x54]
push edi
mov ecx, ebx
lea edx, [ebp - 0x2c]
call fcn.00409050
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x49], al
jb 0x442ff7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1c22
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x44302d
cmp dword [edi + 0x14], 8
jb 0x443007
mov eax, dword [edi]
jmp 0x443009
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44302d
cmp dword [esi + 0x80], 0
je 0x44302d
mov word [esi + 0xe1], 1
mov al, 1
jmp 0x4430ae
push 0xa
xor edx, edx
push 0x50c074
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00404960
push 1
lea eax, [esi + 0x70]
push eax
push edi
mov ecx, ebx
lea edx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.00409050
add esp, 0xc
cmp dword [ebp - 0x34], 8
mov bl, al
jb 0x44307f
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1c22
add esp, 4
test bl, bl
je 0x4430ac
cmp dword [edi + 0x14], 8
jb 0x44308b
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4430ac
cmp dword [esi + 0x80], 0
je 0x4430ac
mov word [esi + 0xe1], 0x101
mov al, 1
jmp 0x4430ae
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret