joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a5b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
xor eax, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a7ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0046a300
cmp dword [ebp - 4], 0
je 0x46a7c9
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46a6cd
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46a7c9
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
mov ecx, 0x46a818
mov edx, dword [ebp - 4]
call fcn.0040ae28
mov eax, dword [ebp - 0x258]
call fcn.0040abbc
push eax
call sub.kernel32.dll_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46a6ba
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.0040ac78
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.0040ae28
mov eax, dword [ebp - 0x25c]
call fcn.0040abbc
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x46a668
push ebx
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_RemoveDirectoryW
jmp 0x46a7c9
lea eax, [ebp - 0x264]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x264]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x46a7c9
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
lea eax, [ebp - 0x268]
mov edx, 0x46a82c
call fcn.0040a48c
mov eax, dword [ebp - 0x268]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46a7a5
lea eax, [ebp - 0x26c]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x254]
add edx, 0x2c
mov ecx, 0x104
push 0
call fcn.0040a430
mov edx, dword [ebp - 0x270]
pop eax
call fcn.0040a48c
mov eax, dword [ebp - 0x26c]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x46a73c
push ebx
call sub.kernel32.dll_FindClose
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x274]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a806
lea eax, [ebp - 0x274]
mov edx, 5
call fcn.00409cf0
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00409cc0
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x46a830
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor edx, edx
mov dword [ebp - 0x214], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46a8d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x104
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46a889
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.0040ac78
jmp 0x46a8bc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0
call fcn.0040a3a8
mov edx, dword [ebp - 0x214]
mov eax, ebx
call fcn.0040ac94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a8dc
lea eax, [ebp - 0x214]
call fcn.00409c84
ret
Function at 0x46a8e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x46aa9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409c60
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46a9c0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.0040abbc
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x46aa84
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040abbc
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x46a9b2
cmp dword [ebp - 0xc], 0
je 0x46a9b2
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x46a9ac
mov eax, ebx
mov edx, esi
call fcn.0040ac24
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x46aa84
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x14]
call fcn.0040a6b0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46aa84
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x18]
call fcn.0040a6b0
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46aa7b
cmp dword [ebp - 0xc], 0
je 0x46aa7b
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46aa75
lea eax, [ebp - 0x1c]
mov edx, esi
mov ecx, 0
call fcn.0040a3a8
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0040ac94
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46aaa6
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00409cf0
ret
Function at 0x46aab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46ac03
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46ab52
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, edi
call fcn.0040abbc
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x46abe0
mov eax, dword [ebp + 8]
call fcn.0040a150
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp + 8]
call fcn.0040abbc
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040abbc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x46abe0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x14]
call fcn.0040a6b0
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x46abe0
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 4]
call fcn.0040a15c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040a6b0
push eax
push 1
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x18]
call fcn.0040a6b0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ac0a
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00409cf0
lea eax, [ebp - 4]
call fcn.00409c84
ret
Function at 0x46ac18
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46ad03
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x46ac8b
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, edi
call fcn.0040abbc
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x46ace8
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x46ace8
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0xc]
mov edx, edi
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0xc]
call fcn.0040a6b0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46ace8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x10]
call fcn.0040a6b0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ad0a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00409cf0
ret

Function at 0x46b3d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041c914
test eax, eax
je 0x46b485
cmp word [eax + 0x18], 0x20b
jne 0x46b412
add eax, 0x18
add eax, 0x78
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
jmp 0x46b424
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x46b485
jmp 0x46b47f
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x46b43b
push ebp
call fcn.0046b214
pop ecx
jmp 0x46b485
cmp dword [esi + 0x10], 0
je 0x46b47c
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x46b477
cmp edi, dword [ebx]
jne 0x46b474
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x46b474
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x46b449
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x46b42a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46c793
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00409c60
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x46c767
lea eax, [ebp - 8]
push eax
push esi
push 0xffffffffffffffff
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x46c767
cmp dword [0x71f190], 0
jne 0x46c690
push 0x46c7a4
push 0x46c7d0
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412e30
mov dword [0x71f190], eax
cmp dword [0x71f190], 0
je 0x46c6c2
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x71f190]
test eax, eax
je 0x46c6c2
mov eax, edi
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.0040ac78
jmp 0x46c6f9
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x46c6f9
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x212]
mov ecx, 0
call fcn.0040a3a8
mov edx, dword [ebp - 0x218]
mov eax, edi
call fcn.0040ac94
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp dword [edi], 0
jne 0x46c725
lea edx, [ebp - 0x21c]
xor eax, eax
call fcn.0046a048
mov eax, dword [ebp - 0x21c]
mov edx, edi
call fcn.004181a8
cmp dword [edi], 0
je 0x46c767
mov eax, dword [edi]
call fcn.0040a150
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x5c
sete al
cmp bl, al
je 0x46c767
test bl, bl
je 0x46c752
mov eax, edi
mov edx, 0x46c7f4
call fcn.0040add0
jmp 0x46c767
mov eax, dword [edi]
call fcn.0040a150
mov edx, eax
mov eax, edi
mov ecx, 1
call fcn.0040afe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c79a
lea eax, [ebp - 0x21c]
call fcn.00409c60
lea eax, [ebp - 0x218]
call fcn.00409c84
lea eax, [ebp - 4]
call fcn.0040d710
ret

Function at 0x46d23c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x46d256
call sub.user32.dll_EmptyClipboard
call sub.user32.dll_CloseClipboard
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x46d2b5
mov eax, edi
call fcn.0040a150
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
je 0x46d2b0
mov eax, edi
call fcn.0040a150
add eax, eax
add eax, 2
push eax
mov eax, edi
call fcn.0040abbc
mov edx, esi
pop ecx
call fcn.004066ec
push ebx
call sub.kernel32.dll_GlobalUnlock
push ebx
push 0xd
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
pop edi
pop esi
pop ebx
ret
Function at 0x46f600
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x46f7b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.0046f534
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x46f792
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x70ffc0], 0
jne 0x46f766
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.0046add8
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00416b44
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x46f7d4
call fcn.0040a4e4
mov eax, dword [ebp - 0x2c]
call fcn.0040a6b0
push eax
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
test edi, edi
sete bl
test bl, bl
je 0x46f6da
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00416b44
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x46f7d4
call fcn.0040a4e4
mov eax, dword [ebp - 0x34]
call fcn.0040a6b0
push eax
push 4
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
jne 0x46f6f5
xor esi, esi
push 0
push 0x46f7ec
push 0x46f7f8
push 0
call sub.user32.dll_MessageBoxA
jmp 0x46f755
test bl, bl
je 0x46f73c
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push 4
push 0x1000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [esi], ebx
mov eax, ebx
mov edx, 0x28
call fcn.00413eac
mov eax, dword [esi]
mov dword [eax + 4], edi
add eax, 8
push eax
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x46f755
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x46f766
mov eax, esi
call fcn.004a7cc0
mov dword [0x70ffc0], esi
cmp dword [0x70ffc0], 0
je 0x46f77c
mov eax, dword [0x70ffc0]
mov eax, dword [eax]
inc dword [eax]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f799
mov eax, dword [ebp - 8]
call fcn.0046f5ec
ret
Function at 0x47a77c
Capabilities:
Terminate thread

Disassembly:
push ebx
cmp dword [0x70ffec], 0
je 0x47a84d
mov ebx, dword [0x710000]
xor eax, eax
mov dword [0x710000], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [0x70fffc], 0
je 0x47a7c5
mov ebx, dword [0x70fffc]
xor eax, eax
mov dword [0x70fffc], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [0x70fff8], 0xffffffff
mov eax, 0x47a504
xor ecx, ecx
xor edx, edx
call fcn.0041c7e4
push 0x1f4
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x47a812
push 0
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x710004], 0
je 0x47a812
mov eax, dword [0x710004]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x710004], eax
mov eax, dword [0x70ffe8]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x70ffe4]
call fcn.0046b754
xor eax, eax
mov dword [0x70ffe8], eax
xor eax, eax
mov dword [0x70ffe4], eax
xor eax, eax
mov dword [0x70ffec], eax
pop ebx
ret

Function at 0x482694
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040a6b0
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4826c0
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4826c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x486f13
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
and edx, 0xaa87
xor edx, 0x13d84
or edx, 0x16d0c
pop edx
push edx
jmp 0x486f33
pop edx
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x486faa

Function at 0x486f5c
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
or edx, 0x1e2e
pop edx
push edi
push esi
add esp, 4
jmp 0x486f73
pop edi
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x486fa0
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x486d56
mov dword [ebp - 0x2e0], 0
Function at 0x4877ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x6f4]
add edx, 1
mov dword [ebp - 0x6f4], edx
add esp, 4
jmp 0x4877b4
pop edx
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x180]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x180]
movsx eax, byte [ebp + edx - 0x820]
or eax, 0x20
cmp ecx, eax
jge 0x4877e8
mov dword [ebp - 0xc30], 0xffffffff
jmp 0x4877f2
mov dword [ebp - 0xc30], 1
cmp dword [ebp - 0xc30], 0
jne 0x487809
mov ecx, dword [ebp - 0x18ac]
mov dword [ebp - 0x3c4], ecx
jmp 0x48781a
jmp 0x4875f3
Function at 0x488470
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
xor edi, 0xa04
and edi, 0x10bd7
pop edi
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x4884f6
Function at 0x4a14d4
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId
cmp esi, eax
je 0x4a14fe
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x4a14fe
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a5e84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4a5f94
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x4a5f74
mov eax, ebx
call fcn.0040a6b0
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0041cbec
mov dword [edi], eax
test esi, esi
je 0x4a5ee2
cmp word [esi], 0x25ff
jne 0x4a5ee2
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4a5ee4
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x4a5f02
push 0
call sub.kernel32.dll_GetModuleHandleW
cmp eax, dword [0x70f788]
je 0x4a5f02
cmp byte [0x70f798], 0
je 0x4a5f19
lea eax, [ebp - 0x10]
call fcn.0046b038
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.0046b48c
jmp 0x4a5f28
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x70f788]
call fcn.0046b3d4
test ebx, ebx
je 0x4a5f37
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x4a5f3b
xor eax, eax
jmp 0x4a5f3d
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4a5f78
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5f78
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4a5f78
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5f9b
lea eax, [ebp - 0x10]
mov edx, dword [0x46b008]
call fcn.0040c198
ret

Function at 0x4a5fa8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a6083
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4a6067
test esi, esi
je 0x4a5fe9
cmp word [esi], 0x25ff
jne 0x4a5fe9
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4a5feb
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x4a6009
push 0
call sub.kernel32.dll_GetModuleHandleW
cmp eax, dword [0x70f788]
je 0x4a6009
cmp byte [0x70f798], 0
je 0x4a6020
lea eax, [ebp - 0xc]
call fcn.0046b038
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.0046b48c
jmp 0x4a602f
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x70f788]
call fcn.0046b3d4
test ebx, ebx
je 0x4a6067
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4a6067
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a6067
mov dword [ebx], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a608a
lea eax, [ebp - 0xc]
mov edx, dword [0x46b008]
call fcn.0040c198
ret