joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401434
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004067ca
test eax, eax
jne 0x40153d
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x4014a9
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401519
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014e4
test edi, edi
jne 0x401519
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.00401434
test eax, eax
jne 0x4014ee
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014bc
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406ded
test eax, eax
jne 0x40152a
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40153d
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40153d
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403793
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x4037b2
mov eax, dword [0x40d934]
test eax, eax
je 0x4037aa
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40d934], 0
ret
cmp dword [0x40d934], 0
je 0x4037c3
push 0
call fcn.004066fd
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42ad00]
jbe 0x4037f6
push 0
push 0x403bc2
push 0
push 0x6f
push dword [0x429cf4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40d934], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x406306
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x406326
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x40984c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x40983c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406394
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40639e
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x406398
xor eax, eax
jmp 0x40639e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4
Function at 0x40668c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmova eax, ecx
test eax, eax
je 0x4066c5
cmp word [ebp + eax*2 - 0x23e], 0x5c
mov ecx, 0x4092c8
jne 0x4066ca
mov ecx, 0x4092ca
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
lea eax, [ecx + eax*2]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40672d
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406750
push dword [esp + 8]
push dword [esp + 8]
call fcn.004067f8
pop ecx
pop ecx
inc dword [0x42add0]
ret 8

Function at 0x4067f8
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, 0x400
mov dword [0x427e50], 0x55004e
mov ebp, 0x427e50
mov dword [0x427e54], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x40684f
push 1
push 0
push esi
call fcn.00406e22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406933
cmp eax, ebx
jg 0x406933
push ebx
mov esi, 0x427650
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x406933
cmp eax, ebx
jg 0x406933
push esi
push ebp
push str._ls_ls_r_n
push 0x427250
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x42ad18]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004063a4
push 4
push 0xc0000000
push esi
call fcn.00406e22
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x406933
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40692c
push esi
push edi
push ebx
call fcn.00406e4f
test eax, eax
je 0x40692c
push str._Rename__r_n
push edi
call fcn.00407047
test eax, eax
jne 0x406939
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x427250
lea eax, [ecx + edi]
push eax
call fcn.00406bb7
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406f16
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x4099c0
add eax, 0xa
push eax
call fcn.00407047
mov ecx, eax
test ecx, ecx
je 0x4068fd
lea edx, [edi + esi]
lea eax, [edx + ebp]
cmp edx, ecx
jbe 0x40696d
sub eax, edx
mov dword [esp + 0x1c], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x40695f
mov ebx, dword [esp + 0x10]
sub ecx, edi
inc ecx
jmp 0x4068ff
Function at 0x406a90
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040709a
mov edi, eax
cmp edi, 0xffffffff
je 0x406ad3
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406abb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406ac3
xor eax, eax
inc eax
jmp 0x406ad5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406ab2
test byte [ebp + 0xc], 4
jne 0x406ad3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x406b39
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x426a50
push ebx
call fcn.0040702b
push ebx
call fcn.004070c2
mov esi, eax
test esi, esi
jne 0x406b5a
xor eax, eax
jmp 0x406bb2
push esi
call fcn.00407235
test byte [0x42ad14], 0x80
je 0x406b76
movzx eax, word [esi]
test ax, ax
je 0x406b56
cmp eax, 0x5c
je 0x406b56
sub esi, ebx
sar esi, 1
jmp 0x406b90
call fcn.00406ada
test eax, eax
je 0x406b8a
test byte [eax], 0x10
je 0x406b56
push ebx
call fcn.00407208
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406b7c
call fcn.00406a61
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x406bd9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x426208], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x426208
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406c18
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x406c1e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406b39
mov dword [esp + 0x14], eax
test bl, 8
je 0x406c60
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42adc8], eax
jmp 0x406de1
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406c7d
test eax, eax
je 0x406dd0
test bl, 2
je 0x406d95
push esi
push 0x426250
call fcn.0040702b
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406ca0
push str..
push 0x426250
call ebp
jmp 0x406ca6
push esi
call fcn.00407208
xor eax, eax
cmp word [esi], ax
jne 0x406cb7
cmp word [0x426250], 0x5c
jne 0x406cbf
push 0x4092c8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x426250
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406d80
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406d09
cmp word [esp + 0x4a], 0
je 0x406d62
cmp word [esp + 0x4a], ax
jne 0x406d09
cmp word [esp + 0x4c], 0
je 0x406d62
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.0040702b
test byte [esp + 0x1c], 0x10
je 0x406d30
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d62
push ebx
push esi
call fcn.00406c1e
jmp 0x406d62
push edi
push esi
call fcn.00406a90
test eax, eax
jne 0x406d5a
test edi, edi
je 0x406d52
push esi
push 0xfffffffffffffff1
call fcn.00406222
xor eax, eax
push eax
push esi
call fcn.0040672d
jmp 0x406d62
inc dword [0x42adc8]
jmp 0x406d62
push esi
push 0xfffffffffffffff2
call fcn.00406222
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406ceb
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406de0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406dd0
push esi
call fcn.00406ada
test eax, eax
je 0x406de0
push esi
call fcn.00406a61
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406a90
test eax, eax
jne 0x406dd8
test edi, edi
je 0x406dd0
push esi
push 0xfffffffffffffff1
call fcn.00406222
xor eax, eax
push eax
push esi
call fcn.0040672d
jmp 0x406de0
inc dword [0x42adc8]
jmp 0x406de0
push esi
push 0xffffffffffffffe5
call fcn.00406222
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406e22
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004067ca
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406ef2
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406ef2
cmp dword [ebp + 0x18], 1
je 0x406ef7
cmp dword [ebp + 0x18], 2
je 0x406ef7
xor eax, eax
mov word [edi], ax
pop edi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406efe
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406f63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4099a0]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x4099a4]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406faf
test edi, edi
jne 0x406f70
mov word [esi], ax
jmp 0x406fb1
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40709a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070bc
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x40732a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4288a4], 0
push esi
jne 0x407364
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x40733b
mov dword [ecx*4 + 0x4288a0], edx
inc ecx
cmp ecx, 0x100
jl 0x407336
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40738e
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4288a0]
inc esi
sub edx, 1
jne 0x407376
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREAdobeAcrobat_Reader9.0AcroSpeedLaunch]
sub esp, 0x10
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401064
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401059
cmp dword [esp + 0xc], 4
jne 0x401059
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401090
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 1
push str.ServicesActive
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4010fb
push esi
push edi
xor edi, edi
cmp edi, 0xc
jae 0x4010f2
mov eax, dword [edi + 0x408024]
push 4
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4010eb
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4010e4
cmp dword [esp + 0x14], 4
jne 0x4010e4
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
test bl, bl
je 0x4010b0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4016c0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x28
call fcn.004012f0
test al, al
jne 0x40187e
mov eax, dword [str.Mode]
push esi
push eax
xor eax, eax
call fcn.00401000
mov esi, eax
add esp, 4
cmp esi, 3
jae 0x401875
cmp esi, 2
je 0x401875
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
call fcn.004011e0
add esp, 4
test eax, eax
mov dword [0x4083e0], eax
je 0x40186b
call fcn.00401070
test al, al
jne 0x401854
push 0x401110
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x401854
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x4083e4], eax
je 0x40184b
push 0x4083c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
cmp esi, 1
sete al
lea edx, [esp + 0x10]
push edx
push 0
mov byte [0x4083ec], 0
push eax
push 0x401390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x4083e8], eax
je 0x401829
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x4017e9
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x4017e4
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4017c0
mov edi, dword [esp + 0xc]
pop ebp
call fcn.00401140
mov edx, dword [0x4083e8]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401812
mov eax, dword [0x4083e8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x4083e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4083e8], 0
mov edx, dword [0x4083e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4083c8
mov dword [0x4083e4], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [0x4083e0]
push ecx
call fcn.004012c0
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
add esp, 0x28
ret 0x10

Function at 0x401960
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401983
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, ecx
pop esi
add esp, 0x24
ret
mov eax, dword [esi]
pop esi
add esp, 0x24
ret
Function at 0x401a60
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
call fcn.00401990
test al, al
je 0x401b28
cmp byte [ebx], 0
jne 0x401b28
cmp dword [ebx + 4], 0
jne 0x401aae
cmp byte [esp + 0xc], 0
mov eax, 2
je 0x401a91
mov eax, 0x1000002
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x401aae
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401b28
cmp dword [ebx + 8], 0
jne 0x401b28
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x401adc
test eax, eax
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.004019e0
add esp, 8
test al, al
pop edi
je 0x401b14
mov eax, dword [esp + 4]
test eax, eax
je 0x401b14
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
test edx, edx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
xor eax, eax
cmp dword [ebx + 8], eax
pop esi
setne al
pop ecx
ret

Function at 0x401b40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x401b60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x408398]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x401bee
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x401bee
mov dword [ebp - 0x150], 1
jmp 0x401bba
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0xc]
jae 0x401be1
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401bdf
jmp 0x401be1
jmp 0x401bab
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038fc
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jg 0x401f4e
jl 0x401f32
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x7fffffff
ja 0x401f4e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
jg 0x401f53
jl 0x401f4e
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x80000001
jae 0x401f53
jmp 0x401fe5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401fe5
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401fe5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.00401e20
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fd8
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x401fda
jmp 0x401fe5
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x401f88
mov esp, ebp
pop ebp
ret