joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10021930]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x10010439
xor eax, eax
jmp 0x100105a7
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10024160]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001046c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.10010238
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1001053e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x10010579
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x100104c7
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100104b8
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1001049b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010507
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10010510
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1001048c
jmp 0x10010512
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x100105a2
cmp dword [ebp - 8], edi
je 0x10010579
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1001056b
call fcn.10010660
mov dword [eax], 9
call fcn.10010669
mov dword [eax], esi
jmp 0x10010574
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10010560
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10010512
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10010512
push dword [ebp - 8]
call fcn.10010672
pop ecx
or eax, 0xffffffff
jmp 0x100105a5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001058e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1001058e
xor eax, eax
jmp 0x100105a5
call fcn.10010660
mov dword [eax], 0x1c
call fcn.10010669
mov dword [eax], edi
jmp 0x10010574
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.100141cc
leave
ret
Function at 0x1001148c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10012758
xor esi, esi
inc esi
cmp dword [0x10022a78], esi
pop ecx
jne 0x100114b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x10022a74], esi
mov byte [0x10022a70], al
jne 0x1001151a
mov ecx, dword [0x1002428c]
test ecx, ecx
je 0x100114fb
mov eax, dword [0x10024288]
sub eax, 4
cmp eax, ecx
jmp 0x100114f4
mov eax, dword [eax]
test eax, eax
je 0x100114e6
call eax
mov eax, dword [0x10024288]
sub eax, 4
cmp eax, dword [0x1002428c]
mov dword [0x10024288], eax
jae 0x100114de
mov eax, 0x1002002c
mov esi, 0x10020034
cmp eax, esi
mov edi, eax
jae 0x1001151a
mov eax, dword [edi]
test eax, eax
je 0x10011513
call eax
add edi, 4
cmp edi, esi
jb 0x1001150b
mov eax, 0x10020038
mov esi, 0x10020040
cmp eax, esi
mov edi, eax
jae 0x10011539
mov eax, dword [edi]
test eax, eax
je 0x10011532
call eax
add edi, 4
cmp edi, esi
jb 0x1001152a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x1001154a
push 8
call fcn.100126c4
jmp 0x1001155c
push dword [ebp + 8]
mov dword [0x10022a78], 1
call fcn.100113e5
pop ecx
pop ebp
ret
Function at 0x10013d6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10021930]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10021898]
je 0x10013d99
inc eax
cmp eax, 0x12
jb 0x10013d8a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10021898]
jne 0x10013ecd
mov eax, dword [0x10022a24]
cmp eax, 1
je 0x10013ea8
cmp eax, edx
jne 0x10013dc9
cmp dword [0x10022a28], 1
je 0x10013ea8
cmp ecx, 0xfc
je 0x10013ecd
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10013e02
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10014010
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10014110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10013e44
lea eax, [ebp - 0x10c]
push eax
call fcn.10014110
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001cd18
push edi
call fcn.1000fda0
add esp, 0x10
push edi
call fcn.10014110
push dword [esi + 0x1002189c]
mov ebx, eax
call fcn.10014110
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000f160
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10014010
push edi
push ebx
call fcn.10014020
push 0x1001ccf8
push ebx
call fcn.10014020
push dword [esi + 0x1002189c]
push ebx
call fcn.10014020
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100165d8
add esp, 0x2c
jmp 0x10013ecd
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1002189c]
push dword [esi]
call fcn.10014110
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.100141cc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015db5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10021930]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x10015e30
push ebx
call fcn.10015d7e
test eax, eax
pop ecx
jne 0x10015e02
call fcn.10010669
mov dword [eax], 0xf
call fcn.10010660
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.100141cc
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x10015e42
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10015df2
inc eax
cmp eax, 0x104
ja 0x10015df2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10015e7a
cmp eax, dword [ebp + 0x10]
jg 0x10015e5d
mov eax, dword [ebp + 0x10]
push eax
call fcn.1000f2b5
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x10015e8f
call fcn.10010660
mov dword [eax], 0xc
jmp 0x10015df2
cmp eax, dword [ebp + 0x10]
jle 0x10015e8f
call fcn.10010660
mov dword [eax], 0x22
jmp 0x10015df2
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.10014010
pop ecx
pop ecx
jmp 0x10015df4

Function at 0x100165d8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10022d90], ebx
push esi
push edi
jne 0x10016658
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10016693
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d460
push edi
call esi
test eax, eax
mov dword [0x10022d90], eax
je 0x10016693
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10022d94], eax
call esi
cmp dword [0x10022a38], 2
mov dword [0x10022d98], eax
jne 0x10016658
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10022da0], eax
je 0x10016658
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10022d9c], eax
mov eax, dword [0x10022d9c]
test eax, eax
je 0x1001669d
call eax
test eax, eax
je 0x10016684
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10022da0]
test eax, eax
je 0x10016684
test byte [ebp - 8], 1
jne 0x1001669d
cmp dword [0x10022a44], 4
jb 0x10016697
or byte [ebp + 0x12], 0x20
jmp 0x100166bc
xor eax, eax
jmp 0x100166cc
or byte [ebp + 0x12], 4
jmp 0x100166bc
mov eax, dword [0x10022d94]
test eax, eax
je 0x100166bc
call eax
mov ebx, eax
test ebx, ebx
je 0x100166bc
mov eax, dword [0x10022d98]
test eax, eax
je 0x100166bc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10022d90]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10016a89
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000f160
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10016b1e
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10022a38]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10016b1e
cmp eax, 1
je 0x10016b36
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10016b1e
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10016af3
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10016b1a
xor eax, eax
inc eax
jmp 0x10016b52
cmp esi, ebx
jae 0x10016b22
xor eax, eax
jmp 0x10016b52
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10022a38]
jmp 0x10016b38
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10017002
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x1001706d
push 0x3d
push dword [ebp + 8]
call fcn.10017ce1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x1001706d
cmp dword [ebp + 8], esi
je 0x1001706d
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x10022a58]
cmp eax, dword [0x10022a5c]
jne 0x10017053
mov edi, eax
call fcn.10016fa1
mov dword [0x10022a58], eax
cmp eax, ebx
jne 0x100170ac
cmp dword [ebp + 0xc], ebx
je 0x10017075
cmp dword [0x10022a60], ebx
je 0x10017075
call fcn.10014baa
test eax, eax
je 0x100170ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x100171b0
push 4
call fcn.1000f2b5
cmp eax, ebx
pop ecx
mov dword [0x10022a58], eax
je 0x1001706d
mov dword [eax], ebx
cmp dword [0x10022a60], ebx
jne 0x100170ac
push 4
call fcn.1000f2b5
cmp eax, ebx
pop ecx
mov dword [0x10022a60], eax
je 0x1001706d
mov dword [eax], ebx
mov ebx, dword [0x10022a58]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.10016f54
mov edi, eax
test edi, edi
pop ecx
jl 0x10017105
cmp dword [ebx], 0
je 0x10017105
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.1000f19d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x100170ed
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x1001713b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x100170e4
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.10010ed2
test eax, eax
pop ecx
pop ecx
je 0x1001713b
jmp 0x10017136
cmp dword [ebp - 4], 0
jne 0x100171a9
test edi, edi
jge 0x10017115
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.10010ed2
test eax, eax
pop ecx
pop ecx
je 0x1001706d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x10022a58], eax
cmp dword [ebp + 0xc], 0
je 0x10017192
push dword [ebp + 8]
call fcn.10014110
inc eax
inc eax
push eax
call fcn.1000f2b5
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10017192
push dword [ebp + 8]
push esi
call fcn.10014010
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1001718b
or dword [ebp - 8], 0xffffffff
push esi
call fcn.1000f19d
pop ecx
cmp dword [ebp - 4], 0
je 0x100171a1
push dword [ebp + 8]
call fcn.1000f19d
pop ecx
mov eax, dword [ebp - 8]
jmp 0x10017070
push esi
call fcn.1000f19d
pop ecx
xor eax, eax
jmp 0x10017070
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10007082
pop dword [ebp - 0x30]
mov eax, 0x10007082
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x345c1
push 0
mov eax, 0xdfc104
add eax, 0xf217f60
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3552
xor edx, edx
add edx, eax
mov edi, 0x5b703d90
sub edi, 0x4b6eb790
add edi, dword [ebp - 0x30]
mov esi, 0x96cbd307
sub esi, 0x7332b5ae
xor dword [ebp - 8], 0xc3b9418c
mov ebx, dword [edi]
xor dword [ebp - 0x28], 0x2ededf26
xor ebx, esi
mov dword [ebp - 0x20], 0x53a8ecd9
mov dword [edx], ebx
add dword [ebp - 0x10], 0xbd63a099
add edx, 0xcf4bb2cd
add edx, 0x30b44d37
add edi, 0xd931ecce
add edi, 0x26ce1336
loop 0x100070d8
add eax, 0xb35d7526
sub eax, 0xb35cad0b
xor ebx, ebx
add ebx, eax
add eax, 0xdafc27f6
add eax, 0x2503d80f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x51a070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc3000]
push edi
jmp 0x51a08a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51a091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a080
mov eax, 1
add ebx, ebx
jne 0x51a0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51a0b4
jne 0x51a0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a0d3
dec eax
add ebx, ebx
jne 0x51a0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51a098
add ebx, ebx
jne 0x51a0cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51a125
xor ecx, ecx
sub eax, 3
jb 0x51a0eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51a15a
sar eax, 1
mov ebp, eax
jmp 0x51a0f6
add ebx, ebx
jne 0x51a0f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a0c4
inc ecx
add ebx, ebx
jne 0x51a104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a0c4
add ebx, ebx
jne 0x51a111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51a106
jne 0x51a122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51a106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51a144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51a136
jmp 0x51a086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51a144
add edi, ecx
jmp 0x51a086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51a162
cmp byte [edi], 0x11
jne 0x51a162
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51a167
lea edi, [esi + 0x113000]
mov eax, dword [edi]
or eax, eax
je 0x51a1df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15afa0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15b11c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51a194
mov ecx, edi
jns 0x51a1c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15b120]
or eax, eax
je 0x51a1d9
mov dword [ebx], eax
add ebx, 4
jmp 0x51a1b1
call dword [esi + 0x15b130]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51a210
cmp al, 0xef
ja 0x51a203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51a1e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51a1f2
mov ebp, dword [esi + 0x15b124]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51a244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10001f7b
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100048c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ecx + edx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jmp 0x10001fcf
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x100021b9
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
and eax, 0x20000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x24]
and edx, 0x40000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
and eax, 0x2000000
test eax, eax
je 0x10002082
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x10002055
mov dword [ebp - 0x34], 0x4b
push 0x100054e4
lea edx, [ebp - 0x34]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x10002076
mov dword [ebp - 4], 0xffffffff
jmp 0x10001fbd
mov dword [ebp - 4], 2
mov ecx, 1
test ecx, ecx
je 0x100020a7
mov dword [ebp - 0x38], 0x36
push 0x100054e4
lea edx, [ebp - 0x38]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x100020c8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x100020e7
mov ecx, dword [ebp - 0x28]
or ch, 2
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10002157
mov dword [ebp - 4], 4
mov ecx, 1
test ecx, ecx
je 0x1000211b
mov dword [ebp - 0x3c], 0x10
push 0x100054e4
lea edx, [ebp - 0x3c]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x10002157
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
jbe 0x100021ad
mov dword [ebp - 4], 6
mov ecx, 1
test ecx, ecx
je 0x10002189
mov dword [ebp - 0x40], 0xf
push 0x100054e4
lea edx, [ebp - 0x40]
push edx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x100021ad
mov dword [ebp - 4], 0xffffffff
jmp 0x10001fbd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret