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

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49fa3c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49fa5a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f974
jmp 0x49fa5a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49fa5a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f974
test edi, edi
mov eax, edi
jne 0x49fa44
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x1d13058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1d131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1d1307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d1306a
add dl, dl
jne 0x1d13089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d130dc
xor eax, eax
add dl, dl
jne 0x1d13096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d1317d
add dl, dl
jne 0x1d130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1d130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1d13075
mov eax, 1
add dl, dl
jne 0x1d130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d130e1
sub eax, ebx
mov ebx, 1
jne 0x1d13128
mov ecx, 1
add dl, dl
jne 0x1d1310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d13119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d13105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d13075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1d1313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d1314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d13136
cmp eax, 0x7d00
jae 0x1d1316d
cmp eax, 0x500
jb 0x1d13168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d13075
cmp eax, 0x7f
ja 0x1d13170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d13075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1d1319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1d13075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
xor eax, eax
mov cl, 0x1d
lea esp, [esp]
xor byte [eax + 0x413b18], cl
inc eax
cmp eax, 0x1f9b0
jb 0x401010
mov eax, dword [esp + 0x10]
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401067
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x1f9b0
push 0x413b18
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401060
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x401850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401867
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401898
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401894
cmp esi, eax
jae 0x401898
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401884
cmp esi, eax
jb 0x40189e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401cdd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f020]
jne 0x401ce7
repz ret
jmp fcn.0040252c

Function at 0x4086eb
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.004026a4
and dword [ebp - 4], 0
cmp dword [0x434060], 0
mov ebx, eax
jne 0x40879c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40884d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40884d
push eax
call fcn.00402632
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434060], eax
call esi
push eax
call fcn.00402632
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434064], eax
call esi
push eax
call fcn.00402632
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434068], eax
call esi
push eax
call fcn.00402632
pop ecx
mov dword [0x434070], eax
test eax, eax
je 0x40879c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402632
pop ecx
mov dword [0x43406c], eax
mov eax, dword [0x43406c]
cmp eax, ebx
je 0x4087f4
cmp dword [0x434070], ebx
je 0x4087f4
push eax
call fcn.004026ad
push dword [0x434070]
mov esi, eax
call fcn.004026ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087f4
test edi, edi
je 0x4087f4
call esi
test eax, eax
je 0x4087eb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087eb
test byte [ebp - 0xc], 1
jne 0x4087f4
or dword [ebp + 0x10], 0x200000
jmp 0x40882d
mov eax, dword [0x434064]
cmp eax, ebx
je 0x40882d
push eax
call fcn.004026ad
pop ecx
test eax, eax
je 0x40882d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40882d
mov eax, dword [0x434068]
cmp eax, ebx
je 0x40882d
push eax
call fcn.004026ad
pop ecx
test eax, eax
je 0x40882d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434060]
call fcn.004026ad
pop ecx
test eax, eax
je 0x40884d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40884f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x2f23700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02f2378f
jae 0x2f2370e
xor ecx, ecx
call fcn.02f2378f
jae 0x2f2373d
xor eax, eax
call fcn.02f2378f
jae 0x2f2374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02f2378f
adc al, al
jae 0x2f2372f
jne 0x2f23779
stosb byte es:[edi], al
jmp 0x2f23711
call fcn.02f2379b
sub ecx, ebx
jne 0x2f23756
call fcn.02f23799
jmp 0x2f23775
lodsb al, byte [esi]
shr eax, 1
je 0x2f23783
adc ecx, ecx
jmp 0x2f23772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02f23799
cmp eax, 0x7d00
jae 0x2f23772
cmp ah, 5
jae 0x2f23773
cmp eax, 0x7f
ja 0x2f23774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2f23711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401420
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 4]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401457
xor al, al
pop esi
add esp, 0xc
ret
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401450
push 0x105
push 0
push edi
call fcn.00409eb0
mov edx, dword [esp + 0x14]
add esp, 0xc
push 0x105
push edi
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x401450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 0xc
ret

Function at 0x4027d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
push ebx
push ebp
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push 0x41b300
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4028b3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x41b9ac]
mov esi, eax
lea eax, [esi + 0x10]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40284b
push 0
lea edx, [esp + 0x18]
push edx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [esi + ebp], 0xd
mov byte [esi + ebp + 1], 0xa
mov byte [esi + ebp + 2], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x4028b3
cmp byte [ebp], 0
mov esi, ebp
mov bl, 1
je 0x4028a3
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov al, byte [esi]
add esi, 1
mov ecx, esi
lea ecx, [ecx]
mov dl, byte [esi]
add esi, 1
cmp dl, 0xa
jne 0x402870
cmp al, 0x3e
mov byte [esi - 2], 0
je 0x402886
cmp al, 0x3c
jne 0x40289a
lea eax, [esp + 0x18]
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x4028a1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esi], 0
jne 0x402866
jmp 0x4028a3
xor bl, bl
mov ecx, dword [0x41b9ac]
push ebp
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov al, bl
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x402c60
mov eax, dword [0x41b988]
shl eax, 9
cmp byte [eax + 0x418610], 0
je 0x402de5
cmp byte [0x41add8], 0
je 0x402cdc
push 0x41add8
call ebp
cmp eax, 5
jne 0x402cdc
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x104
lea eax, [esp + 0x138]
push eax
push 0x41add8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x402cdc
mov edx, dword [0x41b988]
lea ecx, [esp + 0x120]
shl edx, 9
push ecx
add edx, 0x418610
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402de5
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x402d69
mov esi, 0x41
test bl, 1
je 0x402d60
push esi
lea eax, [esp + 0x1c]
push str._c:_
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call ebp
cmp eax, 5
jne 0x402d60
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x104
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x402d60
mov ecx, dword [0x41b988]
lea eax, [esp + 0x120]
shl ecx, 9
push eax
add ecx, 0x418610
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402dd5
shr ebx, 1
add esi, 1
test ebx, ebx
jne 0x402cf1
mov eax, dword [0x41b988]
shl eax, 9
cmp byte [eax + 0x418710], 0
lea eax, [eax + 0x418710]
je 0x402d8d
push eax
push 0x413b30
lea edx, [esp + 0x20]
push edx
jmp 0x402d9c
push 0x417d10
push 0x413b78
lea eax, [esp + 0x20]
push eax
call edi
mov edx, dword [0x41b97c]
mov eax, dword [0x41b978]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x401aa0
push edx
push 0x66
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
jne 0x402c60
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x218
ret
lea ecx, [esp + 0x18]
push ecx
push 0x41add8
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x218
ret
Function at 0x402e00
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
push ebx
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp ebx, 2
jl 0x402f90
mov al, byte [esp + 0x25]
cmp al, 0x3a
push ebp
push esi
jne 0x402e50
mov al, byte [esp + 0x2c]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [esp + 0x2e], 0
mov byte [edi + 2], 0
jmp 0x402eca
cmp byte [esp + 0x2c], 0x5c
jne 0x402eca
cmp al, 0x5c
jne 0x402ed1
mov esi, 2
xor ebp, ebp
cmp ebx, esi
mov byte [edi], al
mov byte [edi + 1], al
jle 0x402f78
nop
movzx ecx, byte [esp + esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x402ea3
cmp byte [esp + esi + 0x2c], 0x5c
jne 0x402ea3
add ebp, 1
cmp ebp, 1
jne 0x402e9e
mov byte [esp + 0x13], 1
mov byte [esi + edi], 0x5c
mov byte [edi + esi + 1], al
jmp 0x402eb1
cmp ebp, 2
je 0x402eea
cmp byte [esp + 0x13], 0
jne 0x402eb1
mov dl, byte [esp + esi + 0x2c]
mov byte [esi + edi], dl
add esi, 1
cmp esi, ebx
jl 0x402e70
cmp ebp, 2
jge 0x402eca
test ebp, ebp
je 0x402f78
mov byte [esp + esi + 0x2c], 0
cmp byte [esp + 0x2c], 0
je 0x402f0e
lea esi, [esp + 0x2c]
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x402ef1
add esi, 2
xor al, al
jmp 0x402eff
mov byte [esp + esi + 0x2d], 0
jmp 0x402eca
cmp byte [esi], 0x5c
jne 0x402efa
mov al, 1
jmp 0x402efc
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x402ed5
test al, al
jne 0x402f0e
mov byte [esi], 0x5c
mov byte [esi + 1], al
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
mov edi, eax
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x402f5e
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x134]
shrd eax, edx, 0xa
push edi
shr edx, 0xa
mov dword [ecx], eax
call esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0x134]
or eax, 0xffffffff
push edi
mov dword [ecx], eax
call esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x120
ret
mov edx, dword [esp + 0x134]
pop esi
pop ebp
pop edi
mov dword [edx], 0xffffffff
pop ebx
add esp, 0x120
ret
mov eax, dword [esp + 0x12c]
pop edi
mov dword [eax], 0xffffffff
pop ebx
add esp, 0x120
ret
Function at 0x4030b0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x214
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
cmp byte [esp + 0x10], 0
je 0x40310e
lea esi, [esp + 0x10]
movzx edx, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4030eb
add esi, 2
xor al, al
jmp 0x4030f9
cmp byte [esi], 0x5c
jne 0x4030f4
mov al, 1
jmp 0x4030f6
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x4030d6
test al, al
je 0x40310e
lea eax, [esp + 0x10]
cmp esi, eax
jbe 0x40310e
mov byte [esi - 1], 0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
je 0x40313b
mov eax, 1
lea ecx, [esp + 0x10]
call fcn.00404500
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40312f
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x120]
push eax
call edi
mov bl, byte [esp + 0x11c]
xor edi, edi
test bl, bl
lea esi, [esp + 0x11c]
mov byte [esp + 0x10], bl
je 0x4031ea
mov ecx, dword [esp + 0x10]
push ecx
add esi, 1
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x403187
add esi, 1
jmp 0x40318f
cmp bl, 0x5c
jne 0x40318f
lea edi, [esi - 1]
mov bl, byte [esi]
test bl, bl
mov byte [esp + 0x10], bl
jne 0x403170
test edi, edi
je 0x4031ea
lea edx, [esp + 0x11c]
push edx
mov byte [edi], bl
call fcn.004030b0
add esp, 4
test eax, eax
jne 0x4031ef
push eax
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
je 0x4031da
mov eax, 1
lea ecx, [esp + 0x14]
call fcn.00404500
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov eax, 2
je 0x4031ef
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret
Function at 0x403200
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x568
mov eax, dword [esp + 0x56c]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea ecx, [esp + 0x124]
push ecx
mov byte [esp + 0x1b], 1
call edi
cmp byte [esp + 0x120], 0
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
je 0x403277
lea esi, [esp + 0x120]
mov edi, edi
movzx edx, byte [esi]
push edx
call ebp
test eax, eax
je 0x403251
add esi, 2
xor al, al
jmp 0x40325f
cmp byte [esi], 0x5c
jne 0x40325a
mov al, 1
jmp 0x40325c
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x403240
test al, al
je 0x403277
lea eax, [esp + 0x120]
cmp esi, eax
jbe 0x403277
mov byte [esi - 1], 0
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x36c]
push edx
call edi
mov bl, byte [esp + 0x368]
xor edi, edi
test bl, bl
lea esi, [esp + 0x368]
mov byte [esp + 0x14], bl
je 0x4033d5
mov eax, dword [esp + 0x14]
push eax
add esi, 1
call ebp
test eax, eax
je 0x4032b8
add esi, 1
jmp 0x4032c0
cmp bl, 0x5c
jne 0x4032c0
lea edi, [esi - 1]
mov bl, byte [esi]
test bl, bl
mov byte [esp + 0x14], bl
jne 0x4032a5
test edi, edi
je 0x4033d5
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x124]
mov byte [edi], 0x5c
push edx
mov byte [edi + 1], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4033e9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403310
lea eax, [esp + 0x368]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x1c]
push eax
call esi
test byte [esp + 0x228], 0x10
je 0x403389
cmp byte [esp + 0x254], 0x2e
je 0x4033b7
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..
lea eax, [esp + 0x474]
push eax
call esi
lea ecx, [esp + 0x470]
push ecx
call fcn.00403200
add esp, 4
test eax, eax
jne 0x4033a0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40339c
push 0x80
lea eax, [esp + 0x1c]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
jne 0x4033a7
mov byte [esp + 0x13], 0
jmp 0x4033b7
lea eax, [esp + 0x18]
call fcn.00404420
test eax, eax
je 0x4033b7
mov byte [eax], 0x2a
lea edx, [esp + 0x228]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403310
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x568
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x568
ret
Function at 0x403400
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [esi], 0x3a
jne 0x403450
mov ecx, dword [esp + 0x470]
lea eax, [esi + 1]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x413570
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x484]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00403590
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea edx, [esp + 0x11c]
push edx
call ebp
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jl 0x403493
mov cl, byte [esp + eax + 0x118]
cmp cl, 0x5c
je 0x40348b
cmp cl, 0x3a
je 0x40348b
sub eax, 1
jns 0x403473
jmp 0x403493
mov byte [esp + eax + 0x119], 0
lea ecx, [esp + 0x220]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40354d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [esp + 0x220], 0x10
jne 0x403522
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x364]
push eax
call ebp
lea ecx, [esp + 0x24c]
push ecx
lea edx, [esp + 0x364]
push edx
call esi
mov eax, dword [esp + 0x470]
push eax
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x474]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x368]
push eax
call fcn.00403590
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403539
lea ecx, [esp + 0x220]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4034b3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret