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

Disassembly:
sub esp, 0x18c
lea eax, [esp]
push ebx
push eax
xor ebx, ebx
push str.SoftwarePig3
push 0x80000001
mov dword [esp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x40acd7
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x20]
push str.PigID_d
push ecx
mov dword [esp + 0x24], 3
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
xor esi, esi
call ebp
mov ecx, 0x57
xor eax, eax
lea edi, [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push ebx
push edx
push eax
mov dword [esp + 0x2c], 0x160
call edi
test eax, eax
jne 0x40abf5
inc esi
lea ecx, [esp + 0x1c]
push esi
push str.PigID_d
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push ebx
push edx
push eax
call edi
test eax, eax
je 0x40abc4
mov edx, dword [esp + 0x1ac]
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1a8]
cmp eax, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
je 0x40ac2b
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1a0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x4c]
push eax
push ecx
call esi
cmp dword [esp + 0x3c], ebx
je 0x40ac55
mov edx, dword [esp + 0x1a4]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x4c]
push eax
push edx
call fcn.0040ab00
add esp, 8
lea eax, [esp + 0x6c]
push eax
call esi
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0040ab00
add esp, 8
lea edx, [esp + 0x98]
push 0x104
push str.PigIM.zhongsou.com
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 0x160
push eax
push 3
lea ecx, [esp + 0x28]
push ebx
push ecx
push edx
mov dword [esp + 0xac], 0x1466
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret

Function at 0x40ace0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwarePig3
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40ad2d
mov edx, dword [esp]
push esi
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push str.LastUser
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40b1f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x304
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x108]
xor ecx, ecx
push eax
call fcn.0040b870
test eax, eax
jne 0x40b244
xor al, al
pop edi
add esp, 0x304
ret
lea edi, [esp + 0x108]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov al, byte [esp + ecx + 0x10f]
cmp al, 0x5c
je 0x40b274
cmp al, 0x2f
je 0x40b274
lea edx, [esp + 0x110]
mov edi, str.wsearch_
jmp 0x40b280
lea edx, [esp + 0x110]
mov edi, 0x4136b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push str._sSearch.exe
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push 0
push 0x41369c
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebp
mov al, 1
pop edi
add esp, 0x304
ret

Function at 0x40b870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40b894
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b8d4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4
Function at 0x40bac0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40df28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x6c]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x412260
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.0040cfa0
mov esi, eax
lea ecx, [ebx + 0x68]
push esi
push 0x413714
push ecx
call sub.MFC42.DLL_CString::Format
lea eax, [esi - 0xb40]
add esp, 0xc
cdq
mov dword [ebx + 0x80], eax
mov eax, edx
test eax, eax
mov dword [ebx + 0x84], edx
jg 0x40bbca
jl 0x40bbb6
mov eax, dword [ebx + 0x80]
test eax, eax
jae 0x40bbca
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x80]
push edx
push eax
lea ecx, [ebx + 0x64]
push 0x413714
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x84]
add esp, 0x10
or edx, eax
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0xc]
pop edi
pop esi
pop ebx
jne 0x40bc1e
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40bc40
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40df48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
lea esi, [ecx + 0x70]
push edi
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x412260
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0x14
call fcn.0040cfa0
add eax, 0xfffffc00
pop edi
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp]
jle 0x40bd21
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
xor al, al
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40bd40
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40df81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040cbb2
mov ecx, dword [ebp + 0x6c]
lea eax, [ebp + 0x6c]
xor ebx, ebx
mov edx, dword [ecx - 8]
mov dword [esp + 0x424], ebx
mov cl, byte [ecx + edx - 1]
cmp cl, 0x5c
jne 0x40bdb4
push 0x412e6c
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x428], 1
call fcn.0040cb9a
mov byte [esp + 0x424], bl
lea ecx, [esp + 0x14]
jmp 0x40bde1
push str.localcfg.dat
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x428], 2
call fcn.0040cb9a
mov byte [esp + 0x424], bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0x412658
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40be8e
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x23]
push 1
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], ebx
call edi
mov eax, dword [esp + 0x34]
add esp, 0x20
cmp eax, ebx
jle 0x40be79
cmp eax, 0x3e8
jg 0x40be79
push esi
push 1
lea edx, [esp + 0x24]
push eax
push edx
call edi
mov eax, dword [esp + 0x24]
push esi
mov byte [esp + eax + 0x30], bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0x70]
call fcn.0040cb88
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x40bea4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x418
ret

Function at 0x40c360
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0x412650
mov esi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c385
pop esi
or eax, 0xffffffff
pop ebx
ret 4
mov esi, dword [esi + 4]
test esi, esi
je 0x40c3d4
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push 4
push ecx
call ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push ebx
push 1
push edx
push eax
call ebp
push ebx
push 1
lea ecx, [esi + 4]
push 4
push ecx
call ebp
mov esi, dword [esi + 8]
add esp, 0x30
test esi, esi
jne 0x40c394
pop edi
pop ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebx
ret 4
Function at 0x100019a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100019b5
xor eax, eax
jmp 0x10001a2a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100019e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001a25
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001a23
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10001a1f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001a23
xor eax, eax
jmp 0x10001a2a
jmp 0x100019d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003f548]
mov dword [ebp - 4], eax
jmp 0x10001c09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001c26
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001c00
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1003f558], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x1003f568]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10032615
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x1003f568], 0
call fcn.10001a30
mov ecx, dword [0x1003f564]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10032615
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x1003f564], 0
mov dword [0x1003f558], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003f55c], 0
je 0x10002679
mov eax, dword [0x1003f55c]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.10031eff
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10032615
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003f55c], eax
mov dword [0x1003f560], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003f564]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003f564], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x678
jne 0x10002e31
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x10002e43
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002f8b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f88
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f6c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x10002f49
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f47
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x664
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x10002f50
mov dword [ebp - 8], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x10004c80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x1a], 0
je 0x10004caa
movups xmm0, xmmword [ecx]
mov eax, 0x10
movaps xmm1, xmmword [0x1003be00]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
nop dword [eax]
xor byte [eax + ecx], 0x4c
inc eax
cmp eax, 0x1b
jb 0x10004ca0
mov eax, ecx
ret
Function at 0x10005f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x40
push 2
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esi + 4]
cmp esi, eax
je 0x10005fac
nop dword [eax]
mov word [esi], 0xbf00
add esi, 2
cmp esi, eax
jne 0x10005fa0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10031912
mov esp, ebp
pop ebp
ret
Function at 0x10008c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10111a4c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10008d4a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x10111a48], eax
inc ebx
cmp ebx, 0x100
jb 0x10008cb0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10008d76
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10111a48]
sub edi, 1
jne 0x10008d55
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10008da8
nop dword [eax]
cmp cl, 0x23
jne 0x10008d8f
cmp byte [esi], cl
jne 0x10008d8f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10111a48]
test cl, cl
jne 0x10008d80
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10009270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10009282
mov dword [ebx], 0
push 0x1003a6bc
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000929b
pop esi
pop ebx
pop ebp
ret
push edi
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10009358
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10009358
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10009358
mov ecx, dword [0x1003f068]
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
mov eax, dword [ecx + 0xbc]
inc dword [ecx + 0x310]
call eax
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10009358
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x10009328
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp + 8]
add esp, 4
call fcn.1000a040
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10009340
push eax
mov eax, dword [ebp + 8]
add eax, edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10009350
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100220a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100334d1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1003f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x10], ax
call fcn.10022200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret