joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403afd
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31148
call fcn.0040c020
push ebx
push esi
lea eax, [ebp - 0x408]
push edi
push eax
mov esi, ecx
push dword [ebp + 8]
call fcn.00403acd
test eax, eax
je 0x403c6a
xor ebx, ebx
lea eax, [ebp - 0x408]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403b8e
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41ac2c
push 0x31
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
jmp 0x403c6a
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x31148]
push 0x30d40
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403bf4
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41abe8
push 0x40
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x403c6a
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 4]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x31148]
push eax
push dword [edi]
call fcn.00408851
add esp, 0xc
mov dword [edi], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x31148]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x403c6e
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41abb4
push 0x33
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x14
xor eax, eax
jmp 0x403c71
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403d9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31150
call fcn.0040c020
push ebx
push esi
lea eax, [ebp - 0x410]
push edi
push eax
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
call fcn.00403acd
test eax, eax
jne 0x403df2
cmp dword [ebp + 0x14], ebx
je 0x403f52
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x41ae7c
push 0x23
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0xc
jmp 0x403f52
push ebx
push 0x80
push 3
push ebx
push ebx
lea eax, [ebp - 0x410]
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x403e65
cmp dword [ebp + 0x14], ebx
je 0x403f52
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp + 8]
push eax
push esi
push 0x41ae50
push 0x2b
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
jmp 0x403f52
lea ecx, [ebp - 0x10]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x30d40
push ecx
lea ecx, [ebp - 0x31150]
push edi
push ecx
mov esi, edi
push eax
call ebx
test eax, eax
je 0x403eac
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
jne 0x403f01
mov esi, edi
lea ecx, [ebp - 0x10]
sub esi, eax
push 0
push ecx
lea eax, [ebp + eax - 0x31150]
push esi
push eax
push dword [ebp - 0xc]
jmp 0x403e80
cmp dword [ebp + 0x14], 0
je 0x403ef6
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.004087ec
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
movzx ecx, word [eax + 0x20]
push ecx
push eax
push 0x41ae1c
push 0x30
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x18
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x403f52
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp + 0x10]
lea eax, [ebp - 0x31150]
push dword [ebp + 0xc]
push dword [ebp - 4]
push eax
call fcn.00407054
add esp, 0x10
test al, al
jne 0x403f56
cmp dword [ebp + 0x14], 0
je 0x403f52
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
movzx ecx, word [eax + 0x20]
push dword [ebp - 4]
push ecx
push eax
push 0x41ade8
push 0x30
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407d76
add esp, 0x14
xor eax, eax
jmp 0x403f79
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp - 8]
push 0x41adb0
push 0x35
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407054
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push dword [0x41f1d4]
call fcn.0040c050
mov edi, eax
xor ebx, ebx
xor esi, esi
cmp edi, ebx
pop ecx
mov byte [ebp - 1], bl
jle 0x4070ad
lea eax, [ebp - 0x10]
push eax
push 0x41b4bc
push 4
call fcn.00408cb1
pop ecx
pop ecx
push eax
mov eax, dword [0x41f1d4]
add eax, esi
push eax
call fcn.0040d011
mov eax, esi
mov cl, byte [ebp - 0x10]
cdq
sub eax, edx
add esp, 0xc
sar eax, 1
inc esi
inc esi
mov byte [ebp + eax - 0x78], cl
cmp esi, edi
jl 0x407076
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cdq
sub eax, edx
push ebx
mov esi, eax
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
sar esi, 1
call edi
test eax, eax
jne 0x4070f7
push 8
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
call edi
test eax, eax
jne 0x4070f7
push 0x41b4a8
push 0x13
call fcn.00408cb1
push eax
call fcn.00406fdb
add esp, 0xc
xor al, al
jmp 0x4071b7
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x407126
push 0x41b498
push 0xe
call fcn.00408cb1
push eax
call fcn.00406fdb
add esp, 0xc
jmp 0x4071a5
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x407147
push 0x41b488
push 0xf
jmp 0x407116
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x407164
push 0x41b478
push 0xd
jmp 0x407189
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
je 0x407182
mov byte [ebp - 1], 1
jmp 0x407197
push 0x41b460
push 0x14
call fcn.00408cb1
push eax
call fcn.00406fdb
add esp, 0xc
cmp dword [ebp - 0xc], ebx
je 0x4071a5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x4071b4
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4071bc
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor ebx, ebx
push 0x41a4e8
push 0x10
mov byte [ebp], bl
call fcn.00408cb1
pop ecx
pop ecx
push eax
push ebx
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x407237
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x407230
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x21c]
push eax
push 0x41a788
push 5
call fcn.00408cb1
pop ecx
pop ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
pop eax
jmp 0x407239
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push eax
call fcn.004071bc
test eax, eax
pop ecx
je 0x40726f
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40726f
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4079c5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
push ebx
push esi
push edi
push 0x7f
pop esi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x38f]
mov byte [ebp - 0x390], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
mov byte [ebp - 0x24], bl
stosb byte es:[edi], al
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x98f]
mov byte [ebp - 0x990], bl
mov byte [ebp - 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x47]
mov byte [ebp - 0x590], bl
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x58f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x6b]
mov byte [ebp - 0x6c], bl
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x78f]
mov byte [ebp - 0x790], bl
mov byte [ebp - 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x8f]
push 0x3f
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x18f]
mov byte [ebp - 0x190], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x390]
push eax
call fcn.00409b23
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.0040a781
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
add esp, 0xc
push 0x41b6cc
call esi
lea eax, [ebp - 0x390]
push eax
call esi
push 0x41b6c8
call esi
lea eax, [ebp - 0x24]
push eax
call esi
push 0x41b6c4
call esi
lea eax, [ebp - 0x990]
push eax
call fcn.00409b5f
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x990]
push eax
call fcn.0040a781
lea eax, [ebp - 0x590]
push eax
call fcn.00409c41
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x590]
push eax
call fcn.0040a781
lea eax, [ebp - 0x790]
push eax
call fcn.00409d11
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x790]
push eax
call fcn.0040a781
add esp, 0x24
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp - 0xb90]
push 0x41b6c0
push eax
call fcn.0040ba39
lea eax, [ebp - 0x190]
push eax
call fcn.00409d94
mov esi, 0x1000
push esi
call fcn.0040c895
mov edi, eax
push esi
push ebx
push edi
call fcn.0040bc80
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.0040bb70
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.0040bb70
lea eax, [ebp - 0x6c]
push eax
push edi
call fcn.0040bb70
lea eax, [ebp - 0x90]
push eax
push edi
call fcn.0040bb70
add esp, 0x40
push dword [ebp + 8]
push edi
call fcn.0040a781
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f7a
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push esi
push 0x200
push eax
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToCacheFileA
cmp eax, esi
jl 0x40800a
push 0x41b758
push 2
call fcn.00408cb1
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040e11a
add esp, 0x10
cmp eax, esi
mov dword [ebp + 8], eax
je 0x407fff
mov ebx, dword [ebp + 0xc]
push edi
push eax
push dword [ebp + 0x10]
push 1
push ebx
call fcn.0040df55
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x407ff1
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
add esi, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push 1
push eax
jmp 0x407fd0
push dword [ebp + 8]
call fcn.0040e06c
pop ecx
test edi, edi
pop edi
jge 0x408004
or eax, 0xffffffff
jmp 0x40800a
and byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov ebx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, ecx
push 0x10
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
push edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], 0x44
push eax
call fcn.0040bb60
pop ecx
cmp ebx, esi
pop ecx
je 0x40807a
push 0x41b774
push 1
call fcn.00408cb1
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040bb70
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push esi
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x4080cd
lea eax, [ebp - 0x254]
push eax
push 0x41b75c
push 0x17
call fcn.00408cb1
pop ecx
pop ecx
push eax
push esi
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0x10
or eax, 0xffffffff
jmp 0x4080de
cmp dword [ebp - 0xc], esi
je 0x4080db
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080e3
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push esi
lea eax, [ebp - 0x244]
push dword [ebp + 8]
push eax
call fcn.0040bb60
push 0x41b77c
push 1
call fcn.00408cb1
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.0040bb60
push 0x41aab0
push 1
call fcn.00408cb1
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.0040bb70
add esp, 0x30
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081f8
lea eax, [ebp - 0x114]
push eax
push 0x41aff8
push 1
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040d0e0
pop ecx
test eax, eax
pop ecx
je 0x4081db
lea eax, [ebp - 0x114]
push eax
push 0x41b778
push 2
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040d0e0
pop ecx
test eax, eax
pop ecx
je 0x4081db
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0040bb60
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.0040bb70
add esp, 0x10
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x408163
push esi
call dword [sym.imp.kernel32.dll_FindClose]
pop esi
leave
ret

Function at 0x40824f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
and dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 0x10]
lea ebx, [edi + 4]
push ebx
call fcn.0040c895
push edi
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.0040bce0
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x408299
push 1
push 0x41a4fc
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
jmp 0x40829c
push dword [ebp + 0x14]
push 0x41a7a8
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040ba39
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40831e
push edi
push esi
push eax
call fcn.00408851
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push 4
push eax
lea eax, [esi + edi]
push eax
call fcn.0040bce0
push ebx
push esi
call fcn.00408889
add esp, 0x20
push ebx
push esi
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0040c7ac
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40844d
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31058
call fcn.0040c020
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
push 0x208
push eax
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 0x41b758
push 2
call fcn.00408cb1
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e11a
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40851d
cmp byte [ebp + 0xc], bl
je 0x408691
call fcn.0040c6cc
push dword [eax]
call fcn.0040c609
pop ecx
push eax
call fcn.0040c6cc
push dword [eax]
lea eax, [ebp - 0x318]
push eax
push 0x41b7b8
push 0x28
call fcn.00408cb1
pop ecx
pop ecx
push eax
push ebx
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0x18
jmp 0x408691
push 0x80
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0x41b7b4
push dword [ebp + 8]
call fcn.0040e11a
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x40858e
cmp byte [ebp + 0xc], bl
je 0x40867d
call fcn.0040c6cc
push dword [eax]
call fcn.0040c609
pop ecx
push eax
call fcn.0040c6cc
push dword [eax]
push dword [ebp + 8]
push 0x41b788
push 0x28
call fcn.00408cb1
pop ecx
pop ecx
push eax
push ebx
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0x18
jmp 0x40867d
push esi
mov esi, 0x30d40
push dword [ebp - 8]
lea eax, [ebp - 0x31058]
push esi
push 1
push eax
call fcn.0040df55
add esp, 0x10
mov edi, eax
cmp edi, ebx
jle 0x4085db
push dword [ebp - 4]
lea eax, [ebp - 0x31058]
push edi
push 1
push eax
call fcn.0040e12d
push dword [ebp - 8]
add dword [ebp - 0xc], edi
lea eax, [ebp - 0x31058]
push esi
push 1
push eax
call fcn.0040df55
add esp, 0x20
jmp 0x4085a9
push ebx
call fcn.0040c33a
push eax
call fcn.0040bc50
call fcn.0040bc5d
cdq
mov ecx, 0x200
idiv ecx
lea eax, [ebp - 0x31058]
mov esi, edx
add esi, 0x40
push esi
push ebx
push eax
call fcn.0040bc80
push dword [ebp - 4]
lea eax, [ebp - 0x31058]
push esi
push 1
push eax
call fcn.0040e12d
add esp, 0x24
lea eax, [ebp - 0x110]
push dword [ebp + 8]
push 0x41b780
push 0x103
push eax
call fcn.0040b9e8
add esp, 0x10
lea eax, [ebp - 0x110]
push ebx
push ebx
push 4
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408673
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x31058]
push edi
push eax
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 4]
call fcn.0040e06c
pop ecx
pop esi
push dword [ebp - 8]
call fcn.0040e06c
pop ecx
push 7
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
pop edi
pop ebx
leave
ret
Function at 0x408707
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 2
push 0x41b7f4
call fcn.00408952
xor esi, esi
push eax
push esi
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x408799
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x408790
mov ebx, dword [edi + 8]
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408789
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x1388
push 2
push esi
push esi
push 0x8174
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x408789
cmp dword [ebp - 4], esi
je 0x408789
push edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4087e7
push edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp + 8], esi
jne 0x4087e5
push 1
push 1
push 0x41a4e0
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
lea eax, [ebp - 0x6c]
push 0x64
push eax
push 1
push 0x41b7e4
push 0xe
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
call fcn.00408323
add esp, 0x14
test eax, eax
jle 0x4087e5
mov eax, dword [ebp - 0x6c]
jmp 0x4087e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408851
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
not eax
jbe 0x408886
push esi
mov edx, dword [esp + 0xc]
mov esi, eax
and esi, 0xff
movzx edx, byte [ecx + edx]
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x41f230]
xor eax, edx
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x408860
pop esi
not eax
ret

Function at 0x408bfe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426848], 0
push esi
mov esi, 0x426848
jne 0x408cac
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 1
push eax
push 0x20019
push 0
push 0x41ba90
push 0x29
mov dword [ebp - 8], 0x200
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408c66
push 0x41ba88
push 4
call fcn.00408cb1
push eax
push esi
call fcn.0040bb60
add esp, 0x10
jmp 0x408cac
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push 0
push 0x41ba7c
push 9
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ca3
push 0x41ba88
push 4
call fcn.00408cb1
push eax
push esi
call fcn.0040bb60
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret