joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4633f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x463496
cmp dword [ebx + 0x90], 0
jne 0x463490
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46336c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x463490
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x463456
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463490
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418e84
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463465
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4636b4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x48517c]
cmp dword [eax + 0x170], 0
je 0x463819
test bl, bl
jne 0x463767
cmp dword [esi + 0x98], 0
jne 0x46375c
mov eax, esi
call fcn.004661f4
push eax
push 0x4635c0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x46372d
mov eax, dword [0x48517c]
cmp byte [eax + 0xcf], 0
je 0x46372d
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x46372d
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x463716
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46375c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418e84
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46373c
inc dword [esi + 0x98]
jmp 0x463819
cmp dword [esi + 0x98], 0
jle 0x463819
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x463819
cmp dword [esi + 0x40], 0
je 0x4637c4
mov eax, dword [0x48517c]
cmp byte [eax + 0xcf], 0
je 0x4637c4
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x4637c4
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4637ad
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4637f3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418e84
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4637d3
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x458fe8]
call fcn.00406414
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4643d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x46443f
cmp byte [ebx + 0xcf], 0
jne 0x46443f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040553c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x46442c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46444c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
jmp 0x46444c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4659b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x465a22
mov eax, esi
call fcn.0044c5b0
test al, al
je 0x465a22
mov eax, dword [ebx + 0x80]
call fcn.0044c204
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465a22
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x465a16
push 0
mov eax, dword [ebx + 0x80]
call fcn.0044c204
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00443854
jmp 0x465a22
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00465800
pop esi
pop ebx
ret
Function at 0x479c44
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
push 0x479e38
call fcn.0047a42c
cmp eax, 0xa8af6bd2
je 0x479c5a
xor ebx, ebx
push 0xab
call fcn.0047a5e0
cmp eax, 0x5e
jle 0x479c6b
xor esi, esi
push 0x479e60
call fcn.0047a42c
cmp eax, 0xf3410558
je 0x479c84
mov edi, dword [0x47fcdc]
mov edi, dword [edi]
push 0x479e88
call fcn.0047a42c
cmp eax, 0x23
jle 0x479d7f
jmp 0x479d75
push 0x31e8c116
push 0x5e8ae303
push 0x479e94
call fcn.0047a198
cmp eax, 0x60
jle 0x479d63
cmp word [edi], 0x20
je 0x479d26
push 0x53
call fcn.0047a5e0
cmp eax, 0x29
jle 0x479d63
push 0x693a02f9
push 0x2a8e7231
push 0x479ea8
call fcn.0047a198
cmp eax, 0x8605cf88
je 0x479d63
cmp word [edi], 0x22
jne 0x479cf3
inc esi
jmp 0x479d63
push 0x7ab9e125
push 0x6ac6707
push 0x479ec8
call fcn.0047a198
cmp eax, 0xa8a8d148
jne 0x479d1d
push 0x2c9e1baa
call fcn.0047a75c
cmp eax, 0x25
jle 0x479d63
cmp esi, 2
jl 0x479d63
mov bl, 1
jmp 0x479d63
push 0x1aa552eb
push 0x1e529e2e
push 0x479edc
call fcn.0047a198
cmp eax, 0x25
jg 0x479d5a
push 0x3f51746e
push 0x54946c15
push 0x479edc
call fcn.0047a198
cmp eax, 0xa13d9b34
je 0x479d63
test esi, esi
jne 0x479d63
mov esi, 2
push 0xb7
call fcn.0047a5e0
cmp eax, 0x5a
jle 0x479d75
add edi, 2
cmp word [edi], 0
jne 0x479c9c
push 0x479ef8
call fcn.0047a42c
cmp eax, 0x30
jg 0x479e24
mov eax, 0x407a94
mov edx, dword [0x47fe90]
mov dword [edx], eax
mov eax, 0x407800
mov edx, dword [0x47fdc8]
mov dword [edx], eax
push dword [sub.kernel32.dll_EnumCalendarInfoA]
push 0x4005
push 0x9db31542
push 0x5c70ef2b
call fcn.00479a34
cmp eax, 0x3d
jg 0x479dd1
push dword [0x407a54]
mov eax, sub.kernel32.dll_SetLastError
test eax, eax
jne 0x479dfb
push 0x4005
push 0xd50f9e07
push 0xbd63a33e
call fcn.00479a34
cmp eax, 0xeb46bbbf
jne 0x479dfb
push dword [0x407890]
push 0x4129da0d
push 0x4deecd35
push 0x479f10
call fcn.0047a198
cmp eax, 0x5b
jg 0x479e1a
push dword [0x4077b8]
mov eax, 0x407aa4
cmp eax, 0x1ac7d9aa
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40b850
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5bb250]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5bb250]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407180
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.0040b770
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40b8cd
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.00543e90
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40b8f6
push dword [esp + 0x10]
call fcn.0053ba8c
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4114f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
mov eax, 0x55555556
mov dword [ebp - 8], ebx
imul ebx
push esi
mov esi, edx
mov eax, ebx
shr esi, 0x1f
add esi, edx
push edi
lea ecx, [esi + esi*2]
xor esi, esi
sub eax, ecx
lea ecx, [ebx + 2]
mov dword [ebp - 0xc], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax*4 + 1]
push eax
call fcn.00520986
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4115e3
mov edi, edi
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
mov edx, edi
sub edx, eax
jne 0x411575
movzx eax, byte [edi + ecx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
inc esi
jmp 0x4115d7
cmp edx, 1
jne 0x41159e
mov eax, dword [ebp - 4]
movzx ecx, byte [edi + eax - 1]
movzx eax, byte [edi + eax]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 4]
mov byte [ebx + esi], al
inc esi
jmp 0x4115d7
cmp edx, 2
jne 0x4115d7
mov edx, dword [ebp - 4]
movzx ecx, byte [edi + edx - 1]
movzx eax, byte [edi + edx]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edx
mov byte [ebx + esi], al
movzx eax, byte [edi + edx]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], al
add esi, 2
mov eax, dword [ebp - 8]
inc edi
cmp edi, eax
jl 0x411550
mov edx, dword [ebp - 0xc]
cmp edx, 1
jne 0x411614
movzx eax, byte [ecx + eax - 1]
and eax, 3
shl eax, 4
pop edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
mov eax, ebx
mov word [ebx + esi + 1], 0x3d3d
mov byte [ebx + esi + 3], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x41163b
movzx eax, byte [ecx + eax - 1]
and eax, 0xf
pop edi
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
mov eax, ebx
mov word [ebx + esi + 1], 0x3d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [ebx + esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411900
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0053e720
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x4119f7
test ebx, ebx
je 0x4119f7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4119f7
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4119f7
cmp eax, 0x2000
ja 0x4119f7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push edi
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4119e4
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x594348
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4119e4
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
mov eax, dword [ebp + 8]
push 0x59434c
dec eax
push eax
push ebx
call fcn.00544ed3
add esp, 0x1c
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret

Function at 0x411be0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
xor eax, eax
test edi, edi
je 0x411c70
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x26
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411c6e
lea eax, [ebp - 0x20c]
push eax
push 0x594340
push 0x103
push edi
call fcn.00544ed3
add esp, 0x10
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x411e61
cmp word [esi], 0
je 0x411e61
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x411de7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
push esi
push 0x594340
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x411e61
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x411e49
lea ecx, [ebp - 0x20c]
call fcn.00411da0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x411e90
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x5bb250]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x412049
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412049
push 0x24c
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.0053ca90
xor eax, eax
push 0x206
push eax
mov word [esp + 0x47c], ax
lea eax, [esp + 0x47e]
push eax
call fcn.0053ca90
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x480]
add esp, 0x18
push 0x5943c4
push esi
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412049
mov ecx, 0x5943cc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f66
test dx, dx
je 0x411f62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f66
add eax, 4
add ecx, 4
test dx, dx
jne 0x411f40
xor eax, eax
jmp 0x411f6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412006
mov eax, 0x5943d0
lea ecx, [esp + 0x3c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x411fa6
test dx, dx
je 0x411fa2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x411fa6
add ecx, 4
add eax, 4
test dx, dx
jne 0x411f80
xor eax, eax
jmp 0x411fab
sbb eax, eax
or eax, 1
test eax, eax
je 0x412006
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [esp + 0x3c]
test byte [esp + 0x10], 0x10
push eax
push esi
lea eax, [esp + 0x268]
push eax
je 0x411ff4
call edi
lea ecx, [esp + 0x260]
call fcn.00411e90
jmp 0x412006
call edi
lea eax, [esp + 0x260]
push eax
call fcn.00412670
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411f33
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x412060
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x418], eax
test eax, eax
je 0x412207
test esi, esi
je 0x412207
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp + 0x10], edi
je 0x4120b9
push esi
call ebx
test eax, eax
je 0x4120b9
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0053ca90
push esi
push 0x594340
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x414]
call fcn.00411da0
test eax, eax
je 0x4121f4
cmp dword [ebp + 0x10], edi
je 0x412141
push esi
call ebx
test eax, eax
jne 0x4121f4
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
mov edi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
push esi
push str._s.kr.bak
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x412192
lea eax, [ebp - 0x20c]
push eax
call fcn.00412670
add esp, 4
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
mov dword [ebp - 0x41c], eax
call ebx
test eax, eax
jne 0x4121bd
push eax
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp dword [ebp - 0x41c], 0
je 0x4121f4
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x4121eb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
push eax
call fcn.00412670
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x412220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x5943ec
push ecx
mov dword [ebp - 0xc], edx
xor ebx, ebx
call fcn.00545072
mov esi, eax
add esp, 8
test esi, esi
je 0x4122d3
push edi
push 2
push ebx
push esi
call fcn.00543369
push esi
call fcn.0054377c
push ebx
mov edi, eax
push ebx
push esi
mov dword [ebp - 4], edi
call fcn.00543369
lea eax, [edi + 1]
push eax
mov dword [ebp - 8], eax
call fcn.00520986
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4122c9
push dword [ebp - 8]
push ebx
push edi
call fcn.0053ca90
push esi
push dword [ebp - 4]
push 1
push edi
call fcn.0054322e
push 0x5943f4
push dword [ebp - 0xc]
call fcn.00545072
add esp, 0x24
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4122c0
push eax
push dword [ebp - 4]
push 1
push edi
call fcn.00543941
push dword [ebp - 0xc]
call fcn.00542ad9
add esp, 0x14
mov ebx, 1
push edi
call fcn.0053c06b
add esp, 4
push esi
call fcn.00542ad9
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4124a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push ebx
mov dword [ebp - 0x870], edi
xor esi, esi
mov dword [ebp - 0x874], ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41265c
test edi, edi
je 0x41265c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x5943c4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x24c
lea eax, [ebp - 0x868]
mov dword [ebp - 0x86c], esi
push esi
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41265c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x840]
push 0x5943cc
push eax
call fcn.0053d642
add esp, 8
test eax, eax
je 0x412630
lea eax, [ebp - 0x840]
push 0x5943d0
push eax
call fcn.0053d642
add esp, 8
test eax, eax
je 0x412630
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0053ca90
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x840]
add esp, 0xc
push eax
push dword [ebp - 0x874]
lea eax, [ebp - 0x414]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push eax
call esi
test byte [ebp - 0x86c], 0x10
je 0x412612
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.004124a0
jmp 0x41262a
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00412060
add esp, 0xc
mov esi, eax
test esi, esi
je 0x412642
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x412550
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x412670
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4126a8
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4126d6
mov edi, 1
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
push esi
push str._s.kr.del
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41273b
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x412763
push 4
push 0
lea eax, [ebp - 0x20c]
mov edi, 1
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053e21c
mov esp, ebp
pop ebp
ret