joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fb20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a1bc]
call fcn.0040550c
xor eax, eax
push ebp
push 0x45fc64
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49ce88], 0
jne 0x45fb73
mov ecx, dword [0x49fee4]
mov dl, 1
mov eax, dword [0x408248]
call fcn.0040d810
call fcn.00404344
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032a8
mov eax, ebx
call fcn.004052a8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45fc74
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004068c8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004052b8
test eax, eax
jle 0x45fc0b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45fc04
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404c08
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404bf0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409104
test eax, eax
jne 0x45fc04
mov ebx, 0x15
jmp 0x45fc10
mov ebx, 0x10
jmp 0x45fc10
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49ce88]
call fcn.0045fa1c
mov eax, dword [ebp - 8]
call fcn.0045fa1c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004068e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc6b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004049ac
lea eax, [ebp - 0x10]
mov edx, dword [0x41a1bc]
call fcn.004055dc
ret

Function at 0x461234
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x461290
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x46125f
call fcn.0040ea7c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402a04
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x461290
call fcn.0040ea7c
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x461878
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4618f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49ff5c]
cmp byte [eax], 0
je 0x4618ac
push edi
push esi
push ebx
call sub.kernel32.dll_CopyFileW
mov ebx, eax
jmp 0x4618da
push edi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404ba8
mov eax, dword [ebp - 4]
call fcn.00404e38
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ba8
mov eax, dword [ebp - 8]
call fcn.00404e38
push eax
call sub.kernel32.dll_CopyFileA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4618fc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049ac
ret

Function at 0x461908
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00407c5c
cmp ax, 0xffff
jne 0x461929
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
mov dword [ebp - 8], ebx
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x4619aa
push eax
push edi
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x4619aa
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x461970
inc eax
movzx edx, word [ebx]
add edx, edx
add ebx, edx
add ebx, 2
dec eax
jne 0x461963
movzx esi, word [ebx]
add ebx, 2
cmp dword [ebp - 4], 0
je 0x4619aa
cmp dword [ebp + 8], 0
jle 0x4619aa
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042ed50
mov esi, eax
test esi, esi
jle 0x4619a1
mov ecx, esi
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00407c78
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x464f04
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
or esi, 0xffffffff
or ebx, 0xffffffff
mov dword [ebp - 0x9c], 0x9c
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46504a
mov eax, dword [ebp - 0x8c]
dec eax
je 0x464fed
dec eax
jne 0x465048
mov eax, dword [ebp - 0x98]
cmp eax, 4
ja 0x464f5c
mov ebx, 4
jmp 0x465048
cmp eax, 5
jne 0x464fa7
mov eax, dword [ebp - 0x94]
test eax, eax
jne 0x464f75
mov ebx, 5
jmp 0x465048
cmp eax, 1
jne 0x464f84
mov ebx, 6
jmp 0x465048
cmp eax, 2
jne 0x465048
cmp byte [ebp - 2], 1
jne 0x464f9d
mov ebx, 7
jmp 0x465048
mov ebx, 8
jmp 0x465048
cmp eax, 6
jne 0x464fe6
mov eax, dword [ebp - 0x94]
test eax, eax
jne 0x464fcd
cmp byte [ebp - 2], 1
jne 0x464fc6
mov ebx, 9
jmp 0x465048
mov ebx, 0xa
jmp 0x465048
cmp eax, 1
jne 0x465048
cmp byte [ebp - 2], 1
jne 0x464fdf
mov ebx, 0xc
jmp 0x465048
mov ebx, 0xb
jmp 0x465048
mov ebx, 0xc
jmp 0x465048
cmp dword [ebp - 0x98], 4
jne 0x465003
cmp dword [ebp - 0x94], 0
jne 0x465003
xor ebx, ebx
jmp 0x465048
cmp dword [ebp - 0x98], 4
jne 0x46502c
cmp dword [ebp - 0x94], 0xa
jne 0x46502c
cmp byte [ebp - 0x87], 0x41
jne 0x465025
mov ebx, 2
jmp 0x465048
mov ebx, 1
jmp 0x465048
cmp dword [ebp - 0x98], 4
jne 0x465045
cmp dword [ebp - 0x94], 0x5a
jne 0x465045
mov ebx, 3
jmp 0x465048
or ebx, 0xffffffff
mov esi, ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465054
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
xor ebx, ebx
cmp dword [0x4a2020], 5
jl 0x465099
mov dword [ebp - 0x9c], 0x9c
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x465099
cmp byte [ebp - 2], 3
jne 0x465099
mov ax, word [ebp - 4]
and ax, 0x10
cmp ax, 0x10
jne 0x465099
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46525c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x465390
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404988
xor eax, eax
mov dword [ebp - 8], eax
push 0x4653a0
push 0x4653bc
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
push 0x4653c8
push 0x4653bc
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
push 0x4653e8
push 0x4653bc
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
test esi, esi
je 0x46537a
test ebx, ebx
je 0x46537a
cmp dword [ebp - 4], 0
je 0x46537a
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
je 0x46537a
xor edx, edx
push ebp
push 0x465373
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, 0x104
call fcn.00404fc4
mov eax, dword [ebp - 0xc]
call fcn.00404c40
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404e38
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jle 0x46535c
lea edx, [ebp - 0xc]
xchg edx, eax
call fcn.00404fc4
mov eax, dword [ebp - 0xc]
call fcn.00404c40
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x465352
lea eax, [ebp - 0xc]
mov edx, 0x465410
call fcn.00404c48
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00465898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46537a
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 4]
test eax, eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465397
lea eax, [ebp - 0xc]
call fcn.00404988
ret

Function at 0x465414
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov ebx, edx
mov esi, 0xffff
mov byte [ebx], 0
mov eax, esp
xor ecx, ecx
mov edx, 0x24
call fcn.004032a8
push esp
call sub.kernel32.dll_GetSystemInfo
mov ax, word [esp]
test ax, ax
jne 0x46549a
call fcn.004650a0
mov byte [ebx], al
cmp byte [ebx], 0
je 0x465496
push 0x4654bc
push 0x4654d0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x4654b2
mov eax, esp
xor ecx, ecx
mov edx, 0x24
call fcn.004032a8
push esp
call ebx
mov ax, word [esp]
cmp ax, 6
jne 0x465489
mov esi, 6
jmp 0x4654b2
cmp ax, 9
jne 0x4654b2
mov esi, 9
jmp 0x4654b2
xor esi, esi
jmp 0x4654b2
cmp ax, 6
jne 0x4654a7
mov esi, 6
jmp 0x4654b2
cmp ax, 9
jne 0x4654b2
mov esi, 9
mov eax, esi
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x465630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 6], cx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4657a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.004032a8
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.004032a8
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov ax, word [ebp - 6]
mov word [ebp - 0x20], ax
lea edx, [ebp - 0x64]
mov eax, edi
call fcn.00409304
mov eax, dword [ebp - 0x64]
call fcn.00404c40
test eax, eax
je 0x465782
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409304
mov eax, dword [ebp - 0xc]
call fcn.00404c40
test eax, eax
jle 0x4656f5
push 0x4657c0
lea edx, [ebp - 0x68]
mov eax, edi
call fcn.00409304
push dword [ebp - 0x68]
push 0x4657cc
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404d00
jmp 0x465719
push 0x4657c0
lea edx, [ebp - 0x6c]
mov eax, edi
call fcn.00409304
push dword [ebp - 0x6c]
push 0x4657c0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d00
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404e38
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x46574a
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
jmp 0x465782
cmp byte [ebp + 0xc], 0
je 0x46576e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x465770
push esi
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov bl, 1
jmp 0x465770
mov bl, 1
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4657ac
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004049ac
lea eax, [ebp - 0xc]
call fcn.00404988
ret
Function at 0x466514
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x466796
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404988
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00404fc4
mov eax, dword [ebp - 4]
call fcn.00404e38
push eax
mov eax, dword [ebp - 4]
call fcn.00404c40
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jle 0x466770
mov eax, dword [ebp - 4]
call fcn.00404e38
call fcn.00409ef0
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404fc4
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.00409e00
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 4]
call fcn.00404a20
mov eax, dword [ebp - 4]
call fcn.00404c40
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4665e6
lea eax, [ebp - 4]
mov edx, 0x4667ac
call fcn.00404c48
lea edx, [ebp - 0x158]
mov eax, dword [ebp - 4]
call fcn.00465898
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 4]
call fcn.00404a20
mov eax, dword [ebp - 4]
call fcn.00404c40
test eax, eax
jle 0x466770
xor edx, edx
push ebp
push 0x466769
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x466711
xor edx, edx
push ebp
push 0x4666f9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x15c]
mov ecx, 0x4667b8
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x15c]
call fcn.0040990c
test al, al
je 0x466676
lea eax, [ebp - 0x160]
mov ecx, 0x4667b8
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x160]
call fcn.00409bfc
lea eax, [ebp - 0x164]
mov ecx, 0x4667b8
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x150]
call fcn.00402f14
mov edx, 1
lea eax, [ebp - 0x150]
call fcn.004033ec
call fcn.004028bc
push 0
mov eax, dword [ebp - 4]
call fcn.00404c40
push eax
mov eax, dword [ebp - 4]
call fcn.00404e38
mov edx, eax
lea eax, [ebp - 0x150]
pop ecx
call fcn.00403098
call fcn.004028bc
lea eax, [ebp - 0x150]
call fcn.004030b8
call fcn.004028bc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004049dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46671b
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004049dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466770
lea eax, [ebp - 0x168]
mov ecx, 0x4667b8
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x168]
call fcn.0040990c
test al, al
je 0x466768
lea eax, [ebp - 0x16c]
mov ecx, 0x4667b8
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x16c]
call fcn.00409bfc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46679d
lea eax, [ebp - 0x16c]
mov edx, 7
call fcn.004049ac
lea eax, [ebp - 4]
call fcn.00404988
ret
Function at 0x46ab8c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46ad98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x8a], 0
je 0x46ac5e
cmp dword [ebx + 0x8c], 0
jne 0x46ac07
cmp dword [ebx + 0x90], 0
jne 0x46ac07
mov dword [ebp - 0x10], 0x40
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x92]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 4]
lea edx, [ebp - 0x92]
mov ecx, 0x41
call fcn.00404bf0
jmp 0x46ac8d
cmp dword [ebx + 0x8c], 0
jne 0x46ac25
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x90]
mov edx, 0x46adb0
call fcn.00404c8c
jmp 0x46ac8d
cmp dword [ebx + 0x90], 0
jne 0x46ac3e
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x8c]
call fcn.00404a20
jmp 0x46ac8d
push dword [ebx + 0x8c]
push 0x46adbc
push dword [ebx + 0x90]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404d00
jmp 0x46ac8d
cmp byte [ebx + 0x8b], 0
je 0x46ac77
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x94]
call fcn.00404a20
jmp 0x46ac8d
mov ecx, 0x46adc8
mov dl, 1
mov eax, dword [0x408248]
call fcn.0040d754
call fcn.00404344
mov eax, ebx
call fcn.0046b5c4
cmp dword [ebx + 0x34], 0
je 0x46aca6
mov eax, dword [ebx + 0x34]
call fcn.00404e38
mov esi, eax
jmp 0x46aca8
xor esi, esi
xor eax, eax
mov dword [ebx + 0x9d], eax
mov dword [ebp - 8], 0x40
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x51]
push eax
lea eax, [ebx + 0x9d]
push eax
mov eax, dword [ebx + 0x99]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e38
mov edi, eax
push edi
push esi
call fcn.0046b9a4
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x46ad0d
lea eax, [ebp - 0x98]
call fcn.0046922c
mov edx, dword [ebp - 0x98]
mov eax, dword [ebx + 0xa6]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call fcn.0040d6f8
mov eax, dword [ebx + 0x9d]
call fcn.00402748
mov dword [ebx + 0x99], eax
mov dword [ebp - 8], 0x40
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x51]
push eax
lea eax, [ebx + 0x9d]
push eax
mov eax, dword [ebx + 0x99]
push eax
push edi
push esi
call fcn.0046b9a4
test eax, eax
jne 0x46ad6b
lea eax, [ebp - 0x9c]
call fcn.0046922c
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebx + 0xa6]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call fcn.0040d6f8
mov byte [ebx + 0x98], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ad9f
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.004049ac
lea eax, [ebp - 4]
call fcn.00404988
ret
Function at 0x46b9a4
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x46bb44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
push ebx
call sub.advapi32.dll_LookupAccountNameA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46bb21
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x46bb21
test ebx, ebx
jne 0x46ba0e
lea eax, [ebp - 8]
mov edx, 0x46bb60
call fcn.00404a20
jmp 0x46ba23
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0040a12c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.00409098
cmp dword [ebp - 8], 0
jne 0x46ba36
lea eax, [ebp - 8]
mov edx, 0x46bb60
call fcn.00404a20
mov edx, dword [ebp - 8]
mov eax, dword [0x4a2118]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
test ebx, ebx
jge 0x46ba51
mov eax, dword [ebp - 8]
call fcn.0046b7e4
mov edx, dword [ebp - 8]
mov eax, dword [0x4a2118]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
mov edx, ebx
mov eax, dword [0x4a2118]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040a12c
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x46bb17
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0041d1a8
mov ebx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x14]
call fcn.00409104
test eax, eax
jne 0x46bb0f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebx + 8]
jb 0x46bac0
mov eax, dword [ebx + 0x10]
call fcn.00404c40
inc eax
mov edx, dword [ebp + 0x1c]
cmp eax, dword [edx]
jbe 0x46badf
push 0x7a
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx + 8]
mov dword [eax], edx
mov eax, dword [ebx + 0x10]
call fcn.00404c40
inc eax
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
jmp 0x46bb21
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0x10]
call fcn.00407c78
mov eax, dword [ebx + 0x10]
call fcn.00404e38
mov edx, eax
mov eax, dword [ebp + 0x18]
call fcn.00409f2c
mov dword [ebp - 4], 0xffffffff
push 0
call sub.kernel32.dll_SetLastError
jmp 0x46bb21
inc edi
dec esi
jne 0x46ba8b
push 0x534
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb4b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004049ac
lea eax, [ebp - 8]
call fcn.00404988
ret
Function at 0x46cf7c
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [esi + 0x48]
test bl, bl
je 0x46cfc8
mov eax, esi
call fcn.0046c770
test eax, eax
jne 0x46cf98
cmp dword [esi + 0x44], 0
je 0x46cfc8
mov eax, esi
call fcn.0046c770
test eax, eax
setne bl
cmp dword [esi + 0x44], 0
sete al
xor bl, al
test bl, bl
je 0x46cfc8
mov eax, dword [esi + 0x44]
push eax
mov eax, esi
call fcn.0046c770
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
ret

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

Disassembly:
push esi
mov esi, eax
movzx eax, byte [esi]
inc esi
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x49cfd8]
loop 0x46d6a3
mov eax, edx
pop esi
ret

Function at 0x46dc00
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 4]
xor ecx, ecx
mov edx, 0x5c
call fcn.004032a8
mov dword [ebx + 4], 0x67452301
mov dword [ebx + 8], 0xefcdab89
mov dword [ebx + 0xc], 0x98badcfe
mov dword [ebx + 0x10], 0x10325476
mov dword [ebx + 0x14], 0xc3d2e1f0
mov byte [ebx + 0x74], 0
xor eax, eax
mov dword [ebx + 0x75], eax
xor eax, eax
mov dword [ebx + 0x79], eax
mov byte [ebx + 0x81], 0
pop ebx
ret
Function at 0x472a38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, edx
mov edi, eax
cmp ecx, 4
jl 0x472a4d
cmp ecx, 0x48
jle 0x472a63
mov ecx, 0x472b64
mov dl, 1
mov eax, dword [0x46ff14]
call fcn.0040d754
call fcn.00404344
xor ebx, ebx
xor esi, esi
xor eax, eax
mov dword [esp + 0xc], eax
mov al, byte [ebp + ebx]
mov byte [esp + 0xf], al
lea eax, [ebx + 1]
xor edx, edx
mov dl, cl
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
mov al, byte [ebp + edx]
mov byte [esp + 0xe], al
lea eax, [ebx + 2]
xor edx, edx
mov dl, cl
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
mov al, byte [ebp + edx]
mov byte [esp + 0xd], al
lea eax, [ebx + 3]
xor edx, edx
mov dl, cl
push ecx
mov ecx, edx
cdq
idiv ecx
pop ecx
mov al, byte [ebp + edx]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [edi + 4]
mov edx, dword [esp]
xor dword [eax + esi*4], edx
lea eax, [ebx + 4]
xor edx, edx
mov dl, cl
mov ebx, edx
cdq
idiv ebx
mov ebx, edx
inc esi
cmp esi, 0x12
jne 0x472a67
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
mov dword [edi + 0x10], eax
xor esi, esi
mov eax, edi
call fcn.00472bd4
mov eax, dword [edi + 4]
mov edx, dword [esp + 4]
mov dword [eax + esi*4], edx
mov edx, dword [esp + 8]
mov dword [eax + esi*4 + 4], edx
add esi, 2
cmp esi, 0x12
jl 0x472af7
xor esi, esi
xor ebx, ebx
mov eax, edi
call fcn.00472bd4
mov eax, esi
shl eax, 7
mov edx, dword [edi + 8]
lea ecx, [edx + eax*8]
mov ebp, dword [esp + 4]
mov dword [ecx + ebx*4], ebp
lea eax, [edx + eax*8]
mov edx, dword [esp + 8]
mov dword [eax + ebx*4 + 4], edx
add ebx, 2
cmp ebx, 0x100
jl 0x472b1c
inc esi
cmp esi, 4
jne 0x472b1a
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret