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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b1b4]
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.004c24e0
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 0x43183e
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431803
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004c24e0
push 0x515040
push 0x64
push esi
call fcn.004bd587
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
push 0x510884
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004bd5ea
push edi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004bd5ea
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004bd5ea
add esp, 0x24
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.00431580
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ba3af
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b1b4]
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.004c24e0
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 0x510884
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004bd5ea
push esi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004bd5ea
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004bd5ea
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.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x431d50
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431d62
xor al, al
pop edi
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431d67
sub eax, edx
sar eax, 1
push esi
lea esi, [eax - 1]
test esi, esi
js 0x431d8a
mov edi, edi
cmp word [edi + esi*2], 0x5c
je 0x431d8a
dec esi
jns 0x431d80
mov edx, edi
xor ecx, ecx
mov eax, ebx
sub edx, ebx
cmp ecx, esi
jge 0x431da9
mov di, word [edx + eax]
mov word [eax], di
inc ecx
add eax, 2
cmp ecx, 0x104
jl 0x431d92
pop esi
mov al, 1
pop edi
ret
Function at 0x432b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef1a3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
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 0x432be0
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.00407c70
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 0x433a60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef173
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x54b1b4]
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 0x511a46
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.00407c70
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 0x433ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x43403b
cmp byte [esi + 0x44], bl
jne 0x434033
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 0x434017
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00407c70
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 0x434053
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x434042
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.004bd999
push ebx
call fcn.004bdba9
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004bd999
add esp, 0x1c
test ebx, ebx
jg 0x4340c6
cmp byte [esi + 0x44], 0
jne 0x4340be
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 0x4340a5
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00407c70
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.00473ed3
mov edx, dword [ebp + 8]
push edx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.004bb92b
add esp, 0x14
cmp eax, 1
je 0x43411e
push edi
call fcn.004bba63
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x434033
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 0x434112
jmp 0x43401e
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x43414c
jmp 0x434130
mov dl, byte [eax]
cmp dl, 0xd
jne 0x434143
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x434147
jmp 0x434146
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x434130
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.004bba63
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 8
Function at 0x43b780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43b787
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x43b85d
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 + 0x513db0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x513db0]
add ecx, 8
sub edx, 8
dec esi
jne 0x43b7a0
pop edi
test edx, edx
je 0x43b87a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x513db0]
inc ecx
dec edx
jne 0x43b861
not eax
pop esi
ret

Function at 0x43b880
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 + 0x513db0]
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 + 0x513db0]
mov dword [edx + 8], ecx
ret

Function at 0x43b8f0
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 + 0x513db0]
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 + 0x513db0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x43c210
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 0x43c246
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 0x43c23c
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 0x43c257
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.004bec60
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x43c280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x43c2b3
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 0x43c2ae
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43c2de
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x43c2c5
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.004bec60
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x43c2f3
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 0x43c2ed
cmp byte [esi + 8], 0
je 0x43c2ed
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x43c440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43c487
cmp byte [esi + 1], 0
je 0x43c48f
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 0x43c4a2
cmp byte [esi + 1], 0
je 0x43c496
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 0x43c4aa
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43c461
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43c4aa
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 0x43c4bc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.004bb5e0
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43c4d9
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 0x43c5de
lea ecx, [ecx]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43c4ff
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 0x43c516
mov ebx, 0x404
cmp byte [esi], 0
je 0x43c53b
cmp byte [esi + 1], 0
je 0x43c5de
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 0x43c53e
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43c567
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 0x43c562
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43c590
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43c578
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.004bec60
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43c5de
lea eax, [ebx - 3]
test eax, eax
js 0x43c5c3
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43c5bf
cmp byte [eax + ecx + 1], 0x4b
jne 0x43c5bf
cmp byte [eax + ecx + 2], 5
jne 0x43c5bf
cmp byte [eax + ecx + 3], 6
je 0x43c5d8
test eax, eax
jns 0x43c5a0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jae 0x43c5de
mov ebx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 0xc]
jmp 0x43c4f0
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004bba29
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d7a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x43d85a
cmp dword [esi + 4], 0xffffffff
jne 0x43d85a
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d7d0
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp ecx, 0x5c
je 0x43d7fc
cmp ecx, 0x2f
je 0x43d7fc
mov dword [esi + eax*2 + 0x244], 0x2f
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x43d820
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43d820
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
push ebx
call fcn.0043bff0
add esp, 0x10
test eax, eax
jne 0x43d83f
mov eax, dword [ebp + 0xc]
pop edi
pop ecx
pop ebp
ret 8
call fcn.0043c600
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8
Function at 0x43e050
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54b1b4]
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 0x43e0db
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004bd53b
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 0x43e090
sub eax, edx
sar eax, 1
je 0x43e0ba
lea ecx, [ebp + eax*2 - 0x416]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x43e0b5
cmp eax, 0x5c
jne 0x43e0ba
xor edx, edx
mov word [ecx], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e0db
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x43e1bf
mov ecx, edi
mov edx, edi
jmp 0x43e0f0
cmp ax, 0x2f
je 0x43e0fc
cmp ax, 0x5c
jne 0x43e0fe
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43e0f0
cmp ecx, edi
je 0x43e13f
sub ecx, edi
push esi
sar ecx, 1
lea esi, [ecx + ecx]
push esi
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.004bec60
lea ecx, [ebp - 0x414]
push ecx
xor eax, eax
push ebx
mov word [ebp + esi - 0x414], ax
call fcn.0043e050
add esp, 0x14
pop esi
xor edx, edx
mov word [ebp - 0x20c], dx
test ebx, ebx
je 0x43e161
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004bd53b
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 0x43e170
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.004bd53b
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 0x43e1bf
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.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x43fb70
Capabilities:
Inspect load icon resource
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ec0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x54b1b4]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov edi, dword [sym.Update.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 [0x51c0ec]
lea ecx, [esp + 0xa4]
call dword [0x51c0f8]
push 0
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x208], 0
mov ebx, dword [sym.Update.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 [0x51c0fc]
test eax, eax
jne 0x43fcec
lea ecx, [esp + 0x1c]
call dword [0x51c148]
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 0x516474
push eax
call dword [0x51c154]
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 [0x51c14c]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x51c100]
or eax, 0xffffffff
jmp 0x43fd18
push eax
mov ecx, edi
call dword [0x51c0f0]
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 [0x51c100]
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.004ba3af
mov esp, ebp
pop ebp
ret 0x10
Function at 0x443bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1af0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x54c674
lea ecx, [ebp - 0x2c]
call fcn.00403940
lea ecx, [esi + 0x8c]
push 0
push ecx
lea ebx, [esi + 0xa8]
lea edi, [esi + 0x70]
push edi
mov ecx, ebx
mov edx, eax
mov dword [ebp - 4], 0
call fcn.00408b60
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x49], al
jb 0x443c69
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x443c9c
cmp dword [edi + 0x14], 8
jb 0x443c79
mov eax, dword [edi]
jmp 0x443c7b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x443c9c
cmp dword [esi + 0x9c], 0
je 0x443c9c
mov word [esi + 0xfd], 1
mov al, 1
jmp 0x443d09
mov edx, 0x54c674
lea ecx, [ebp - 0x48]
call fcn.00403940
push 1
lea ecx, [esi + 0x8c]
push ecx
push edi
mov ecx, ebx
mov edx, eax
mov dword [ebp - 4], 1
call fcn.00408b60
add esp, 0xc
cmp dword [ebp - 0x34], 8
mov bl, al
jb 0x443cda
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
add esp, 4
test bl, bl
je 0x443d07
cmp dword [edi + 0x14], 8
jb 0x443ce6
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x443d07
cmp dword [esi + 0x9c], 0
je 0x443d07
mov word [esi + 0xfd], 0x101
mov al, 1
jmp 0x443d09
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.004ba3af
mov esp, ebp
pop ebp
ret