joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bf7f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x162000]
push edi
jmp 0x5bf80a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bf811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bf800
mov eax, 1
add ebx, ebx
jne 0x5bf823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bf834
jne 0x5bf853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bf853
dec eax
add ebx, ebx
jne 0x5bf840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bf818
add ebx, ebx
jne 0x5bf84f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5bf8a5
xor ecx, ecx
sub eax, 3
jb 0x5bf86b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bf8da
sar eax, 1
mov ebp, eax
jmp 0x5bf876
add ebx, ebx
jne 0x5bf876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bf844
inc ecx
add ebx, ebx
jne 0x5bf884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bf844
add ebx, ebx
jne 0x5bf891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bf886
jne 0x5bf8a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bf886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bf8c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bf8b6
jmp 0x5bf806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bf8c4
add edi, ecx
jmp 0x5bf806
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bf8e2
cmp byte [edi], 0x11
jne 0x5bf8e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5bf8e7
lea edi, [esi + 0x1b8000]
mov eax, dword [edi]
or eax, eax
je 0x5bf95f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2990d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x299254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bf914
mov ecx, edi
jns 0x5bf943
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x299258]
or eax, eax
je 0x5bf959
mov dword [ebx], eax
add ebx, 4
jmp 0x5bf931
call dword [esi + 0x299268]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5bf990
cmp al, 0xef
ja 0x5bf983
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5bf965
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5bf972
mov ebp, dword [esi + 0x29925c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5bf9c4
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x402e20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x14c
mov eax, dword [0x468888]
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push eax
push 0
push 0x143
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x18]
push ecx
push str.presets.toy
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x402f0f
mov dword [esp + 0xc], 1
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e78
sub eax, edx
lea edx, [esp + 0x44]
push edx
push 0
push 0x143
push ebp
mov byte [esp + eax + 0x50], cl
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ea0
mov edi, dword [0x4688e4]
sub eax, edx
mov esi, eax
mov eax, edi
cmp edi, esi
jb 0x402eb9
mov eax, esi
cmp dword [0x4688e8], 0x10
mov edx, dword [0x4688d4]
jae 0x402ecd
mov edx, 0x4688d4
lea ecx, [esp + 0x44]
call fcn.00401760
test eax, eax
jne 0x402eef
cmp edi, esi
jb 0x402eef
cmp edi, esi
setne al
test eax, eax
jne 0x402eef
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
inc dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402e71
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
push 0
push eax
push 0x14e
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
add esp, 0x14c
ret
Function at 0x405740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x18], 0x10
jb 0x40575b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x406e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
cmp edx, 0xffffffff
jne 0x406e21
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x24]
cmp dword [ecx], 0
je 0x406e4f
mov eax, dword [ebx + 0x34]
mov ecx, dword [ecx]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x406e4f
dec dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
lea esi, [ecx + 1]
mov dword [eax], esi
mov byte [ecx], dl
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x406fd6
cmp dword [ebx + 0x3c], 0
jne 0x406e82
push eax
movsx eax, dl
push eax
call fcn.0042804c
add esp, 8
cmp eax, 0xffffffff
je 0x406fd6
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x20], 0
mov byte [esp + 0x13], dl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 8
cmp ecx, 0x10
jae 0x406eaf
lea eax, [esp + 0x20]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov edx, eax
cmp edi, 0x10
jae 0x406ec8
lea edx, [esp + 0x20]
mov eax, edx
mov ecx, dword [ebx + 0x3c]
mov esi, dword [ecx]
lea edi, [esp + 0x14]
push edi
mov edi, dword [esp + 0x34]
add edx, edi
push edx
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x27]
push edx
lea eax, [ebx + 0x44]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
jl 0x406fcd
cmp eax, 1
jg 0x406f75
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp edi, 0x10
jae 0x406f12
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x406f43
cmp edi, 0x10
jae 0x406f23
lea eax, [esp + 0x20]
mov ecx, dword [ebx + 0x4c]
push ecx
push esi
push 1
push eax
call fcn.00428b8f
add esp, 0x10
cmp esi, eax
jne 0x406fcd
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x13]
mov byte [ebx + 0x41], 1
cmp dword [esp + 0x18], edx
jne 0x406fb8
test esi, esi
ja 0x406ebb
cmp dword [esp + 0x30], 0x20
jae 0x406fcd
push 0
mov eax, 8
lea edi, [esp + 0x20]
call fcn.00407dd0
jmp 0x406eb3
cmp eax, 3
jne 0x406fcd
mov eax, dword [ebx + 0x4c]
mov cl, byte [esp + 0x13]
call fcn.00405440
test al, al
je 0x406fa1
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
call fcn.004034c0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
or esi, 0xffffffff
call fcn.004034c0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
call fcn.004034c0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
call fcn.004034c0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4082e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ebx + 0x3c], 0
push esi
push edi
je 0x40840e
cmp byte [ebx + 0x41], 0
je 0x40840e
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4083fd
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 8
cmp ecx, 0x10
jae 0x40833c
lea eax, [esp + 0x10]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov edx, eax
cmp edi, 0x10
jae 0x408355
lea edx, [esp + 0x10]
mov eax, edx
mov ecx, dword [ebx + 0x3c]
mov esi, dword [ecx]
lea edi, [esp + 8]
push edi
mov edi, dword [esp + 0x24]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x44]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x408390
sub eax, 1
je 0x408394
sub eax, 2
lea ecx, [esp + 0xc]
jne 0x4083f8
call fcn.004034c0
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x41], 0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp edi, 0x10
jae 0x4083a7
lea ecx, [esp + 0x10]
mov esi, dword [esp + 8]
sub esi, ecx
je 0x4083d4
cmp edi, 0x10
jae 0x4083b8
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x4c]
push ecx
push esi
push 1
push eax
call fcn.00428b8f
add esp, 0x10
cmp esi, eax
jne 0x4083f4
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp byte [ebx + 0x41], 0
je 0x408405
test esi, esi
jne 0x408348
push esi
lea eax, [esi + 8]
lea edi, [esp + 0x10]
call fcn.00407dd0
jmp 0x408340
lea ecx, [esp + 0xc]
call fcn.004034c0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
call fcn.004034c0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov eax, 0x64
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00405770
mov edx, dword [esp + 0x94]
add esp, 8
xor ebx, ebx
push 0x7f00
push ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x40ee50
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0x45ba1c
call dword [sym.imp.USER32.dll_RegisterClassA]
test byte [0x4687cc], 2
mov dword [esp + 0x1c], 0x80010
je 0x40f3b8
mov dword [esp + 0x1c], 0x80018
mov ecx, 0x45ba10
mov edi, 0x4688ec
call fcn.00403a80
test al, al
jne 0x40f452
push 1
push 0x4687f4
push 0x4687f0
push edi
mov eax, str.skin_
lea edi, [esp + 0x54]
call fcn.0040bad0
add esp, 4
mov edi, str..png
lea esi, [esp + 0x34]
call fcn.0040bb50
push eax
call fcn.00413770
mov edi, 0x10
add esp, 0x10
mov esi, eax
cmp dword [esp + 0x40], edi
jb 0x40f41e
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00427d3a
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp dword [esp + 0x5c], edi
jb 0x40f442
mov edx, dword [esp + 0x48]
push edx
call fcn.00427d3a
add esp, 4
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp esi, ebx
jne 0x40f499
push 0x45c298
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x4687f4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0x4687f0
push eax
mov dword [esp + 0x2c], ebx
call fcn.004139f0
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4687f4]
imul eax, dword [0x4687f0]
mov ecx, esi
call fcn.0040e7d0
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call ebp
sub eax, dword [0x4687f0]
mov edi, dword [esp + 0x14]
add eax, 0xfffffff1
cmp edi, eax
jle 0x40f4c8
mov edi, eax
push 1
call ebp
mov ecx, dword [0x4687f4]
sub eax, ecx
lea edx, [eax - 0xf]
mov eax, dword [esp + 0x18]
cmp eax, edx
jle 0x40f4e1
mov eax, edx
mov edx, dword [esp + 0x8c]
push ebx
push edx
mov edx, dword [esp + 0x24]
push ebx
push ebx
push ecx
mov ecx, dword [0x4687f0]
push ecx
push eax
push edi
push 0x900a0000
push 0x45ba1c
push 0x45ba1c
push edx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
push esi
push edi
call fcn.0040e850
add esp, 8
test byte [0x4687cc], 4
je 0x40f534
push 0x13
push ebx
push ebx
push ebx
push ebx
push 1
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call fcn.00427d2f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
Function at 0x40f550
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x268
push ebx
push esi
push edi
lea eax, [esp + 0x168]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
lea eax, [esp + 0x168]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f588
sub eax, edx
push eax
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403770
push 4
push str..
lea eax, [esp + 0x14]
call fcn.00403660
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x40f5c2
lea eax, [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x40f5e0
mov ecx, 0x45c2a8
lea eax, [esp + 0x54]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40f610
cmp dl, bl
je 0x40f60c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40f610
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40f5f0
xor eax, eax
jmp 0x40f615
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40f620
test byte [esp + 0x28], 1
jne 0x40f62e
lea eax, [esp + 0x28]
push eax
push esi
call edi
test eax, eax
jne 0x40f5e0
jmp 0x40f630
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x24], 0x10
jb 0x40f64b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00427d3a
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x268
ret
Function at 0x40f660
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push 0x45ba1c
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
push 0
test esi, esi
je 0x40f6d5
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40f6c3
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40f6b3
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40f6bc
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0040f550
mov eax, dword [ebp + 8]
push eax
call fcn.0040f320
add esp, 4
push 0x45ba1c
push 4
push 0
push 4
push 0
mov edi, eax
push 0xffffffffffffffff
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
je 0x40f727
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40f727
push eax
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call esi
test eax, eax
je 0x40f783
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40f760
lea edx, [esp + 0x24]
push edx
call edi
lea eax, [esp + 0x24]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call esi
test eax, eax
jne 0x40f760
mov edi, dword [esp + 0x10]
call fcn.0040f550
test al, al
jne 0x40f7a9
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.004061c0
add esp, 4
call dword [sym.imp.ole32.dll_OleUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f7c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x14c
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
push str.lang.lng
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40f8bd
xor ebp, ebp
mov dword [esp + 0x10], ebp
lea esp, [esp]
lea eax, [esp + 0x44]
inc ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f7f8
sub eax, edx
mov byte [esp + eax + 0x40], cl
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x44]
push ecx
lea edx, [ebp + 0x7d0]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f828
mov edi, dword [0x4688c8]
sub eax, edx
mov esi, eax
mov eax, edi
cmp edi, esi
jb 0x40f841
mov eax, esi
cmp dword [0x4688cc], 0x10
mov edx, dword [0x4688b8]
jae 0x40f855
mov edx, 0x4688b8
lea ecx, [esp + 0x44]
call fcn.00401760
test eax, eax
jne 0x40f873
cmp edi, esi
jb 0x40f873
cmp edi, esi
setne al
test eax, eax
jne 0x40f873
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f7f0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x15c]
push 0
add ecx, 0x7d0
push ecx
add ebp, 0x7d0
push ebp
push 0x7d1
push edx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
pop edi
pop esi
pop ebp
add esp, 0x14c
ret
Function at 0x40f8d0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, dword [0x468838]
sub esp, 0x150
push ebp
push esi
push edi
push eax
push 0xbb9
push 0
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
push str.skin
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f90e
push 0
push 0xbb9
push 0xbb9
jmp 0x40f9f3
lea ecx, [esp + 0x18]
push ecx
push str.skin.png
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
push 0
cmp eax, 0xffffffff
je 0x40f8ff
push 0
push 0x800
mov ebp, 1
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [esp + 0x44]
inc ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f948
sub eax, edx
lea edx, [esp + 0x44]
push edx
mov byte [esp + eax + 0x44], cl
lea eax, [ebp + 0xbb8]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f971
mov edi, dword [0x468900]
sub eax, edx
mov esi, eax
mov eax, edi
cmp edi, esi
jb 0x40f98a
mov eax, esi
cmp dword [0x468904], 0x10
mov edx, dword [0x4688f0]
jae 0x40f99e
mov edx, 0x4688f0
lea ecx, [esp + 0x44]
call fcn.00401760
test eax, eax
jne 0x40f9bc
cmp edi, esi
jb 0x40f9bc
cmp edi, esi
setne al
test eax, eax
jne 0x40f9bc
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f940
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
push 0
add ecx, 0xbb8
push ecx
add ebp, 0xbb8
push ebp
push 0xbb9
push ebx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
pop edi
pop esi
pop ebp
add esp, 0x150
ret
Function at 0x40fa10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_CreateMenu]
push esi
push edi
call ebp
mov edi, eax
call ebp
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0x3e8
push 0x102
push edi
mov ebx, eax
call esi
push 0
push 0
push 0x800
push edi
call esi
mov eax, dword [0x468818]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push eax
push 0x3ea
push 0
push ebx
call esi
mov ecx, dword [0x46881c]
push ecx
push 0x3eb
push 0
push ebx
call esi
mov edx, dword [0x468820]
push edx
push 0x3ec
push 0
push ebx
call esi
mov eax, dword [0x468824]
push eax
push 0x3ee
push 0
push ebx
call esi
mov ecx, dword [0x468828]
push ecx
push 0x3ed
push 0
push ebx
call esi
mov edx, dword [0x46882c]
push edx
push 0x3ef
push 0
push ebx
call esi
mov eax, dword [0x468814]
push eax
push ebx
push 0x10
push edi
call esi
push str.lang
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fae4
call ebp
mov ebx, eax
push ebx
call fcn.0040f7c0
mov ecx, dword [0x468830]
add esp, 4
push ecx
push ebx
push 0x10
push edi
call esi
call ebp
mov ebx, eax
call fcn.0040f8d0
mov edx, dword [0x468834]
push edx
push ebx
push 0x10
push edi
call esi
mov eax, dword [0x46883c]
push eax
push 0x3f0
push 0
push edi
call esi
mov ecx, dword [0x468844]
push ecx
push 0x3f1
push 0
push edi
call esi
mov edx, dword [0x468848]
push edx
push 0x3e9
push 0
push edi
call esi
call ebp
push str.Fichier
push edi
mov esi, eax
push 0x10
push esi
call dword [sym.imp.USER32.dll_AppendMenuA]
test byte [0x4687cc], 1
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
je 0x40fb58
push 8
push 0x3ea
push esi
call edi
test byte [0x4687cc], 2
je 0x40fb6b
push 8
push 0x3eb
push esi
call edi
test byte [0x4687cc], 4
je 0x40fb7e
push 8
push 0x3ec
push esi
call edi
test byte [0x4687cc], 0x10
je 0x40fb91
push 8
push 0x3ee
push esi
call edi
test byte [0x4687cc], 8
je 0x40fba4
push 8
push 0x3ed
push esi
call edi
test byte [0x4687cc], 0x20
je 0x40fbb7
push 8
push 0x3ef
push esi
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x410d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
xor eax, eax
cmp dword [esp + 0x1c], 1
push ebx
setne al
push esi
mov esi, dword [esp + 0x28]
add eax, 3
mov dword [esp + 0x10], eax
lea eax, [esi + 7]
shr eax, 3
and eax, 3
je 0x410d32
mov ebx, 4
sub ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x410d3e
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x2c], 0
mov dword [esp + 8], 0
jbe 0x410e2b
push ebp
mov dword [esp + 0x10], 0
lea ebx, [ebx]
xor ebp, ebp
test esi, esi
jbe 0x410dfa
lea ebx, [ebx]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00428653
add esp, 4
mov ebx, eax
xor ecx, ecx
lea edx, [ecx + ebp]
cmp edx, esi
jae 0x410deb
cmp byte [esp + 0x34], 0
je 0x410d9f
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0xc]
dec edx
imul edx, esi
add edx, ecx
jmp 0x410da6
mov eax, dword [esp + 0x10]
lea edx, [eax + ecx]
mov esi, dword [esp + 0x24]
add edx, ebp
mov eax, 0x80
sar eax, cl
add edx, edx
add edx, edx
test ebx, eax
setg al
movzx eax, al
imul eax, dword [esp + 0x14]
add esi, eax
movzx eax, byte [esi]
mov byte [edx + edi], al
movzx eax, byte [esi + 1]
mov byte [edx + edi + 1], al
movzx eax, byte [esi + 2]
mov esi, dword [esp + 0x2c]
inc ecx
mov byte [edx + edi + 2], al
mov byte [edx + edi + 3], 0xff
cmp ecx, 8
jb 0x410d81
add ebp, 8
cmp ebp, esi
jb 0x410d70
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x410e13
mov ecx, dword [esp + 0x20]
push ecx
push 1
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.004294bd
add esp, 0x10
mov eax, dword [esp + 0xc]
add dword [esp + 0x10], esi
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x30]
jb 0x410d60
pop ebp
pop esi
pop ebx
add esp, 0x10
ret