joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40221b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402214
test esi, esi
je 0x402214
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4021f0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402400
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402528
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40248e
cmp eax, 4
jne 0x4024b0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40249e
cmp edx, 4
je 0x40249e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402400
Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x470058]
mov edx, dword [0x47005c]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
call fcn.00401020
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x470060]
mov ecx, dword [0x470064]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x20
jmp 0x401092
xor esi, esi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x891f4c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4010ec
push esi
lea edx, [ebp - 0x38]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x3c]
push edx
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], cx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x891f4c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401106
mov dword [0x891f48], 0xedeb2e40
jmp 0x401122
cmp ecx, 0x3eb
jne 0x401122
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x8918fc], esi
lea ecx, [ebx + edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
mov dword [0x891f44], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr esi, cl
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0x891f4c], 0xb03
jne 0x4011a0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x401090
cmp dword [0x891f4c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x4011eb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401360
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46bd68
push eax
mov dword fs:[0], esp
mov eax, dword [0x891f4c]
sub esp, 0x820
push ebx
push esi
push edi
cmp eax, 0x93
jne 0x4013f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [ebp - 0x2c]
call fcn.00401670
push 0x46db40
push 0
mov dword [ebp - 4], 0
call fcn.00401b66
call fcn.004017be
push 0
push 0
call fcn.00401a97
push 0
push 0
call fcn.0040194d
push 0
push 0
call fcn.00401a97
add esp, 0x20
push 0
call fcn.00401e28
mov ecx, dword [0x472980]
add eax, 0x1134b
push eax
push 0
mov dword [0x8929b0], ecx
mov dword [0x891f4c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x891900], eax
call fcn.004012a0
xor esi, esi
cmp dword [0x891f4c], esi
jbe 0x40147d
mov edi, dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
nop
mov edx, dword [0x8929b0]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x891900]
mov byte [ecx + esi], al
cmp dword [0x891f4c], 0x490
jne 0x401474
push 0
push 0
call edi
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
inc esi
cmp esi, dword [0x891f4c]
jb 0x401430
mov edi, dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
mov eax, dword [0x891f4c]
add eax, esi
cmp eax, 0x8d
jne 0x4014b4
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push str.wutusahafofesohelasecisojagop
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc esi
cmp esi, 0x38681
jl 0x40148b
call fcn.00401200
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x62
jne 0x4014de
call fcn.00401280
inc esi
cmp esi, 0x674db
jl 0x4014d0
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x891f4c], 0x86
jne 0x401537
push 0
lea ecx, [ebp - 0x82c]
push ecx
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
sub dword [ebp - 0x10], 1
jne 0x401500
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x891900]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401560
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x891f4c], 0x400
push esi
push edi
jne 0x401584
lea eax, [ebp - 0x24]
call fcn.00401640
lea esi, [ebp - 0x24]
call fcn.00401660
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4015a2
cmp ebx, 0x787e04e5
jne 0x4015ab
inc esi
cmp esi, 0x1d8b
jl 0x401590
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4015dd
inc esi
cmp esi, 0x4f6a4
jl 0x4015c0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x4015fb
inc esi
cmp esi, 0x1190b
jl 0x4015e6
mov eax, dword [0x4729ac]
mov dword [0x891f4c], eax
call fcn.00401360
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401620
cmp dword [0x891f4c], 0x51f
jne 0x401630
push 0
call esi
sub edi, 1
jne 0x401620
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406780
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46fa68]
jne 0x40678a
repz ret
jmp fcn.00409caf
Function at 0x409726
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004037b6
and dword [ebp - 4], 0
cmp dword [0x474338], 0
mov ebx, eax
jne 0x4097d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409888
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409888
push eax
call fcn.00403744
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x474338], eax
call esi
push eax
call fcn.00403744
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47433c], eax
call esi
push eax
call fcn.00403744
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x474340], eax
call esi
push eax
call fcn.00403744
pop ecx
mov dword [0x474348], eax
test eax, eax
je 0x4097d7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403744
pop ecx
mov dword [0x474344], eax
mov eax, dword [0x474344]
cmp eax, ebx
je 0x40982f
cmp dword [0x474348], ebx
je 0x40982f
push eax
call fcn.004037bf
push dword [0x474348]
mov esi, eax
call fcn.004037bf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40982f
test edi, edi
je 0x40982f
call esi
test eax, eax
je 0x409826
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409826
test byte [ebp - 0xc], 1
jne 0x40982f
or dword [ebp + 0x10], 0x200000
jmp 0x409868
mov eax, dword [0x47433c]
cmp eax, ebx
je 0x409868
push eax
call fcn.004037bf
pop ecx
test eax, eax
je 0x409868
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409868
mov eax, dword [0x474340]
cmp eax, ebx
je 0x409868
push eax
call fcn.004037bf
pop ecx
test eax, eax
je 0x409868
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x474338]
call fcn.004037bf
pop ecx
test eax, eax
je 0x409888
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40988a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x914a80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x914a8a
pushal
call 0x914a90
pop ebp
sub ebp, 0x10
sub ebp, 0x514a80
jmp 0x914aa6
mov eax, 0x514a80
add eax, ebp
add eax, 0x4c
mov ecx, 0x604
mov edx, 0x8b0aee75
xor byte [eax], dl
inc eax
dec ecx
jne 0x914abd
jmp 0x914ad0
invalid
Function at 0x40a720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4108dc]
cdq
test eax, eax
push edi
and byte [ebp + 0x32e9], al
push 0x410730
popal
add eax, 0x415cf8
xchg esp, eax
pop esp
add byte [eax], al
call dword [0x40d020]
mov eax, dword [0x413c08]
test ecx, ebp
xor al, byte [eax]
add byte [eax + 0x30], ch
pop es
inc ecx
add byte [ecx + 5], ah
clc
pop esp
inc ecx
add byte [esp + ebx*2 + 0x15ff0000], dl
and al, dl
inc eax
add byte [ecx + 0x413c08], ah
cmp eax, 2
cli
test dword [eax], edi
add dword [eax + 0x80c6500], ecx
inc ecx
add byte [edi + 0x41d20c], cl
inc ebx
sal byte [ebx + edi + 0x7c], 0x3d
push 0xa1004088
je 0x40a72d
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
popal
cmp byte [ecx], al
jle 0x40a781
inc eax
add byte [ecx + 0x38], ah
add dword [esi + 0xe], edi
xor edx, dword [ecx]
lcall 0xd7ff, 0xd00e9da6
add esp, 0xffffff97
jmp 0x40a792
mov eax, dword [0x409778]
xor edx, edx
mov dl, byte [esi]
or byte ss:[edx - 0x1f7caea9], cl
add al, 0x85
sal byte [ebp + 0x36], 0x8a
inc esi
add dword [esi - 0x7c], eax
sal byte [ebp - 0x35], 0x8b
or eax, 0xeb4108c5
test eax, eax
jne 0x40a7cc
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40a769
mov ecx, dword [0xeb4108c5]
mov eax, dword [0x4107fc]
cmp eax, 3
jb 0x6da911
je 0x40a911
add dword [ecx + 0x33657553], 0xfffffff9
add bh, bh
and edi, dword [eax + 0x6d7c0028]
jmp 0x54414416
cmp byte [esi], 0
jno 0x40a79e
push esi
dec dword [ecx + 0x6c]
rol dword [eax], 0x8b
enter 0xffffffffffffc483, 4
mov dword [0x4108e0], ecx
jmp 0x40a7a4
mov eax, 0xc80001
mov dword [0x4108dc], eax
mov eax, dword [eax]
xchg esp, eax
pop edi
mov dword [edx], eax
mov ebp, edx
fmul qword [eax]
inc ecx
add byte [ebx], dh
rcl byte [edx - 0x62f0fe02], 0xc0
dec eax
pop esi
jo 0x40a961
dec esi
add ch, ch
in al, 0xc3
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x80025a9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.080112e2
lea ecx, [ebp - 0x18]
call fcn.080112e2
push 0x3c
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.080167a0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 0x740
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0xa
test bl, 1
je 0x8002601
mov ecx, 0x8740
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], ecx
test bl, 2
mov eax, str.runas
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
and ebx, 0x10000
jne 0x8002621
or ecx, 0x100
mov dword [ebp - 0x50], ecx
mov eax, dword [0x802fe6c]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.08004ca0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.08011414
cmp dword [ebp - 8], esi
je 0x8002689
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x800268c
test ebx, ebx
jne 0x8002680
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.08019779
push dword [ebp - 0xc]
call fcn.08019779
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x8002900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0800323d
xor edi, edi
mov dword [0x802fe5c], esi
lea eax, [ebp - 4]
mov dword [0x802fe64], edi
push eax
push edi
push esi
push 0x8002cd8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
mov dword [0x802fe60], edx
test edx, edx
je 0x8002960
cmp dword [0x802fe98], 2
je 0x8002951
call fcn.08008215
mov edx, dword [0x802fe60]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x802fe60]
mov eax, dword [0x802fe64]
mov dword [0x802fffc], edi
test eax, eax
je 0x80029a2
cmp eax, 1
je 0x8002996
cmp eax, 2
je 0x8002992
cmp eax, 3
je 0x800298e
cmp eax, 0x67
jle 0x8002988
cmp eax, 0x6b
jle 0x8002a06
push eax
push 0x14
push edi
jmp 0x80029fe
push 0x12
jmp 0x8002998
push 0x13
jmp 0x8002998
push 0x11
push edi
call fcn.0800993d
pop ecx
pop ecx
jmp 0x8002a06
mov ecx, edi
mov dword [ebp + 8], ecx
cmp dword [0x8030000], ecx
jne 0x8002a06
test edx, edx
je 0x80029cd
lea eax, [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x80029cd
test ecx, ecx
jne 0x80029cd
xor eax, eax
jmp 0x8002a0b
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x80029df
push ecx
push 0x21
jmp 0x800298b
movzx eax, cx
cmp eax, 0xe
jne 0x80029f0
cmp dword [0x802fe9c], 0xffffffff
je 0x8002a06
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0800993d
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4
Function at 0x8003769
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
mov edi, eax
call fcn.080112ab
xor esi, esi
lea ecx, [ebp - 0x18]
push esi
call fcn.08004031
push 0x2f
mov ebx, eax
mov eax, dword [ebp + 8]
pop ecx
push 0x5c
pop edx
movzx eax, word [eax + edi*2 - 2]
cmp ax, dx
je 0x80037af
cmp ax, cx
jne 0x80037e3
xor eax, eax
mov word [ebx + edi*2 - 2], ax
dec edi
mov dword [ebp - 4], edi
jmp 0x80037e3
test edi, edi
jle 0x80037db
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [ebx + edi*2]
cmp ax, cx
je 0x80037d9
cmp ax, dx
je 0x80037d9
dec edi
test edi, edi
jg 0x80037c6
test edi, edi
je 0x8003838
xor eax, eax
mov word [ebx + edi*2], ax
push ebx
call fcn.0800578d
pop ecx
test eax, eax
je 0x80037bc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x8003817
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.08004399
pop ecx
pop ecx
test eax, eax
jne 0x80038bc
push ebx
call fcn.0800578d
pop ecx
test eax, eax
jne 0x80038b2
push ebx
push 0xc
push 1
call fcn.0800993d
add esp, 0xc
jmp 0x80038bc
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
jne 0x8003859
mov ax, word [ecx]
or ax, 0x20
sub ax, 0x61
cmp ax, 0x19
ja 0x8003859
cmp word [ecx + 2], 0x3a
je 0x80038b9
push ecx
jmp 0x8003827
sub eax, edi
lea esi, [ebx + edi*2]
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.08016900
xor ecx, ecx
lea eax, [edi + 1]
add esp, 0xc
cmp word [esi], cx
cmove eax, edi
mov edi, eax
jmp 0x8003896
movzx eax, cx
push 0x5c
pop ecx
cmp ax, cx
je 0x80038a1
push 0x2f
pop ecx
cmp ax, cx
je 0x80038a1
inc edi
movzx eax, word [ebx + edi*2]
mov ecx, eax
test ax, ax
jne 0x8003882
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call fcn.0800578d
pop ecx
test eax, eax
je 0x80038cc
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x800385c
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.08019779
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push ebx
push 0xc
push 1
call fcn.0800993d
add esp, 0xc
xor esi, esi
jmp 0x80038bc
Function at 0x8003be2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.080112e2
push 2
mov ecx, edi
call fcn.08004031
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
xor ebx, ebx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], ebx
mov word [eax], cx
test esi, esi
je 0x8003c39
inc esi
mov ecx, edi
push esi
call fcn.08004031
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [edi]
push esi
call fcn.08004e55
pop ecx
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov esi, dword [edi + 4]
mov dword [ebp + 8], esi
lea eax, [esi + 0xf]
push eax
mov ecx, edi
call fcn.08004031
push ebx
push dword [ebp + 0xc]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [edi]
push esi
call fcn.08004e55
add esp, 0x10
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x8003c88
mov esi, dword [ebp + 8]
inc ebx
lea eax, [esi + 0xf]
cmp ebx, 0xfff
jl 0x8003c42
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x8003c8f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.080112ab
push 0x8025b98
lea ecx, [ebp - 0xc]
call fcn.080115b2
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x8003d6b
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.08011414
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.080018e1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.080115b2
test byte [ebp - 0x25c], 0x10
je 0x8003d33
push 0x8025ba0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x8003d4e
push 0x8025ba4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x8003d4e
push dword [ebp - 0xc]
call fcn.08003c8f
pop ecx
jmp 0x8003d4a
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x8003d95
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x8003d95
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x8003ccf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x802fed8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x8003d95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x8003d95
xor esi, esi
inc esi
push dword [ebp - 0xc]
call fcn.08019779
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x8003da4
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x8030010], 0
jne 0x8003e04
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x8003e04
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x8003df9
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x8003df5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
xor eax, eax
leave
ret
push dword [ebp + 8]
call fcn.08003c8f
pop ecx
leave
ret
xor eax, eax
inc eax
leave
ret