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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x402416
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x40245b
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x40247c
jb 0x402471
outsb dx, byte [esi]
je 0x402465
jb 0x402485
imul ebp, dword [edi + 0x6e], 0x85c75e00
invalid
mov dword [ebp - 4], 0x186a0
add dword [eax], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
mov ch, 0xf8
invalid
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0x103
add byte [eax], al
je 0x4024ed
lea edx, [ebp - 0x104]
push edx
call fcn.00402372
cmp eax, 1
je 0x4024a2
inc dword [ebp - 0x108]
jmp 0x402456
cmp dword [ebp + 8], 0
je 0x4024e3
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.004017d9
push dword [ebp + 8]
push eax
call fcn.004015e9
cmp dword [ebp + 0xc], 0
je 0x4024e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 8
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegGetValueA]
cmp eax, 0
jne 0x4024ed
mov dword [ebp - 0x110], 1
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
popal
mov eax, dword [ebp - 0x110]
leave
ret 0xc

Function at 0x402ed1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov edi, 0x414108
push 0
push 0xa
push edi
call fcn.004018e6
push edi
call fcn.00401769
add edi, eax
lea edx, [eax + 1]
inc edi
push edi
mov esi, 0x40a01e
mov ecx, 0x14
rep movsb byte es:[edi], byte [esi]
mov esi, 0x409fba
mov ecx, 0x64
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40a032
mov ecx, 0x4388
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [edx + 0x4400]
push eax
push 0x414108
call fcn.00401839
mov edi, eax
push section..bss
call fcn.00402e81
push 0
push section..bss
push 0x40e66d
call fcn.0040257a
push 1
push 0
push 0
push 0
call fcn.00402f9f
push section..bss
push 0x40e450
call fcn.004017d9
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
cmp eax, 0
jne 0x402f9c
push edi
push 0x414108
push 3
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
popal
leave
ret
Function at 0x403371
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 0x24], 1
pushal
mov dword [ebp - 0x28], 0
mov edi, 0x40e876
cld
mov eax, 0x402c48
stosd dword es:[edi], eax
mov eax, 0x402aaf
stosd dword es:[edi], eax
mov eax, 0x402b92
stosd dword es:[edi], eax
mov eax, 0x402bf0
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00403254
cmp eax, 1
je 0x40342a
push 0x3e8
push 0x42cbd0
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov al, byte [0x42cbd0]
mov byte [0x42ccd4], al
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
push dword [ebp - 0x24]
pop dword [0x42c938]
push 0x42c93c
push 0x40e6f7
call fcn.004021c3
mov dword [0x42c954], eax
test eax, eax
jne 0x40340f
push 0x42c93c
push 0x40e73b
call fcn.004021c3
test eax, eax
je 0x40342a
mov dword [0x42c954], eax
push 0x42c95c
push 0x40e77c
call fcn.004021c3
mov dword [0x42c958], eax
test eax, eax
je 0x40342a
mov dword [ebp - 0x28], eax
popal
mov eax, dword [ebp - 0x28]
leave
ret

Function at 0x40408c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004054ad
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x2c
lea edx, [ebp - 0x38]
push edx
call fcn.0040171c
mov ecx, esi
lea edx, [ebp - 0x38]
call fcn.004025e6
test eax, eax
je 0x404121
cmp byte [ebp - 0x25], 0xcc
jne 0x4040e2
inc dword [ebp - 0xc]
jmp 0x404111
mov ecx, dword [ebp - 0xc]
jecxz 0x404111
cmp ecx, dword [ebp + 0x14]
jb 0x40410a
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.00404019
cmp eax, 1
jne 0x404121
add dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x28]
jae 0x404121
mov dword [ebp - 0xc], 0
xor eax, eax
mov al, byte [ebp - 0x38]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x4040c9
popal
mov eax, dword [ebp - 8]
leave
ret 0x24

Function at 0x404129
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004054ad
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.0040171c
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401980
test eax, eax
je 0x4041be
cmp byte [ebp - 0x30], 0xcc
jne 0x40417f
inc dword [ebp - 0xf]
jmp 0x4041ae
mov ecx, dword [ebp - 0xf]
jecxz 0x4041ae
cmp ecx, dword [ebp + 0x14]
jb 0x4041a7
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.00404019
cmp eax, 1
jne 0x4041be
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x4041be
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x404166
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x4041c6
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004054ad
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.0040171c
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401980
test eax, eax
jne 0x404236
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 8]
call fcn.004053e9
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x404280
sub eax, edx
jmp 0x404275
cmp byte [ebp - 0x30], 0xcc
jne 0x404241
inc dword [ebp - 0xf]
jmp 0x404270
mov ecx, dword [ebp - 0xf]
jecxz 0x404270
cmp ecx, dword [ebp + 0x14]
jb 0x404269
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.00404019
cmp eax, 1
jne 0x404280
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x404280
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x404203
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x40453d
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
pushal
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0x41023a
push 0x41012c
push dword [ebp + 8]
call fcn.004036d1
cmp eax, 0
je 0x404795
push dword [ebp + 8]
call fcn.0040449b
mov dword [ebp - 4], eax
push eax
call fcn.00404516
push 0
push 0x41012c
push 0x406285
call fcn.0040257a
push 0
push 0x41023a
push 0x40627b
call fcn.0040257a
lea edx, [ebp - 0x88]
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.00402225
test eax, eax
je 0x404795
mov dword [ebp - 0x8c], eax
push 0x10000
call fcn.0040206c
test eax, eax
je 0x404795
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x84]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x78]
push edx
push dword [ebp - 0x8c]
call fcn.00403658
cmp dword [ebp - 0x84], 0
je 0x404795
push dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 0xa6
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00403dbb
push dword [ebp - 0xc]
push 0x40e676
call fcn.00404288
push dword [ebp - 0x10]
push 0x40e694
call fcn.00404288
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.004042ac
push eax
push 0x40e6a8
call fcn.00404288
cmp eax, dword [ebp - 0xc]
jae 0x40469a
jmp 0x404795
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.0040435a
test eax, eax
je 0x404795
mov byte [0x42dfe1], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xa6
push 0x40eb2a
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x8c]
call fcn.00403b93
push eax
push 0x40e6ba
call fcn.00404288
cmp eax, 0
je 0x404795
push dword [ebp + 8]
push 0x40e3c8
call fcn.00402029
push 0x41012c
push 0x40e3d8
call fcn.00402029
push dword [ebp - 0x14]
call fcn.00402089
push dword [ebp - 0x18]
call fcn.00402089
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x41012c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
push dword [ebp + 8]
push 0x41012c
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x42dfe1
push dword [ebp + 8]
push 0x41012c
call fcn.00402f9f
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.00402157
test eax, eax
je 0x404795
push dword [ebp - 0x84]
push 0x41023a
call fcn.00404e44
mov dword [ebp - 0xa0], 1
cmp dword [ebp - 0x14], 0
je 0x4047a3
push dword [ebp - 0x14]
call fcn.00402089
cmp dword [ebp - 0x18], 0
je 0x4047b1
push dword [ebp - 0x18]
call fcn.00402089
popal
mov eax, dword [ebp - 0xa0]
leave
ret 4
Function at 0x404800
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push 1
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
test eax, eax
jne 0x40483c
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x404815
jmp 0x4048af
mov ebx, eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
jne 0x40486f
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x404845
jmp 0x4048a8
mov esi, eax
mov edi, dword [ebp + 8]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401731
mov dword [esi], 0x21444e45
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x404d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x14], 1
pushal
mov dword [ebp - 4], 0
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x14]
push 0
push 0x44
push esi
call fcn.0040171c
push 0
push 0x10
push edi
call fcn.0040171c
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x404e1a
push dword [ebp + 8]
lea edx, [ebp - 0x260]
push edx
call fcn.004015e9
lea edx, [ebp - 0x260]
push edx
call fcn.00401769
lea ecx, [ebp - 0x260]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x260]
push edx
call fcn.004016fd
lea eax, [ebp - 0x260]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x404e3c
mov dword [ebp - 4], 1
popal
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x404e8c
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
inc eax
je 0x404ecd
dec eax
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
inc eax
je 0x404ffd
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jae 0x404f11
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], 1
test eax, eax
je 0x404f7f
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x404feb
mov edi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
dec eax
jne 0x404fdc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404f2b
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc eax
je 0x404fdc
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x404fdc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404f63
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x404fdc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404f85
cmp dword [ebp - 8], 1
je 0x404fdc
cmp dword [ebp - 0xc], 0
je 0x404feb
mov edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x404fdc
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404fb9
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x404feb
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x404ffd
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x10
Function at 0x402060
Capabilities:
Get disk size

Disassembly:
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x228]
push 0x208
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403bf0
lea edx, [esp + 0x24]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4020a0
lea ecx, [esp + 0x18]
push 0x40d280
push ecx
call fcn.00403b7f
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
add esp, 8
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push edx
push edx
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push 7
push edx
push eax
call fcn.00403db0
push 0
push 0xa
push edx
push eax
call fcn.00403d40
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.00401cd0
mov ecx, dword [esp + 0x22c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.00403be0
add esp, 0x21c
ret

Function at 0x402130
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x410], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00403bf0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21e]
push eax
mov word [esp + 0x220], dx
call fcn.00403bf0
add esp, 0x18
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402193
sub eax, edx
sar eax, 1
push edi
add eax, 0xfffffffc
push eax
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push eax
call fcn.00403e10
lea edi, [esp + 0x218]
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4021c6
mov ecx, dword [0x40d280]
push 3
push 0
push 0
lea edx, [esp + 0x218]
push edx
push 0x40d284
push 0
mov dword [edi], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00403be0
add esp, 0x414
ret
Function at 0x402220
Capabilities:
Set registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x418], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00403bf0
push 0x208
lea edx, [esp + 0x220]
push 0
push edx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0
call fcn.00403bf0
add esp, 0x18
xor eax, eax
jmp 0x402280
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced]
mov word [esp + eax + 0x210], cx
add eax, 2
test cx, cx
jne 0x402280
lea eax, [esp]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x21c]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402477
push 0x208
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00403bf0
add esp, 0xc
xor eax, eax
jmp 0x4022e0
movzx ecx, word [eax + str.Hidden]
mov word [esp + eax + 8], cx
add eax, 2
test cx, cx
jne 0x4022e0
mov edx, dword [esp]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 2
call edi
test eax, eax
jne 0x402447
push 0x208
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00403bf0
add esp, 0xc
xor eax, eax
jmp 0x402340
movzx ecx, word [eax + str.HideFileExt]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x402340
mov ecx, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x20], 1
call edi
test eax, eax
je 0x40239a
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00403be0
add esp, 0x41c
ret
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00403bf0
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.ShowSuperHidden]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x4023b0
mov eax, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x4023ee
mov ecx, dword [esp + 4]
push ecx
jmp 0x40237c
push 0x208
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00403bf0
add esp, 0xc
xor eax, eax
jmp 0x402410
movzx ecx, word [eax + str.WebViewBarricade]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x402410
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x402451
mov eax, dword [esp + 4]
push eax
jmp 0x40237c
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00403be0
add esp, 0x41c
ret
mov ecx, dword [esp + 0x418]
xor ecx, esp
xor eax, eax
call fcn.00403be0
add esp, 0x41c
ret
Function at 0x402a80
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, dword [esp + 0x230]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00403bf0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push esi
call ebx
cmp eax, 0xffffffff
je 0x402af7
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00403be0
add esp, 0x224
ret
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push esi
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402be8
push edi
push 0x208
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00403bf0
add esp, 0xc
push 0x104
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x28]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402b56
push 0
push 0x80
push 3
push 0
push 1
mov ecx, 7
mov esi, 0x40d378
rep movsd dword es:[edi], dword [esi]
push 0x80000000
lea ecx, [esp + 0x40]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bc7
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x402bc4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call edi
push ebp
call edi
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00403be0
add esp, 0x224
ret
mov ecx, dword [esp + 0x22c]
pop ebp
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403be0
add esp, 0x224
ret
Function at 0x402c10
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x68]
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
movzx ecx, word [eax + str.._]
mov word [esp + eax + 0x40], cx
add eax, 2
cmp cx, bx
jne 0x402c50
mov eax, edx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402c66
push edi
lea edi, [esp + 0x44]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402c80
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x402c80
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 3
mov ecx, eax
push 0x80000000
lea eax, [esp + 0x5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x28
lea edx, [esp + 0x28]
push edx
mov esi, eax
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x2d1400
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x402cf4
xor ebx, ebx
cmp dword [esp + 0x34], 7
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x68]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00403be0
add esp, 0x64
ret