joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422f95
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0x43b83c
cmp eax, 0xffffffff
jne 0x423057
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
push 0x4393a0
push str.UseDSColorPicker
push str.NclrViewer
call esi
test eax, eax
je 0x423057
push edi
push 0x439c7c
push 0x43c188
push str.NcgrViewer
call esi
test eax, eax
je 0x423057
push edi
push 0x4393a0
push 0x43c188
push str.NscrViewer
call esi
test eax, eax
je 0x423057
push edi
push 0x439c7c
push str.FullPaths
push ebx
call esi
test eax, eax
je 0x423057
push edi
push 0x4393a0
push str.PaletteAlgorithm
push ebx
call esi
test eax, eax
je 0x423057
push edi
push 0x439c7c
push str.RenderTransparent
push ebx
call esi
test eax, eax
je 0x423057
push edi
push 0x439c7c
push str.DPIAware
push ebx
call esi
test eax, eax
je 0x423057
push edi
push 0x4393a0
push str.AllowMultiple
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
push edi
push ebx
push str.UseDSColorPicker
push str.NclrViewer
call esi
push edi
push 1
push 0x43c188
push str.NcgrViewer
mov dword [0x43f3dc], eax
call esi
push edi
push ebx
push 0x43c188
push str.NscrViewer
mov dword [0x43f3e0], eax
call esi
push edi
push 1
push str.FullPaths
push 0x43b83c
mov dword [0x43f3e4], eax
call esi
push edi
push 1
push str.RenderTransparent
push 0x43b83c
mov dword [0x43f3c4], eax
call esi
push 2
push 0x104
mov dword [0x43f3c8], eax
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
push edi
push 1
push str.DPIAware
push 0x43b83c
mov dword [0x43f3d8], eax
call esi
push edi
push ebx
push str.AllowMultiple
push 0x43b83c
mov dword [0x43f3cc], eax
call esi
push edi
push 0x104
push dword [0x43f3d8]
mov dword [0x43f3d0], eax
push 0x439414
push str.Background
push 0x43b83c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x43f3d8]
cmp word [eax], bx
je 0x42319f
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.00409f00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x42319f
mov edx, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 8]
imul ecx, edi
test ecx, ecx
jle 0x42317e
mov edx, dword [esi + ebx*4]
movzx ecx, byte [esi + ebx*4 + 2]
movzx eax, dl
and edx, 0xff00ff00
shl eax, 0x10
or ecx, eax
or ecx, edx
mov dword [esi + ebx*4], ecx
inc ebx
mov edx, dword [ebp - 4]
mov eax, edx
mov edi, dword [ebp - 8]
imul eax, edi
cmp ebx, eax
jl 0x423153
push esi
push 0x20
push 1
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push esi
mov dword [0x43f3d4], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4248ed
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x20
pop eax
push eax
xor eax, eax
inc eax
push eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, edi
imul eax, ebx
lea eax, [eax*4 + 0x7c]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
inc ecx
push 0x20
mov word [eax + 0xc], cx
pop ecx
mov dword [eax], 0x7c
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov word [eax + 0xe], cx
mov dword [eax + 0x10], 3
mov dword [eax + 0x28], 0xff0000
mov dword [eax + 0x2c], 0xff00
mov dword [eax + 0x30], 0xff
mov dword [eax + 0x34], 0xff000000
mov dword [eax + 0x38], 0x73524742
mov dword [eax + 0x6c], 8
add eax, 0x7c
test ebx, ebx
jle 0x424a06
lea esi, [ebx*4 - 4]
imul edx, edi, 0xfffffffc
imul esi, edi
mov ecx, edi
shl ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
add esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
test edi, edi
jle 0x4249f3
mov dword [ebp - 8], esi
mov ebx, eax
mov esi, edi
mov edi, dword [ebp - 8]
mov ecx, dword [ebx]
mov edx, ecx
shr edx, 0x10
lea ebx, [ebx + 4]
movzx eax, cl
and edx, 0xff
shl eax, 0x10
and ecx, 0xff00ff00
or edx, eax
or edx, ecx
mov dword [edi], edx
lea edi, [edi + 4]
dec esi
jne 0x4249b9
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add esi, edx
add eax, ecx
dec ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], ebx
jne 0x4249ab
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x11
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4250ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x58
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea edi, [eax + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x18]
push 0x11
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push ecx
push ecx
push eax
push 0x42513b
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
ret
Function at 0x425625
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 4
mov esi, 0x20000
push esi
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov edi, eax
xor edx, edx
mov ecx, edx
sar ecx, 9
xor ecx, edx
sar ecx, 2
and ecx, 1
neg ecx
and ecx, 0x3f3f3f
add ecx, 0xc0c0c0
mov dword [edi + edx*4], ecx
inc edx
cmp edx, esi
jl 0x42563e
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4256c7
cmp dword [ebp + 0xc], 0
je 0x4256c7
cmp dword [ebp + 0x10], 0
je 0x4256c7
cmp dword [ebp + 0x14], 0
je 0x4256c7
cmp dword [ebp + 0x18], 0
je 0x4256c7
mov ecx, dword [ecx + 0x18]
mov eax, dword [ebp + 0x1c]
movzx esi, word [ecx + eax*8]
dec esi
mov edx, dword [ecx + eax*8 + 4]
js 0x4256c7
push ebx
lea ebx, [edx + 2]
lea ebx, [ebx + esi*8]
movsx eax, word [ebx + 2]
push eax
movsx eax, word [ebx]
push eax
movzx eax, word [ebx - 2]
push 0
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00413353
add esp, 0x28
lea ebx, [ebx - 8]
dec esi
jns 0x425698
pop ebx
push edi
push 0x20
push 1
push 0x100
push 0x200
call dword [sym.imp.GDI32.dll_CreateBitmap]
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4259cb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 0x3c
jb 0x425b3a
test bl, 3
jne 0x425b3a
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0x20
jge 0x425b3a
cmp dword [ecx + 8], 0x3c
mov esi, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov edi, dword [ecx + 0xc]
mov dword [ebp + 0xc], esi
mov esi, dword [ecx + 0x24]
jb 0x425b3a
cmp eax, 0x3c
jb 0x425b3a
cmp edx, 0x3c
jb 0x425b3a
cmp dword [ecx + 0x20], 0x3c
jb 0x425b3a
cmp dword [ecx + 0x28], 0x3c
jb 0x425b3a
cmp dword [ecx + 8], ebx
ja 0x425b3a
cmp eax, ebx
ja 0x425b3a
cmp edx, ebx
ja 0x425b3a
cmp dword [ecx + 0x20], ebx
ja 0x425b3a
cmp dword [ecx + 0x28], ebx
ja 0x425b3a
test byte [ecx + 8], 3
jne 0x425b3a
test al, 3
jne 0x425b3a
test dl, 3
jne 0x425b3a
test byte [ecx + 0x20], 3
jne 0x425b3a
test byte [ecx + 0x28], 3
jne 0x425b3a
lea eax, [eax + edi*8]
cmp eax, ebx
ja 0x425b3a
imul eax, dword [ecx + 0x14], 0x14
add eax, edx
cmp eax, ebx
ja 0x425b3a
mov eax, dword [ecx + 0x1c]
shl eax, 4
add eax, dword [ecx + 0x20]
cmp eax, ebx
ja 0x425b3a
imul eax, esi, 0x30
add eax, dword [ecx + 0x28]
cmp eax, ebx
ja 0x425b3a
test edi, edi
jne 0x425aca
test esi, esi
je 0x425b3a
mov eax, dword [ecx + 0x14]
xor edi, edi
test eax, eax
je 0x425b35
lea esi, [ecx + 8]
add esi, edx
cmp dword [esi - 8], 0x3c
jb 0x425b3a
cmp dword [esi - 4], 0x3c
jb 0x425b3a
cmp dword [esi - 8], ebx
jae 0x425b3a
cmp dword [esi - 4], ebx
jae 0x425b3a
mov ecx, dword [esi + 8]
movzx eax, word [esi + 4]
shr ecx, 0x14
push 8
and ecx, 7
pop edx
shl edx, cl
cmp eax, edx
jne 0x425b3a
mov ecx, dword [esi + 8]
movzx eax, word [esi + 6]
shr ecx, 0x17
push 8
and ecx, 7
pop edx
shl edx, cl
cmp eax, edx
jne 0x425b3a
test dword [esi + 8], 0x1c000000
je 0x425b3a
mov ecx, dword [esi]
lea eax, [ecx - 1]
test ecx, eax
jne 0x425b3a
inc edi
add esi, 0x14
cmp edi, dword [ebp + 0xc]
jb 0x425ad8
xor eax, eax
inc eax
jmp 0x425b3c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42941c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [eax + 0x1c]
mov edi, dword [ebp + 0xc]
push dword [eax + 0x20]
push edi
call fcn.00403cda
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x18], 0x46524c43
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x4b4e494c
mov esi, dword [ecx + 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], 0x544e4d43
mov dword [ebp - 0x38], eax
mov word [ebp - 0x34], 1
mov dword [ebp - 0x48], 0x43524c43
mov dword [ebp - 0x44], 2
mov word [ebp - 0x40], ax
mov dword [ebp - 0x54], 0x45444f4d
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], 0x20524556
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0x20444e45
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x4294a5
mov esi, eax
jmp 0x4294b3
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4294a8
sub esi, edx
xor eax, eax
mov ebx, dword [ecx + 0x30]
mov dword [ebp - 0xc], esi
test ebx, ebx
jne 0x4294c1
mov ebx, eax
jmp 0x4294cd
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4294c4
sub ebx, edx
mov eax, dword [ecx + 0x1c]
add eax, 0xf
mov dword [ebp - 8], ebx
shr eax, 4
mov dword [ebp - 0x14], eax
lea eax, [ebx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx + 0x2c]
mov word [ebp - 0x40], ax
mov eax, dword [ecx + 0x14]
shr eax, 3
mov byte [ebp - 0x4c], al
mov eax, dword [ecx + 0x18]
shr eax, 3
cmp dword [ecx + 0x24], 1
push 8
mov byte [ebp - 0x4b], al
sete byte [ebp - 0x4a]
pop eax
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x49], 2
call fcn.00403cda
mov eax, dword [ebp + 8]
add esp, 0xc
and dword [ebp - 0x10], 0
mov eax, dword [eax + 0x1c]
add eax, 0xf
test eax, 0xfffffff0
jbe 0x429563
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
push edi
call fcn.00403cda
mov eax, dword [ebx + 0x1c]
add esp, 0xc
add eax, 0xf
inc esi
shr eax, 4
cmp esi, eax
jb 0x42953c
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push 8
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00403cda
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
push edi
call fcn.00403cda
push 0xa
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.00403cda
push ebx
push dword [esi + 0x30]
push edi
call fcn.00403cda
push 0xa
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00403cda
push 0xc
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.00403cda
add esp, 0x48
lea eax, [ebp - 0x28]
push 8
push eax
push edi
call fcn.00403cda
push 8
push str.IS_ASC03
push edi
call fcn.00403cda
push 8
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.00403cda
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429c0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x114
push ebx
push esi
push edi
test edx, edx
je 0x429ddc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x429ddc
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x429ddc
mov ecx, dword [edx + 0x14]
shr ecx, 3
cmp dword [ebp + 0x18], ecx
jge 0x429dc5
mov eax, dword [edx + 0x18]
shr eax, 3
cmp dword [ebp + 0x1c], eax
jge 0x429dc5
imul ecx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x20]
add ecx, dword [ebp + 0x18]
movzx ecx, word [eax + ecx*2]
mov eax, dword [ebp + 0x24]
mov ebx, ecx
mov edx, ecx
shr ebx, 0xa
and ebx, 3
shr ecx, 0xc
and edx, 0x3ff
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x429c88
mov dword [eax], edx
mov esi, dword [esi + 0x2c]
mov eax, ecx
mov ecx, dword [edi + 0x28]
sub edx, dword [ebp + 0x14]
shl eax, cl
lea eax, [esi + eax*2]
mov dword [ebp - 4], eax
cmp edx, dword [edi + 0x14]
jge 0x429d8c
test edx, edx
js 0x429d8c
mov eax, dword [edi + 0x44]
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
mov eax, esi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
mov cl, byte [eax + ecx]
test cl, cl
jne 0x429cd4
cmp dword [ebp + 0x28], esi
je 0x429cd4
mov dword [ebp + eax*4 - 0x114], esi
jmp 0x429d36
movzx eax, cl
mov edx, esi
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0xc]
add eax, ecx
cmp eax, dword [ebx + 0x18]
jge 0x429cf5
mov eax, dword [ebp - 4]
movzx edx, word [eax + ecx*2]
test ecx, ecx
jne 0x429d04
cmp dword [ebp + 0x28], esi
jne 0x429d04
mov eax, dword [ebx + 0x2c]
movzx edx, word [eax]
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x1f
and ecx, 0x1f
shl eax, 0xa
or ecx, eax
and edx, 0x83e0
or ecx, edx
push ecx
call fcn.004057cf
pop ecx
mov ecx, dword [ebp + 8]
or eax, 0xff000000
mov dword [ebp + ecx*4 - 0x114], eax
mov eax, ecx
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x40
jl 0x429cbf
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x429d60
mov edi, dword [ebp + 0x20]
lea esi, [ebp - 0x114]
push 0x40
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x429dee
test bl, 1
mov ecx, esi
push 7
pop eax
cmovne ecx, eax
test bl, 2
je 0x429d73
xor ecx, 0x38
mov edx, dword [ebp + 0x20]
mov eax, esi
xor eax, ecx
mov eax, dword [ebp + eax*4 - 0x114]
mov dword [edx + esi*4], eax
inc esi
cmp esi, 0x40
jl 0x429d76
jmp 0x429dee
cmp dword [ebp + 0x28], 0
jne 0x429ddc
movzx edx, word [esi]
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x1f
and ecx, 0x1f
shl eax, 0xa
or ecx, eax
and edx, 0x83e0
or ecx, edx
push ecx
call fcn.004057cf
mov edi, dword [ebp + 0x20]
or eax, 0xff000000
pop ecx
push 0x40
pop ecx
rep stosd dword es:[edi], eax
jmp 0x429dee
push 0x100
push 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
inc eax
jmp 0x429df0
push 0x100
push 0
push dword [ebp + 0x20]
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cd24
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x42cd3d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push edi
call fcn.004300e7
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430307
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push eax
push 0x80
push 3
push eax
inc ebx
mov dword [ebp - 4], eax
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.004300e7
pop ecx
pop ecx
dec eax
je 0x43038e
dec eax
jne 0x43046e
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp - 8]
push esi
call fcn.0043047f
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x4303a3
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp - 8]
push esi
call fcn.004305ef
mov ebx, eax
mov dword [ebp - 0x10], eax
add esp, 0x10
test ebx, ebx
jne 0x43046e
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4303be
sub ecx, dword [ebp - 0x18]
sar ecx, 1
je 0x430406
mov esi, dword [ebp + 8]
movzx eax, word [esi + edx*2]
cmp eax, 0x2f
je 0x4303e2
cmp eax, 0x5c
jne 0x4303e8
lea eax, [edx + 1]
mov dword [ebp - 0xc], eax
mov ecx, esi
inc edx
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4303f1
sub ecx, dword [ebp - 0x18]
sar ecx, 1
cmp edx, ecx
jb 0x4303d4
mov eax, dword [ebp + 8]
lea edx, [edi + 0x10]
mov ecx, dword [ebp - 0xc]
mov edi, edx
push 0x2e
mov dword [ebp - 0xc], edx
lea ecx, [eax + ecx*2]
xor eax, eax
stosd dword es:[edi], eax
push ecx
mov dword [ebp - 0x18], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, dword [ebp - 0x18]
mov ebx, eax
pop ecx
xor eax, eax
mov edi, esi
pop ecx
mov edx, eax
cmp edx, 0x10
je 0x430468
cmp edi, ebx
je 0x430468
mov ecx, dword [ebp - 0xc]
mov al, byte [edi]
mov byte [ecx + edx], al
mov ecx, esi
inc edx
add edi, 2
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x430453
sub ecx, dword [ebp - 0x18]
sar ecx, 1
cmp edx, ecx
jbe 0x430436
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431359
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x18], 0x20
jne 0x431382
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 4]
imul eax, dword [ebp + 0x14]
push 0
push ecx
shl eax, 2
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4313eb
cmp dword [ebp + 0x18], 0x18
jne 0x4313eb
push ebx
push esi
mov esi, dword [ebp + 0x10]
imul esi, dword [ebp + 0x14]
push edi
push 3
push esi
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
mov edi, eax
xor ebx, ebx
mov dword [ebp + 0x18], edi
pop ecx
test esi, esi
jle 0x4313cc
lea edx, [edi + 2]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + ebx*4]
mov eax, ecx
mov byte [edx - 2], cl
shr eax, 8
shr ecx, 0x10
inc ebx
mov byte [edx - 1], al
mov byte [edx], cl
lea edx, [edx + 3]
cmp ebx, esi
jl 0x4313ae
mov edi, dword [ebp + 0x18]
push 0
lea eax, [ebp - 4]
push eax
imul eax, esi, 3
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4313ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 0x14]
push edi
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp esi, 0xffffffff
jne 0x431418
mov esi, dword [ebp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x43140f
sub esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
lea eax, [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x14]
push eax
push 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call edi
test esi, esi
je 0x431456
push 0
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43145c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x214]
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4314fd
push esi
push edi
push 1
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x214]
push esi
push edi
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4314f4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x43cddc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4314f4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._d._d._d._d
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x18
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43173a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43175f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43175f
xor eax, eax
jmp 0x431788
push 0
push 0x43178b
push 0x431531
push 0x4317ee
push dword [ebp + 8]
mov dword [0x43f3a0], esi
call fcn.00433409
add esp, 0x14
and dword [0x43f3a0], 0
pop esi
pop ebp
ret