joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101179e6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x1015bdd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.1007d080
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [0x1016af88], 0
mov esi, eax
je 0x1003f9cf
lea eax, [ebp - 0x218]
push eax
push str.CDealWhatsApp::EnumLogFile_1___s_
push str.whatsapp
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
lea ecx, [esi - 1]
cmp ecx, 0x102
ja 0x1003fae3
mov edx, 0x103
sub edx, esi
push edx
lea eax, [ebp - 0x218]
push str.WhatsAppLocal_Storageleveldb
push eax
call fcn.1007f390
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.100702a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.100c4b20
xor esi, esi
add esp, 8
cmp dword [ebp - 0x224], esi
jle 0x1003fad1
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + esi*4]
mov eax, ecx
mov eax, dword [eax - 8]
lea ecx, [ecx + eax*2 - 8]
push str..log
push ecx
call fcn.1007d6f5
add esp, 8
test eax, eax
je 0x1003fa5f
inc esi
cmp esi, dword [ebp - 0x224]
jl 0x1003fa30
jmp 0x1003fad1
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + esi*4]
push 0x103
push eax
lea eax, [edi + 0x2c]
push eax
call fcn.1007ce61
add esp, 0xc
cmp dword [0x1016af88], 0
je 0x1003faa6
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + esi*4]
push edx
push str.CDealWhatsApp::EnumLogFile_2___s_
push str.whatsapp
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
push 1
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x234]
call fcn.10077850
mov byte [ebp - 4], 1
mov dword [edi + 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.100778b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100702b0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007ceab
mov esp, ebp
pop ebp
ret
Function at 0x10040110
Capabilities:
Read file on windows

Disassembly:
call fcn.1003f830
mov ecx, eax
jmp fcn.1003fd40
Function at 0x10049750
Capabilities:
Get common file path

Disassembly:
cmp dword [ecx], 0
jne 0x10049790
push esi
push 0
push 8
lea esi, [ecx + 4]
push esi
push 0
mov dword [ecx], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [0x1016af88], 0
je 0x1004978f
push esi
push str.CDealZalo::Init__RecentPath:__s_
push str.zalo
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
pop esi
ret

Function at 0x1004b040
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011897b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1015bdd0]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x1004b1a5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004b081
sub eax, edx
sar eax, 1
je 0x1004b1a5
cmp dword [0x1016af88], 0
je 0x1004b0b9
push edi
push str.CBaseImageCtrl::BackupFile____s_
push str.ImageCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
test ebx, ebx
je 0x1004b1a5
push str.file:___
push edi
call fcn.1007dcd6
mov esi, eax
add esp, 8
test esi, esi
je 0x1004b0da
add esi, 0x10
jmp 0x1004b0dc
mov esi, edi
push 0x5c
push esi
call fcn.1007dd37
add esp, 8
test eax, eax
je 0x1004b1a5
lea eax, [ebp - 0x228]
push eax
call fcn.10054d40
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.100b86c0
mov dword [ebp - 4], 0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.1007d080
mov edx, dword [ebp - 0x22c]
add esp, 0x18
push edx
call fcn.1000d9d0
push eax
push str._s_s.dbk
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.1007e032
add esp, 0x14
push 0
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
mov dword [ebx], edx
mov edx, dword [ebp - 0x21c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.1006a980
mov eax, 1
jmp 0x1004b1a7
xor eax, eax
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.1007ceab
mov esp, ebp
pop ebp
ret
Function at 0x1004b8e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1015bdd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [0x10175374]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
test ebx, ebx
je 0x1004ba61
cmp dword [0x1016af88], 0
je 0x1004b934
push edi
push ebx
push str.CBaseImageCtrl::ImageCtrl_1___s____d_
push str.ImageCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x18
push ebx
call fcn.1004b780
add esp, 4
test eax, eax
je 0x1004ba61
call fcn.1004b300
test eax, eax
jne 0x1004ba61
mov dword [ebp - 0x28], 1
cmp esi, 0xffffffff
je 0x1004b97a
test esi, esi
je 0x1004b97a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x1004b973
cmp eax, 0xffffffff
jne 0x1004b97a
mov dword [ebp - 0x28], 0
mov ecx, dword [0x10175378]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp ecx, eax
je 0x1004b9a6
cmp dword [ebp - 0x28], eax
je 0x1004b9aa
lea ecx, [ebp - 0x14]
push ecx
push ebx
call fcn.1004b040
add esp, 8
jmp 0x1004b9aa
cmp edi, eax
je 0x1004b9d9
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push esi
call fcn.1004aec0
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
push esi
call fcn.1004d770
mov ecx, eax
call fcn.1004df20
call fcn.1004d670
cmp dword [0x1016af88], 0
mov esi, dword [0x101754e4]
mov edi, dword [0x101754e8]
je 0x1004ba0e
push edi
push esi
push str.CBaseImageCtrl::ImageCtrl_2__SnapShotLog:_d__SnapShotBackup:_d_
push str.ImageCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x18
xor eax, eax
cmp esi, eax
je 0x1004ba4d
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x1004ba36
cmp dword [ebp - 0x28], eax
je 0x1004ba36
lea edx, [ebp - 0x24]
push edx
push ebx
call fcn.1004b040
add esp, 8
mov ecx, dword [ebp - 0x2c]
push 0
lea eax, [ebp - 0x24]
push eax
push str.Screenshot.png
push ecx
call fcn.1004aec0
add esp, 0x10
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ceab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007ceab
mov esp, ebp
pop ebp
ret
Function at 0x1004bfd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10118bee
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1015bdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.CBasePolicy.0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [eax], vtable.CBaseFileCtrl.0
mov dword [ebp - 4], 1
lea edx, [eax + 4]
mov dword [ebp - 0x14], edx
mov dword [edx], vtable.CBasePolicy.0
mov byte [ebp - 4], 2
mov dword [edx], vtable.CBaseImageCtrl.0
mov byte [ebp - 4], 3
mov dword [eax + 8], vtable.ClipFormatHlp.0
mov byte [ebp - 4], 4
mov dword [eax], vtable.CClipBoardCtrl.2.0
mov dword [edx], vtable.CClipBoardCtrl.1.0
mov dword [eax + 8], vtable.CClipBoardCtrl.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1004c2e0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
xor edi, edi
mov dword [ebp - 8], esi
call fcn.1004c1f0
add esp, 4
test eax, eax
jne 0x1004c33e
push 1
push str.im_clipboard_enable
call fcn.1000e8f0
add esp, 8
mov edi, eax
cmp dword [0x1016af88], esi
je 0x1004c4c4
push edi
push str.CClipBoardCtrl::Ctrl_Unknown__Filter:__d_
push str.ClipBoardCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dword [ebp - 8], 0x10000
je 0x1004c386
cmp dword [0x10175374], esi
jne 0x1004c357
cmp dword [0x10175380], esi
je 0x1004c386
xor edi, edi
cmp dword [0x1016af88], esi
je 0x1004c4c4
push str.CClipBoardCtrl::Ctrl_WhilteList___
push str.ClipBoardCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetFocus]
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov esi, eax
call fcn.100221f0
add esp, 0xc
test eax, eax
jne 0x1004c3bb
push eax
lea edx, [ebp - 4]
push edx
push esi
call fcn.100221f0
add esp, 0xc
cmp dword [0x1016af88], edi
je 0x1004c3e2
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
push str.CClipBoardCtrl::Ctrl_1_WND___08x__08x____08x_
push str.ClipBoardCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x1c
test byte [ebp - 8], 1
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
je 0x1004c439
cmp dword [0x1016af88], edi
je 0x1004c416
mov ecx, dword [0x10175374]
push ecx
push str.CClipBoardCtrl::Ctrl_BITMAP__Ctrl:__d_
push str.ClipBoardCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
push 2
call esi
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x1004c423
mov ecx, ebx
push 2
push ecx
push eax
call fcn.1004b410
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004c4c3
test byte [ebp - 8], 2
je 0x1004c481
cmp dword [0x1016af88], 0
je 0x1004c461
push str.CClipBoardCtrl::Ctrl_FILE
push str.ClipBoardCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x1004c4c3
push 0xf
call esi
test eax, eax
je 0x1004c47d
mov edx, dword [ebp - 4]
push 0
push edx
push eax
call fcn.1004aa80
mov edi, eax
test edi, edi
jne 0x1004c4c3
test dword [ebp - 8], 0x20000
je 0x1004c4c3
cmp dword [0x10175374], 0
jne 0x1004c49c
cmp dword [0x10175380], 0
je 0x1004c4c3
cmp dword [0x1016af88], 0
mov edi, 1
je 0x1004c4c3
push str.CClipBoardCtrl::Ctrl_BlackList___
push str.ClipBoardCtrl
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x10
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004c5f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
call esi
push 1
mov ebx, eax
call esi
push 0
push 0
push 0
push 0x10135698
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 4]
push 0xcc0020
push 0
push 0
push esi
push ecx
push ebx
push 0
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 8]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.10021f40
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004f910
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1004fab2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1004fab2
call fcn.1000e1c0
test eax, eax
je 0x1004fab2
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], 0x7d000
mov dword [ebp - 0x14], 0x4e2000
mov dword [ebp - 0x10], 0x9c4000
cmp dword [0x1016af88], ebx
je 0x1004f976
push esi
push edi
push str.SaveBmp2Bng_1__x__s
push str.IMHookAPI
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x18
mov dword [ebp - 4], ebx
lea esp, [esp]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax*4 - 0x18]
push esi
mov dword [ebp - 8], 0
call fcn.1007dc71
mov edi, eax
add esp, 4
test edi, edi
je 0x1004fa76
push esi
push 0
push edi
call fcn.1007d080
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push esi
push edi
push edx
call fcn.1000e220
add esp, 0x1c
test eax, eax
je 0x1004fa69
cmp dword [0x1016af88], 0
je 0x1004f9ee
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push str.SaveBmp2Bng_2__d__d
push str.IMHookAPI
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x18
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1004fa64
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004fa64
test esi, esi
je 0x1004fa64
mov eax, dword [ebp - 8]
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push edi
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1016af88], 0
je 0x1004fa64
mov ecx, dword [ebp - 0xc]
push ecx
push str.SaveBmp2Bng_3__d
push str.IMHookAPI
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
mov ebx, 1
push edi
call fcn.1007d541
add esp, 4
test ebx, ebx
jne 0x1004fa86
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x1004f980
cmp dword [0x1016af88], 0
je 0x1004faa9
push ebx
push str.SaveBmp2Bng_4__d
push str.IMHookAPI
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x14
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004fc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push 0xe
xor eax, eax
lea edx, [ebp - 0x18]
push edx
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
call esi
test eax, eax
je 0x1004fd56
cmp dword [ebp - 4], 0xe
jne 0x1004fd56
mov eax, 0x4d42
cmp word [ebp - 0x18], ax
jne 0x1004fd56
push edi
xor eax, eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], edi
mov edi, 0x28
push edi
lea edx, [ebp - 0x40]
push edx
push ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call esi
test eax, eax
je 0x1004fd56
cmp dword [ebp - 4], edi
jne 0x1004fd56
cmp dword [ebp - 0x40], edi
jne 0x1004fd56
sub esp, 0x28
mov ecx, 0xa
lea esi, [ebp - 0x40]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1004eac0
mov edi, eax
push edi
call fcn.1007dc71
mov esi, eax
add esp, 0x2c
mov dword [ebp - 8], esi
test esi, esi
je 0x1004fd56
push edi
push 0
push esi
call fcn.1007d080
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x40]
push ecx
push esi
call fcn.1007d100
add esp, 0x18
push 0
lea edx, [ebp - 4]
push edx
push esi
mov dword [ebp - 4], 0
call fcn.1004e930
add esp, 4
push eax
push esi
call fcn.1004eb40
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push eax
push ebx
call edi
test eax, eax
je 0x1004fd56
mov eax, dword [ebp - 0xe]
test eax, eax
je 0x1004fd56
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call fcn.1004ea00
add esp, 4
push eax
push esi
call fcn.1004eb70
add esp, 4
push eax
push ebx
call edi
test eax, eax
jne 0x1004fd6c
lea ecx, [ebp - 8]
push ecx
call fcn.1004e800
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004fdf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x1004febd
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1004febd
push ebx
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004feb4
push edi
call fcn.1004eb00
mov esi, eax
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov eax, 0x4d42
lea ecx, [esi + 0xe]
push edi
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], ecx
call fcn.1004e930
add esp, 8
push 0
add eax, 0x36
lea edx, [ebp + 8]
push edx
mov dword [ebp - 0xa], eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004feaa
cmp dword [ebp + 8], 0xe
jne 0x1004feaa
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push edi
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004feaa
cmp dword [ebp + 8], esi
mov esi, 1
je 0x1004fead
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10054d90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10054da1
mov esi, dword [ebp + 0xc]
sub eax, edx
mov edi, eax
mov eax, 0x1f3
push esi
sub eax, edi
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x10054dd8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 1
nop
test byte [esi], 0x10
je 0x10054ee4
cmp byte [esi + 0x2c], 0x2e
lea eax, [esi + 0x2c]
jne 0x10054e0c
mov cl, byte [esi + 0x2d]
cmp cl, 0x2e
jne 0x10054e04
cmp byte [esi + 0x2e], 0
je 0x10054eff
test cl, cl
je 0x10054eff
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10054e10
sub eax, edx
mov dword [ebp - 0x14], eax
inc eax
cmp dword [ebp - 0x10], eax
jb 0x10054eff
lea eax, [edi + ebx - 1]
mov byte [eax], cl
mov eax, dword [ebp + 0x14]
push eax
push 0x10002
add esi, 0x2c
push esi
push ebx
call dword [ebp + 0x10]
mov eax, esi
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10054e40
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10054e50
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10054e70
mov cx, word [0x10136f94]
mov esi, dword [ebp + 0xc]
mov word [eax], cx
mov dl, byte [0x10136f96]
mov ecx, dword [ebp + 0x10]
mov byte [eax + 2], dl
mov eax, dword [ebp + 0x14]
push eax
push ecx
push esi
push ebx
call fcn.10054d90
push 0x104
push 0
lea edi, [esi + 0x2c]
push edi
call fcn.1007d080
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push edx
lea esi, [eax + ebx - 1]
push esi
push edi
call fcn.1007ed10
mov ecx, dword [ebp + 0x14]
add esp, 0x28
push ecx
push 0x20002
push edi
push ebx
mov byte [esi], 0
call dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov byte [esi], 0x2a
mov esi, dword [ebp + 0xc]
mov byte [edx + ebx], 0
mov edi, edx
jmp 0x10054efc
mov eax, dword [ebp + 0x14]
push eax
push 1
lea ecx, [esi + 0x2c]
push ecx
push ebx
mov byte [edi + ebx - 1], 0
call dword [ebp + 0x10]
mov byte [edi + ebx - 1], 0x2a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10054f18
mov edx, dword [ebp - 0xc]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10054de0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret