joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451dc4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451f6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451f50
mov dl, 1
mov eax, dword [0x4120a4]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040421c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451f3f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043fcdc
test al, al
je 0x451f32
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451f80
lea eax, [ebp - 0x254]
call fcn.00408e8c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451f32
xor eax, eax
push ebp
push 0x451f2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451fb8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451f14
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451f14
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451f32
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451e35
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415c08
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451f76
lea eax, [ebp - 0x260]
call fcn.0040421c
ret

Function at 0x4528b8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458b70]
cmp byte [eax + 0xa5], 0
jne 0x452929
cmp dword [0x458b88], 0
jne 0x4528ea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452874
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458b88], eax
cmp dword [0x458b84], 0
jne 0x452905
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458b84], eax
cmp dword [0x458b8c], 0
jne 0x452929
push esp
push 0
push 0
push 0x452818
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458b8c], eax
pop edx
ret
Function at 0x452fbc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458b70]
cmp dword [eax + 0x30], 0
je 0x453066
cmp dword [ebx + 0x94], 0
jne 0x453060
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452f4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453060
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453026
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453060
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414004
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453035
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453bc4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453bf9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040430c
jmp 0x453c06
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404270
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454d18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454d59
mov eax, esi
call fcn.0043b274
test al, al
je 0x454d59
mov eax, dword [ebx + 0x84]
call fcn.0043af70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454d59
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043af70
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x7a8a0d39
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x703a6eb8
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401a40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46623e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esi], vtable.TiXmlBase.0
xor ebx, ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], ebx
mov dword [esp + 0x18], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov byte [esp + 0x18], 1
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00404920
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, edi
call fcn.00404920
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0xc

Function at 0x401b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466f5e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi], vtable.TiXmlBase.0
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov byte [esp + 0x1c], 1
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov byte [esp + 0x1c], 2
mov eax, ebp
lea edx, [eax + 1]
mov dword [esp + 0x28], edx
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x401b80
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.00407a50
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401ba0
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00407a50
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x408eb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4648fb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004487dc
mov dword [esp + 0x14], 0
push 4
call fcn.00449d50
mov edi, eax
add esp, 4
test edi, edi
je 0x408f11
call fcn.00448a42
mov dword [edi], eax
call fcn.00448876
mov ecx, eax
call fcn.00405680
jmp 0x408f13
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x40d2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4657d0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x20], cl
mov byte [esp + 0xc], 1
mov dword [eax + 0x50], edx
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov byte [esp + 0xc], 2
mov dword [eax + 0x6c], edx
mov dword [eax + 0x68], ecx
mov byte [eax + 0x58], cl
mov byte [esp + 0xc], 3
mov dword [eax + 0x88], edx
mov dword [eax + 0x84], ecx
mov byte [eax + 0x74], cl
mov byte [esp + 0xc], 4
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa0], ecx
mov byte [eax + 0x90], cl
mov byte [esp + 0xc], 5
mov dword [eax + 0xc0], edx
mov dword [eax + 0xbc], ecx
mov byte [eax + 0xac], cl
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x411b00
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x411b25
test esi, esi
je 0x411b20
cmp esi, dword [esp + 0x1c]
je 0x411b25
call fcn.0044ad2c
cmp edi, dword [esp + 0x20]
je 0x411b91
cmp esi, 0xfffffffe
mov ebx, edi
je 0x411b57
test esi, esi
jne 0x411b3b
call fcn.0044ad2c
cmp dword [esi + 0x18], 0x10
jb 0x411b46
mov eax, dword [esi + 4]
jmp 0x411b49
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x411b57
call fcn.0044ad2c
add edi, 1
cmp esi, 0xfffffffe
je 0x411b84
test esi, esi
jne 0x411b68
call fcn.0044ad2c
cmp dword [esi + 0x18], 0x10
jb 0x411b73
mov eax, dword [esi + 4]
jmp 0x411b76
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x411b84
call fcn.0044ad2c
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x411b11
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x4127f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4654db
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax], vtable.FileStream.0
xor ecx, ecx
mov dword [eax + 0x30], 0xf
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x1c], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x412cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 8]
push 1
lea edx, [esp + 0x17]
push edx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412d5c
push 0x1e
push str.Failed_to_read_byte_from_file.
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00407a50
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00412410
push 0x4769b0
lea edx, [esp + 0x30]
push edx
call fcn.0044e17f
cmp dword [esp + 0xc], ebx
jne 0x412d76
or eax, 0xffffffff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [esp + 0xb]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412e1d
push 0x1e
push str.Failed_to_read_data_from_file.
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00407a50
mov dword [esp + 0x78], ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.00412410
push 0x4769b0
lea eax, [esp + 0x30]
push eax
call fcn.0044e17f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412ecb
push 0x1d
push str.Failed_to_write_data_to_file.
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
call fcn.00407a50
mov dword [esp + 0x70], 0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xc]
call fcn.00412410
push 0x4769b0
lea eax, [esp + 0x28]
push eax
call fcn.0044e17f
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x414cc0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x466932
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4812a4]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax + 0x18]
cmp ecx, 0x10
mov dword [esp + 0x18], ebp
lea esi, [eax + 4]
jb 0x414d22
mov eax, dword [esi]
jmp 0x414d24
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x414d27
sub eax, edi
cmp ecx, 0x10
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
jb 0x414d63
mov ecx, dword [esi]
jmp 0x414d65
mov ecx, esi
push ecx
lea esi, [esp + 0x20]
call section..text
add esp, 4
mov eax, esi
call fcn.00401100
xor esi, esi
lea edi, [esp + 0x88]
movzx eax, byte [esp + esi + 0x74]
push eax
push str._02x
push edi
call fcn.0044aad3
add esi, 1
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x414d82
lea eax, [esp + 0x88]
mov byte [esp + 0xa8], bl
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414dc0
sub eax, edx
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, ebp
call fcn.00407a50
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x14], 1
mov eax, ebp
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00449829
add esp, 0xa8
ret
Function at 0x418730
Capabilities:
Delete file

Disassembly:
cmp dword [eax + 0x18], 0x10
jb 0x41874b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
ret
Function at 0x41af80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4653f1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00411ca0
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41afe0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.0041b180
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov ecx, esi
mov word [esi + 4], bx
call fcn.00411ca0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x41b032
mov eax, dword [esp + 0x14]
push eax
call fcn.00449824
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x41bbf0
Capabilities:
Create directory
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ac30
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4812a4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
cmp dword [0x48269c], 0xffffffff
mov esi, ecx
jne 0x41bdba
xor ebx, ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x68], ebx
lea eax, [esp + 0x3c]
push eax
call fcn.0041c360
mov eax, dword [esp + 0x44]
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x54], edi
jae 0x41bc6c
lea eax, [esp + 0x40]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004156a0
add esp, 8
mov byte [esp + 0x68], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4827e0
call fcn.00404920
mov byte [esp + 0x68], bl
cmp dword [esp + 0x38], edi
jb 0x41bcb3
mov eax, dword [esp + 0x24]
push eax
call fcn.00449824
add esp, 4
cmp dword [0x4827f8], edi
mov eax, dword [0x4827e4]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jae 0x41bcd5
mov eax, 0x4827e4
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x48269c], eax
jne 0x41bd13
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], edi
jb 0x41bdaa
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x41bda2
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x48269c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41bcf7
cmp dword [esp + 0x18], ebx
jl 0x41bd8f
jg 0x41bd4f
cmp dword [esp + 0x14], 0x4c4b40
jbe 0x41bd8f
mov edx, dword [0x48269c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4827f8], edi
mov eax, dword [0x4827e4]
mov dword [0x48269c], 0xffffffff
jae 0x41bd78
mov eax, 0x4827e4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call esi
mov dword [0x48269c], eax
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], edi
jb 0x41bdaa
mov eax, dword [esp + 0x40]
push eax
call fcn.00449824
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00449829
mov esp, ebp
pop ebp
ret
Function at 0x41c360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4677b0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
push ebx
push ebx
call ebp
mov edi, eax
cmp edi, ebx
ja 0x41c3da
push 0x12
push str.GetTempPath_failed
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00407a50
mov dword [esp + 0x7c], ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00412410
push 0x4769b0
lea ecx, [esp + 0x34]
push ecx
call fcn.0044e17f
push edi
call fcn.00448742
add esp, 4
mov esi, eax
push esi
push edi
call ebp
cmp eax, ebx
jne 0x41c432
push 0x12
push str.GetTempPath_failed
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00407a50
mov dword [esp + 0x7c], 1
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.00412410
push 0x4769b0
lea eax, [esp + 0x34]
push eax
call fcn.0044e17f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41c437
mov ecx, dword [esp + 0x84]
sub eax, edx
push eax
push esi
call fcn.00407a50
push esi
call fcn.00449838
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret