joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x470812
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
lea eax, [edi + 0x60]
mov dword [edi], 0x481514
mov dword [esp + 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [esp + 0x20], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x20], 1
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0xc], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00406410
mov dword [esp + 0x20], 4
mov eax, dword [edi]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.004072f0
mov byte [esp + 0x20], 5
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x495394]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov byte [esp + 0x20], 6
sub esp, 8
mov ecx, esi
push dword [esp + 0x30]
call fcn.00406950
test eax, eax
jne 0x405458
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x405446
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x405458
push 0
call fcn.00402c60
mov dword [esp + 0x20], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0x10
Function at 0x406b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470958
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x406cf3
cmp byte [ebx + 0x45], 0
je 0x406cf3
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406bc0
xor al, al
jmp 0x406cf5
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
jmp 0x406c20
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x406c5b
dec eax
je 0x406c5f
sub eax, 2
je 0x406cbd
xor bl, bl
jmp 0x406cbf
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x406c9e
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00451245
add esp, 0x10
cmp esi, eax
jne 0x406c57
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x406cbd
test esi, esi
jne 0x406c20
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004061b0
jmp 0x406c0f
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x406cda
push dword [esp + 0x18]
call fcn.0044fd7a
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x406cf5
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044fd7f
mov esp, ebp
pop ebp
ret
Function at 0x408d30
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x408d95
cmp dword [edi], 0
mov esi, dword [esi]
je 0x408d75
push 0x481624
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408d8b
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408d8b
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x408d8b
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x4953e4], 0
jne 0x408dd5
push 0x481624
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408dc7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4953e0], eax
mov byte [0x4953e4], 1
jmp 0x408dda
mov eax, dword [0x4953e0]
mov byte [0x4953e4], 1
jmp 0x408dda
mov eax, dword [0x4953e0]
test eax, eax
je 0x408df0
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4

Function at 0x408f40
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x408f52
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x408f60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f60
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x408f90
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x408fa4
pop ebp
lea eax, [ebx + 0xd]
pop ebx
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
lea ebx, [ebx]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408fb5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x408fb0
push esi
push ebx
push 7
push 0
push dword [esp + 0x24]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x408ff0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x470ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [esp + 0x244]
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x23c], 0
mov eax, dword [ebp + 4]
or eax, 0x2001f
push eax
push ecx
push dword [ebp]
lea ecx, [esp + 0x20]
call fcn.00408eb0
mov esi, eax
test esi, esi
jne 0x40911b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x24]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x100
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x30]
call edi
test eax, eax
jne 0x4090ef
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00408ff0
mov esi, eax
test esi, esi
jne 0x40911b
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x30]
call edi
test eax, eax
je 0x4090b6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409106
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.00408d30
mov esi, eax
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40913d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov eax, esi
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x230
ret 4
Function at 0x4097e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x470f73
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49274c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x41c]
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x404], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp + 0x408], xmm0
mov dword [ebp + 0x40c], ecx
mov dword [ebp + 0x408], 0
push 0x404
push 0
lea eax, [ebp]
push eax
call fcn.00455ee0
add esp, 0xc
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4098af
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4098af
call fcn.00408840
mov edi, eax
jmp 0x4099bc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4098cc
call fcn.00408840
jmp 0x4099af
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4098e7
call fcn.00408840
jmp 0x4099af
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x409905
mov edi, 0x8007000e
jmp 0x4099b1
mov byte [ebp - 4], 2
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x409949
cmp ecx, 0xffffffff
ja 0x409949
cmp ecx, 0x400
jbe 0x40993a
push ecx
lea ecx, [ebp]
call fcn.0040dfe0
mov dword [ebp - 4], 1
jmp 0x409969
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x409969
push 0x80070216
call fcn.00408760
mov eax, 0x409959
ret
mov eax, dword [ebp]
test eax, eax
jne 0x409977
mov edi, 0x8007000e
jmp 0x4099b1
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x409992
call fcn.00408840
jmp 0x4099af
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x428]
push dword [ebp]
lea ecx, [ebp + 0x408]
call fcn.0040a7b0
mov edi, eax
test esi, esi
je 0x4099bc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4099d0
lea ecx, [ebp]
call fcn.0040dfd0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0044fd7f
lea esp, [ebp + 0x414]
pop ebp
ret 0x10
Function at 0x40e570
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4718e7
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov ebp, eax
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e5db
xor al, al
jmp 0x40e74d
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40e73c
nop
cmp dword [esp + 0x28], ebp
je 0x40e728
xor eax, eax
push 0x206
push eax
mov word [esp + 0x45c], ax
lea eax, [esp + 0x45e]
push eax
call fcn.00455ee0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x464]
push 0x104
push eax
call fcn.0045137e
xor eax, eax
push 0x206
push eax
mov word [esp + 0x26c], ax
lea eax, [esp + 0x26e]
push eax
call fcn.00455ee0
push esi
lea eax, [esp + 0x274]
push 0x104
push eax
call fcn.0045137e
lea eax, [esp + 0x27c]
push eax
call fcn.0046c40c
mov esi, eax
lea eax, [esp + 0x488]
push eax
call fcn.0046c40c
add esp, 0x38
lea ecx, [ecx]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x40e6a6
test cx, cx
je 0x40e6a2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x40e6a6
add eax, 4
add esi, 4
test cx, cx
jne 0x40e680
xor eax, eax
jmp 0x40e6ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40e724
mov eax, dword [edi + 4]
lea ecx, [esp + 0x28]
cmp ecx, eax
jae 0x40e706
mov ecx, dword [edi]
lea edx, [esp + 0x28]
cmp ecx, edx
ja 0x40e706
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x40e6d8
push ecx
mov ecx, edi
call fcn.0040e900
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x668], 0
test ecx, ecx
je 0x40e6f9
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
mov dword [esp + 0x668], 0xffffffff
jmp 0x40e720
cmp eax, dword [edi + 8]
jne 0x40e713
push ecx
mov ecx, edi
call fcn.0040e900
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40e720
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
add dword [edi + 4], 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40e5f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
xor eax, eax
cmp ecx, dword [edi + 4]
setne al
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x658
ret
Function at 0x40e780
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x471930
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x34]
cmp dword [esp + 0x48], 8
lea edx, [esp + 0x14]
cmovae ecx, dword [esp + 0x34]
call fcn.0040e570
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x40e80f
xor bl, bl
jmp 0x40e84b
mov ebx, eax
xor ecx, ecx
sub ebx, ebp
xor edi, edi
add ebx, 3
mov esi, ebp
shr ebx, 2
cmp ebp, eax
cmova ebx, ecx
test ebx, ebx
je 0x40e849
push dword [esi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40e841
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40e828
mov bl, 1
mov byte [esp + 0x2c], 0
test ebp, ebp
je 0x40e875
push ebp
call fcn.0044fd7a
add esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x40e890
push dword [esp + 0x34]
call fcn.0044fd7a
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x1c
ret
Function at 0x40edb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4719e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0040ea50
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x40ee3a
lea eax, [esp + 0xc]
cmp esi, eax
je 0x40ee3a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406260
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x40ee55
push dword [esp + 0xc]
call fcn.0044fd7a
add esp, 4
mov dword [esp + 0x20], 0xf
mov eax, edi
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x28
ret

Function at 0x40f100
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x400
mov esi, ecx
push 0
push esi
call fcn.00455ee0
push 0x110
lea eax, [esp + 0x18]
mov byte [esi + 0x400], 0
push 0
push eax
mov dword [esi + 0x404], 0
mov dword [esp + 0x1c], 0x114
call fcn.00455ee0
add esp, 0x18
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40f16e
cmp dword [esp + 8], 6
jb 0x40f16e
mov byte [esi + 0x400], 1
mov ecx, esi
call fcn.0040f190
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044fd7f
add esp, 0x118
ret
Function at 0x40fcb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x471a7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x24]
test edi, edi
je 0x40fda9
cmp word [edi], 0
je 0x40fda9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fda9
test al, 0x10
jne 0x40fda9
cmp dword [esi], 0
jne 0x40fd4d
push 0x438
call fcn.004514bd
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x40fd41
push 0x438
push 0
push ebx
call fcn.00455ee0
add esp, 0xc
mov ecx, ebx
call fcn.0040f100
jmp 0x40fd43
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi], eax
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esi]
push ecx
push ecx
push edi
call fcn.0040fb40
mov ecx, dword [esi]
mov dword [ecx + 0x404], eax
cmp eax, 2
je 0x40fd90
cmp eax, 3
je 0x40fd90
mov eax, dword [esi]
xor cl, cl
xor edx, edx
mov word [eax], dx
mov al, cl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
mov cl, 1
mov al, cl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x415900
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x41590d
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x415908
cmp dword [eax], 0xffffffff
je 0x415908
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x415990
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x472498
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x4159d5
mov eax, dword [esi]
jmp 0x4159d7
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x4159ec
mov al, 1
jmp 0x415a76
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00416330
test al, al
je 0x415a40
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x415a40
mov bl, 1
jmp 0x415a42
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x415a5d
push dword [esp + 0x14]
call fcn.0044fd7a
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4724c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x415adc
mov eax, dword [esi]
jmp 0x415ade
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415b73
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00416330
test al, al
je 0x415b41
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x415b5c
push dword [esp + 0xc]
call fcn.0044fd7a
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x28
ret
Function at 0x415ba0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4724c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x49274c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x415bdc
mov eax, dword [esi]
jmp 0x415bde
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415bf2
mov al, 1
jmp 0x415c81
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00416330
test al, al
je 0x415c4b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415c4b
mov bl, 1
jmp 0x415c4d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x415c68
push dword [esp + 0xc]
call fcn.0044fd7a
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044fd7f
add esp, 0x28
ret