joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414370
Capabilities:
Copy file
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x49b3d4]
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 eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x640], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
lea edi, [ecx + 4]
push ebx
push eax
mov dword [ebp - 0x644], edx
mov esi, edi
call fcn.00465a00
push 0x208
lea ecx, [ebp - 0x420]
push ebx
push ecx
call fcn.00465a00
add esp, 0x18
cmp word [esi], 0x7c
je 0x4143ed
add esi, 2
cmp word [esi], 0x7c
jne 0x4143e4
push edi
xor edx, edx
lea eax, [ebp - 0x218]
push 0x104
mov word [esi], dx
push eax
add esi, 2
call fcn.004593e1
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414413
sub eax, edx
push esi
lea edx, [ebp - 0x420]
sar eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [ebp + eax*2 - 0x216], cx
call fcn.004593e1
add esp, 0xc
push str.Copy_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484ae8
lea ecx, [ebp - 0x420]
push ecx
push str._to_
lea edx, [ebp - 0x218]
push edx
push eax
mov dword [ebp - 4], ebx
call fcn.0040260f
push eax
call fcn.0040260f
push eax
call fcn.0040260f
push eax
call fcn.0040260f
call fcn.0040263b
mov edi, dword [ebp - 0x644]
push eax
push str.INFO
mov ecx, edi
call fcn.00416a80
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x65c], ecx
lea ecx, [ebp - 0x664]
lea edx, [ebp - 0x420]
mov eax, 0xe14
push ecx
mov dword [ebp - 0x664], ebx
mov dword [ebp - 0x660], 2
mov dword [ebp - 0x658], edx
mov word [ebp - 0x654], ax
mov dword [ebp - 0x652], ebx
mov dword [ebp - 0x64e], ebx
mov dword [ebp - 0x64a], 0x484020
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, ebx
je 0x41455d
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x640]
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x484ac0
push edx
push eax
call ebx
push esi
push 0x484aec
lea ecx, [ebp - 0x620]
push 0x100
push ecx
call ebx
add esp, 0x20
lea edx, [ebp - 0x620]
push edx
push str.INFO
mov ecx, edi
call fcn.00416a80
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.00458db6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414c20
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x49b3d4]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 0x208
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x218]
push edi
push ecx
mov dword [ebp - 0x438], eax
call fcn.00465a00
add esi, 4
push esi
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.004593e1
lea eax, [ebp - 0x218]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414c91
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x216], cx
push 0x484bb4
lea eax, [ebp - 0x434]
call fcn.004025d0
lea edx, [ebp - 0x218]
push edx
push eax
mov dword [ebp - 4], edi
call fcn.0040260f
call fcn.0040263b
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
lea edx, [ebp - 0x458]
lea eax, [ebp - 0x218]
mov ecx, 0xc14
push edx
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], 3
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], edi
mov word [ebp - 0x448], cx
mov dword [ebp - 0x446], edi
mov dword [ebp - 0x442], edi
mov dword [ebp - 0x43e], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, edi
je 0x414d84
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x484ac0
push eax
push ecx
call edi
push esi
push str.Error_delete_file__err:__d
lea edx, [ebp - 0x418]
push 0x100
push edx
call edi
add esp, 0x20
lea eax, [ebp - 0x418]
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
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.00458db6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47929b
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x49b3d4]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x49b3d4]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push str.Create_directory
lea eax, [esp + 0xe0]
mov esi, ecx
call fcn.004025d0
add esi, 4
push esi
push eax
mov dword [esp + 0x110], 0
call fcn.0040260f
call fcn.0040263b
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
lea ecx, [esp + 0xdc]
mov dword [esp + 0x108], 0xffffffff
call fcn.00402601
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414e6d
test al, 0x10
je 0x414e6d
push str.Folder_exist_already
push str.INFO
mov ecx, ebx
call fcn.00416a80
jmp 0x414f27
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x414f27
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045a45a
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00409760
push edi
push ecx
push str.__error_code
push ecx
push esi
push ecx
lea ecx, [esp + 0x3c]
push str.Cant_create_folder_
push ecx
mov dword [esp + 0x128], 1
call fcn.00403bd5
add esp, 0xc
push eax
call fcn.00403bd5
add esp, 0xc
push eax
call fcn.00403bd5
add esp, 0xc
push eax
call fcn.00403bd5
add esp, 8
push eax
call fcn.00402188
lea edi, [esp + 0xc0]
lea eax, [esp + 0x14]
call fcn.00409820
mov byte [esp + 0x108], 2
call fcn.0040263b
push eax
push str.ERROR
mov ecx, ebx
call fcn.00416a80
mov ecx, edi
call fcn.00402601
lea ecx, [esp + 0x14]
mov dword [esp + 0x108], 0xffffffff
call fcn.00408060
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00458db6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4150e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x415142
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
jmp 0x415103
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor esi, esi
lea edi, [eax + 0x20]
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x415126
mov ecx, dword [eax]
push 0
push ecx
call ebx
inc esi
add edi, 4
cmp esi, 0x20
jl 0x415110
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, dword [edx]
jne 0x415100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4156c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x416120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0046eb00
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x484e18
lea esi, [ecx + 0x10]
push 0x4000
push esi
mov dword [ebp - 0x17e4], ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x17e0]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x17e8], ebx
test ebx, ebx
je 0x4162e4
xor esi, esi
cmp dword [ebp - 0x17e0], esi
jle 0x4162e4
test esi, esi
jne 0x4161f6
push 0x3e8
lea ecx, [ebp - 0x7dc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4161bb
push 0x800
lea edx, [ebp - 0x17dc]
push edx
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, dword [ebx]
lea eax, [ebp - 0x17dc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4161e9
test dx, dx
je 0x4161e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4161e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4161c3
xor eax, eax
jmp 0x4161ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4162d7
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416200
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045854a
mov ecx, dword [ebx + esi*4]
push ecx
push 0x484e18
push eax
mov dword [ebp - 0x17ec], eax
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + 1]
add esp, 0x10
cmp eax, dword [ebp - 0x17e0]
jge 0x41629f
mov edx, dword [ebx + esi*4 + 4]
cmp word [edx], 0x2f
je 0x41629f
mov esi, eax
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416261
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045854a
mov edi, eax
mov eax, dword [ebx + esi*4]
push eax
push 0x484e18
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x17ec]
mov dword [ebp - 0x17f0], edi
mov edi, dword [ebp - 0x17e4]
lea ebx, [ebp - 0x17f4]
mov dword [ebp - 0x17f4], ecx
call fcn.004168b0
mov edx, edi
push eax
push edx
lea edi, [ebp - 0x17fc]
call fcn.004164f0
mov ebx, dword [ebp - 0x17e8]
inc esi
cmp esi, dword [ebp - 0x17e0]
jl 0x416187
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458db6
mov esp, ebp
pop ebp
ret 4
Function at 0x416920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475b39
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.0046eb00
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1014], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ebx, [esi + 0x18]
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.004025a9
lea edi, [esi + 0x34]
mov eax, edi
call fcn.004025a9
lea ecx, [ebp - 0x1010]
push ecx
push 0x800
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.0040260f
push eax
call fcn.0040260f
push 0x484e50
call fcn.0040262a
mov eax, esi
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.00458db6
mov esp, ebp
pop ebp
ret 4
Function at 0x419560
Capabilities:
Encode data using xor
Hash data with crc32

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

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

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

Function at 0x419c70
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 0x419ca6
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 0x419c9c
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 0x419cb7
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.0045d030
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x419ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x419d13
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 0x419d0e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x419d3e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x419d25
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.0045d030
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x419d53
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 0x419d4d
cmp byte [esi + 8], 0
je 0x419d4d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x419df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [edi], 0
je 0x419e44
cmp byte [edi + 1], 0
je 0x419e4c
mov eax, dword [edi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0xffff
mov dword [ebp - 4], esi
cmp ebx, esi
jae 0x419e27
mov dword [ebp - 4], ebx
mov esi, ebx
push 0x404
call fcn.0045a945
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x419e53
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x1c], ecx
jmp 0x419e11
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0xffffffff
cmp esi, eax
jbe 0x419f6d
jmp 0x419e79
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, 0x400
mov dword [ebp - 8], esi
cmp eax, esi
ja 0x419e88
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x419e9f
mov ebx, 0x404
cmp byte [edi], 0
je 0x419ec4
cmp byte [edi + 1], 0
je 0x419f6d
mov edx, dword [edi + 0xc]
push 0
push 0
add edx, eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x419ec7
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
mov esi, ebx
je 0x419ef0
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + 4]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419eeb
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x419f19
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x419f01
sub ecx, eax
mov esi, ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [ebp - 0xc]
push esi
add ecx, eax
push ecx
push edx
call fcn.0045d030
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
xor edx, edx
div ebx
cmp eax, 1
jne 0x419f6d
lea eax, [ebx - 3]
test eax, eax
js 0x419f5b
lea esp, [esp]
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x419f4f
cmp byte [eax + ecx + 1], 0x4b
jne 0x419f4f
cmp byte [eax + ecx + 2], 5
jne 0x419f4f
cmp byte [eax + ecx + 3], 6
je 0x419f55
test eax, eax
jns 0x419f30
jmp 0x419f5b
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x419f6d
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x419e70
mov eax, dword [ebp - 0xc]
push eax
call fcn.004592a1
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41adf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x41ae95
cmp dword [esi + 4], 0xffffffff
jne 0x41ae95
lea edi, [esi + 0x244]
push edi
push 0x104
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 0x41ae20
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x41ae57
cmp eax, 0x2f
je 0x41ae57
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41ae44
mov eax, dword [0x484564]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.00419bd0
add esp, 4
test eax, eax
jne 0x41ae73
mov eax, dword [ebp + 8]
pop edi
pop ecx
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push edx
call fcn.00419f90
mov dword [esi], eax
add esp, 4
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 0x41b4e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41b514
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41b514
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41b5fe
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x41b530
cmp ax, 0x5c
jne 0x41b532
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x41b524
push edi
cmp ecx, ebx
je 0x41b572
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0045d030
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.0041b4e0
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x41b59f
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41b590
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b5a3
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41b5c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x41b5fe
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00458db6
mov esp, ebp
pop ebp
ret
Function at 0x41c460
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x208], 1
test al, 1
je 0x41c493
mov edi, 3
test al, 4
je 0x41c4a4
mov dword [ebp - 0x208], 0x21
or edi, 4
mov ecx, dword [ebx + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
je 0x41c513
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c4d0
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [ebx + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret 4
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c513
sub eax, edx
lea ecx, [ebp - 0x210]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c544
sub eax, edx
mov edx, dword [ebp - 0x208]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458db6
mov esp, ebp
pop ebp
ret 4