joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41649c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
mov eax, dword [0x5586c4]
test eax, eax
jne 0x416544
push 0x94
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b01f0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4164e3
and dword [0x5586c4], eax
jmp 0x416544
cmp dword [ebp - 0xc], 0
jne 0x4164ee
xor eax, eax
inc eax
jmp 0x416535
push 2
pop ecx
cmp dword [ebp - 0xc], ecx
jne 0x41651d
cmp dword [ebp - 0x18], 4
jne 0x416501
push 6
pop eax
jmp 0x416535
push 5
pop eax
cmp dword [ebp - 0x18], eax
jne 0x416535
cmp dword [ebp - 0x14], 0
jne 0x416513
push 7
jmp 0x4164fe
cmp dword [ebp - 0x14], 1
jne 0x416535
push 8
jmp 0x4164fe
push 4
pop eax
cmp dword [ebp - 0x18], eax
jne 0x41653c
cmp dword [ebp - 0x14], 0xa
jne 0x41652f
push 3
jmp 0x4164fe
cmp dword [ebp - 0x14], 0x5a
jne 0x41653c
mov dword [0x5586c4], eax
jmp 0x416544
mov dword [0x5586c4], ecx
mov eax, ecx
add ebp, 0x78
leave
ret

Function at 0x416d90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
xor ebp, ebp
cmp eax, ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
je 0x416db0
mov ecx, dword [esi + 0xc]
cmp ecx, ebp
je 0x416db0
push eax
push ecx
call edi
mov ecx, dword [esi + 0x20]
cmp ecx, ebp
je 0x416dc2
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x416dc2
push ecx
push eax
call edi
mov eax, dword [esi + 0x14]
cmp eax, ebp
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x416dd5
push eax
call ebx
mov dword [esi + 0x14], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x416de2
push eax
call ebx
mov dword [esi + 0x18], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x416df5
push eax
call edi
mov dword [esi + 0xc], ebp
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x416e02
push eax
call edi
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x416e0f
push eax
call ebx
mov dword [esi + 0x64], ebp
cmp dword [esp + 0x14], ebp
je 0x416e63
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
test edi, 0x80000
je 0x416e63
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, eax
cmp ebx, ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
je 0x416e46
push 0
push dword [esi + 4]
call ebp
and edi, 0xfff7ffff
push edi
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
test ebx, ebx
je 0x416e63
push 5
push dword [esi + 4]
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x419126
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
call fcn.004b0250
pop ecx
xor ecx, ecx
xor edx, edx
test eax, eax
jbe 0x419158
movzx ebx, byte [edx + esi]
mov edi, ecx
shr edi, 9
xor edi, ecx
shr edi, 7
xor edi, ebx
shl ecx, 5
xor ecx, edi
inc edx
cmp edx, eax
jb 0x41913e
mov eax, ecx
xor edx, edx
mov ecx, 0x101
div ecx
mov edi, dword [ebp + 0xc]
lea ebx, [edi + edx*4 + 0x68]
mov esi, dword [ebx]
jmp 0x419189
push dword [ebp + 0x10]
push dword [esi]
call fcn.004b2330
test eax, eax
pop ecx
pop ecx
jne 0x419186
mov eax, dword [ebp + 0x14]
cmp dword [esi + 8], eax
je 0x4191e0
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x41916e
push 0x10
push dword [ebp + 8]
call fcn.0045842e
push dword [ebp + 0x10]
mov esi, eax
call fcn.004b0250
inc eax
push eax
push dword [ebp + 8]
call fcn.0045842e
push dword [ebp + 0x10]
mov dword [esi], eax
push eax
call fcn.004b0430
mov eax, dword [edi + 0x60]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebx]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx], esi
add esp, 0x1c
and dword [eax], 0
mov eax, dword [edi + 0x60]
lea ecx, [eax + 1]
mov dword [edi + 0x60], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov eax, dword [esi + 4]
jmp 0x4191db

Function at 0x41ef56
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.004017e5
test eax, eax
je 0x41ef73
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41ef77
xor eax, eax
jmp 0x41efef
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, esi
call fcn.0041e680
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
call fcn.0041e751
add esp, 0xc
test eax, eax
je 0x41efe4
cmp dword [ebp - 4], 0
je 0x41efe4
push dword [ebp - 4]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 4], eax
je 0x41efe4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
call fcn.0041e751
add esp, 0xc
test eax, eax
push edi
jne 0x41eff4
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, esi
call fcn.0041e680
xor esi, esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop edi
pop esi
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 4]
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
xor esi, esi
inc esi
jmp 0x41efe6

Function at 0x420742
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
call fcn.004017e5
test eax, eax
je 0x420758
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42075c
xor eax, eax
jmp 0x420781
push esi
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call fcn.004205b4
add esp, 0xc
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
ret 8
Function at 0x421216
Capabilities:
Create directory

Disassembly:
mov eax, 0x5015b7
call fcn.004b00d0
sub esp, 0x10c
push ebx
push esi
push edi
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
jne 0x421257
lea eax, [ebp + 8]
push eax
call fcn.00403e48
pop ecx
mov byte [ebp - 4], 1
jmp 0x4212b1
push str.movies
push esi
call fcn.004b4e1a
test eax, eax
pop ecx
pop ecx
jne 0x4212ca
mov eax, dword [0x557d00]
cmp eax, ebx
je 0x421322
mov eax, dword [eax + 4]
jmp 0x421292
mov ecx, eax
mov eax, dword [eax]
lea esi, [ecx + 8]
push 0x42
pop ecx
lea edi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x14], 1
je 0x42129b
cmp eax, ebx
jne 0x42127a
jmp 0x421322
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004039dc
pop ecx
pop ecx
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.004016ca
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040141b
jmp 0x421322
push str.attachments
push esi
call fcn.004b4e1a
test eax, eax
pop ecx
pop ecx
jne 0x42130e
lea eax, [ebp - 0x10]
push eax
call fcn.00420784
test eax, eax
pop ecx
je 0x421322
push dword [ebp - 0x10]
call fcn.0040191f
test eax, eax
pop ecx
jne 0x421322
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x421322
lea ecx, [ebp - 0x10]
call fcn.004014e5
jmp 0x421322
push esi
call fcn.0040191f
test eax, eax
pop ecx
je 0x421322
push esi
lea ecx, [ebp - 0x10]
call fcn.00401711
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x4213a3
push 0x2f
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0042041e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
cmp byte [ecx + eax - 1], 0x2f
je 0x42134d
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.00402c98
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push str.file:___
push eax
call fcn.00402f09
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004016ca
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040141b
call fcn.00409d79
mov esi, eax
cmp esi, ebx
je 0x4213a3
lea ecx, [ebp - 0x10]
call fcn.004029f2
mov edi, eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0xbc]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4213bd
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5015f9
call fcn.004b00d0
sub esp, 0x24
push ebx
push esi
push edi
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, 0x104
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004203a6
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0041f1c6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402910
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402910
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00402910
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00402910
mov byte [ebp - 4], 5
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push 1
lea eax, [ebp - 0x24]
push 0x509a98
push eax
mov byte [ebp - 4], 6
call fcn.004016b7
mov esi, dword [ebp - 0x24]
add esp, 0xc
push dword [esi - 0xc]
lea ecx, [ebp - 0x28]
push esi
call fcn.00402cc3
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x509a9c
push eax
call fcn.004016b7
add esp, 0xc
push ebx
mov edi, dword [ebp - 0x28]
push edi
push dword [ebp - 0x10]
call fcn.004f4b70
test eax, eax
jne 0x4214e9
lea ecx, [esi - 0x10]
call fcn.0040141b
lea ecx, [edi - 0x10]
call fcn.0040141b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
jmp 0x4215a8
push 0x509aac
lea ecx, [ebp - 0x20]
call fcn.0040301d
push 0x509ac8
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x509ab4
push eax
call fcn.004016b7
add esp, 0x10
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
call fcn.004f4b70
test eax, eax
je 0x42157f
lea ecx, [ebp - 0x2c]
mov eax, 0x208
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.004015ef
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], eax
call fcn.0041f1c6
cmp dword [ebp - 0x30], 0
jne 0x421572
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x421572
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00407c2e
test al, al
pop ecx
pop ecx
je 0x42157f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f4b70
lea ecx, [esi - 0x10]
call fcn.0040141b
lea ecx, [edi - 0x10]
call fcn.0040141b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040141b
lea ecx, [ebx - 0x10]
call fcn.0040141b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x422132
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
call fcn.004017e5
test eax, eax
je 0x422148
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42214c
xor eax, eax
jmp 0x422181
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x422177
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x422177
mov ecx, dword [esp + 8]
push eax
call fcn.00401711
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
inc eax
pop esi
ret 4

Function at 0x4250a6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x100
push 1
push esi
mov dword [ebp - 4], esi
call fcn.004b0d51
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x425117
push edi
push dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xff
jl 0x425110
add dword [ebp - 4], esi
push dword [ebp - 4]
push ebx
call fcn.004b2042
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x425114
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 4]
dec ecx
cmp eax, ecx
jge 0x4250e2
mov eax, ebx
jmp 0x425116
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4254f7
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
mov esi, 0x400
push 1
push esi
mov ebx, esi
call fcn.004b0d51
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x42554e
push ebp
push dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push esi
push edi
call ebp
cmp eax, 0x3fe
jl 0x425547
add ebx, esi
push ebx
push edi
call fcn.004b2042
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x42554b
push dword [esp + 0x14]
push ebx
push edi
call ebp
lea ecx, [ebx - 2]
cmp eax, ecx
jge 0x425527
mov eax, edi
jmp 0x42554d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42a5c7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
xor ebx, ebx
inc ebx
cmp dword [eax + 0xc], 0
jl 0x42a67f
jg 0x42a5eb
cmp dword [eax + 8], ebx
jb 0x42a67f
add eax, 0x10
cmp dword [eax], 4
jne 0x42a67f
push edi
push eax
push dword [ebp + 8]
call fcn.0044c683
mov edi, eax
push 0x3a
push edi
call fcn.004b17f0
lea ecx, [edi + 1]
add esp, 0x10
cmp eax, ecx
jne 0x42a671
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
movsx eax, byte [edi]
push eax
call fcn.004b2ed9
sub eax, 0x61
pop ecx
js 0x42a670
mov edx, esi
mov ecx, eax
shr edx, cl
test bl, dl
je 0x42a670
push 4
push ebx
push dword [ebp + 8]
call fcn.00418b73
mov esi, eax
movsx eax, byte [edi]
push eax
call fcn.004b1be3
and byte [esi + 3], 0
push esi
push dword [ebp + 0xc]
mov byte [esi], al
push dword [ebp + 0x14]
mov byte [esi + 1], 0x3a
push dword [ebp + 8]
mov byte [esi + 2], 0x5c
call fcn.0049cb3d
add esp, 0x20
mov dword [ebp - 4], ebx
pop esi
push edi
call fcn.00418c05
cmp dword [ebp - 4], 0
pop ecx
pop edi
jne 0x42a684
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop ebx
leave
ret

Function at 0x42b720
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [esp + 0x10], edi
jbe 0x42b756
mov eax, dword [esp + 0xc]
movzx eax, word [eax + esi*2]
push eax
call fcn.004b2560
pop ecx
mov ecx, edi
shr ecx, 9
xor ecx, edi
movzx eax, ax
shr ecx, 7
xor eax, ecx
shl edi, 5
xor edi, eax
inc esi
cmp esi, dword [esp + 0x10]
jb 0x42b72c
mov eax, edi
pop edi
pop esi
ret

Function at 0x42e5f4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push pe_nt_image_headers32
push 1
push dword [ebp + 8]
call fcn.00418b73
xor edi, edi
add esp, 0xc
cmp dword [ebp + 0x10], edi
mov esi, eax
je 0x42e6e4
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call ebx
cmp eax, 0xffffffff
jne 0x42e641
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42e6e4
push 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.004b01f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov edi, 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push edi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0042e4d1
push esi
call fcn.004b0250
push esi
mov edi, eax
call fcn.0042e5d0
add esp, 0x14
test eax, eax
jne 0x42e6a9
lea eax, [edi + esi - 1]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x42e6a6
cmp cl, 0x2f
jne 0x42e6a9
and byte [eax], 0
push esi
call ebx
mov edi, dword [ebp + 8]
shr eax, 4
and eax, 1
push str.Folder
push edi
mov dword [esi + 0x104], eax
call fcn.0042449a
shl eax, 4
add eax, dword [edi + 0x42c]
push esi
mov eax, dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 0xc]
push edi
call fcn.0049cb3d
add esp, 0x18
jmp 0x42e6f4
push esi
call fcn.00418c05
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [eax], 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e96a
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes

Disassembly:
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42e97d
test al, 0x10
jne 0x42e98e
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42e98e
ret
jmp fcn.0042e722

Function at 0x42ea0f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x42ea74
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42ea52
xor edi, edi
jmp 0x42ea68
push 1
push esi
push esi
push dword [ebp - 4]
call fcn.004b28e0
mov edi, eax
xor eax, eax
mov esi, edx
add edi, ebx
adc esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ea7a
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret
Function at 0x42ebf9
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push edi
call fcn.004230c4
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.004b0430
lea esi, [ebp - 0x118]
call fcn.0042e6f9
lea eax, [ebp - 0x118]
push 0x507944
push eax
call fcn.004b0440
add esp, 0x18
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42eded
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x22c]
push 0x507940
shr esi, 4
push eax
and esi, 1
call fcn.004b2330
test eax, eax
pop ecx
pop ecx
je 0x42edbe
lea eax, [ebp - 0x22c]
push 0x50793c
push eax
call fcn.004b2330
test eax, eax
pop ecx
pop ecx
je 0x42edbe
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
xor eax, esi
je 0x42edbe
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.004b0430
lea esi, [ebp - 0x118]
call fcn.0042e6f9
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004b0440
lea eax, [ebp - 0x118]
push eax
call fcn.004b0250
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0044c6cf
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.004232b4
add esp, 0x38
inc ebx
jmp 0x42edbe
mov esi, dword [ebp - 0x258]
lea eax, [ebp - 0x22c]
push 0x507940
shr esi, 4
push eax
and esi, 1
call fcn.004b2330
test eax, eax
pop ecx
pop ecx
je 0x42edbe
lea eax, [ebp - 0x22c]
push 0x50793c
push eax
call fcn.004b2330
test eax, eax
pop ecx
pop ecx
je 0x42edbe
xor eax, eax
cmp dword [ebp + 0x10], eax
sete al
xor eax, esi
je 0x42edbe
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.004b0430
lea esi, [ebp - 0x118]
call fcn.0042e6f9
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004b0440
lea eax, [ebp - 0x118]
push eax
call fcn.004b0250
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0044c6cf
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.004232b4
add esp, 0x38
inc ebx
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42ed13
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
push dword [ebp - 4]
mov eax, ebx
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
leave
ret
Function at 0x42ee87
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
push dword [ebp + 8]
xor ebx, ebx
call fcn.004230c4
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.004b0430
lea esi, [ebp - 0x118]
call fcn.0042e6f9
lea eax, [ebp - 0x118]
push 0x50ba38
push eax
call fcn.004b0440
add esp, 0x18
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42efe8
test byte [ebp - 0x258], 0x10
jne 0x42efb9
mov esi, dword [ebp + 0x14]
push 0x104
lea eax, [ebp - 0x460]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebp + eax*2 - 0x462], di
mov eax, esi
cmp word [eax], di
je 0x42efb9
lea eax, [ebp - 0x460]
mov ecx, esi
call fcn.0042edf1
test eax, eax
jne 0x42ef54
push esi
call fcn.004b2314
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
pop ecx
jne 0x42ef31
jmp 0x42efb9
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.004b0430
lea esi, [ebp - 0x118]
call fcn.0042e6f9
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004b0440
lea eax, [ebp - 0x118]
push eax
call fcn.004b0250
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0044c6cf
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004232b4
add esp, 0x38
inc ebx
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42eef1
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 8]
push dword [ebp - 4]
mov eax, ebx
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret