joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa35740
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x40
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x2c]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x10
push ecx
push esi
call ebx
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
xor ecx, ecx
add edx, ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
adc ecx, ebp
mov ebp, dword [esp + 0x14]
cmp ecx, ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
jl 0xa357bf
jg 0xa357a7
cmp edx, eax
jbe 0xa357bf
push 0
push 0xab4cd8
push str.ConfigInit::Bad_file_format
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x20]
push edx
call fcn.009ef3b0
mov edx, dword [esp + 0x24]
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [0xaf4e74], eax
push 0
push ecx
push edx
push eax
push esi
call ebx
test eax, eax
je 0xa3581c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0xa3581c
mov eax, dword [0xaf4e74]
cmp byte [eax], 0x74
jne 0xa3581c
cmp byte [eax + 1], 0x68
jne 0xa3581c
cmp byte [eax + 2], 0x69
jne 0xa3581c
cmp byte [eax + 3], 0x6e
je 0xa35834
push 0
push 0xab4cd8
push str.ConfigInit::Signature_not_found
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00a356d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0xa35ba0
Capabilities:
Get disk information

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00a35990
add esp, 8
test al, al
jne 0xa35bd0
mov eax, dword [esp + 8]
push esi
test eax, eax
je 0xa35bc6
call eax
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
pop esi
ret 8
mov eax, dword [esp + 0xc]
pop esi
ret 8
Function at 0xa35f80
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x628
push esi
push 0
push str.VirtualDrivesBin
call fcn.00a352d0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0xa3610c
push eax
call fcn.00a7e07a
add esp, 4
test al, 0xf
jne 0xa3610c
push edi
push 0x68
call fcn.009ef3b0
mov edi, eax
mov ecx, 0x1a
xor eax, eax
mov dword [0xaf4e90], edi
rep stosd dword es:[edi], eax
push 0x1a
call fcn.009ef3b0
mov edi, eax
mov ecx, 6
xor eax, eax
mov dword [0xaf4e94], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], eax
add esp, 8
mov dword [esp + 0xc], eax
mov byte [esp + 8], 0x67
mov byte [esp + 9], 0x90
mov byte [esp + 0xb], 3
cmp word [ecx], ax
je 0xa36067
lea edx, [esp + 8]
push 8
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00a35f20
movzx ax, byte [esp + 0x16]
and eax, 0xffff
mov esi, dword [0xaf4e8c]
mov edx, 1
add esp, 0xc
lea ecx, [eax - 0x61]
shl edx, cl
or esi, edx
mov edx, dword [esp + 0xc]
mov dword [0xaf4e8c], esi
mov esi, dword [0xaf4e90]
mov dword [esi + ecx*4], edx
mov edx, dword [0xaf4e94]
mov cl, byte [esp + 0xb]
mov byte [eax + edx - 0x61], cl
mov eax, dword [esp + 0x10]
cmp word [eax], 0
jne 0xa3600b
push 0
call fcn.00a50c00
add esp, 4
cmp word [eax + 2], 0x3a
push 0x104
jne 0xa3608d
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00a7e178
add esp, 0xc
jmp 0xa36098
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x220]
push 0x104
push eax
push 0xaf4e84
lea ecx, [esp + 0x20]
push 0xaf4e80
push ecx
lea edx, [esp + 0x43c]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
mov word [esp + 0x3e], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [esp + 0x220]
push ecx
call fcn.00a7e07a
lea esi, [eax + eax + 2]
push esi
call fcn.009ef3b0
mov ecx, esi
lea esi, [esp + 0x228]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [0xaf4e88], eax
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0xa9ed20
call fcn.00a466e0
push 0xffffffffffffffff
push 0
mov esi, eax
push fcn.00a35ba0
push str.GetDriveTypeW
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push 0xa35b10
push str.GetDriveTypeA
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push 0xa35eb0
push str.GetVolumeInformationW
push esi
call fcn.00a468b0
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0xa35d10
push str.GetVolumeInformationA
push esi
call fcn.00a468b0
add esp, 0x14
pop esi
add esp, 0x628
ret
Function at 0xa363a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push 0x40
mov eax, dword [esi]
lea ebx, [esi + 4]
push ebx
push 0
call dword [eax + 4]
test eax, eax
je 0xa36423
mov eax, dword [ebx]
cmp word [eax], 0x5a4d
jne 0xa3641b
mov eax, dword [eax + 0x3c]
mov edx, dword [esi]
lea edi, [esi + 8]
push 0xf8
push edi
push eax
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0xa36423
mov ecx, dword [edi]
cmp dword [ecx], 0x4550
jne 0xa3641b
cmp word [ecx + 0x18], 0x10b
jne 0xa3641b
xor eax, eax
mov edx, dword [esi]
mov ax, word [ecx + 6]
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [esi + 0xc]
push eax
xor eax, eax
mov ax, word [ecx + 0x14]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x3c]
lea eax, [eax + ecx + 0x18]
mov ecx, esi
push eax
call dword [edx + 4]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
ret
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0xa387c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x94
push ebx
push esi
push edi
push 0
push 0
call fcn.00a22fe0
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.009ef3b0
add esp, 4
mov dword [0xaf4eb0], eax
push esi
push eax
call fcn.00a22fe0
mov ecx, dword [0xaf4eb0]
push 0xa9e7a4
push ecx
call fcn.00a7e246
add esp, 8
push 0xa9ed20
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.GetSystemWindowsDirectoryW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0xa38853
push 0
push 0
call esi
mov edi, eax
lea edx, [edi + edi + 2]
push edx
call fcn.009ef3b0
add esp, 4
mov dword [0xaf4eb4], eax
push edi
push eax
call esi
mov eax, dword [0xaf4eb4]
push 0xa9e7a4
push eax
call fcn.00a7e246
add esp, 8
jmp 0xa388ad
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0xa388a2
cmp dword [esp + 0x1c], 2
jne 0xa388a2
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call edi
mov esi, eax
lea edx, [esi + esi]
push edx
call fcn.009ef3b0
add esp, 4
mov dword [0xaf4eb4], eax
push esi
push eax
call edi
mov eax, dword [0xaf4eb4]
mov word [eax + esi*2 - 0x12], 0
jmp 0xa388ad
mov ecx, dword [0xaf4eb4]
mov word [ecx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0xaf4eb0]
mov eax, dword [0xaf4eb4]
push edx
push eax
call fcn.00a7fc4a
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
jne 0xa388d9
mov ecx, dword [0xaf4eb4]
mov word [ecx], ax
push 0xaf4e98
mov dword [0xaf4ebc], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 0xa
add esp, 0x94
ret

Function at 0xa38ca0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
mov ecx, dword [esi + 4]
push ecx
call fcn.009f2650
add esp, 0xc
test eax, eax
je 0xa38cd9
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
mov eax, dword [esp + 0x2c]
push 0
test eax, eax
push 0
je 0xa38cf6
mov eax, dword [esi + 4]
push 3
push 0
push 1
push 0x81
push eax
jmp 0xa38d05
mov ecx, dword [esi + 4]
push 4
push 0
push 0
push 0x83
push ecx
call fcn.00a2de30
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
pop esi
jne 0xa38d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0xa38d26
xor eax, eax
add esp, 0x24
ret 4
mov eax, 1
add esp, 0x24
ret 4
Function at 0xa41cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0xa8e12b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00a155c0
mov esi, dword [esp + 0x254]
mov edi, dword [esp + 0x250]
mov ebx, dword [esp + 0x24c]
mov ebp, dword [esp + 0x248]
mov edx, dword [esp + 0x244]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x244]
lea ecx, [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x248]
push esi
push edi
push ebx
push ebp
push edx
mov edx, dword [esp + 0x258]
push eax
push ecx
push edx
mov dword [esp + 0x258], 0
call fcn.00a5dde0
add esp, 0x2c
test al, al
jne 0xa41da8
mov eax, dword [esp + 0x234]
push esi
push edi
push ebx
test eax, eax
push ebp
je 0xa41d7e
mov ecx, dword [esp + 0x254]
mov edx, dword [esp + 0x250]
push ecx
mov ecx, dword [esp + 0x250]
push edx
mov edx, dword [esp + 0x250]
push ecx
push edx
call eax
jmp 0xa41da4
mov eax, dword [esp + 0x254]
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x24c]
push eax
mov eax, dword [esp + 0x24c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [esp + 0x10], eax
mov ecx, dword [0xaa2204]
mov edx, dword [ecx]
shr edx, 0xd
test dl, 1
je 0xa41de4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0xa41dd2
push esi
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
push 0x57
call fcn.00a42500
add esp, 0x14
mov ecx, dword [esp + 0x1c]
push ecx
push str.RegEnumValueW__ls_n
call fcn.009fe320
add esp, 8
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 0x24
Function at 0xa429f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0xa8e216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
lea ecx, [esp + 0x24]
call fcn.00a155c0
mov eax, dword [esp + 0x254]
mov dword [esp + 0x23c], 0
test eax, eax
je 0xa42a30
mov eax, dword [eax]
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00a50480
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call fcn.00a504c0
mov eax, dword [esp + 0x26c]
mov edi, dword [esp + 0x260]
mov ebp, dword [esp + 0x25c]
mov esi, dword [esp + 0x258]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x26c]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push edi
push ebp
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00a58f20
add esp, 0x24
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00a50710
test bl, bl
mov ebx, dword [esp + 0x254]
jne 0xa42b37
cmp esi, 0x80000004
jne 0xa42abd
lea ecx, [esp + 0x18]
call fcn.00a504c0
mov ecx, dword [esp + 0x26c]
mov edx, dword [esp + 0x268]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
push ebp
test ebx, ebx
push esi
je 0xa42add
call ebx
jmp 0xa42ae3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, 0x80000004
mov dword [esp + 0x10], eax
jne 0xa42af8
lea ecx, [esp + 0x18]
call fcn.00a50710
mov ecx, dword [0xaa2204]
mov edx, dword [ecx]
shr edx, 0xd
test dl, 1
je 0xa42b37
mov eax, dword [esp + 0x10]
test eax, eax
jne 0xa42b24
lea eax, [esp + 0x34]
push str._found_on_system_
push eax
call fcn.00a16060
add esp, 8
jmp 0xa42b37
push ebp
lea ecx, [esp + 0x38]
push str.__ls_not_found_on_system_or_any_views_
push ecx
call fcn.00a16060
add esp, 0xc
mov eax, dword [esp + 0x264]
test eax, eax
je 0xa42b48
mov edx, dword [esp + 0x14]
mov dword [eax], edx
test ebx, ebx
je 0xa42b99
mov eax, dword [0xaa2204]
mov ecx, dword [eax]
shr ecx, 0xd
test cl, 1
je 0xa42b99
mov eax, dword [esp + 0x10]
test eax, eax
jne 0xa42b87
mov edx, dword [esp + 0x26c]
mov eax, dword [esp + 0x268]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
push 0x57
call fcn.00a42500
add esp, 0x14
mov eax, dword [esp + 0x3c]
push eax
push str.RegQueryValueExW__ls_n
call fcn.009fe320
add esp, 8
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 0
call fcn.00a51780
lea ecx, [esp + 0x34]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0x244]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret 0x1c
Function at 0xa43470
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0xa8e2fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00a155c0
mov edi, dword [esp + 0x254]
mov ebx, dword [esp + 0x250]
mov ebp, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x23c]
push eax
mov eax, dword [esp + 0x248]
lea ecx, [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x24c]
push edi
push ebx
push ebp
push edx
mov edx, dword [esp + 0x254]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x258], 0
call fcn.00a5e330
add esp, 0x2c
test al, al
jne 0xa43534
mov eax, dword [esp + 0x234]
push edi
test eax, eax
push ebx
push ebp
je 0xa4359c
mov ecx, dword [esp + 0x254]
mov edx, dword [esp + 0x250]
push ecx
mov ecx, dword [esp + 0x250]
push edx
mov edx, dword [esp + 0x24c]
push ecx
push esi
push edx
call eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x234]
test eax, eax
je 0xa43567
mov ecx, dword [0xaa2204]
mov edx, dword [ecx]
shr edx, 0xd
test dl, 1
je 0xa43567
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push str.RegEnumKeyExW_dwIndex_xh_____xh__ls_n
call fcn.009fe320
add esp, 0x10
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0x224]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 0x24
mov eax, dword [esp + 0x254]
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x24c]
push eax
mov eax, dword [esp + 0x248]
push ecx
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x10], eax
jmp 0xa43567

Function at 0xa43c30
Capabilities:
Get hostname

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0xa43c66
lea eax, [esp + 0x28]
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [esp + 4]
push edx
push esi
call fcn.00a886d0
add esp, 8
test eax, eax
jne 0xa43c89
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 7
push eax
push 0
push ecx
call fcn.00a40f80
mov edx, dword [esp + 0x44]
add esp, 0x10
mov dword [edx], eax
mov al, 1
pop esi
add esp, 0x20
ret
xor al, al
pop esi
add esp, 0x20
ret
Function at 0xa443e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push 0xa9ed20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.IsProcessorFeaturePresent
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0xaf4f00], eax
je 0xa44414
push 0xc
call eax
test eax, eax
setne al
mov byte [0xaf4efd], al
lea ecx, [esp]
mov dword [esp], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
jb 0xa4445d
mov byte [0xaf4efd], 1
jne 0xa4445d
cmp dword [esp + 8], 1
jne 0xa4445d
lea edx, [esp + 0x14]
push str.Service_Pack_2
push edx
call fcn.009e3aa0
add esp, 8
test eax, eax
je 0xa4445d
mov byte [0xaf4efd], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
setb al
mov byte [0xaf4efc], al
add esp, 0x94
ret
Function at 0xa447c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
call fcn.00a35860
mov ecx, dword [esp + 0x10]
mov edx, ecx
shl edx, 4
lea esi, [edx + eax]
mov edx, dword [edx + eax + 0x18]
test edx, edx
jne 0xa447ee
push ecx
push str._DirectoryEntry__d_missing_n
call fcn.009fe320
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
inc ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
shl ecx, 4
lea edx, [esi + 0x14]
push 0
mov eax, dword [ecx + eax]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esi + 0x18]
push edi
call fcn.009ef3b0
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push 0
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
mov ebx, dword [esp + 0x1c]
push eax
mov dword [ebx], eax
call fcn.009ef3b0
mov edx, dword [ebx]
mov edi, eax
push edx
lea eax, [esi + 4]
push edi
push eax
call fcn.00a74c60
push esi
call fcn.009ef440
add esp, 0x14
mov eax, edi
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0xa451d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0xa451e5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [ecx + 0x1c]
cmp ebx, eax
jae 0xa451f5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx + eax + 0x50]
add edx, eax
cmp edx, ebx
jae 0xa4520b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov ebp, dword [esp + 0x14]
xor edi, edi
mov edx, 0x12
mov esi, dword [ebp + 0x18]
mov eax, 3
mov ecx, edi
shl eax, cl
test esi, eax
je 0xa4523d
mov eax, esi
mov ecx, edx
shr eax, cl
mov ecx, dword [edx + ebp - 0xe]
and eax, 3
not eax
and ecx, eax
and eax, ebx
cmp ecx, eax
je 0xa45202
add edx, 4
add edi, 2
cmp edx, 0x22
jb 0xa45219
mov cl, byte [ebx]
xor eax, eax
pop edi
cmp cl, 0xcc
pop esi
pop ebp
setne al
pop ebx
ret 8

Function at 0xa46aa0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0xa46b80
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0xa46b80
cmp word [ebx], 0x5a4d
jne 0xa46b80
push 0xaf4fd0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov si, word [eax + ebx + 6]
lea ecx, [eax + ebx + 4]
xor eax, eax
mov ax, word [ecx + 0x10]
lea edx, [ecx + 0x14]
mov ecx, esi
mov edi, dword [eax + edx + 0xc]
add ecx, 5
add edi, ebx
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*8]
add esi, edx
cmp esi, edi
jae 0xa46b75
cmp dword [esi], 0x81902999
je 0xa46b42
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, edi
lea edx, [esp + 0x18]
sub ebx, esi
push edx
push 0x40
push ebx
push esi
call ebp
test eax, eax
jne 0xa46b35
lea eax, [esp + 0x18]
push eax
push 4
push ebx
push esi
call ebp
test eax, eax
je 0xa46b75
mov dword [esi + 4], 8
mov dword [esi], 0x81902999
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
sub edi, esi
cmp eax, edi
jae 0xa46b75
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebp, eax
mov eax, dword [ebx]
cmp eax, edi
jae 0xa46b75
push 0xaf4fd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + ebp]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xaf4fd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0xa47020
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8e521
push eax
mov eax, 0x442c
mov dword fs:[0], esp
call fcn.00a7e750
push ebp
lea ecx, [esp + 0x220]
call fcn.00a155c0
lea eax, [esp + 0x220]
mov dword [esp + 0x4438], 0
push eax
push str.PermittedGroupSIDs
call fcn.00a351f0
add esp, 8
test al, al
je 0xa471d3
lea ecx, [esp + 8]
mov byte [esp + 7], 0
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x434]
push 0x4000
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [esp + 0x228]
cmp word [ebp], 0
je 0xa47179
push ebx
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00a16c20
mov ax, word [ebp]
mov byte [esp + 0x4444], 1
test ax, ax
je 0xa47119
cmp ax, 0x3b
je 0xa47119
xor edx, edx
mov dx, word [ebp + 2]
push edx
call fcn.00a46ff0
mov ebx, eax
xor eax, eax
mov ax, word [ebp]
push eax
call fcn.00a46ff0
shl al, 4
add esp, 8
or bl, al
lea ecx, [esp + 0x1c]
push ebx
call fcn.00a17220
mov ax, word [ebp + 4]
add ebp, 4
test ax, ax
jne 0xa470db
mov ecx, dword [esp + 0x43c]
test ecx, ecx
jbe 0xa47148
lea eax, [esp + 0x440]
mov edx, ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [eax]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0xa47142
mov byte [esp + 0x13], 1
add eax, 8
dec edx
jne 0xa4712d
cmp word [ebp], 0x3b
jne 0xa47152
add ebp, 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4444], 0
call fcn.00a16c40
cmp word [ebp], 0
jne 0xa470c1
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
test al, al
jne 0xa471d3
push 0
push str.AccessDeniedMsg
call fcn.00a352d0
add esp, 8
test eax, eax
jne 0xa47191
mov eax, str.Application_policy_does_not_permit_execution_nContact_Administrator
push eax
lea ecx, [esp + 0x14]
call fcn.00a152e0
push 0
push str.Permission_Denied
mov ecx, eax
mov byte [esp + 0x4440], 2
call fcn.00a15680
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x4438], 0
call fcn.00a155e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0x220]
mov dword [esp + 0x4438], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0x4430]
pop ebp
mov dword fs:[0], ecx
add esp, 0x4438
ret

Function at 0xa47500
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [0xaf5020]
mov ecx, esi
call fcn.00a47f30
mov eax, dword [0xaf5060]
test eax, eax
je 0xa47526
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0x35
push eax
push ecx
mov dword [0xaf5060], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
je 0xa47556
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test esi, esi
mov dword [0xaf5060], 0
je 0xa4756b
mov ecx, esi
call fcn.00a47f60
pop esi
ret
Function at 0xa47750
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xaf5024]
mov ecx, dword [0xaf5018]
push esi
mov esi, dword [esp + 8]
sub eax, ecx
lea edx, [esi + 4]
cmp eax, edx
jae 0xa477b8
lea eax, [esi + esi + 0x2003]
push 4
and eax, 0xffffe000
push 0x101000
push eax
push 0
mov dword [0xaf5024], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0xaf5070], eax
jne 0xa477b6
push eax
mov eax, dword [0xab4ff0]
push eax
push str.Out_of_memory_during_shutdown
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
mov edx, dword [0xaf5070]
lea eax, [edx + ecx]
lea ecx, [ecx + esi + 4]
mov dword [0xaf5018], ecx
mov dword [eax], esi
add eax, 4
pop esi
ret
Function at 0xa49e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xa8e6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x38]
mov eax, 0x66666667
push esi
lea ecx, [ebx + 4]
push edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
lea ecx, [esi + 1]
push ecx
call fcn.009ef3b0
add esp, 4
mov edi, eax
lea ecx, [esp + 0xc]
push 0
push 0
push esi
push edi
mov byte [edi + esi], 0
call fcn.00a48890
mov edx, dword [esp + 0x3c]
push ebx
lea eax, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x3c], 0
call fcn.00a49ee0
mov ecx, dword [esp + 0x44]
add esp, 0xc
push edi
call fcn.009e36f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00a487e0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0xa4bb00
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret