joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa6beaf1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0xa6bec48
mov edi, dword [ebp + 0xc]
test edi, edi
je 0xa6bec48
mov edx, dword [esi + 0x20]
cmp edx, 0x40
jae 0xa6bec48
xor eax, eax
mov ecx, edx
shl ecx, 3
add dword [esi + 0x18], ecx
adc eax, dword [esi + 0x1c]
mov dword [esi + 0x1c], eax
mov al, byte [esi + 0x68]
mov byte [edx + esi + 0x28], al
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
cmp eax, 0x38
ja 0xa6bec2c
jae 0xa6beb52
mov byte [eax + esi + 0x28], 0
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
cmp eax, 0x38
jb 0xa6beb41
mov al, byte [esi + 0x1f]
mov byte [esi + 0x67], al
mov al, byte [esi + 0x1e]
mov byte [esi + 0x66], al
mov al, byte [esi + 0x1d]
mov byte [esi + 0x65], al
mov al, byte [esi + 0x1c]
mov byte [esi + 0x64], al
mov al, byte [esi + 0x1b]
mov byte [esi + 0x63], al
mov al, byte [esi + 0x1a]
mov byte [esi + 0x62], al
mov al, byte [esi + 0x19]
mov byte [esi + 0x61], al
mov al, byte [esi + 0x18]
mov byte [esi + 0x60], al
lea eax, [esi + 0x28]
push eax
push esi
call fcn.0a6beea1
mov al, byte [esi + 7]
mov byte [edi + 7], al
mov al, byte [esi + 6]
mov byte [edi + 6], al
mov al, byte [esi + 5]
mov byte [edi + 5], al
mov al, byte [esi + 4]
mov byte [edi + 4], al
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov al, byte [esi]
mov byte [edi], al
mov al, byte [esi + 0xf]
mov byte [edi + 0xf], al
mov al, byte [esi + 0xe]
mov byte [edi + 0xe], al
mov al, byte [esi + 0xd]
mov byte [edi + 0xd], al
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov al, byte [esi + 0xb]
mov byte [edi + 0xb], al
mov al, byte [esi + 0xa]
mov byte [edi + 0xa], al
mov al, byte [esi + 9]
mov byte [edi + 9], al
mov al, byte [esi + 8]
mov byte [edi + 8], al
mov al, byte [esi + 0x17]
mov byte [edi + 0x17], al
mov al, byte [esi + 0x16]
mov byte [edi + 0x16], al
mov al, byte [esi + 0x15]
mov byte [edi + 0x15], al
mov al, byte [esi + 0x14]
mov byte [edi + 0x14], al
mov al, byte [esi + 0x13]
mov byte [edi + 0x13], al
mov al, byte [esi + 0x12]
mov byte [edi + 0x12], al
mov al, byte [esi + 0x11]
mov byte [edi + 0x11], al
mov al, byte [esi + 0x10]
pop ecx
mov byte [edi + 0x10], al
xor eax, eax
pop ecx
jmp 0xa6bec4b
mov byte [eax + esi + 0x28], 0
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
cmp eax, 0x40
jb 0xa6bec20
lea eax, [esi + 0x28]
push eax
push esi
call fcn.0a6beea1
and dword [esi + 0x20], 0
xor eax, eax
pop ecx
pop ecx
jmp 0xa6beb41
push 0x10
pop eax
pop edi
pop esi
pop ebp
ret
Function at 0xa6bf153
Capabilities:
Hash data using tiger

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor dword [ecx], eax
mov ebx, dword [ecx]
mov eax, dword [ebp + 0x18]
xor dword [ecx + 4], eax
mov ecx, dword [ecx + 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [ebp + 0x10], ecx
movzx ecx, cl
push edi
mov esi, dword [eax*8 + 0xa5dc400]
mov edx, dword [eax*8 + 0xa5dc404]
xor esi, dword [ecx*8 + 0xa5dbc00]
xor edx, dword [ecx*8 + 0xa5dbc04]
mov ecx, ebx
mov edi, dword [ebp + 0x10]
mov eax, edi
shrd ecx, eax, 0x10
push 5
movzx eax, cl
mov ecx, ebx
xor esi, dword [eax*8 + 0xa5db400]
xor edx, dword [eax*8 + 0xa5db404]
movzx eax, bl
xor esi, dword [eax*8 + 0xa5dac00]
xor edx, dword [eax*8 + 0xa5dac04]
mov eax, dword [ebp + 8]
sub dword [eax], esi
sbb dword [eax + 4], edx
mov eax, edi
shr eax, 8
movzx edx, al
mov eax, edi
shrd ecx, eax, 0x18
movzx eax, cl
mov esi, dword [edx*8 + 0xa5db400]
mov ecx, dword [edx*8 + 0xa5db404]
mov edx, edi
mov edi, dword [ebp + 0xc]
xor esi, dword [eax*8 + 0xa5dbc00]
xor ecx, dword [eax*8 + 0xa5dbc04]
mov eax, edx
shrd ebx, eax, 8
shr edx, 0x18
movzx eax, bl
xor esi, dword [eax*8 + 0xa5dc400]
xor ecx, dword [eax*8 + 0xa5dc404]
xor esi, dword [edx*8 + 0xa5dac00]
xor ecx, dword [edx*8 + 0xa5dac04]
add dword [edi], esi
pop esi
adc dword [edi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [edi + 4]
sub ecx, esi
je 0xa6bf24c
dec ecx
sub ecx, 1
je 0xa6bf249
dec ecx
sub ecx, 1
jne 0xa6bf25b
push 9
jmp 0xa6bf24b
push 7
pop esi
mul esi
mov ecx, eax
mov eax, dword [edi]
mul esi
add ecx, edx
mov dword [edi], eax
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xa6c0d1f
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0xa6c0d2d
push 0x10
pop eax
pop ebp
ret
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
cmovns ecx, dword [ebp + 0xc]
test ecx, ecx
je 0xa6c0d4c
mov eax, ecx
pop ebp
ret
pop ebp
jmp fcn.0a6c0d52
Function at 0xa6c6bd2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0xa58d1f0]
mov dword [ebp - 4], esi
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea edi, [eax*2 + 5]
lea eax, [ebp + 8]
mov dword [ebp - 8], edi
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0xa6c6c1c
push 0xa
pop eax
jmp 0xa6c6c9e
cmp dword [ebp + 0xc], 0
je 0xa6c6c3f
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0xa6c6c61
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0xa6c6c61
test byte [esi + 0x14], 1
je 0xa6c6c56
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
jmp 0xa6c6c61
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp + 0xc]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret
Function at 0xa6c6cd0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0xa6c6dd9
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0xa6c6dd2
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0xa6c6d97
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0xa6c6d97
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0xa6c6d97
mov edx, dword [esi]
test edx, edx
jne 0xa6c6d60
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0xa58c1bc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0xa6c6dbb
lea ebx, [esi + 8]
jmp 0xa6c6d8a
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0xa6c6d8a
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0xa58c1bc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0xa6c6dea
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0xa6c6d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0xa6c6dd2
xor edi, edi
cmp dword [esi], edi
je 0xa6c6dd2
push dword [esi]
push edi
push dword [0xa58c1bc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0a707b89
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0xa6c6dbb

Function at 0xa6c6e5b
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.0a6c6cd0
pop ecx
test eax, eax
jne 0xa6c6e7e
push 9
pop esi
jmp 0xa6c6ed7
cmp dword [edi], esi
je 0xa6c6ed7
mov dword [ebp + 8], esi
cmp dword [edi + 8], esi
jbe 0xa6c6ed7
mov ecx, esi
mov dword [ebp - 4], ecx
push ebx
mov eax, dword [edi]
push dword [eax + ecx]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0xa6c6ec1
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0a6c718e
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
inc eax
add ecx, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp eax, dword [edi + 8]
jb 0xa6c6e90
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0xa6c729e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0xa6c72fc
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0xa6c72eb
xor ecx, ecx
mov dword [ebp + 8], ecx
push ebx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0xa6c72db
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
inc edi
add ecx, 4
mov dword [ebp + 8], ecx
cmp edi, dword [esi + 8]
jb 0xa6c72b8
pop ebx
push dword [esi]
push 0
push dword [0xa58c1bc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret

Function at 0xa6c72ff
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0xa58d1ec]
push esi
xor esi, esi
jmp 0xa6c7311
cmp dword [edx + 4], esi
jne 0xa6c735d
mov edx, dword [edx]
test edx, edx
jne 0xa6c730a
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0xa6c736a
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0xa6c7338
mov eax, dword [0xa58d1ec]
mov dword [edx], eax
pop edi
mov dword [0xa58d1ec], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret
Function at 0xa6cae50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0a6cae59

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0xa5eb268]
sub edx, 1
jne 0xa6cb113
pop ebp
ret
Function at 0xa6d0578
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
and edi, 0x1f
cmp edi, 8
jb 0xa6d05f5
mov ecx, dword [ebp + 0x10]
mov eax, edi
shr eax, 3
mov dword [ebp - 4], eax
mov eax, ecx
add ecx, 8
mov dword [ebp + 0x14], ecx
push dword [eax + 4]
push dword [eax]
push 0
push 0
call fcn.0a6d0722
add esp, 0x10
mov ecx, eax
xor ecx, esi
xor edx, ebx
mov eax, ecx
shld eax, edx, 0x1b
push 0x9e3779b1
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.0a7084a0
mov ecx, dword [ebp + 0x14]
mov esi, eax
add esi, 0xc2b2ae63
mov ebx, edx
adc ebx, 0x85ebca77
sub edi, 8
sub dword [ebp - 4], 1
jne 0xa6d059b
mov eax, ecx
jmp 0xa6d05fb
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], esi
mov ecx, eax
cmp edi, 4
jb 0xa6d0656
add eax, 4
mov dword [ebp + 0x14], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov esi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
xor eax, dword [ebp + 0xc]
add esi, edx
xor esi, ebx
mov ecx, eax
shld ecx, esi, 0x17
shld esi, eax, 0x17
push esi
push ecx
call fcn.0a7084a0
mov esi, eax
mov ebx, edx
mov eax, dword [ebp + 0x14]
add esi, 0x9e3779f9
mov dword [ebp + 0xc], esi
adc ebx, 0x165667b1
sub edi, 4
test edi, edi
je 0xa6d06a0
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.0a7084a0
xor esi, eax
xor ebx, edx
inc dword [ebp + 0x14]
mov eax, esi
push 0x9e3779b1
shld eax, ebx, 0xb
push 0x85ebca87
shld ebx, esi, 0xb
push ebx
push eax
call fcn.0a7084a0
mov esi, eax
mov eax, dword [ebp + 0x14]
mov ebx, edx
sub edi, 1
jne 0xa6d065a
mov dword [ebp + 0xc], esi
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebx
push 0x27d4eb4f
xor ecx, ebx
shr esi, 1
xor esi, dword [ebp + 0xc]
push ecx
push esi
call fcn.0a7084a0
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.0a7084a0
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
leave
ret
Function at 0xa706cdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0xa5f1050
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0xa706d03
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0xa706d06
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0a706cb8
pop esi
leave
ret 8

Function at 0xa70944c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0xa70948b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa70948b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa70948b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xa70948b
cmp dword [ecx + 0x74], 0xe
jbe 0xa70948b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xa720498
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa611560
push 0xa611558
push 0xa60ed40
push 0x1f
call fcn.0a7202c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa7204cc
push dword [ebp + 8]
mov ecx, esi
call dword [0xa58e380]
call esi
jmp 0xa7204d2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xa720516
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa611570
push 0xa611568
push 0xa60ed64
push 0x21
call fcn.0a7202c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa72054d
push dword [ebp + 8]
mov ecx, esi
call dword [0xa58e380]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0xa720555
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa611578
push 0xa611570
push 0xa60ed78
push 0x22
call fcn.0a7202c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa72058f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0xa58e380]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xa7255f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0a7082b0
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0a721c10
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0xa725636
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0xa725792
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0a708200
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xa58cea0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0a726399
mov ecx, dword [esi*4 + 0xa58cea0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0xa72578b
cmp eax, dword [ecx + edi + 0x24]
jne 0xa72578b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa72578b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0a726399
add esp, 0x14
test edx, edx
jl 0xa72578b
jg 0xa725701
test eax, eax
jb 0xa72578b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0xa72578b
jl 0xa72571b
cmp dword [ebp - 0x1008], eax
ja 0xa72578b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0xa725739
test ebx, ebx
je 0xa725772
cmp ecx, edi
jae 0xa725772
mov al, byte [ecx]
cmp al, 0xd
jne 0xa725753
lea eax, [edi - 1]
cmp ecx, eax
jae 0xa72575f
cmp byte [ecx + 1], 0xa
jne 0xa72575f
inc ecx
jmp 0xa72575f
movzx eax, al
movsx eax, byte [eax + 0xa415630]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0xa725739
cmp edx, ebx
jne 0xa725739
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0xa725790
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0a707b89
leave
ret
Function at 0xa725831
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xa58cea0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa725871
cmp byte [ebx], 0xa
jne 0xa725871
or byte [edi + eax + 0x28], 4
jmp 0xa725876
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0xa725975
mov dl, byte [eax]
cmp dl, 0x1a
je 0xa725958
inc eax
cmp dl, 0xd
je 0xa7258a2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0xa7258c8
cmp eax, ecx
jae 0xa7258d6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0xa72588a
jmp 0xa725975
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa725953
cmp dword [ebp - 0x10], 0
je 0xa725953
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xa58cea0]
test byte [eax + edi + 0x28], 0x48
je 0xa72592d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa725918
mov byte [esi], dl
jmp 0xa725929
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xa58cea0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa725975
cmp byte [ebp - 1], 0xa
jne 0xa72593c
cmp esi, ebx
jne 0xa72593c
mov byte [esi], 0xa
jmp 0xa725974
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0a7263b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa725975
mov byte [esi], 0xd
jmp 0xa725974
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xa58cea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa725972
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa725975
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa72597e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xa58cea0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa7259c4
cmp word [ebx], dx
jne 0xa7259c4
or byte [eax + edi + 0x28], 4
jmp 0xa7259c9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0xa725b2c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0xa725b0c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0xa725a0a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa725a40
cmp eax, edx
jae 0xa725a4e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0xa7259e5
jmp 0xa725b2c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa725b07
cmp dword [ebp - 0x18], 0
je 0xa725b07
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xa58cea0]
test byte [eax + edi + 0x28], 0x48
je 0xa725add
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0xa725aa1
mov word [esi], cx
jmp 0xa725ad8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xa58cea0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xa58cea0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xa58cea0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0xa725b2c
pop eax
cmp word [ebp - 4], ax
jne 0xa725aed
cmp esi, ebx
jne 0xa725aed
mov word [esi], ax
jmp 0xa725b29
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0a7263b7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0xa725b2c
push 0xd
pop eax
jmp 0xa725ae8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa58cea0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0xa725b26
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0xa725b2c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret