joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418cc3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x418d55
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.004180f6
mov esi, eax
test esi, esi
jns 0x418d06
push 0x456800
push esi
call fcn.0043fb09
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x418d7e
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x418d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418d2f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x418d36
mov esi, 0x80004005
push esi
push 0x601
push 0x455990
call fcn.004038ba
push 0x456828
jmp 0x418cf9
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.00444e42
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x418d88
push edi
call fcn.00403aa4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x419a1d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.0042f600
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.0041a279
test eax, eax
js 0x419a7e
push 7
push dword [ebp - 0x258]
call fcn.00403d4e
cmp dword [ebp + 8], 0
jne 0x419b65
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0xc]
call fcn.0041819f
test eax, eax
js 0x419b65
lea eax, [ebp - 0x260]
push eax
push 0x44a8e8
push dword [ebp - 0x258]
call fcn.00402e55
test eax, eax
js 0x419b65
push esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419b64
test byte [ebp - 0x254], 0x10
jne 0x419b4b
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x419b23
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x419b23
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x419b4b
push 0x72
pop ecx
cmp cx, ax
je 0x419b4b
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.00402e55
test eax, eax
js 0x419b4b
push dword [ebp - 0x25c]
call fcn.00443984
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419add
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0x25c], 0
je 0x419b79
push dword [ebp - 0x25c]
call fcn.00402762
cmp dword [ebp - 0x260], 0
je 0x419b8d
push dword [ebp - 0x260]
call fcn.00402762
cmp dword [ebp - 0x258], 0
je 0x419ba1
push dword [ebp - 0x258]
call fcn.00402762
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042dd1f
leave
ret 8
Function at 0x41d0e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x34]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x60], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x34]
push eax
push 0x41ac12
push ecx
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41d1b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d193
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41d19a
mov esi, 0x80004005
push esi
push 0x461
push 0x456eb0
call fcn.004038ba
push 0x457db0
push esi
call fcn.0043fb09
pop ecx
pop ecx
jmp 0x41d203
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x41c672
push dword [ebp + 0xc]
call fcn.00415132
mov esi, eax
test esi, esi
jns 0x41d1e3
push 0x457dd8
push esi
call fcn.0043fb09
pop ecx
pop ecx
jmp 0x41d1fc
push dword [ebp - 8]
push edi
call fcn.0041cdc8
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x38
Function at 0x439dab
Capabilities:
Terminate process

Disassembly:
add byte [edx], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0

Function at 0x439de0
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
jmp 0x439e3b
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x88
jge 0x439e5d
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 4]
mov dword [eax], edx
jmp 0x439e32
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x439e7e
jmp 0x439f31
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x70]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
push ecx
push 0x6000
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 8
jmp 0x439ec5
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x6000
jge 0x439ee3
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x439ebc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x50]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0x6000
mov ecx, dword [ebp - 0xc]
push ecx
call dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x54]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x30]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x44559f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x455848
push edi
call fcn.00402022
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4456ab
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x445629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44560d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x445614
mov esi, 0x80004005
push esi
push 0xc1
push str.c:_agent_work66_s_srclibsdutildlutil.cpp
call fcn.004038ba
jmp 0x4456ab
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445671
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x44565b
cmp ecx, 8
jb 0x44562c
cmp ecx, 8
je 0x445667
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x44569f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x445688
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44568f
mov esi, 0x80004005
push esi
push 0xc8
push str.c:_agent_work66_s_srclibsdutildlutil.cpp
call fcn.004038ba
cmp edi, 0xffffffff
je 0x4456ab
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4474e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0x446058
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
push 0x104
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00447436
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x447593
mov eax, dword [ebp - 0x14]
push eax
call fcn.00447496
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + eax]
je 0x447593
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + eax]
je 0x447593
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x14]
add eax, 0x20a
mov dword [ebp - 0x2c], eax

Function at 0x4475ac
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x6c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0

Function at 0x4475b1
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x6c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
Function at 0x2a32a70
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x2a32ab9
mov ecx, dword [ecx + 4]
push ecx
mov ecx, esi
call fcn.02a32ad0
mov eax, esi
ret
add ecx, 4
push ecx
mov ecx, esi
call fcn.02a32ad0
mov eax, esi
ret
Function at 0x2a342e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x2af37c9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x2b197a0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x2b197a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], edi
mov esi, 1
push ebp
mov dword [esp + 0x6c], esi
call fcn.02a34560
mov dword [esp + 0x18], esi
cmp ebx, edi
je 0x2a344c2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x2a34346
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x88], eax
jb 0x2a344c2
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x7c]
xor eax, eax
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
call fcn.02a32510
mov byte [esp + 0x68], 2
cmp dword [esp + 0x54], edi
jbe 0x2a344ae
jmp 0x2a343a4
mov ebx, dword [esp + 0x38]
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x2a343b0
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
xor eax, eax
lea edx, [esp + 0x44]
call fcn.02a34670
mov esi, eax
cmp esi, edi
jl 0x2a34489
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x2a343e6
lea eax, [esp + 0x44]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.02a32890
lea eax, [esp + 0x1c]
push eax
mov ebx, ebp
mov byte [esp + 0x6c], 3
call fcn.02a345c0
mov bl, 2
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], 8
jb 0x2a3442f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.02a9b828
add esp, 4
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, eax
push esi
lea ecx, [esp + 0x48]
xor edx, edx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.02a32510
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 4
call fcn.02a32510
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], 8
jb 0x2a344a4
mov eax, dword [esp + 0x20]
push eax
call fcn.02a9b828
add esp, 4
jmp 0x2a344a4
lea ecx, [esp + 0x40]
push ecx
mov ebx, ebp
call fcn.02a345c0
push edi
push 0x2b05e48
lea ecx, [esp + 0x48]
call fcn.02a32890
cmp dword [esp + 0x54], edi
ja 0x2a343a0
cmp dword [esp + 0x58], 8
jb 0x2a344c2
mov edx, dword [esp + 0x44]
push edx
call fcn.02a9b828
add esp, 4
cmp dword [esp + 0x8c], 8
jb 0x2a344d9
mov eax, dword [esp + 0x78]
push eax
call fcn.02a9b828
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.02a9b567
add esp, 0x58
ret
Function at 0x2a372f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.02a9c2c7
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x2a37469
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x2a37343
mov eax, dword [esi + 0x40]
jmp 0x2a37346
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], 0x2b0a5f8
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.02a35940
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x2a37404
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x2a37388
cmp byte [edi], dl
jmp 0x2a3738c
cmp word [edi], 0
sete dl
test edx, edx
je 0x2a373b6
test eax, eax
je 0x2a373af
cmp edi, eax
je 0x2a373af
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.02a9da70
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x2a3737b
test eax, eax
je 0x2a373d9
cmp edi, eax
je 0x2a373d9
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.02a9da70
add esp, 0xc
test ebp, ebp
je 0x2a37404
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], 0x2b0a604
call fcn.02a35940
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x2a3745b
test byte [esi + 4], 0x80
je 0x2a3745b
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x2a37436
jmp 0x2a37420
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x2a37420
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0x2b0a620
mov eax, dword [esp + 0x28]
push eax
call fcn.02a35940
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.02a370d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x2a37980
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x2a3799c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x2a37a16
test edx, edx
jne 0x2a379d5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.02a976b6
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.02aa2800
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x2a379f2
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x2a379e0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], 0x2b0a620
call fcn.02a35940
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.02a9d164
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x2a37a3b
push edi
call fcn.02a9bf56
add esp, 4
test bl, bl
je 0x2a37a7e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x2a37a5b
mov eax, dword [esi + 0x40]
jmp 0x2a37a5e
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], 0x2b0a6a4
call fcn.02a35940
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.02a370d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x2a38db0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x2aefea9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x2b197a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
lea ebp, [esi + 4]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x1c], esi
mov word [ebp], ax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
jmp 0x2a38e10
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x2a38e10
sub eax, edx
mov edi, dword [esi + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp edi, eax
ja 0x2a38e63
cmp dword [esi + 0x18], eax
je 0x2a38e63
push 1
push eax
mov ecx, esi
call fcn.02a327c0
test al, al
je 0x2a38e63
cmp dword [esi + 0x18], 8
mov dword [esi + 0x14], edi
jb 0x2a38e5c
mov ebp, dword [ebp]
xor ecx, ecx
mov word [ebp + edi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0x2a38f77
mov edi, dword [esp + 0x34]
and edi, 0x100
mov dword [esp + 0x14], edi
test edi, edi
je 0x2a38e9a
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0x2a38f5f
movzx ecx, ax
movsx ebp, byte [ecx + 0x2b0a982]
jmp 0x2a38eb1
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0x2a38f5f
movzx ecx, ax
movsx ebp, byte [ecx + 0x2b0a99e]
test ebp, ebp
je 0x2a38f5f
test byte [esp + 0x34], 8
je 0x2a38f37
cmp ax, 0x26
jne 0x2a38f37
movzx eax, word [ebx + 2]
lea edi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0x2a38ee4
movzx ecx, ax
movsx ecx, byte [ecx + 0x2b0a9bd]
test ecx, ecx
jne 0x2a38eea
cmp ax, 0x7f
jbe 0x2a38f37
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x3b
je 0x2a38f21
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0x2a38f0e
movzx ecx, ax
movsx ecx, byte [ecx + 0x2b0aa13]
test ecx, ecx
jne 0x2a38f14
cmp ax, 0x7f
jbe 0x2a38f37
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x3b
jne 0x2a38ef7
mov eax, edi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
call fcn.02a3c030
mov ebx, edi
mov edi, dword [esp + 0x14]
jmp 0x2a38f67
mov edx, dword [ebp*4 + 0x2b1af34]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x2a38f43
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.02a3c030
mov edi, dword [esp + 0x14]
jmp 0x2a38f67
push 1
push ebx
call fcn.02a3c030
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x2a38e7d
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret