joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402292
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push eax
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push 0x41a804
push 9
call fcn.00408cb1
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040bb70
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0040844d
push 0x41a800
push 0
call fcn.00408cb1
add esp, 0x20
mov edx, eax
lea ecx, [ebp - 0x208]
call fcn.00408010
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4022f8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0040c020
push ebx
push esi
push edi
call fcn.0040723e
mov ebx, 0x4232f8
push ebx
call fcn.004024d2
mov dword [esp], 0x423500
call fcn.004024d2
pop ecx
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
and byte [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push 1
push 0x41a4c4
push 0xc
stosb byte es:[edi], al
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
lea eax, [ebp - 0x1318]
push 0x1008
push eax
push esi
push 0x41a4b4
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
jge 0x4023ae
push esi
push 0x41a864
push 0x10
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
push ebx
push 0x41a72c
push 9
jmp 0x4023c3
lea eax, [ebp - 0x1310]
push eax
lea eax, [ebp - 0x1110]
push eax
push 0x41a788
push 5
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ba39
add esp, 0x10
call fcn.0040723e
mov ebx, eax
lea eax, [ebp - 0x20c]
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], bl
push dword [ebp - 4]
push eax
call fcn.0040844d
pop ecx
lea eax, [ebp - 0x20c]
pop ecx
push eax
push 0x41a850
push 0x10
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
pop ecx
test bl, bl
pop ecx
je 0x40248b
call fcn.0040723e
test eax, eax
je 0x40244f
push 0x41a848
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 1
push 0x41a840
push 7
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00407e55
add esp, 0xc
jmp 0x40248b
call fcn.0040c6cc
push dword [eax]
call fcn.0040c609
pop ecx
push eax
call fcn.0040c6cc
push dword [eax]
push 0x41a820
push 0x1d
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, 0x14
cmp dword [ebp + 8], esi
je 0x4024cd
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
call section..text
push 0x423f34
lea eax, [ebp - 0x310]
push str.___ru__vt__s
push eax
call fcn.0040ba39
add esp, 0xc
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x20c]
call fcn.00408010
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret
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 0x4065be
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4408
call fcn.0040c020
push ebx
xor ebx, ebx
push edi
xor edi, edi
mov byte [ebp - 0x4408], bl
call fcn.00406990
push 1
push ebx
lea eax, [ebp - 0x4408]
push 0x4000
push eax
push 1
push 0x41a44c
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
push eax
call fcn.00408323
add esp, 0x14
test eax, eax
jge 0x406625
push 0x41b340
push 0x10
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
pop ecx
jmp 0x406652
lea eax, [ebp - 0x4408]
push eax
push 0x41b324
push 0x18
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
lea eax, [ebp - 0x4408]
push eax
call fcn.00406777
add esp, 0xc
push 1
pop edi
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push 0x41b310
push 0x12
call fcn.00408cb1
pop ecx
pop ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406713
push esi
push 0x400
lea eax, [ebp - 0x408]
push ebx
push eax
mov dword [ebp - 8], 0x3ff
call fcn.0040bc80
add esp, 0xc
lea eax, [ebp - 8]
mov esi, 0x41b308
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push ebx
push esi
push 6
call fcn.00408cb1
pop ecx
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406709
lea eax, [ebp - 0x408]
push eax
push 0x41b2ec
push 0x1b
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.0040a709
lea eax, [ebp - 0x408]
push eax
call fcn.00406777
push esi
push 6
call fcn.00408cb1
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call fcn.00406719
or edi, 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
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 [str.0602000000240000525341310002000001000100a9959a031b5ae483402a81a758afd66183db74517df889e42099f84cfc8096e783923134ca536e2671208da3e411983dcf92d850deb6be982715ffc845e133a9]
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 str.Hard_Drive:_n
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 0x408323
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020c
call fcn.0040c020
push ebx
push esi
xor ebx, ebx
mov esi, 0x10000
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0xc], 3
mov dword [ebp - 4], esi
jne 0x408361
push 1
push 0x41a4fc
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
call fcn.00408952
mov dword [ebp + 0x14], eax
push esi
lea eax, [ebp - 0x1020c]
push ebx
push eax
call fcn.0040bc80
add esp, 0xc
push dword [ebp + 0x14]
push 0x41a7a8
push 0xb
call fcn.00408cb1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ba39
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408416
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1020c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x408416
cmp byte [ebp + 0x18], bl
je 0x4083f4
push dword [ebp - 4]
lea eax, [ebp - 0x1020c]
push eax
call fcn.00408889
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax - 0x10210]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x1020c]
push eax
push ebx
call fcn.00408851
add esp, 0xc
cmp esi, eax
je 0x40841b
or eax, 0xffffffff
jmp 0x408449
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
add eax, 0xfffffffc
cmp eax, esi
jl 0x40842a
mov eax, esi
push eax
lea eax, [ebp - 0x1020c]
push eax
push dword [ebp + 0xc]
call fcn.0040bce0
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0xfffffffc
cmp eax, esi
jl 0x408449
mov eax, esi
pop esi
pop ebx
leave
ret