joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407408
cmp edx, dword [eax]
je 0x403b9b
add eax, 8
inc ecx
cmp eax, 0x407498
jl 0x403b8c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407408]
jne 0x403cc9
mov eax, dword [0x40796c]
cmp eax, 1
je 0x403ca3
test eax, eax
jne 0x403bcc
cmp dword [0x4071ec], 1
je 0x403ca3
cmp edx, 0xfc
je 0x403cc9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403c03
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405030
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c46
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406480
push edi
call fcn.004054e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405030
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405040
lea eax, [ebp - 0xa0]
push 0x406460
push eax
call fcn.00405040
push dword [esi + 0x40740c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405040
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405455
add esp, 0x2c
pop edi
jmp 0x403cc9
lea eax, [ebp + 8]
lea esi, [esi + 0x40740c]
push 0
push eax
push dword [esi]
call fcn.00404a30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42f9d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x42f9e2
pop dword [ebp - 0x4c]
mov eax, 0x42f9e2
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x5509e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xf47383b2
add ecx, 0xb8cd4b3
mov edi, eax
mov ebx, 0xa913b593
add ebx, 0x5733a86d
add ebx, dword [ebp - 0x4c]
mov edx, 0xebb46e7e
sub edx, 0xd2a7b4be
xor dword [ebp - 0x20], 0x54878104
mov esi, dword [ebx]
sub dword [ebp - 0x3c], esi
xor esi, edx
add dword [ebp - 0x44], 0xd0d44492
mov dword [edi], esi
sub dword [ebp - 0xc], 0xe090dc3d
add edi, 0x517bf32f
sub edi, 0x517bf32b
add ebx, 4
loop 0x42fa37
add eax, 0x15467
mov ebx, eax
add eax, 5
mov ecx, 0x29ee6064
sub ecx, 0x29ae6064
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4011c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x4c10db7
xor esi, esi
call fcn.00401170
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
jbe 0x4011fd
mov eax, dword [esp + 8]
push ebx
mov edx, esi
xor ebx, ebx
mov bl, byte [eax]
shr edx, 0x18
xor edx, ebx
shl esi, 8
mov edx, dword [edx*4 + 0x46a4c8]
xor esi, edx
inc eax
dec ecx
jne 0x4011dd
mov eax, esi
pop ebx
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x401570
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x54
push ebx
push esi
push edi
push 0
push 0x200
push 0
push eax
call fcn.00422d60
mov ecx, dword [esp + 0x68]
mov ebx, edx
and ecx, 0xffff
lea edx, [esp + 0x20]
sub ecx, 0x80
mov edi, eax
push ecx
push str..PHYSICALDRIVE_d
push edx
call fcn.00422d0e
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40162d
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], 0
and eax, 0xffff
mov dword [esp + 0x14], edi
sub eax, 3
mov dword [esp + 0x18], ebx
je 0x401638
dec eax
je 0x401604
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 0x14
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
shl eax, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x401658
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 0x14
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0xc]
lea eax, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x78]
push eax
shl ecx, 9
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x401622
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret 0x14
Function at 0x401670
Capabilities:
Get file size

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 7
push 0x80
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x40179d
push ebx
push ebp
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
xor edx, edx
mov dword [ebp], eax
div edi
mov esi, eax
add esi, 2
shl esi, 4
push esi
call fcn.00422e7d
add esp, 4
mov ebx, eax
xor eax, eax
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
push 8
push edx
push 0x90073
push eax
mov dword [esp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40177b
mov ecx, dword [ebp]
xor edx, edx
lea eax, [ecx + edi - 1]
div edi
mov edx, dword [esp + 0x38]
mov dword [edx], eax
shl eax, 3
push eax
call fcn.00422e7d
mov ecx, dword [ebx + 0xc]
xor ebp, ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
cmp ecx, ebp
mov dword [esp + 0x30], ebp
jbe 0x40177b
lea edi, [ebx + 0x10]
mov esi, dword [edi]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
sub esi, eax
je 0x401760
mov eax, dword [esp + 0x10]
lea eax, [eax + ebp*8]
add ebp, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
add ecx, 1
adc edx, 0
dec esi
jne 0x40174b
mov ebx, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [ebx]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
add edi, 0x10
inc ecx
cmp ecx, edx
mov dword [esp + 0x30], ecx
jb 0x401736
push ebx
call fcn.00422d94
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 0x10
mov eax, esi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x4017b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x4017ee
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x20
mov ebx, dword [esp + 0x38]
push ebx
call fcn.00422e7d
mov ebp, eax
mov eax, dword [esp + 0x48]
add esp, 4
mov dword [esp + 0x10], 0
test eax, eax
jbe 0x401933
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
and eax, 0xffff
mov dword [esp + 0x14], eax
mov eax, ebx
neg eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
xor edx, edx
add ecx, eax
mov eax, dword [esp + 0x40]
adc edx, eax
xor eax, eax
push eax
push ebx
push edx
push ecx
call fcn.00422d60
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
push 0
push ecx
push eax
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
sub eax, 3
je 0x4018c5
dec eax
jne 0x40190a
cmp esi, ebx
jle 0x401893
mov ecx, ebx
mov esi, edi
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x4018aa
test esi, esi
jle 0x401952
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
push 0
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401902
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push 0
push edx
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, ebx
jle 0x4018ec
mov ecx, ebx
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4018fd
test esi, esi
jle 0x401952
mov ecx, esi
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add esi, ecx
mov ecx, dword [esp + 0x44]
inc eax
add edi, ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], edi
jb 0x401836
mov esi, dword [esp + 0x2c]
push ebp
call fcn.00422d94
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0x20
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00422d94
mov eax, dword [esp + 0x30]
add esp, 4
push eax
jmp 0x40193d
Function at 0x401ab0
Capabilities:
Delete file
Get common file path
Get disk size
Write file on windows

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [esp + 0x130]
mov edi, str.ESTOUT.SYS
mov byte [esp + 0x2c], cl
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x2d], 0x3a
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
mov byte [esp + 0x2e], 0x5c
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x86
push 1
push 0
push 0
lea ecx, [esp + 0x40]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret 4
push 0x100000
mov dword [esp + 0x20], 0
call fcn.0043b7dd
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401bb1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret 4
mov ecx, 0x40000
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x238]
test edi, edi
jbe 0x401bde
lea edx, [esp + 0x1c]
push 0
push edx
push 0x100000
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x401bc7
push ebp
call fcn.0043b806
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x11], eax
lea edx, [esp + 0x24]
push eax
mov word [esp + 0x19], ax
mov byte [esp + 0x16], al
push eax
mov byte [esp + 0x18], cl
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x25], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x28]
imul esi, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x34]
push esi
push ecx
mov ecx, ebx
call fcn.00401670
lea edx, [esp + 0x2c]
mov edi, eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x401c61
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x224
ret 4
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x10], esi
mov eax, dword [edi]
push edi
mov dword [ebx + 0x18], eax
mov ecx, dword [edi + 4]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
call fcn.00422d94
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret 4
Function at 0x401ca0
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dl, byte [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x11], ecx
xor edi, edi
mov word [esp + 0x15], cx
mov byte [esp + 0x12], cl
push edi
lea eax, [esp + 0x1c]
mov byte [esp + 0x14], dl
push edi
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
mov bl, 0x3a
push ecx
push edx
mov byte [esp + 0x25], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
imul ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x401d24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov esi, dword [ebp + 0x20]
mov dl, byte [esp + 0x20]
imul esi, eax
mov al, 0x5c
push esi
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x2e
mov byte [esp + 0x17], al
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0
call fcn.0043b7dd
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x401d6a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0x24]
push ebx
push ecx
push 3
mov ecx, ebp
call fcn.004017b0
test eax, eax
jne 0x401da4
push ebx
call fcn.0043b806
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
push esi
push ebx
mov ecx, ebp
call fcn.00401210
test eax, eax
jne 0x401dc7
push ebx
call fcn.0043b806
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [ebp + 4]
mov edx, dword [ebx + 8]
cmp eax, edi
mov dword [ebp + 8], edx
je 0x401de0
push eax
call fcn.0043b806
add esp, 4
mov dword [ebp + 4], edi
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0043b7dd
mov edx, eax
add esp, 4
cmp edx, edi
mov dword [ebp + 4], edx
jne 0x401e17
push ebx
call fcn.0043b806
add esp, 4
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov eax, dword [ebp + 8]
mov edi, edx
lea esi, [ebx + 0xc]
push ebx
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 4]
lea ecx, [eax + eax*2]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0043b806
add esp, 4
mov eax, 1
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x401e70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 8]
inc eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
mov dword [esp + 0x14], eax
call fcn.0043b7dd
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401ea0
pop ebp
pop ebx
add esp, 0x110
ret
mov dword [ebx], 0
mov dword [ebx], 0x34532008
mov ecx, dword [ebp + 8]
lea eax, [ebx + 8]
push esi
push edi
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
lea edi, [ebx + 0xc]
lea ecx, [ecx + ecx*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
lea ecx, [esi - 8]
push ecx
push eax
call fcn.004011c0
mov dword [ebx + 4], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov cl, byte [esp + 0x1c]
mov edx, dword [ebp + 0x20]
xor eax, eax
push edx
mov dword [esp + 0x15], eax
mov edx, dword [ebp + 0x10]
mov word [esp + 0x19], ax
mov al, 0x5c
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
mov eax, dword [ebp + 0x1c]
mov byte [esp + 0x18], cl
mov ecx, dword [ebp + 0x18]
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x24]
push ebx
push eax
push 4
mov ecx, ebp
mov byte [esp + 0x32], 0x2e
mov byte [esp + 0x35], 0x3a
mov byte [esp + 0x36], 0
call fcn.004017b0
push ebx
mov esi, eax
call fcn.0043b806
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x4028c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44c90e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0043c4c8
mov dword [esi], vtable.CListCtrl.0
mov eax, dword [0x46514c]
lea ebp, [esi + 0x3c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], eax
mov ecx, dword [0x46514c]
lea edi, [esi + 0x40]
mov dword [edi], ecx
push 0x46a8c8
mov ecx, edi
mov byte [esp + 0x20], 2
mov dword [esi], method.CListCtrl.virtual_0
call fcn.0043ff85
mov edx, dword [edi]
push ebx
push ebx
push edx
push ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push edi
mov ecx, ebp
call fcn.0043ff35
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403400
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44ca5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
push edi
mov esi, ecx
push 0x46a8c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0
call fcn.0043fe6a
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x1009
push eax
mov byte [esp + 0x16c], 1
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x164]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4035c4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
lea edx, [esp + 0x168]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0043fb71
mov ecx, esi
call fcn.004033a0
lea eax, [esp + 0x164]
lea ecx, [esp + 0xc]
push eax
call fcn.0043ff35
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004394f0
mov eax, dword [eax]
push str.NC.
push eax
call fcn.0042344d
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0043fdfc
test bl, bl
je 0x4034e7
push str.NC.
lea ecx, [esp + 0x10]
call fcn.004401d8
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0043fb71
mov ecx, esi
call fcn.00403940
push 0x4635a4
lea ecx, [esp + 0x10]
call fcn.004401d8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4035c4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.0043fe6a
mov al, byte [esp + 0x14]
mov byte [esp + 0x15c], 2
test al, 0x10
je 0x40358b
mov eax, dword [esp + 0x10]
push 0x4635a0
push eax
call fcn.0042344d
add esp, 8
test eax, eax
je 0x40359c
mov ecx, dword [esp + 0x10]
push 0x46359c
push ecx
call fcn.0042344d
add esp, 8
test eax, eax
je 0x40359c
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
call fcn.00403710
inc dword [esi + 0x48]
jmp 0x40359c
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, esi
call fcn.00403710
inc dword [esi + 0x44]
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call fcn.0043fdfc
lea ecx, [esp + 0x14]
push ecx
push edi
call ebx
test eax, eax
jne 0x40352e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.0043fdfc
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0043fdfc
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret 4