joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab6c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ab6eb
xor al, al
jmp 0x4ab748
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x4ab6fc
mov dword [ebp - 8], 1
jmp 0x4ab703
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.DisableTaskOffload
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x4ab73e
mov dword [ebp - 0x10], 1
jmp 0x4ab745
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4ab770
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1b8], 0
mov eax, dword [ebp + 8]
push eax
push str..CtrlSM
push str._s_s
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.004ac190
add esp, 0x14
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1b8], eax
mov eax, dword [0x4ea368]
and eax, 4
je 0x4ab800
jmp 0x4ab843
cmp dword [ebp - 0x1ac], 0xffffffff
jne 0x4ab83f
mov ecx, dword [ebp - 0x1b0]
add ecx, 1
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1bc], edx
cmp dword [ebp - 0x1bc], 1
je 0x4ab82f
jmp 0x4ab83f
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004aba00
add esp, 8
jmp 0x4ab7c3
jmp 0x4ab843
cmp dword [ebp - 0x1ac], 0xffffffff
je 0x4ab9da
push 0x9c
push 0
lea ecx, [ebp - 0x1a4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1a4], 0x9c
lea edx, [ebp - 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov byte [ebp - 0x1a5], 0
cmp dword [ebp - 0x1ac], 0xffffffff
je 0x4ab8d3
mov dword [ebp - 0x1c0], 0
push 0
lea eax, [ebp - 0x1c4]
push eax
push 4
lea ecx, [ebp - 0x1c0]
push ecx
push 0
push 0
push 0x22019c
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ab8d3
cmp dword [ebp - 0x1c4], 0
jbe 0x4ab8d3
mov byte [ebp - 0x1a5], 1
movzx eax, byte [ebp - 0x1a5]
test eax, eax
je 0x4ab905
push 0x4c5a70
call fcn.004abcc0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4ab900
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004abd40
add esp, 8
jmp 0x4ab9da
cmp dword [ebp - 0x1a0], 6
jb 0x4ab928
cmp dword [ebp - 0x1a0], 6
jne 0x4ab9da
cmp dword [ebp - 0x19c], 1
ja 0x4ab9da
mov dword [ebp - 0x1b4], 0
push 0x4c5a78
call fcn.004abcc0
add esp, 4
movzx eax, al
test eax, eax
jne 0x4ab985
push str.360netmon
call fcn.004abcc0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x4ab985
push 0x4c5a8c
call fcn.004abcc0
add esp, 4
movzx edx, al
test edx, edx
jne 0x4ab985
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call fcn.004ab440
add esp, 0xc
jmp 0x4ab9b8
lea edx, [ebp - 0x1b4]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
call fcn.004ab440
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x4ab9b8
cmp dword [ebp - 0x1b4], 0
jne 0x4ab9b8
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004abea0
add esp, 8
push 0x4c5a94
call fcn.004abcc0
add esp, 4
movzx eax, al
test eax, eax
je 0x4ab9da
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004abd40
add esp, 8
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x4abd40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.NDIS]
mov dword [ebp - 0xc], eax
mov cl, byte [0x4c5a00]
mov byte [ebp - 8], cl
mov edx, dword [str.tcpip]
mov dword [ebp - 0x14], edx
mov ax, word [0x4c5a08]
mov word [ebp - 0x10], ax
mov cl, byte [0x4c5a0a]
mov byte [ebp - 0xe], cl
mov edx, dword [0x4c5a0c]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x4c5a10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c5a14
push 0x104
lea edx, [ebp - 0x120]
push edx
call fcn.004ac190
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 3
push 0
lea ecx, [ebp - 0x120]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4abde1
xor al, al
jmp 0x4abe83
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x4abe2f
push 5
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x4c5a3c
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x124], eax
push 7
lea edx, [ebp - 0x14]
push edx
push 7
push 0
push str.DependOnService
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x124], eax
jmp 0x4abe51
push 8
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 0
push str.Group
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], 0
jne 0x4abe73
mov dword [ebp - 0x12c], 1
jmp 0x4abe7d
mov dword [ebp - 0x12c], 0
mov al, byte [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret
Function at 0x4014f3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x14c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x427b38]
mov dword [ebp - 0x130], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
or eax, 8
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x40156c
jmp 0x401607
cmp dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x1c]
je 0x40155d
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
push ecx
jmp 0x401607
xor ecx, ecx
mov edx, edi
call fcn.004014f3
test eax, eax
je 0x40157d
jmp 0x4015a4
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x121]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
je 0x40153d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [esp], 2
call fcn.00407ef3
test eax, eax
push edx
je 0x4015e2
mov edx, dword [0x427b38]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x401607
cmp dword [0x427b38], 0
mov eax, 1
jne 0x401607
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push ecx
setne al
push ecx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40399a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
je 0x4039c9
mov eax, dword [0x40fc4c]
test eax, eax
je 0x4039ba
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
mov dword [0x40fc4c], 0
jmp 0x403a80
cmp dword [0x40fc4c], 0
je 0x4039e4
mov dword [esp], 0
call fcn.00408494
push ecx
jmp 0x403a80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x427b8c]
jbe 0x403a80
cmp dword [0x427ba0], 0
je 0x403a37
test byte [0x427b3c], 1
je 0x403a80
call fcn.004038c8
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 4], str....__d__
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00406db2
jmp 0x403a7e
mov eax, dword [0x427ba4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4038fa
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x40fc4c], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edx
push edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403a85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a014]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x403ac8
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x403b03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov ebx, dword [0x417ce0]
add ebx, eax
sub ebx, dword [0x41bce4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
test ebx, ebx
mov dword [0x427b8c], eax
jle 0x403cc9
mov eax, dword [0x417cd8]
lea edi, [ebp - 0x1c]
mov dword [esp], eax
call fcn.00403ad1
mov eax, dword [0x41bce4]
push ecx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x40fc44], ebx
mov dword [0x40fc48], 0
sub esp, 0x10
mov ebx, dword [0x417cdc]
mov eax, 0x4000
sub ebx, dword [0x417cd8]
mov dword [esp], 0x417ce4
cmp ebx, 0x4000
cmovg ebx, eax
mov dword [esp + 4], ebx
call fcn.00403a85
test eax, eax
push edx
push edx
je 0x403cd9
add dword [0x417cd8], ebx
mov dword [0x417c68], 0x417ce4
mov dword [0x417c6c], ebx
cmp dword [0x427b48], 0
je 0x403bff
cmp dword [0x427b28], 0
jne 0x403bff
mov eax, dword [0x41bce4]
sub eax, dword [0x417ce0]
mov dword [esp], 0
sub eax, esi
add eax, dword [0x40fc44]
mov dword [0x40fc48], eax
call fcn.0040399a
mov ecx, 0x417c50
mov dword [0x417c70], 0x41bce8
mov dword [0x417c74], 0x8000
call fcn.00408582
test eax, eax
js 0x403ce5
mov edx, dword [0x417c70]
sub edx, 0x41bce8
je 0x403c80
mov eax, dword [0x40a010]
mov dword [esp + 8], edx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x41bce8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x403cde
cmp edx, dword [ebp - 0x1c]
jne 0x403cde
add dword [0x41bce4], edx
cmp dword [0x417c6c], 0
jne 0x403bc9
jmp 0x403c8d
test ebx, ebx
je 0x403ce5
cmp dword [0x417c6c], 0
jne 0x403ce5
mov eax, dword [0x417ce0]
mov edx, eax
sub edx, dword [0x41bce4]
add edx, esi
test edx, edx
jg 0x403b7f
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 1
call fcn.0040399a
xor eax, eax
jmp 0x403cea
or eax, 0xffffffff
jmp 0x403cea
mov eax, 0xfffffffe
jmp 0x403cea
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403cf2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
test eax, eax
js 0x403d32
add eax, dword [0x427b84]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [0x417ce0], eax
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov eax, 4
call fcn.00403b03
test eax, eax
mov ebx, eax
js 0x403e9b
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, 0xfffffffd
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
lea edi, [ebp - 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x403e9b
cmp dword [ebp - 0x24], 4
jne 0x403e9b
mov eax, dword [ebp - 0x20]
add dword [0x417ce0], 4
call fcn.00403b03
test eax, eax
mov ebx, eax
js 0x403e9b
cmp dword [ebp + 0x10], 0
jne 0x403e4d
jmp 0x403e3d
cmp eax, 0x4000
mov esi, 0x4000
cmovle esi, eax
mov eax, dword [0x40a010]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x417ce4
mov dword [esp], eax
call dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x403e8f
cmp esi, dword [ebp - 0x24]
jne 0x403e8f
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x417ce4
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x403e96
cmp dword [ebp - 0x1c], esi
jne 0x403e96
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x20], eax
add dword [0x417ce0], eax
add ebx, eax
jmp 0x403e40
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x20]
test eax, eax
jg 0x403db6
jmp 0x403e9b
mov eax, dword [ebp - 0x20]
mov ebx, 0xfffffffd
cmp dword [ebp + 0x14], eax
cmovle eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [0x40a010]
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x403e9b
mov ebx, dword [ebp - 0x24]
add dword [0x417ce0], ebx
jmp 0x403e9b
mov ebx, 0xfffffffd
jmp 0x403e9b
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407478
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [0x42614c], 0x44
mov dword [esp + 0x20], 0x42614c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x4074f4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x4077a4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x4077cf
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, 0
cmp eax, 0xffffffff
push ecx
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407832
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x65
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1c]
jmp 0x407890
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
div ecx
mov dword [ebp - 0x30], edx
mov cl, byte [ebp - 0x30]
add ecx, 0x61
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x407898
dec esi
jne 0x407848
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4078a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 1
lea edx, [ebp - 0x14]
sbb eax, eax
xor al, al
add eax, 0x20119
mov byte [ebx], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x407946
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x40792f
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x407932
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407e3c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x426590
mov dword [esp + 4], eax
call fcn.00407a11
push ebx
push ebx
mov dword [esp], 0x426590
call fcn.0040768c
mov ebx, eax
xor eax, eax
test ebx, ebx
push esi
je 0x407eea
mov dword [esp], ebx
call fcn.00407a4f
test byte [0x427b90], 0x80
push ecx
je 0x407eaa
mov al, byte [ebx]
cmp al, 0x5c
je 0x407ee8
test al, al
jne 0x407eaa
jmp 0x407ee8
call fcn.00407e04
test eax, eax
push edx
je 0x407e9b
test byte [eax], 0x10
je 0x407ee8
mov dword [esp], 0x426590
call fcn.00407620
push ecx
jmp 0x407eb6
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x426590
mov dword [esp], 0x426590
call esi
cmp eax, ebx
push edx
mov dword [esp], 0x426590
jg 0x407e8c
call fcn.004075aa
push ecx
mov dword [esp], 0x426590
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
setne al
push ebx
movzx eax, al
jmp 0x407eea
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x4084e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x4276d4], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408525
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x408502
mov dword [edx*4 + 0x4276d0], eax
inc edx
cmp edx, 0x100
jne 0x4084fb
mov eax, dword [ebp + 8]
not eax
jmp 0x40853f
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x4276d0]
test ebx, ebx
jne 0x40852c
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x406580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4065a3
mov eax, 1
jmp 0x4066ae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x4065b9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x4065c3
mov eax, 2
jmp 0x4066ae
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4065ee
mov eax, 1
jmp 0x4066ae
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x406614
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x406614
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x40661e
mov eax, 2
jmp 0x4066ae
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00418ba0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x40665f
mov eax, 3
jmp 0x4066ae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x4066ac
mov eax, 1
jmp 0x4066ae
xor eax, eax
pop ebp
ret

Function at 0x407050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x407066
xor eax, eax
jmp 0x4070a6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40708b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x40708f
xor eax, eax
jmp 0x4070a6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004070b0
add esp, 0xc
mov esp, ebp
pop ebp
ret