joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414530
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
mov ebx, edx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x414572
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x4146de
lea eax, [esp + 0x1c]
push eax
call fcn.00416e00
push 2
push 0
push 0x5a98b8
mov ecx, eax
call fcn.00415470
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00407740
cmp esi, 0xffffffff
je 0x4145f6
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00416e00
mov esi, eax
mov ecx, edi
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.00416cc0
mov edx, esi
mov ecx, eax
call fcn.004142c0
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00407740
lea ecx, [esp + 0x34]
call fcn.00407740
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x414600
mov eax, dword [edi]
jmp 0x414602
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41455e
test bl, 1
je 0x41463a
cmp dword [edi + 0x14], 8
jb 0x414623
mov ecx, dword [edi]
jmp 0x414625
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4146de
test bl, 0x10
jne 0x414666
cmp dword [edi + 0x14], 8
jb 0x414647
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x14], 0
je 0x414699
push 0x5a98c0
lea ecx, [esp + 0x20]
call fcn.00407780
mov ebx, 1
lea edx, [esp + 0x1c]
push ebx
mov ecx, edi
call fcn.004142c0
add esp, 4
test al, al
jne 0x41469d
mov byte [esp + 0x13], al
jmp 0x4146a2
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x13], 1
test bl, 1
je 0x4146b0
lea ecx, [esp + 0x1c]
call fcn.00407740
cmp byte [esp + 0x13], 0
je 0x4146de
cmp dword [edi + 0x14], 8
jb 0x4146bf
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
Function at 0x414aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x414aae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x414ac8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414adb
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x414ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x414bc2
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x414b32
xor ecx, ecx
jmp 0x414b4f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414b40
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.004166c0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x414b6a
mov ecx, dword [eax]
jmp 0x414b6c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004166c0
lea ecx, [esp + 8]
call fcn.004175e0
lea eax, [esp + 8]
cmp esi, eax
je 0x414b9a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407e60
lea ecx, [esp + 8]
call fcn.00407740
lea ecx, [esp + 0x20]
call fcn.00407740
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
Function at 0x414be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x414c8f
cmp word [esp + 0x20], 0
je 0x414c8f
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x414c53
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004166c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414c60
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004166c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.004077e0
lea eax, [esp + 8]
push eax
call fcn.00414ae0
add esp, 4
mov ecx, esi
test al, al
je 0x414cb7
lea eax, [esp + 8]
push eax
call fcn.00407800
jmp 0x414cce
sub esp, 8
mov eax, esp
mov dword [eax], 0x5a98c4
mov dword [eax + 4], 3
call fcn.004166c0
lea ecx, [esp + 8]
call fcn.00407740
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
Function at 0x414cf0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x414d1d
mov ebx, dword [edi]
jmp 0x414d1f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414d61
test al, 0x10
je 0x414d43
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x414d4d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00416cc0
cmp dword [edi + 0x14], 8
jb 0x414d77
mov ecx, dword [edi]
jmp 0x414d79
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.00415410
add esp, 0x10
test eax, eax
jne 0x414daa
test esi, esi
je 0x414dee
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x414df4
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00414cf0
test al, al
je 0x414dee
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x414df2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x414de1
mov ecx, edi
call fcn.00414ac0
test al, al
jne 0x414df2
test esi, esi
je 0x414dee
mov ecx, ebx
call fcn.0041f0b0
mov dword [esi], eax
xor bl, bl
jmp 0x414df4
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00407740
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret

Function at 0x414ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x414ee0
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00411eb0
mov eax, dword [esp + 8]
test eax, eax
je 0x414f31
cmp eax, 0xffffffff
je 0x414f31
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414f31
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x414f34
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.00411e40
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov word [esp + 0x50], ax
mov esi, ecx
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x415039
cmp eax, 0x104
ja 0x415039
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc]
call fcn.00407780
sub esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, esp
cmovae eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.004166c0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x414fd9
mov ecx, dword [eax]
jmp 0x414fdb
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004166c0
lea ecx, [esp + 0x20]
call fcn.004175e0
lea eax, [esp + 0x20]
cmp esi, eax
je 0x415009
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407e60
lea ecx, [esp + 0x20]
call fcn.00407740
lea ecx, [esp + 0x38]
call fcn.00407740
lea ecx, [esp + 8]
call fcn.00407740
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00417530
test al, al
jne 0x4150bc
mov ecx, esi
call fcn.00417530
test al, al
jne 0x4150bc
cmp dword [edi + 0x10], 0x104
jae 0x4150bc
cmp dword [esi + 0x10], 0x104
jae 0x4150bc
cmp dword [esi + 0x14], 8
jb 0x415085
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41508d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4150bc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4150bc
test al, 1
je 0x4150b6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x4150d0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x415162
cmp dword [edi + 0x10], 0x104
jae 0x415162
cmp dword [edi + 0x14], 8
jb 0x4150f6
mov eax, dword [edi]
jmp 0x4150f8
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x415100
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x415116
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x41512c
mov eax, dword [esi]
jmp 0x41512e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415150
shr eax, 4
and al, 1
je 0x415150
mov edx, edi
mov ecx, esi
call fcn.00415170
mov bl, al
test bl, bl
jne 0x415159
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419960
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004fd580
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x577e28]
mov esi, eax
test esi, esi
jne 0x419aa7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x419a34
cmp word [esp + 0x10], ax
jne 0x4199f8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00407d60
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a00
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407d60
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x419aa2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x419a87
cmp eax, 0x400
ja 0x419a87
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00407d10
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret 8
Function at 0x41af50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c125c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5d9bd4], 0
je 0x41af79
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.004fcea4
mov ecx, eax
call fcn.0041ada0
mov dword [0x5d9bd4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407780
lea eax, [ebp - 0x1c]
push eax
call fcn.0041b640
lea ecx, [ebp - 0x1c]
call fcn.00407740
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004fce93
mov esp, ebp
pop ebp
ret

Function at 0x41b640
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c125c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [0x5d9bd4]
call fcn.004077e0
mov edx, 0x5a9bb0
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41b672
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x5a9bb0
push eax
call fcn.004182a0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41b6cc
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.0041afe0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.00407740
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004fce93
mov esp, ebp
pop ebp
ret 4
Function at 0x41cbe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, ecx
mov ebx, dword [0x5d9bd4]
mov ecx, ebx
push 0x5ab4e0
call fcn.0041b200
test al, al
jne 0x41cc2b
push str.vmodule
mov ecx, ebx
call fcn.0041b200
test al, al
je 0x41ccbb
cmp dword [0x5d9bd8], 0
je 0x41cc42
cmp byte [0x5dafd0], 0
jne 0x41cd79
int3
mov eax, dword [0x5d9bf4]
push 0x10
mov dword [0x5d9bd8], eax
call fcn.004fcea4
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x5ab4e0
push eax
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0041b2b0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041b2b0
push eax
mov ecx, esi
call fcn.00423900
lea ecx, [esp + 0x1c]
mov dword [0x5d9bf4], eax
call fcn.004078b0
lea ecx, [esp + 0x34]
call fcn.004078b0
mov eax, dword [edi]
mov dword [0x5c1cf8], eax
test al, 1
jne 0x41ccda
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5d9bec]
test eax, eax
je 0x41ccf4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5d9bec], 0
mov edx, dword [0x5d9bf0]
test edx, edx
jne 0x41cd17
push 0x18
call fcn.004fcea4
add esp, 4
mov ecx, eax
call fcn.004077e0
mov edx, eax
mov dword [0x5d9bf0], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x41cd24
xor ecx, ecx
jmp 0x41cd3f
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cd30
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00407d60
cmp dword [edi + 0xc], 0
jne 0x41cd62
mov eax, dword [0x5d9bf0]
cmp dword [eax + 0x14], 8
jb 0x41cd5b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0041caa0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050a42f
int3
Function at 0x41ce50
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5c125c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00415d20
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00413150
mov eax, dword [0x5d9be8]
test eax, eax
je 0x41ceb9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x41cfce
test byte [0x5c1cf8], 2
je 0x41ced9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41cede
cmp dword [ebx], 2
jl 0x41cf1d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.0050b428
add esp, 4
push eax
push 1
push esi
push edi
call fcn.0050b750
push 2
call fcn.0050b428
add esp, 0x14
push eax
call fcn.0050b0bd
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x5c1cf8], 1
je 0x41cf55
call fcn.0041caa0
test al, al
je 0x41cf55
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x5d9bec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x41cfce
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41cf89
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00502e70
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00423570
add esp, 4
cmp dword [0x5d9bf8], 0
je 0x41cfc4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00413150
lea eax, [esp + 0x28]
push eax
call dword [0x5d9bf8]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.004078b0
jmp 0x41cfce
cmp byte [0x5dafd0], 0
jne 0x41d011
int3
lea ecx, [esp + 0x10]
call fcn.004078b0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00411f20
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004ff2e6
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050a42f
int3
Function at 0x41eab0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x41eb0b
mov ecx, esi
jmp 0x41eb10
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x41eb35
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x41eb1f
mov eax, dword [eax]
jmp 0x41eb03
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41ee50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x41eec1
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x41eec1
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x41ef05
cmp esi, eax
jne 0x41eeb5
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x41eeee
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x41ef3b
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x41ef5d
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xc]
dec dword [ebx + 8]
call fcn.00407740
push edi
call fcn.0056c31e
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x41ef43
mov dword [ecx], edi
jmp 0x41ef5d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x41ef5d
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0041ef80
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc