joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa50f30
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0xa8eb1b
push eax
mov eax, 0x421c
mov dword fs:[0], esp
call fcn.00a7e750
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00a155c0
mov dword [esp + 0x4234], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [esp + 0x4244]
push eax
lea ecx, [esp + 0x24]
push str._ls._x
push ecx
call fcn.00a16060
mov edx, dword [esp + 0x34]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
call fcn.00a227b0
mov ebp, eax
cmp ebp, 0xffffffff
je 0xa51085
mov edi, dword [esp + 0x423c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
push 0
push 0
push 0
push edi
mov dword [esp + 0x24], eax
call esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0xa5104c
cmp ebx, 0x4000
mov esi, 0x4000
ja 0xa50ff0
mov esi, ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x234]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa510ab
mov eax, dword [esp + 0x10]
cmp esi, eax
jne 0xa510ab
lea edx, [esp + 0x18]
push 0
push edx
push eax
lea eax, [esp + 0x238]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xa5109d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0xa5109d
sub ebx, esi
jne 0xa50fe1
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push edi
call esi
mov esi, dword [esp + 0x4240]
push esi
call fcn.00a20610
mov edx, dword [esp + 0x24]
push esi
push edx
call fcn.00a1faf0
test eax, eax
jne 0xa510b4
mov eax, dword [esp + 0x24]
push eax
call fcn.00a20610
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4234], 0xffffffff
call fcn.00a155e0
xor al, al
jmp 0xa510ca
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
push edx
jmp 0xa51080
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xa5107b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4234], 0xffffffff
call fcn.00a155e0
mov al, 1
mov ecx, dword [esp + 0x422c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4228
ret
Function at 0xa510f0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4008
call fcn.00a7e750
push ebx
mov ebx, dword [esp + 0x4010]
push ebp
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
mov edi, eax
call esi
mov ebp, dword [esp + 0x4020]
push 0
push 0
push 0
push ebp
call esi
test edi, edi
je 0xa51182
cmp edi, 0x4000
mov esi, 0x4000
ja 0xa51142
mov esi, edi
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa51196
cmp esi, dword [esp + 0x14]
jne 0xa51196
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x20]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xa51196
cmp esi, dword [esp + 0x10]
jne 0xa51196
sub edi, esi
jne 0xa51133
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4008
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4008
ret
Function at 0xa62d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xa8f448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
lea ecx, [esp + 0xc]
call fcn.00a50480
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00a504c0
lea eax, [esp + 4]
push 0
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 8]
push ecx
mov ecx, dword [0xaf568c]
push edx
push 0
push 0x2000000
push 0
push 0
push 0
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00a56c50
add esp, 0x30
test al, al
je 0xa62e97
mov eax, dword [esp + 4]
test eax, eax
jne 0xa62e97
mov al, byte [esp + 0x44]
test al, al
je 0xa62e23
cmp dword [esp + 8], 2
jne 0xa62e23
mov eax, dword [esp]
push eax
jmp 0xa62e8f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 4]
push 0
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 3
push 0
push 0xab504c
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00a57f80
add esp, 0x24
test al, al
je 0xa62e8a
mov eax, dword [esp + 4]
test eax, eax
jne 0xa62e8a
mov eax, dword [esp]
push eax
call fcn.00a41390
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00a51780
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov ecx, dword [esp]
push ecx
call fcn.00a41390
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00a51780
mov ecx, dword [esp + 0x28]
xor al, al
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0xa63140
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0xa8f4b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov ecx, dword [esp + 0x338]
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
lea ecx, [esp + 0x128]
call fcn.00a155c0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x128]
push edx
xor ebx, ebx
push str.RegisteredObjects_ls
push eax
mov dword [esp + 0x34c], ebx
call fcn.00a16060
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
call fcn.00a16c20
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x348], 1
call fcn.00a62ec0
add esp, 8
test al, al
je 0xa6328f
mov esi, dword [esp + 0x20]
mov ecx, dword [esi]
push ecx
push ebx
push 0x1f0fff
call ebp
mov edi, eax
cmp edi, ebx
je 0xa6322c
cmp dword [esi + 4], ebx
jne 0xa632ba
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xc8
mov dword [esp + 0x10], eax
jg 0xa63253
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], bl
call fcn.00a16c40
jmp 0xa631b6
mov edx, dword [esi]
mov eax, dword [esp + 0x350]
push edx
push str.__COM_Process__x_does_not_exist_
push eax
call fcn.00a16060
mov ecx, dword [esp + 0x13c]
push ecx
call fcn.00a63070
add esp, 0x10
jmp 0xa6328f
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x350]
push edx
push str.___ls_did_not_completed_registration_after_20_seconds__killing_
push eax
call fcn.00a16060
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
push ecx
call fcn.00a63070
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], bl
call fcn.00a16c40
lea ecx, [esp + 0x128]
mov dword [esp + 0x340], 0xffffffff
call fcn.00a155e0
xor al, al
jmp 0xa63307
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x34c]
mov eax, dword [esi]
mov byte [esp + 0x340], bl
mov dword [edx], eax
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x18]
call fcn.00a16c40
lea ecx, [esp + 0x128]
mov dword [esp + 0x340], 0xffffffff
call fcn.00a155e0
mov al, 1
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x334
ret
Function at 0xa63320
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov al, byte [0xaf5690]
test al, al
jne 0xa6334a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
pop ecx
ret
push ebx
push ebp
push esi
push edi
call fcn.00a35850
mov edi, eax
push edi
call fcn.00a7e07a
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10], eax
sub ebx, ebp
mov eax, ecx
lea esi, [ecx + ebp]
cdq
idiv dword [esp + 0x10]
mov al, byte [ebx + esi]
mov dl, byte [edi + edx*2]
xor dl, al
inc ecx
cmp ecx, 0x10
mov byte [esi], dl
jb 0xa6336e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa685c0
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.00a68620
add esp, 0x24
test eax, eax
jne 0xa685fc
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, dword [esp + 0x2c]
cmp al, 6
mov eax, dword [esi + 0x34]
pop esi
mov dword [edx], eax
mov eax, 1
ret
Function at 0xa69fb0
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub esp, 0x98
push ebx
push eax
mov eax, dword [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0xc4]
mov ebx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0xc4]
push edx
push eax
push ecx
push ebx
call fcn.00a6a0c0
add esp, 0x30
test eax, eax
jne 0xa6a022
pop ebx
add esp, 0x98
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0xa6a046
cmp al, 5
jne 0xa6a039
xor edx, edx
mov dl, ah
cmp dl, 2
jae 0xa6a046
mov eax, 1
pop ebx
add esp, 0x98
ret
push esi
lea edx, [ebx + 0x28]
push edi
mov ecx, 0x26
mov esi, edx
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, edx
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [esp + 8]
pop ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x88]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x80], eax
mov dword [edx + 0x88], eax
mov eax, 1
add esp, 0x98
ret

Function at 0xa6a0c0
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x3c]
push ebp
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
push ebx
call fcn.00a6a1a0
add esp, 0x30
test eax, eax
jne 0xa6a113
pop ebp
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0xa6a135
cmp al, 5
jne 0xa6a12a
xor ecx, ecx
mov cl, ah
cmp cl, 1
jae 0xa6a135
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push esi
lea edx, [ebx + 0x28]
push edi
mov ecx, 0xa
mov esi, edx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, edx
pop edi
mov dword [edx + 0x88], ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
pop ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, 1
add esp, 0x28
ret
Function at 0xa6a1a0
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub esp, 0x28
push ebx
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push ebx
call fcn.00a6a270
add esp, 0x30
test eax, eax
jne 0xa6a1f1
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0xa6a205
mov eax, 1
pop ebx
add esp, 0x28
ret
push esi
lea edx, [ebx + 0x28]
push edi
mov ecx, 0xa
mov esi, edx
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, edx
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [edx + 0x24], 0
pop ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], eax
mov eax, 1
add esp, 0x28
ret
Function at 0xa6aab0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push str.LocalSystem
push ebx
call fcn.00a886d0
add esp, 8
test eax, eax
jne 0xa6aad2
mov ebx, str.NT_AUTHORITYSYSTEM
mov eax, dword [0xaf5774]
xor ebp, ebp
cmp eax, ebp
je 0xa6aaec
push eax
call fcn.009ef440
add esp, 4
mov dword [0xaf5774], ebp
lea eax, [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x18]
push ebp
push edx
push ebp
push ebx
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.009ef3b0
mov ecx, dword [esp + 0x20]
mov dword [0xaf5774], eax
lea edx, [ecx + ecx]
push edx
call fcn.009ef3a0
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [0xaf5774]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push eax
push ebx
push ebp
call edi
test eax, eax
push esi
jne 0xa6ab73
call fcn.00a7d8f0
mov ecx, dword [0xaf5774]
push ecx
call fcn.009ef440
add esp, 8
mov dword [0xaf5774], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call fcn.00a7d8f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0xa6b580
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0xaf5778]
test eax, eax
jne 0xa6b59e
push 0xaf5758
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xaf5778], 1
push esi
push edi
call fcn.00a6b6d0
push str.ntdll.dll
call fcn.00a222a0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.NtImpersonateClientOfPort
push esi
call edi
push str.NtQueryInformationProcess
push esi
mov dword [0xaf5770], eax
call edi
push str.NtQueryInformationThread
push esi
mov dword [0xaf574c], eax
call edi
push str.NtSetInformationThread
push esi
mov dword [0xaf5730], eax
call edi
push str.NtSecureConnectPort
push esi
mov dword [0xaf5748], eax
call edi
push str.advapi32.dll
mov dword [0xaf5750], eax
call fcn.00a466e0
push 0xffffffffffffffff
push 0
mov esi, eax
push 0xa6b7d0
push str.DuplicateTokenEx
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push 0xa6b140
push str.GetSecurityInfo
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push fcn.00a6ac70
push str.GetTokenInformation
push esi
call fcn.00a468b0
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0xa6b980
push str.SetTokenInformation
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push fcn.00a6ade0
push str.OpenProcessToken
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push 0xa6af90
push str.OpenThreadToken
push esi
call fcn.00a468b0
push 0xa9ecb0
call fcn.00a466e0
add esp, 0x40
mov esi, eax
push 0xffffffffffffffff
push 0
push 0xa6b9d0
push str.NtImpersonateClientOfPort
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push 0xa6ba10
push str.NtSetInformationThread
push esi
call fcn.00a468b0
push 0xffffffffffffffff
push 0
push 0xa6bbb0
push str.NtSecureConnectPort
push esi
call fcn.00a468b0
add esp, 0x3c
pop edi
pop esi
ret
Function at 0xa714e0
Capabilities:
Parse pe header

Disassembly:
push 0xffffffffffffffff
push 0xa8fcc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x10]
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dl, byte [esp + 0x28]
mov dword [esp + 0x20], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, dword [ecx + 4]
mov byte [esp + 0x20], 1
cmp eax, ebx
mov byte [esp + 0x13], bl
jne 0xa7153e
xor edx, edx
jmp 0xa71543
mov edx, dword [ecx + 8]
sub edx, eax
mov ebp, dword [esp + 0x28]
cmp edx, ebp
jae 0xa7156d
cmp eax, ebx
jne 0xa71553
xor edx, edx
jmp 0xa71558
mov edx, dword [ecx + 8]
sub edx, eax
lea eax, [esp + 0x13]
push eax
mov eax, ebp
sub eax, edx
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.009fd6a0
jmp 0xa7159b
cmp eax, ebx
je 0xa7159b
mov edi, dword [ecx + 8]
mov edx, edi
sub edx, eax
cmp ebp, edx
jae 0xa7159b
lea edx, [eax + ebp]
mov eax, edi
cmp eax, edi
je 0xa71591
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
cmp eax, edi
jne 0xa71585
xor ebx, ebx
mov eax, dword [ecx + 8]
mov dword [ecx + 8], edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esi], eax
mov word [eax], 0x5a4d
mov ecx, dword [esi]
mov dword [ecx + 0x3c], 0x50
mov ecx, dword [esi]
mov eax, dword [ecx + 0x3c]
mov dword [eax + ecx], 0x4550
add eax, ecx
lea ecx, [eax + 4]
mov dword [esi + 4], ecx
mov word [ecx + 2], bx
mov edx, dword [esi + 4]
mov ecx, 0x20
mov word [edx + 0x10], 0xe0
lea edx, [eax + 0x18]
xor eax, eax
mov dword [esi + 8], edx
lea edi, [edx + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
pop edi
mov word [eax], 0x10b
mov ecx, dword [esi + 8]
mov dword [ecx + 8], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0x3c], ebp
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x28]
mov dword [eax + 0x24], ebp
mov ecx, dword [esi + 8]
mov dword [ecx + 0x20], edx
mov eax, dword [esi + 8]
mov dword [eax + 0x5c], 0x10
mov ecx, dword [esi + 8]
add ecx, 0xe0
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0xa73470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0xa8fdbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x14], 3
jae 0xa73514
cmp ecx, edx
jae 0xa734b0
lea eax, [esp + 0x34]
jmp 0xa734bc
cmp eax, edx
lea eax, [esp + 0x48]
jb 0xa734bc
lea eax, [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
add eax, 4
mov dword [esi], ecx
push eax
lea ecx, [esi + 4]
call fcn.00a72b60
mov dword [esp + 8], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.00a729b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x14], 1
call fcn.00a729b0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x14], bl
call fcn.00a729b0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
cmp eax, edx
jae 0xa7351e
lea eax, [esp + 0x20]
jmp 0xa7352a
cmp ecx, edx
lea eax, [esp + 0x48]
jb 0xa7352a
lea eax, [esp + 0x34]
mov edx, dword [eax]
push ebp
mov ebp, dword [esp + 0x20]
push edi
lea edi, [eax + 4]
lea esi, [ebp + 4]
mov dword [ebp], edx
mov al, byte [edi]
mov ecx, edi
mov byte [esi], al
call fcn.00a1d920
cmp eax, ebx
jge 0xa7354c
xor eax, eax
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
call fcn.009ef380
mov ecx, dword [edi + 8]
mov edi, dword [edi + 4]
add esp, 4
mov dword [esi + 4], eax
push eax
push ecx
push edi
mov ecx, esi
call fcn.00a1d950
mov edx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 2
call fcn.00a1d050
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00a7d8f0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push edx
push eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x24], 1
call fcn.00a1d050
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00a7d8f0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push edx
push eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x24], bl
call fcn.00a1d050
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00a7d8f0
mov ecx, dword [esp + 0x18]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret

Function at 0xa74c60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0xa74c8f
cmp bl, 0xd7
je 0xa74c8f
mov esi, dword [esp + 0x14]
lea ecx, [eax + 1]
test esi, esi
jle 0xa74cb8
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0xa74c83
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
inc eax
push esi
push eax
call fcn.00a78fe0
cmp bl, 0xd8
jne 0xa74cb8
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0xa74cb8
mov dl, byte [eax + esi]
xor dl, 0xf0
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0xa74caa
pop esi
pop ebx
ret