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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00ab5d50
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
lea ecx, [ebp - 0x2008]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xa698fd
mov dword [ebp - 0x200c], 0x2000
test edi, edi
je 0xa69841
push 0x1000
push edi
call fcn.00aa0f59
add esp, 8
lea edx, [ebp - 0x200c]
push edx
mov edx, dword [ebp - 0x2008]
lea ebx, [eax + eax + 2]
lea eax, [ebp - 0x2004]
push eax
lea ecx, [ebp - 0x2010]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0xa698aa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2008]
push ebx
push edi
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xa698fd
mov edx, dword [ebp - 0x2008]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0xa698fd
lea eax, [ebp - 0x2004]
push edi
push eax
call fcn.00a9fbdb
add esp, 8
test eax, eax
je 0xa698fd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2008]
push ebx
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xa698fd
mov eax, dword [ebp - 0x2008]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2008]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
Function at 0xa69920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabb7f2
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00ab5d50
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2020], eax
mov edi, edx
push eax
mov dword [ebp - 0x2018], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
push 0xac3064
mov ecx, esi
mov dword [ebp - 0x2024], esi
mov word [esi], dx
call fcn.00a51740
lea eax, [ebp - 0x2014]
push eax
push 0x20019
push 0
push ebx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x2020], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0xa699e8
lea ecx, [ebp - 0x201c]
push ecx
mov ecx, dword [ebp - 0x2018]
lea edx, [ebp - 0x2010]
push edx
mov edx, dword [ebp - 0x2014]
lea eax, [ebp - 0x2028]
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x201c], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x2014]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0xa69a20
lea eax, [ebp - 0x2010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xa69a02
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x2010]
push ecx
mov ecx, esi
call fcn.00a51740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret

Function at 0xa69a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xa69aaa
test esi, esi
je 0xa69a79
push 0x1000
push esi
call fcn.00aa0f59
add esp, 8
mov ecx, dword [ebp + 8]
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xa69ab4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0xa69ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xa69b1b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xa69b25
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0xa69b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xa69b86
mov edx, dword [ebp + 8]
push 4
push edx
push 3
push eax
mov eax, dword [ebp - 4]
push 0xac9368
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xa69b90
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0xa7bd90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabc39b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
mov edi, edx
push eax
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
jne 0xa7bf00
cmp dword [ebp + 0xc], ebx
je 0xa7bee9
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
push 0x43
push 0xadcd00
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.00a51740
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xa7be21
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x234]
call fcn.00a62040
push 0x17
mov eax, 0xadcd88
call fcn.00a62040
push 0xadcdb8
push ecx
push edi
push 0xaeae58
call fcn.00a64730
add esp, 0xc
push eax
call fcn.00a64730
add esp, 8
mov esi, eax
push esi
call fcn.00a7ee30
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0xa7be94
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0xa7be94
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0xa7beb3
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0xa7beac
or eax, 4
push ebx
push eax
call fcn.00a52d10
mov edx, dword [ebp + 8]
cmp dword [edx + 0x354], ebx
jne 0xa7bee2
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0xa7bed3
lea eax, [ebp - 0x234]
push 0x40
push 0xad4af4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00aa16a6
xor eax, eax
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push 0xac3064
jmp 0xa7bf17
xor ecx, ecx
push eax
lea edx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00a51740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
Function at 0xa7c8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
sub esp, 8
push ebx
mov ebx, 8
push esi
push edi
cmp dword [ebp + 0x38], ebx
jae 0xa7c8e9
lea eax, [ebp + 0x24]
push eax
push 0x40
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0xa7c936
cmp dword [ebp + 0x1c], ebx
jb 0xa7c90c
mov eax, dword [ebp + 8]
push eax
call fcn.00a9e60d
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0xa7c92d
mov edx, dword [ebp + 0x24]
push edx
call fcn.00a9e60d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0xa7c8fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
je 0xa7c8fb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
jne 0xa7c97a
lea ecx, [ebp + 8]
call fcn.00a51500
lea ecx, [ebp + 0x24]
call fcn.00a51500
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0xa7c985
lea eax, [ebp + 8]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push esi
push edi
push 4
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
je 0xa7c961
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 8]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push ecx
push edi
call fcn.00aa40f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [ebp + 8]
call fcn.00a51500
lea ecx, [ebp + 0x24]
call fcn.00a51500
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa7cc40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0xa7cc88
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0xa7cc99
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [ebx + 0x348]
je 0xa7ccd5
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0xa7cca0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
xor ecx, ebp
pop esi
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
Function at 0xa7d3d0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 1
push edi
push edi
mov esi, ecx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0xa7d416
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
push 0x24
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0xa7d431
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xa7d501
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp dword [ebp - 0x1c], 4
jne 0xa7d4f7
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0xa7d46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0xa7d4fa
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x20]
push edx
push edi
call esi
test eax, eax
je 0xa7d4e8
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0xa7d4e4
cmp dword [ebp - 0x2c], 0
je 0xa7d4af
mov esi, dword [ebp - 0xc]
mov ebx, ecx
mov dword [ebp - 0x2c], 0
jmp 0xa7d4c3
cmp ebx, ecx
je 0xa7d4ba
mov esi, dword [ebp - 0xc]
mov ebx, ecx
jmp 0xa7d4c3
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe 0xa7d4e8
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0xa7d493
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xa7d4f7
test eax, eax
jne 0xa7d4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xa7d4f7
mov dword [ebp - 0x24], 1
mov ebx, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9e488
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0xa7d534
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xa7d556
cmp dword [ebp + 0x1c], esi
jb 0xa7d551
mov eax, dword [ebp + 8]
push eax
call fcn.00a9e60d
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
test al, 4
jne 0xa7d570
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0xa7d565
lea ecx, [ebp + 8]
and eax, 0xfffffffd
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], esi
jb 0xa7d581
mov ecx, dword [ebp + 8]
push ecx
call fcn.00a9e60d
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0xa7fac0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabbd12
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0xae6d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0xadd370
mov dword [edi + 0x10], 0xadd380
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00a810e0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00a81b50
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0xaedf00]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0xa7fb98
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00a81190
test eax, eax
jne 0xa7fbc1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0xa7fbba
or eax, 4
push ebx
push eax
call fcn.00a52d10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xa81360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabae08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0xa81480
cmp byte [edi + 0x49], bl
je 0xa81480
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0xa81474
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0xa813d4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0xa813ec
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0xa81415
dec eax
je 0xa81419
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0xa8146f
jmp 0xa8147b
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0xa81429
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0xa81452
cmp ebx, 0x10
jae 0xa81438
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00aa09aa
add esp, 0x10
cmp esi, eax
jne 0xa8146c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0xa81478
test esi, esi
jne 0xa813e0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00a602f0
jmp 0xa813da
lea ecx, [ebp - 0x2c]
call fcn.00a5e0d0
xor al, al
jmp 0xa81482
lea ecx, [ebp - 0x2c]
call fcn.00a5e0d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a9e488
mov esp, ebp
pop ebp
ret
Function at 0xa81b50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabaa9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0xae6d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00a8df02
push 4
mov dword [ebp - 4], 0
call fcn.00a9e9d2
mov edi, eax
add esp, 4
test edi, edi
je 0xa81bcc
call fcn.00a8a1b1
mov dword [edi], eax
call fcn.00a8a06b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00a89fa0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0xa81bc2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00a89fc8
jmp 0xa81bce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0xa9e488
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xae6d50]
jne 0xa9e492
repz ret
jmp fcn.00aa882e

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0xaa0197
call fcn.00aa4c03
mov dword [eax], esi
call fcn.00aa4bf0
push 0x16
pop esi
mov dword [eax], esi
call fcn.00aa8cf5
mov eax, esi
jmp 0xaa01ec
test dword [ebp + 0xc], 0xfffffff9
jne 0xaa017d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xaa01c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00aa4c16
pop ecx
call fcn.00aa4bf0
mov eax, dword [eax]
jmp 0xaa01ec
test al, 0x10
jne 0xaa01ea
test al, 1
je 0xaa01ea
test byte [ebp + 0xc], 2
je 0xaa01ea
call fcn.00aa4c03
mov dword [eax], 5
call fcn.00aa4bf0
mov dword [eax], 0xd
jmp 0xaa01bb
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0xab024c
call fcn.00aa4c03
mov dword [eax], esi
call fcn.00aa4bf0
push 0x16
pop esi
mov dword [eax], esi
call fcn.00aa8cf5
mov eax, esi
jmp 0xab02a1
test dword [ebp + 0xc], 0xfffffff9
jne 0xab0232
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xab0279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00aa4c16
pop ecx
call fcn.00aa4bf0
mov eax, dword [eax]
jmp 0xab02a1
test al, 0x10
jne 0xab029f
test al, 1
je 0xab029f
test byte [ebp + 0xc], 2
je 0xab029f
call fcn.00aa4c03
mov dword [eax], 5
call fcn.00aa4bf0
mov dword [eax], 0xd
jmp 0xab0270
xor eax, eax
pop esi
pop ebp
ret
Function at 0xab5b57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xae6d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00aa903e
and dword [ebp - 0x14], 0
cmp dword [0xaebeb4], 0
mov dword [ebp - 0x18], eax
jne 0xab5c0a
push 0xac2b30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xab5cb2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xac2b24
push ebx
call edi
test eax, eax
je 0xab5cb2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0xac2b14
push ebx
mov dword [0xaebeb4], eax
call edi
push eax
call esi
push 0xac2b00
push ebx
mov dword [0xaebeb8], eax
call edi
push eax
call esi
push 0xac2ae4
push ebx
mov dword [0xaebebc], eax
call edi
push eax
call esi
mov dword [0xaebec4], eax
test eax, eax
je 0xab5c0a
push 0xac2acc
push ebx
call edi
push eax
call esi
mov dword [0xaebec0], eax
mov eax, dword [0xaebec0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0xab5c63
cmp dword [0xaebec4], ecx
je 0xab5c63
push eax
call esi
push dword [0xaebec4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xab5c63
test ebx, ebx
je 0xab5c63
call edi
test eax, eax
je 0xab5c5a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xab5c5a
test byte [ebp - 8], 1
jne 0xab5c63
or dword [ebp + 0x10], 0x200000
jmp 0xab5c96
mov eax, dword [0xaebeb8]
cmp eax, dword [ebp - 0x18]
je 0xab5c96
push eax
call esi
test eax, eax
je 0xab5c96
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xab5c96
mov eax, dword [0xaebebc]
cmp eax, dword [ebp - 0x18]
je 0xab5c96
push eax
call esi
test eax, eax
je 0xab5c96
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xaebeb4]
call esi
test eax, eax
je 0xab5cb2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xab5cb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9e488
leave
ret