joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025580
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x14
mov eax, 0x100e67de
call fcn.100bf4b7
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
xor ebx, ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.10025822
add esp, 0x14
test al, al
je 0x10025657
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.1001af0e
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
inc ebx
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
push 0x101057f4
push esi
call fcn.1001b119
push eax
call fcn.100215ef
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025602
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x20]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push dword [ebp + 0xc]
call fcn.10025499
test eax, eax
js 0x10025636
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.1002554f
test eax, eax
jns 0x10025638
xor bl, bl
test esi, esi
je 0x10025646
push 2
push esi
call fcn.100be7db
pop ecx
pop ecx
cmp dword [ebp - 0x20], 0
je 0x10025655
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
call fcn.100bf480
ret
Function at 0x10025e6f
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x288
mov eax, 0x100e6995
call fcn.100bf4eb
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], eax
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
inc eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], cl
push 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push ecx
push eax
call fcn.100c1710
add esp, 0xc
lea ecx, [ebp - 0x288]
call fcn.1001ec0e
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x10026030
mov ecx, dword [ebp - 0x28c]
cmp dword [ecx + 0x10], 0
jbe 0x10026030
test ebx, ebx
je 0x10026030
cmp dword [edi + 0x14], 0x10
jb 0x10025f1c
mov edi, dword [edi]
push eax
push edi
call fcn.1001baab
push eax
call fcn.1001b298
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10026030
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025f61
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
push str.timestamp
lea ecx, [ebp - 0x230]
call fcn.1000aff8
push 0
call fcn.100c8809
pop ecx
push edx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x288]
call fcn.1001eeaa
push 7
push str.content
lea ecx, [ebp - 0x230]
call fcn.1000aff8
push dword [ebp - 0x28c]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x288]
call fcn.1001ee10
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x288]
call fcn.1001f226
push eax
lea ecx, [ebp - 0x230]
call fcn.1000671c
lea ecx, [ebp - 0x248]
call fcn.1000b399
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100294f6
add esp, 0xc
test eax, eax
jne 0x10026030
and dword [esi + 0x10], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002601d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.100066f5
lea ecx, [ebp - 0x288]
call fcn.1001ecf3
lea ecx, [ebp - 0x230]
call fcn.1000b399
mov eax, esi
call fcn.100bf495
ret 0x10
Function at 0x1002943f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x100294ef
cmp dword [ebp + 0xc], 0
je 0x100294ef
push 0
push 0x80
push 3
push 0
push 5
push Ordinal_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10029484
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100294f2
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x1002947c
jb 0x100294a0
push 8
pop eax
jmp 0x100294f2
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100294ac
mov dword [eax], edi
inc esi
push esi
call fcn.100bf593
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.100c1710
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x1002947c
cmp dword [ebp + 8], edi
jne 0x100294ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100294f2
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x100294f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x10029559
xor edi, edi
cmp word [eax], di
je 0x10029559
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002952f
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002954e
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1002955c
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x100373d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x100373f1
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x10037409
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x10037421
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x10037437
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x1003744f
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1003e480
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x1003e4be
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x108]
je 0x1003e4be
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x108]
jne 0x1003e4d1
jmp 0x1003e62d
mov edx, dword [ebp - 4]
cmp dword [edx + 0x108], 0
je 0x1003e557
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x13c]
call edx
push 0
push 0
push 0
push str.killfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov ecx, dword [ebp - 4]
call fcn.1003dee0
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], 0
cmp dword [ebp + 8], 0
jne 0x1003e562
jmp 0x1003e62d
cmp dword [ebp + 8], 0
je 0x1003e62d
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x1003e62d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xfc]
call eax
movzx ecx, al
test ecx, ecx
je 0x1003e62d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x108]
call edx
movzx eax, al
test eax, eax
je 0x1003e62d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x108], edx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
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 - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x13c]
call edx
push 0
push 0
push 0
push str.setfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov ecx, dword [ebp - 4]
call fcn.1003dee0
mov esp, ebp
pop ebp
ret 4
Function at 0x10067150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1011b3bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
je 0x100671d1
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3c
jne 0x100671aa
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.10065080
movzx edx, al
test edx, edx
jne 0x100671a8
xor eax, eax
jmp 0x100672a9
jmp 0x100671cc
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.10065100
movzx ecx, al
test ecx, ecx
jne 0x100671cc
xor eax, eax
jmp 0x100672a9
jmp 0x10067278
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10036c90
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x100671fb
xor eax, eax
jmp 0x100672a9
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.10036c90
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x1006722e
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x100672a9
push 0
mov eax, dword [ebp - 0x214]
push eax
call fcn.10036c90
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.100657b0
movzx edx, al
test edx, edx
jne 0x1006726b
xor eax, eax
jmp 0x100672a9
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
call fcn.10064f00
sub esp, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x218]
call fcn.10066ca0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be7ca
mov esp, ebp
pop ebp
ret 8
Function at 0x10067340
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1011b3bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10068ec0
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], vtable.DuiLib::CNotifyPump.0
push 0x53
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.1002b2c0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0x20
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.DuiLib::INotifyUI.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx], vtable.DuiLib::IMessageFilterUI.0
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], vtable.DuiLib::IDialogBuilderCallback.0
mov edx, dword [ebp - 0x10]
add edx, 0x2c
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [eax], vtable.DuiLib::IQueryControlText.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.DuiLib::WindowImplBase.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], vtable.DuiLib::WindowImplBase.1.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], vtable.DuiLib::WindowImplBase.2.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], vtable.DuiLib::WindowImplBase.3.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], vtable.DuiLib::WindowImplBase.4.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], vtable.DuiLib::WindowImplBase.5.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10033b80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10069750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
push 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006982a
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1006982a
cmp dword [ebp - 0x24], 0x10
jne 0x100697f6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 4]
jne 0x100697f6
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [ebp - 0x28]
push edx
call fcn.1003efb0
add esp, 4
movzx eax, al
test eax, eax
jne 0x1006981d
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x24], 0x12
jne 0x10069825
jmp 0x1006982a
jmp 0x100697a4
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x24], 0x12
jne 0x10069850
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1006a920
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1011b3bc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1006a954
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006a954
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x1006a963
jmp 0x1006aacc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x1006a9be
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x1006a9a1
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x1006a9ad
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x1006a978
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x1006aa4e
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.100c0c10
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x1006aa17
jmp 0x1006aa1c
call fcn.100bf063
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1006a920
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x1006aa6a
jmp 0x1006aa6f
call fcn.100bf063
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x1006aa98
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.100d16b0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.100d163f
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006aacc
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be7ca
mov esp, ebp
pop ebp
ret
Function at 0x1006b810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1006b82a
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x1006b834
mov eax, 0x1000000
jmp 0x1006b91e
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call fcn.100d16d2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x1006b892
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x1006b892
push 0x101057f4
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call fcn.100d163f
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x1006b8d6
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1006b8ba
mov dword [ebp - 0x10], 1
jmp 0x1006b8c1
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x1006b8d6
mov eax, 0x2000000
jmp 0x1006b91e
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100709e0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1006b8fc
mov eax, dword [ebp - 0x1c]
jmp 0x1006b91e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100716d0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1006b91c
mov eax, 0x200
jmp 0x1006b91e
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006c270
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x100f0a60]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x100f0a60]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret

Function at 0x10070b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x10070bbf
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10070bb5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x10070c19
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x10070bdf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.100c0c10
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret