joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437740
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
or esi, 0xffffffff
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x40c97a
lea eax, [ebp + 0x10]
mov edx, 0x440204
push eax
lea ecx, [ebp - 0x10]
call fcn.00407320
add esp, 4
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.004085c0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c97a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040d100
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.004074c0
sub esp, 0x10
lea ecx, [ebp - 0x20]
push dword [eax]
push SysReAllocString
call fcn.0040bed0
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, esi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c9de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c9fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
mov ebx, dword [ebp - 0x20]
je 0x40ca3e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40ca0f
lea edi, [eax + 0xd]
jmp 0x40ca43
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40ca14
sub edx, edi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x40ca43
mov edi, 0x65b
test ebx, ebx
je 0x40ca4e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40caa9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437788
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x40cb3c
lea eax, [ebp + 0xc]
mov edx, 0x440204
push eax
lea ecx, [ebp - 0x14]
call fcn.00407320
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004085c0
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cb3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040d100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004074c0
sub esp, 0x10
lea ecx, [ebp - 0x24]
push dword [eax]
push SysReAllocString
call fcn.0040bed0
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, esi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cba1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cbbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x24]
je 0x40cbe3
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 4
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x40cbe8
mov ebx, 0x65b
test edi, edi
je 0x40cbf3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cc11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cc30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437638
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov eax, dword [ebp + 0xc]
mov ebx, 0x65b
cmp dword [eax - 0xc], 0
je 0x40ccd2
lea eax, [ebp + 0xc]
mov edx, 0x440204
push eax
lea ecx, [ebp - 0x14]
call fcn.00407320
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004085c0
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ccd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040d100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004074c0
sub esp, 0x10
lea ecx, [ebp - 0x28]
push dword [eax]
push SysReAllocString
call fcn.0040bed0
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, esi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x28]
je 0x40cd76
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax]
push 3
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test edi, edi
je 0x40cd81
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cdbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437830
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00406c60
mov ecx, eax
test ecx, ecx
jne 0x40cf84
push 0x80004005
call fcn.00406fc0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
je 0x40cfe0
lea eax, [ebp + 0xc]
mov edx, 0x440204
push eax
lea ecx, [ebp - 0x14]
call fcn.00407320
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.004085c0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cfe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040d100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004074c0
add esp, 4
lea ecx, [ebp - 0x2c]
push 0x2001f
push dword [eax]
push SysReAllocString
call fcn.0040bf50
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, esi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d04a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d068
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x2c]
je 0x40d080
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x14], eax
jmp 0x40d087
mov dword [ebp - 0x14], 0x65b
test edi, edi
je 0x40d092
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40d0aa
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d0c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40d0e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437858
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov ebx, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40d1e2
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x40d1aa
mov eax, dword [esi]
test eax, eax
je 0x40d19a
push eax
call fcn.0042664a
add esp, 4
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x40d1ca
cmp edi, dword [esi + 8]
ja 0x40d1b6
cmp edi, dword [esi + 4]
jbe 0x40d1c7
jmp 0x40d1c2
push edi
mov ecx, esi
call fcn.00407ff0
test al, al
je 0x40d1ca
call fcn.004027b0
mov dword [esi + 4], edi
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push dword [ebp - 0x14]
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d204
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437890
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push ecx
mov esi, esp
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407960
add eax, 0x10
mov edx, ebx
mov ecx, edi
mov dword [esi], eax
call fcn.0040d130
mov ebx, dword [ebp - 0x28]
mov esi, eax
add esp, 8
or edi, 0xffffffff
test esi, esi
jne 0x40d2f0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407960
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x14]
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d2ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x40d2fd
push ebx
call fcn.0042664a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40d31c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d710
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437948
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x44a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
xor bl, bl
lea ecx, [ebp - 0x14]
xor edx, edx
mov byte [ebp - 0xd], bl
call fcn.0040d5b0
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x40d8bd
push eax
lea ecx, [ebp - 0x2c]
call fcn.004075c0
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d89c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x40d89c
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push ecx
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00407ed0
mov ebx, dword [ebp - 0x44]
push ebx
push edi
push 0
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40d88c
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push str.StringFileInfo000004b0ProductName
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call edi
test eax, eax
je 0x40d88c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push str.StringFileInfo000004b0ProductVersion
push ebx
call edi
test eax, eax
je 0x40d88c
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
call fcn.00406c60
push eax
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.004078d0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.004085c0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00407300
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
call fcn.00406c60
push eax
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.004078d0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.004085c0
lea ecx, [ebp - 0x20]
call fcn.00407300
mov byte [ebp - 0xd], 1
or esi, 0xffffffff
test ebx, ebx
je 0x40d899
push ebx
call fcn.0042664a
add esp, 4
mov bl, byte [ebp - 0xd]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d8ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40d8d9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40daf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437a0f
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], ecx
xor ebx, ebx
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], ebx
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40db6d
call fcn.00407210
test eax, eax
jne 0x40dd55
jmp 0x40db75
mov edi, eax
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x11c], esi
cmp esi, 0xffffffff
jne 0x40dba3
call fcn.00407210
test eax, eax
js 0x40dd4a
mov esi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x40dbb8
cmp esi, 3
jb 0x40dd4a
test eax, eax
ja 0x40dd4a
jb 0x40dbcc
cmp esi, 0x989680
jae 0x40dd4a
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push ecx
push 3
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 2
call fcn.00407ed0
mov ebx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x128]
push 3
push ebx
call fcn.00407240
test eax, eax
jne 0x40dd37
lea ecx, [ebp - 0x13c]
call fcn.0040d9f0
test eax, eax
je 0x40dd37
add esi, 0xfffffffd
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
push ecx
push esi
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 3
call fcn.00407ed0
push esi
mov esi, dword [ebp - 0x14c]
lea ecx, [ebp - 0x128]
push esi
call fcn.00407240
test eax, eax
jne 0x40dd2a
call fcn.00406c60
push eax
push dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push esi
call fcn.0040e460
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x118]
cmp dword [eax - 4], 1
jle 0x40dcce
push dword [eax - 0xc]
lea ecx, [ebp - 0x118]
call fcn.00407730
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.0040e4d0
mov ecx, dword [ebp - 0x12c]
mov byte [ebp - 4], 5
push dword [ebp - 0x114]
call fcn.00407570
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x40dd15
push eax
call fcn.0042664a
add esp, 4
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], 1
call fcn.00407300
test esi, esi
je 0x40dd37
push esi
call fcn.0042664a
add esp, 4
test ebx, ebx
je 0x40dd44
push ebx
call fcn.0042664a
add esp, 4
mov ebx, dword [ebp - 0x120]
test edi, edi
je 0x40dd55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40dd77
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420347
mov esp, ebp
pop ebp
ret
Function at 0x40e1a0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437afe
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x40e382
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40e382
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00423450
push 0x4407f4
lea edx, [ebp + 8]
lea ecx, [ebp - 0x268]
call fcn.004073f0
add esp, 0x10
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x268]
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e257
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x40e382
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.004075c0
mov byte [ebp - 4], 1
mov edx, 0x440438
mov eax, dword [ebp - 0x264]
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40e2a9
test si, si
je 0x40e2a5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40e2a9
add ecx, 4
add edx, 4
test si, si
jne 0x40e283
xor ecx, ecx
jmp 0x40e2ae
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x40e346
mov ecx, 0x440948
mov edx, eax
mov si, word [edx]
cmp si, word [ecx]
jne 0x40e2e8
test si, si
je 0x40e2e4
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x40e2e8
add edx, 4
add ecx, 4
test si, si
jne 0x40e2c2
xor ecx, ecx
jmp 0x40e2ed
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x40e346
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x270]
call fcn.004074c0
add esp, 4
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 2
push dword [eax]
call fcn.004086c0
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e340
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x264]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e361
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e260
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x40e384
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40e3a3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420347
mov esp, ebp
pop ebp
ret